[03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:47]accept exits with 9 [03:37:47]New connection [03:37:47]New thread 3066940772 created [03:37:47]Thread 3066797412 joined [03:37:47]Waiting for new connection... [03:37:47] Sock 9.Parse request [03:37:47]Sock 9.Check first char [03:37:47]Sock 9.First char is OK [03:37:47]request: POST /json_proto HTTP/1.0 [03:37:47]Method: POST [03:37:47]URL: /json_proto [03:37:47]Method is POST - this is cgi request [03:37:47]url: /json_proto [03:37:47]query_string will be loaded in cgi processing [03:37:47]execute_cgi json_proto POST (null) [03:37:47]execute_cgi path=json_proto method=POST [03:37:47]POST find Content-Length [03:37:47]Host: 172.17.38.133:8080 [03:37:47]Content-Length: 816 [03:37:47]Content-Type: application/json [03:37:47] [03:37:47]POST finish read [03:37:47]Found Content-Length = 816 [03:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:37:47]execute_script... [03:37: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)673135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:37:47]POST & json_proto [03:37:47]process_json_proto [03:37:47]json parsed OK: [03:37:47]protocol is kg_v1.0 [03:37:47]action value=close_receipt [03:37:47]process_action close_receipt [03:37:47]cmd_close_receipt [03:37:47]MH_GetDate [03:37:47]Write to MH i2c: F0 00 00 BC 1D C8 [03:37:47]Write i2c OK [03:37:47]MH_I2C_Read... [03:37:47]Read from MH i2c: F0 [03:37:47]MH_I2C_Read... [03:37:47]Read from MH i2c: F0 09 00 [03:37:47]MH_I2C_Read... [03:37:47]Read from MH i2c: F0 09 00 BC 1D 00 0E A4 73 66 BD 8F 7C 64 88 [03:37:47]GetLastDocTimeStamp 1718853536 [03:37:47]current date 1718854670 [03:37:47]FM_GetShiftState [03:37:47]SAM_PROTO_GetShiftState [03:37:47]wFMCommunicate request_size=4 [03:37:47]MH_SAM_APDU [03:37:47]CAPDU: 80 13 01 00 [03:37:47]Write to MH i2c: E2 08 00 BD 1D 80 13 01 00 00 00 00 00 57 [03:37:47]Write i2c OK [03:37:47]MH_I2C_Read... [03:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:37:47]Read from MH i2c: E2 [03:37:47]MH_I2C_Read... [03:37:47]Read from MH i2c: E2 0E 00 [03:37:47]MH_I2C_Read... [03:37:47]Read from MH i2c: E2 0E 00 BD 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A6 [03:37:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [03:37:47]wFMCommunicate OK [03:37:47]SAM_PROTO_GetShiftState done [03:37:47]FM_GetShiftState done [03:37:47]opened in 1718843124 [03:37:47]opened+sec_in_day 1718929524 [03:37:47]quantity*price = 50065 [03:37:47]sum+1 = 50067 [03:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 9 20.06.2024 03:37 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103824 ФПД: 76478590166323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T033750&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103824&fm=76478590166323&tin=02508201610067®Number=0000000000092785&sum=50066 [03:37:49]StoreToDocumentArchive [03:37:49]shift 354 fd 103824 [03:37:49]save to /storage/0354/doc_00103824 [03:37:49]save last doc name /storage/0354/doc_00103824 to /storage/kkm_last_doc_name [03:37:49]save OK [03:37:49]Clear old archive folders... [03:37:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:37:49]tlvbuf is 01735C00 [03:37:49]SAM_PROTO_ClearQueue [03:37:49]wFMCommunicate request_size=4 [03:37:49]MH_SAM_APDU [03:37:49]CAPDU: 80 09 00 00 [03:37:49]Write to MH i2c: E2 08 00 CA 1D 80 09 00 00 00 00 00 00 59 [03:37:49]Write i2c OK [03:37:49]MH_I2C_Read... [03:37:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:37:49]Read from MH i2c: E2 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 03 00 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 03 00 CA 1D 00 90 00 5B [03:37:49]RAPDU: 90 00 [03:37:49]wFMCommunicate OK [03:37:49]SAM_PROTO_ClearQueue done [03:37:49]KKMCreateOFDPacket [03:37:49]OFDProtocolAddRootSTLVToBuf [03:37:49]FM_MakeSignedData [03:37:49]FM_MakeSignedData [03:37:49]SAM_PROTO_SignData [03:37:49]wFMCommunicate request_size=4 [03:37:49]MH_SAM_APDU [03:37:49]CAPDU: 80 0D 01 02 [03:37:49]Write to MH i2c: E2 08 00 CB 1D 80 0D 01 02 00 00 00 00 61 [03:37:49]Write i2c OK [03:37:49]MH_I2C_Read... [03:37:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:37:49]Read from MH i2c: E2 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 03 00 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [03:37:49]RAPDU: 90 00 [03:37:49]wFMCommunicate OK [03:37:49]wFMCommunicate request_size=255 [03:37:49]MH_SAM_APDU [03:37: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 0E A4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 95 01 00 35 04 06 00 45 [03:37:49]Write to MH i2c: E2 02 01 CC 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 0E A4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 95 01 00 35 04 06 00 45 00 00 01 [03:37:49]Write i2c OK [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 [03:37:49]MH_I2C_Read... [03:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:37:49]Read from MH i2c: E2 03 00 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [03:37:49]RAPDU: 90 00 [03:37:49]wFMCommunicate OK [03:37:49]wFMCommunicate request_size=10 [03:37:49]MH_SAM_APDU [03:37:49]CAPDU: 80 0D 02 02 05 8E 8F 33 25 33 [03:37:49]Write to MH i2c: E2 0D 00 CD 1D 80 0D 02 02 05 00 8E 8F 33 25 33 00 00 16 [03:37:49]Write i2c OK [03:37:49]MH_I2C_Read... [03:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:37:49]Read from MH i2c: E2 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 03 00 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [03:37:49]RAPDU: 90 00 [03:37:49]wFMCommunicate OK [03:37:49]wFMCommunicate request_size=4 [03:37:49]MH_SAM_APDU [03:37:49]CAPDU: 80 0D 03 02 [03:37:49]Write to MH i2c: E2 08 00 CE 1D 80 0D 03 02 00 00 00 00 66 [03:37:49]Write i2c OK [03:37:49]MH_I2C_Read... [03:37:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:37:49]Read from MH i2c: E2 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 0B 00 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 0B 00 CE 1D 00 B9 4B 8B E2 FC A9 AE 3E 90 00 69 [03:37:49]RAPDU: B9 4B 8B E2 FC A9 AE 3E 90 00 [03:37:49]wFMCommunicate OK [03:37:49]SAM_PROTO_SignData done [03:37:49]FM_MakeSignedData done [03:37:49]CreateOFDProtocolMessage [03:37:49]wFMCommunicate request_size=4 [03:37:49]MH_SAM_APDU [03:37:49]CAPDU: 80 11 00 00 [03:37:49]Write to MH i2c: E2 08 00 CF 1D 80 11 00 00 00 00 00 00 66 [03:37:49]Write i2c OK [03:37:49]MH_I2C_Read... [03:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:37:49]Read from MH i2c: E2 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 17 00 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: E2 17 00 CF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [03:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [03:37:49]wFMCommunicate OK [03:37:49]CreateOFDProtocolMessage done [03:37:49]OFDSenderStorePacket 103824 [03:37:49]StoreOFDPacket docnum=103824 [03:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1F B3 07 01 34 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 0E A4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 95 01 00 35 04 06 00 45 8E 8F 33 25 33 B9 4B 8B E2 FC A9 AE 3E [03:37:49]CheckFolder [03:37:49]dirname=/storage/ofd_packets [03:37:49]CheckFolder done [03:37:49]ProducePacketName [03:37:49]name=ofd_packets/00103824 [03:37:49]NVStorageSaveData ofd_packets/00103824 [03:37:49]File name is /storage/ofd_packets/00103824 [03:37:49]Write 301 bytes [03:37:49]NVStorageSaveData done [03:37:49]OFDSenderStorePacket done [03:37:49]KKMCreateOFDPacket done [03:37:49]NVStorageSaveData kkm_last_timestamp [03:37:49]File name is /storage/kkm_last_timestamp [03:37:49]Write 4 bytes [03:37:49]NVStorageSaveData done [03:37:49]ExternCall_PrintAddStr [03:37:49]wPrintStart [03:37:49]Write to MH i2c: 01 00 00 D0 1D ED [03:37:49]Write i2c OK [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: 01 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: 01 07 00 [03:37:49]MH_I2C_Read... [03:37:49]Read from MH i2c: 01 07 00 D0 1D 00 00 00 00 00 FF 0F 02 [03:37:49]RasterBufferAndPrint [03:37:49]line Счет N : (1)673135 [03:37:49]line ИНН: 02508201610067 [03:37:49]line Контрольно-Кассовый Чек [03:37:49]line ПРОДАЖА [03:37:49]line ТРК (МРК, ГНК) : 32 [03:37:49]line Товар: 2710124130 [03:37:49]line Аи-92-К-5 [03:37:49]line 7.540 * 66.40 [03:37:49]line = 500.66 [03:37:49]line НДС 12% НСП 1% [03:37:49]line > о реализуемом товаре [03:37:49]line ИТОГО: 500.66 [03:37:49]line НСП 1% : 4.43 [03:37:49]line НДС 12% : 53.17 [03:37:49]line Наличными: 0.00 [03:37:49]line Безнал.: 500.66 [03:37:49]line Место: АЗС № 120 "Партнер Нефть" [03:37:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [03:37:49]line СНО: Общий режим [03:37:49]line Чек 9 20.06.2024 03:37 [03:37:49]line Смена: 354 ФФД: 1.0 [03:37:49]line ЗНМ: 0300000164 [03:37:49]line РНМ: 0000000000092785 [03:37:49]line Версия ККМ: 001 [03:37:49]line Платежная система: Бакай Банк [03:37:49]line ФМ: 0000000000875093 [03:37:49]line ФД: 103824 [03:37:49]line ФПД: 76478590166323 [03:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T033750&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103824&fm=76478590166323&tin=02508201610067®Number=0000000000092785&sum=50066 [03:37:49]OFD Sender: Processing packet 103824 [packets to send 17, broken 16] [03:37:49]ProducePacketName [03:37:49]name=ofd_packets/00103824 [03:37:49]OFD Sender: To server: pG, [03:37:49]CommunicateWithHost lk.salyk.kg:30040 [03:37:49]ConnectInit lk.salyk.kg [03:37:49]written 0, free lines is 4095 [03:37:50]Connected sock=10 [03:37:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1F B3 07 01 34 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 0E A4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 95 01 00 35 04 06 00 45 8E 8F 33 25 33 B9 4B 8B E2 FC A9 AE 3E [03:37:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 35 48 47 00 89 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 95 01 00 F4 03 04 00 95 4A 73 66 B6 04 01 00 00 89 30 E4 A1 D1 77 21 D5 [03:37:50]CommunicateWithHost err = 0 [03:37:50]CheckOFDResponse [03:37:50]1017 (14) - 77093643461234 [03:37:50]1041 (16) - 0000000000875093 [03:37:50]1040 (4) - 103824 [03:37:50]1012 (4) - 19.06.2024 21:16 [03:37:50]1206 (1) - 0 [03:37:50]OFD Sender: Remove packet 103824 [03:37:50]ProducePacketName [03:37:50]name=ofd_packets/00103824 [03:37:50]NVStorageDeleteData [03:37:50]Write to MH i2c: 01 00 00 FA 1D 17 [03:37:50]Write i2c OK [03:37:50]MH_I2C_Read... [03:37:50]Read from MH i2c: 01 [03:37:50]MH_I2C_Read... [03:37:50]Read from MH i2c: 01 07 00 [03:37:50]MH_I2C_Read... [03:37:50]Read from MH i2c: 01 07 00 FA 1D 00 00 00 00 00 FE 0C 28 [03:37:50]RasterBufferAndPrint [03:37:50]line [03:37:50]line [03:37:50]line [03:37:50]line [03:37:50]line [03:37:50]written 0, free lines is 3331 [03:37:50]MH_Cut [03:37:50]Write to MH i2c: D1 01 00 01 1E 01 F1 [03:37:50]Write i2c OK [03:37:50]MH_I2C_Read... [03:37:50]Read from MH i2c: D1 [03:37:50]MH_I2C_Read... [03:37:50]Read from MH i2c: D1 01 00 [03:37:50]MH_I2C_Read... [03:37:50]Read from MH i2c: D1 01 00 01 1E 00 F0 [03:37:50]Write to MH i2c: 01 00 00 02 1E 20 [03:37:50]Write i2c OK [03:37:50]MH_I2C_Read... [03:37:50]OFD Sender: No OFD packet to send [03:37:51]*** Cut start [03:37:51]*** Partial cut [03:37:51]*** CUTSNS_PIN = 1 [03:37:51]*** CUTSNS_PIN = 0 [03:37:51]*** Brake cut motor [03:37:51]Read from MH i2c: 01 [03:37:51]MH_I2C_Read... [03:37:51]*** Stop cut motor [03:37:51]*** Cut end [03:37:51]Read from MH i2c: 01 07 00 [03:37:51]MH_I2C_Read... [03:37:51]Read from MH i2c: 01 07 00 02 1E 00 00 00 00 00 FF 0F 35 [03:37:51]process_action close_receipt done [03:37:51]requested_data is exist [03:37:51]produce_requested_data [03:37:51]requested_item fm.sn is exist - process it [03:37:51]wFMCommunicate request_size=4 [03:37:51]MH_SAM_APDU [03:37:51]CAPDU: 80 11 00 00 [03:37:51]Write to MH i2c: E2 08 00 03 1E 80 11 00 00 00 00 00 00 9B [03:37:51]Write i2c OK [03:37:51]MH_I2C_Read... [03:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:37:51]Read from MH i2c: E2 [03:37:51]MH_I2C_Read... [03:37:51]Read from MH i2c: E2 17 00 [03:37:51]MH_I2C_Read... [03:37:51]Read from MH i2c: E2 17 00 03 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EE [03:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [03:37:51]wFMCommunicate OK [03:37:51]requested_item fd.num is exist - process it [03:37:51]SAM_PROTO_GetFieldsCounters [03:37:51]wFMCommunicate request_size=4 [03:37:51]MH_SAM_APDU [03:37:51]CAPDU: 80 13 00 00 [03:37:51]Write to MH i2c: E2 08 00 04 1E 80 13 00 00 00 00 00 00 9E [03:37:51]Write i2c OK [03:37:51]MH_I2C_Read... [03:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:37:51]Read from MH i2c: E2 [03:37:51]MH_I2C_Read... [03:37:51]Read from MH i2c: E2 62 00 [03:37:51]MH_I2C_Read... [03:37:51]Read from MH i2c: E2 62 00 04 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 95 01 00 0E 04 04 00 62 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 69 [03:37:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:37:51]wFMCommunicate OK [03:37:51]SAM_PROTO_GetFieldsCounters done [03:37:51]requested_item shift.num is exist - process it [03:37:51]requested_item shift.opened is exist - process it [03:37:51]req_shift_opened [03:37:51]FM_GetShiftState [03:37:51]SAM_PROTO_GetShiftState [03:37:51]wFMCommunicate request_size=4 [03:37:51]MH_SAM_APDU [03:37:51]CAPDU: 80 13 01 00 [03:37:51]Write to MH i2c: E2 08 00 05 1E 80 13 01 00 00 00 00 00 A0 [03:37:51]Write i2c OK [03:37:51]MH_I2C_Read... [03:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:37:52]Read from MH i2c: E2 [03:37:52]MH_I2C_Read... [03:37:52]Read from MH i2c: E2 0E 00 [03:37:52]MH_I2C_Read... [03:37:52]Read from MH i2c: E2 0E 00 05 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EF [03:37:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [03:37:52]wFMCommunicate OK [03:37:52]SAM_PROTO_GetShiftState done [03:37:52]FM_GetShiftState done [03:37:52]req_shift_opened done [03:37:52]requested_item shift.open_date is exist - process it [03:37:52]req_shift_open_date [03:37:52]req_shift_open_date done [03:37:52]produce_requested_data done [03:37:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103824,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [03:37:52]process_action_free close_receipt [03:37:52]json_value_free [03:37:52]json_value_free done [03:37:52]process_json_proto returns [03:37:52]Send response to host [03:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103824,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [03:37:52]free response buf [03:37:52]execute_script done [03:37:52]execute_script returns [03:37:52]free content buf [03:37:52]Sock 9.Close socket [03:37:52]Sock 9.Thread stoped [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]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: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:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]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: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: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: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:29]accept exits with 8 [03:55:29]New connection [03:55:29]New thread 3066797412 created [03:55:29]Thread 3066940772 joined [03:55:29]Waiting for new connection... [03:55:29] Sock 8.Parse request [03:55:29]Sock 8.Check first char [03:55:29]Sock 8.First char is OK [03:55:29]request: POST /json_proto HTTP/1.0 [03:55:29]Method: POST [03:55:29]URL: /json_proto [03:55:29]Method is POST - this is cgi request [03:55:29]url: /json_proto [03:55:29]query_string will be loaded in cgi processing [03:55:29]execute_cgi json_proto POST (null) [03:55:29]execute_cgi path=json_proto method=POST [03:55:29]POST find Content-Length [03:55:29]Host: 172.17.38.133:8080 [03:55:29]Content-Length: 677 [03:55:29]Content-Type: application/json [03:55:29] [03:55:29]POST finish read [03:55:29]Found Content-Length = 677 [03:55:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:29]execute_script... [03:55: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)673136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:29]POST & json_proto [03:55:29]process_json_proto [03:55:29]json parsed OK: [03:55:29]protocol is kg_v1.0 [03:55:29]action value=close_receipt [03:55:29]process_action close_receipt [03:55:29]cmd_close_receipt [03:55:29]MH_GetDate [03:55:29]Write to MH i2c: F0 00 00 06 1E 13 [03:55:29]Write i2c OK [03:55:29]MH_I2C_Read... [03:55:29]Read from MH i2c: F0 [03:55:29]MH_I2C_Read... [03:55:29]Read from MH i2c: F0 09 00 [03:55:29]MH_I2C_Read... [03:55:29]Read from MH i2c: F0 09 00 06 1E 00 34 A8 73 66 BD 8F 7C 64 FD [03:55:29]GetLastDocTimeStamp 1718854670 [03:55:29]current date 1718855732 [03:55:29]FM_GetShiftState [03:55:29]SAM_PROTO_GetShiftState [03:55:29]wFMCommunicate request_size=4 [03:55:29]MH_SAM_APDU [03:55:29]CAPDU: 80 13 01 00 [03:55:29]Write to MH i2c: E2 08 00 07 1E 80 13 01 00 00 00 00 00 A2 [03:55:29]Write i2c OK [03:55:29]MH_I2C_Read... [03:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:29]Read from MH i2c: E2 [03:55:29]MH_I2C_Read... [03:55:29]Read from MH i2c: E2 0E 00 [03:55:29]MH_I2C_Read... [03:55:29]Read from MH i2c: E2 0E 00 07 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F1 [03:55:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [03:55:29]wFMCommunicate OK [03:55:29]SAM_PROTO_GetShiftState done [03:55:29]FM_GetShiftState done [03:55:29]opened in 1718843124 [03:55:29]opened+sec_in_day 1718929524 [03:55:29]quantity*price = 10026 [03:55:29]sum+1 = 10027 [03:55:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 10 20.06.2024 03:55 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103825 ФПД: 138136187239141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T035532&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103825&fm=138136187239141&tin=02508201610067®Number=0000000000092785&sum=10000 [03:55:30]StoreToDocumentArchive [03:55:30]shift 354 fd 103825 [03:55:30]save to /storage/0354/doc_00103825 [03:55:30]save last doc name /storage/0354/doc_00103825 to /storage/kkm_last_doc_name [03:55:30]save OK [03:55:30]Clear old archive folders... [03:55:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:55:30]tlvbuf is 0173CEF0 [03:55:30]SAM_PROTO_ClearQueue [03:55:30]wFMCommunicate request_size=4 [03:55:30]MH_SAM_APDU [03:55:30]CAPDU: 80 09 00 00 [03:55:30]Write to MH i2c: E2 08 00 14 1E 80 09 00 00 00 00 00 00 A4 [03:55:30]Write i2c OK [03:55:30]MH_I2C_Read... [03:55:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:55:30]Read from MH i2c: E2 [03:55:30]MH_I2C_Read... [03:55:30]Read from MH i2c: E2 03 00 [03:55:30]MH_I2C_Read... [03:55:30]Read from MH i2c: E2 03 00 14 1E 00 90 00 A6 [03:55:30]RAPDU: 90 00 [03:55:30]wFMCommunicate OK [03:55:30]SAM_PROTO_ClearQueue done [03:55:30]KKMCreateOFDPacket [03:55:30]OFDProtocolAddRootSTLVToBuf [03:55:30]FM_MakeSignedData [03:55:30]FM_MakeSignedData [03:55:30]SAM_PROTO_SignData [03:55:30]wFMCommunicate request_size=4 [03:55:30]MH_SAM_APDU [03:55:30]CAPDU: 80 0D 01 02 [03:55:30]Write to MH i2c: E2 08 00 15 1E 80 0D 01 02 00 00 00 00 AC [03:55:30]Write i2c OK [03:55:30]MH_I2C_Read... [03:55:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:55:30]Read from MH i2c: E2 [03:55:30]MH_I2C_Read... [03:55:30]Read from MH i2c: E2 03 00 [03:55:30]MH_I2C_Read... [03:55:30]Read from MH i2c: E2 03 00 15 1E 00 90 00 A7 [03:55:30]RAPDU: 90 00 [03:55:30]wFMCommunicate OK [03:55:30]wFMCommunicate request_size=255 [03:55:30]MH_SAM_APDU [03:55: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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 34 A8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 95 01 00 35 04 06 00 7D [03:55:30]Write to MH i2c: E2 02 01 16 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 34 A8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 95 01 00 35 04 06 00 7D 00 00 BB [03:55:30]Write i2c OK [03:55:30]MH_I2C_Read... [03:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:31]Read from MH i2c: E2 [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: E2 03 00 [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [03:55:31]RAPDU: 90 00 [03:55:31]wFMCommunicate OK [03:55:31]wFMCommunicate request_size=10 [03:55:31]MH_SAM_APDU [03:55:31]CAPDU: 80 0D 02 02 05 A2 56 5E FA E5 [03:55:31]Write to MH i2c: E2 0D 00 17 1E 80 0D 02 02 05 00 A2 56 5E FA E5 00 00 EE [03:55:31]Write i2c OK [03:55:31]MH_I2C_Read... [03:55:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:31]Read from MH i2c: E2 [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: E2 03 00 [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: E2 03 00 17 1E 00 90 00 A9 [03:55:31]RAPDU: 90 00 [03:55:31]wFMCommunicate OK [03:55:31]wFMCommunicate request_size=4 [03:55:31]MH_SAM_APDU [03:55:31]CAPDU: 80 0D 03 02 [03:55:31]Write to MH i2c: E2 08 00 18 1E 80 0D 03 02 00 00 00 00 B1 [03:55:31]Write i2c OK [03:55:31]MH_I2C_Read... [03:55:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:55:31]Read from MH i2c: E2 [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: E2 0B 00 [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: E2 0B 00 18 1E 00 27 12 FA E9 92 FD 82 96 90 00 75 [03:55:31]RAPDU: 27 12 FA E9 92 FD 82 96 90 00 [03:55:31]wFMCommunicate OK [03:55:31]SAM_PROTO_SignData done [03:55:31]FM_MakeSignedData done [03:55:31]CreateOFDProtocolMessage [03:55:31]wFMCommunicate request_size=4 [03:55:31]MH_SAM_APDU [03:55:31]CAPDU: 80 11 00 00 [03:55:31]Write to MH i2c: E2 08 00 19 1E 80 11 00 00 00 00 00 00 B1 [03:55:31]Write i2c OK [03:55:31]MH_I2C_Read... [03:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:31]Read from MH i2c: E2 [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: E2 17 00 [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: E2 17 00 19 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 04 [03:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [03:55:31]wFMCommunicate OK [03:55:31]CreateOFDProtocolMessage done [03:55:31]OFDSenderStorePacket 103825 [03:55:31]StoreOFDPacket docnum=103825 [03:55:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 49 16 07 01 FC BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 34 A8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 95 01 00 35 04 06 00 7D A2 56 5E FA E5 27 12 FA E9 92 FD 82 96 [03:55:31]CheckFolder [03:55:31]dirname=/storage/ofd_packets [03:55:31]CheckFolder done [03:55:31]ProducePacketName [03:55:31]name=ofd_packets/00103825 [03:55:31]NVStorageSaveData ofd_packets/00103825 [03:55:31]File name is /storage/ofd_packets/00103825 [03:55:31]Write 301 bytes [03:55:31]NVStorageSaveData done [03:55:31]OFDSenderStorePacket done [03:55:31]KKMCreateOFDPacket done [03:55:31]NVStorageSaveData kkm_last_timestamp [03:55:31]File name is /storage/kkm_last_timestamp [03:55:31]Write 4 bytes [03:55:31]NVStorageSaveData done [03:55:31]ExternCall_PrintAddStr [03:55:31]wPrintStart [03:55:31]Write to MH i2c: 01 00 00 1A 1E 38 [03:55:31]Write i2c OK [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: 01 [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: 01 07 00 [03:55:31]MH_I2C_Read... [03:55:31]Read from MH i2c: 01 07 00 1A 1E 00 00 00 00 00 FF 0F 4D [03:55:31]RasterBufferAndPrint [03:55:31]line Счет N : (1)673136 [03:55:31]line ИНН: 02508201610067 [03:55:31]line Контрольно-Кассовый Чек [03:55:31]line ПРОДАЖА [03:55:31]line ТРК (МРК, ГНК) : 32 [03:55:31]line Товар: 2710124130 [03:55:31]line Аи-92-К-5 [03:55:31]line 1.510 * 66.40 [03:55:31]line = 100.26 [03:55:31]line НДС 12% НСП 1% [03:55:31]line > о реализуемом товаре [03:55:31]line ОКРУГЛЕНИЕ: -0.26 [03:55:31]line ИТОГО: 100.00 [03:55:31]line Внесено: 100.00 [03:55:31]line СДАЧА: 0.00 [03:55:31]line НСП 1% : 0.89 [03:55:31]line НДС 12% : 10.65 [03:55:31]line Наличными: 100.00 [03:55:31]line Безнал.: 0.00 [03:55:31]line Место: АЗС № 120 "Партнер Нефть" [03:55:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [03:55:31]line СНО: Общий режим [03:55:31]line Чек 10 20.06.2024 03:55 [03:55:31]line Смена: 354 ФФД: 1.0 [03:55:31]line ЗНМ: 0300000164 [03:55:31]line РНМ: 0000000000092785 [03:55:31]line Версия ККМ: 001 [03:55:31]line ФМ: 0000000000875093 [03:55:31]line ФД: 103825 [03:55:31]line ФПД: 138136187239141 [03:55:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T035532&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103825&fm=138136187239141&tin=02508201610067®Number=0000000000092785&sum=10000 [03:55:31]OFD Sender: Processing packet 103825 [packets to send 17, broken 16] [03:55:31]ProducePacketName [03:55:31]name=ofd_packets/00103825 [03:55:31]OFD Sender: To server: pG, [03:55:31]CommunicateWithHost lk.salyk.kg:30040 [03:55:31]ConnectInit lk.salyk.kg [03:55:31]written 0, free lines is 4095 [03:55:31]Connected sock=10 [03:55:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 49 16 07 01 FC BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 34 A8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 95 01 00 35 04 06 00 7D A2 56 5E FA E5 27 12 FA E9 92 FD 82 96 [03:55:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2C C4 47 00 7E F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 95 01 00 F4 03 04 00 BB 4E 73 66 B6 04 01 00 00 57 A4 A7 0B C2 A7 AD 61 [03:55:31]CommunicateWithHost err = 0 [03:55:31]CheckOFDResponse [03:55:31]1017 (14) - 77093643461234 [03:55:31]1041 (16) - 0000000000875093 [03:55:31]1040 (4) - 103825 [03:55:31]1012 (4) - 19.06.2024 21:33 [03:55:31]1206 (1) - 0 [03:55:31]OFD Sender: Remove packet 103825 [03:55:31]ProducePacketName [03:55:31]name=ofd_packets/00103825 [03:55:31]NVStorageDeleteData [03:55:32]Write to MH i2c: 01 00 00 45 1E 63 [03:55:32]Write i2c OK [03:55:32]MH_I2C_Read... [03:55:32]Read from MH i2c: 01 [03:55:32]MH_I2C_Read... [03:55:32]Read from MH i2c: 01 07 00 [03:55:32]MH_I2C_Read... [03:55:32]Read from MH i2c: 01 07 00 45 1E 00 00 00 00 00 F0 0C 66 [03:55:32]RasterBufferAndPrint [03:55:32]line [03:55:32]line [03:55:32]line [03:55:32]line [03:55:32]line [03:55:32]written 0, free lines is 3318 [03:55:32]MH_Cut [03:55:32]Write to MH i2c: D1 01 00 4C 1E 01 3C [03:55:32]Write i2c OK [03:55:32]MH_I2C_Read... [03:55:32]Read from MH i2c: D1 [03:55:32]MH_I2C_Read... [03:55:32]Read from MH i2c: D1 01 00 [03:55:32]MH_I2C_Read... [03:55:32]Read from MH i2c: D1 01 00 4C 1E 00 3B [03:55:32]Write to MH i2c: 01 00 00 4D 1E 6B [03:55:32]Write i2c OK [03:55:32]MH_I2C_Read... [03:55:32]OFD Sender: No OFD packet to send [03:55:32]*** Cut start [03:55:32]*** Partial cut [03:55:32]*** CUTSNS_PIN = 1 [03:55:32]*** CUTSNS_PIN = 0 [03:55:33]*** Brake cut motor [03:55:33]Read from MH i2c: 01 [03:55:33]MH_I2C_Read... [03:55:33]*** Stop cut motor [03:55:33]*** Cut end [03:55:33]Read from MH i2c: 01 07 00 [03:55:33]MH_I2C_Read... [03:55:33]Read from MH i2c: 01 07 00 4D 1E 00 00 00 00 00 FF 0F 80 [03:55:33]process_action close_receipt done [03:55:33]requested_data is exist [03:55:33]produce_requested_data [03:55:33]requested_item fm.sn is exist - process it [03:55:33]wFMCommunicate request_size=4 [03:55:33]MH_SAM_APDU [03:55:33]CAPDU: 80 11 00 00 [03:55:33]Write to MH i2c: E2 08 00 4E 1E 80 11 00 00 00 00 00 00 E6 [03:55:33]Write i2c OK [03:55:33]MH_I2C_Read... [03:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:33]Read from MH i2c: E2 [03:55:33]MH_I2C_Read... [03:55:33]Read from MH i2c: E2 17 00 [03:55:33]MH_I2C_Read... [03:55:33]Read from MH i2c: E2 17 00 4E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 39 [03:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [03:55:33]wFMCommunicate OK [03:55:33]requested_item fd.num is exist - process it [03:55:33]SAM_PROTO_GetFieldsCounters [03:55:33]wFMCommunicate request_size=4 [03:55:33]MH_SAM_APDU [03:55:33]CAPDU: 80 13 00 00 [03:55:33]Write to MH i2c: E2 08 00 4F 1E 80 13 00 00 00 00 00 00 E9 [03:55:33]Write i2c OK [03:55:33]MH_I2C_Read... [03:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:55:33]Read from MH i2c: E2 [03:55:33]MH_I2C_Read... [03:55:33]Read from MH i2c: E2 62 00 [03:55:33]MH_I2C_Read... [03:55:33]Read from MH i2c: E2 62 00 4F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 91 95 01 00 0E 04 04 00 62 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 B8 [03: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 91 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:55:33]wFMCommunicate OK [03:55:33]SAM_PROTO_GetFieldsCounters done [03:55:33]requested_item shift.num is exist - process it [03:55:33]requested_item shift.opened is exist - process it [03:55:33]req_shift_opened [03:55:33]FM_GetShiftState [03:55:33]SAM_PROTO_GetShiftState [03:55:33]wFMCommunicate request_size=4 [03:55:33]MH_SAM_APDU [03:55:33]CAPDU: 80 13 01 00 [03:55:33]Write to MH i2c: E2 08 00 50 1E 80 13 01 00 00 00 00 00 EB [03:55:33]Write i2c OK [03:55:33]MH_I2C_Read... [03:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:33]Read from MH i2c: E2 [03:55:33]MH_I2C_Read... [03:55:33]Read from MH i2c: E2 0E 00 [03:55:33]MH_I2C_Read... [03:55:33]Read from MH i2c: E2 0E 00 50 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3A [03:55:33]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [03:55:33]wFMCommunicate OK [03:55:33]SAM_PROTO_GetShiftState done [03:55:33]FM_GetShiftState done [03:55:33]req_shift_opened done [03:55:33]requested_item shift.open_date is exist - process it [03:55:33]req_shift_open_date [03:55:33]req_shift_open_date done [03:55:33]produce_requested_data done [03:55:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103825,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [03:55:33]process_action_free close_receipt [03:55:33]json_value_free [03:55:33]json_value_free done [03:55:33]process_json_proto returns [03:55:33]Send response to host [03:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103825,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [03:55:33]free response buf [03:55:33]execute_script done [03:55:33]execute_script returns [03:55:33]free content buf [03:55:33]Sock 8.Close socket [03:55:33]Sock 8.Thread stoped [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]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:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]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:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]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: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: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: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:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:43]accept exits with 9 [04:52:43]New connection [04:52:43]New thread 3066940772 created [04:52:43]Thread 3066797412 joined [04:52:43]Waiting for new connection... [04:52:43] Sock 9.Parse request [04:52:43]Sock 9.Check first char [04:52:43]Sock 9.First char is OK [04:52:43]request: POST /json_proto HTTP/1.0 [04:52:43]Method: POST [04:52:43]URL: /json_proto [04:52:43]Method is POST - this is cgi request [04:52:43]url: /json_proto [04:52:43]query_string will be loaded in cgi processing [04:52:43]execute_cgi json_proto POST (null) [04:52:43]execute_cgi path=json_proto method=POST [04:52:43]POST find Content-Length [04:52:43]Host: 172.17.38.133:8080 [04:52:43]Content-Length: 677 [04:52:43]Content-Type: application/json [04:52:43] [04:52:43]POST finish read [04:52:43]Found Content-Length = 677 [04:52:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:52:43]execute_script... [04:52: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)673137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:52:43]POST & json_proto [04:52:43]process_json_proto [04:52:43]json parsed OK: [04:52:43]protocol is kg_v1.0 [04:52:43]action value=close_receipt [04:52:43]process_action close_receipt [04:52:43]cmd_close_receipt [04:52:43]MH_GetDate [04:52:43]Write to MH i2c: F0 00 00 51 1E 5E [04:52:43]Write i2c OK [04:52:43]MH_I2C_Read... [04:52:43]Read from MH i2c: F0 [04:52:43]MH_I2C_Read... [04:52:43]Read from MH i2c: F0 09 00 [04:52:43]MH_I2C_Read... [04:52:43]Read from MH i2c: F0 09 00 51 1E 00 9E B5 73 66 BD 8F 7C 64 BF [04:52:43]GetLastDocTimeStamp 1718855732 [04:52:43]current date 1718859166 [04:52:43]FM_GetShiftState [04:52:43]SAM_PROTO_GetShiftState [04:52:43]wFMCommunicate request_size=4 [04:52:43]MH_SAM_APDU [04:52:43]CAPDU: 80 13 01 00 [04:52:43]Write to MH i2c: E2 08 00 52 1E 80 13 01 00 00 00 00 00 ED [04:52:43]Write i2c OK [04:52:43]MH_I2C_Read... [04:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:43]Read from MH i2c: E2 [04:52:43]MH_I2C_Read... [04:52:43]Read from MH i2c: E2 0E 00 [04:52:43]MH_I2C_Read... [04:52:43]Read from MH i2c: E2 0E 00 52 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3C [04:52:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [04:52:43]wFMCommunicate OK [04:52:43]SAM_PROTO_GetShiftState done [04:52:43]FM_GetShiftState done [04:52:43]opened in 1718843124 [04:52:43]opened+sec_in_day 1718929524 [04:52:43]quantity*price = 50065 [04:52:43]sum+1 = 50067 [04:52:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 11 20.06.2024 04:52 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103826 ФПД: 209125852553814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T045246&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103826&fm=209125852553814&tin=02508201610067®Number=0000000000092785&sum=50000 [04:52:44]StoreToDocumentArchive [04:52:44]shift 354 fd 103826 [04:52:44]save to /storage/0354/doc_00103826 [04:52:44]save last doc name /storage/0354/doc_00103826 to /storage/kkm_last_doc_name [04:52:44]save OK [04:52:44]Clear old archive folders... [04:52:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:52:44]tlvbuf is 0173D8F0 [04:52:44]SAM_PROTO_ClearQueue [04:52:44]wFMCommunicate request_size=4 [04:52:44]MH_SAM_APDU [04:52:44]CAPDU: 80 09 00 00 [04:52:44]Write to MH i2c: E2 08 00 5F 1E 80 09 00 00 00 00 00 00 EF [04:52:44]Write i2c OK [04:52:44]MH_I2C_Read... [04:52:44]Read from MH i2c: E2 [04:52:44]MH_I2C_Read... [04:52:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:52:44]Read from MH i2c: E2 03 00 [04:52:44]MH_I2C_Read... [04:52:44]Read from MH i2c: E2 03 00 5F 1E 00 90 00 F1 [04:52:44]RAPDU: 90 00 [04:52:44]wFMCommunicate OK [04:52:44]SAM_PROTO_ClearQueue done [04:52:44]KKMCreateOFDPacket [04:52:44]OFDProtocolAddRootSTLVToBuf [04:52:44]FM_MakeSignedData [04:52:44]FM_MakeSignedData [04:52:44]SAM_PROTO_SignData [04:52:44]wFMCommunicate request_size=4 [04:52:44]MH_SAM_APDU [04:52:44]CAPDU: 80 0D 01 02 [04:52:44]Write to MH i2c: E2 08 00 60 1E 80 0D 01 02 00 00 00 00 F7 [04:52:44]Write i2c OK [04:52:44]MH_I2C_Read... [04:52:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:52:45]Read from MH i2c: E2 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: E2 03 00 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: E2 03 00 60 1E 00 90 00 F2 [04:52:45]RAPDU: 90 00 [04:52:45]wFMCommunicate OK [04:52:45]wFMCommunicate request_size=255 [04:52:45]MH_SAM_APDU [04:52: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9E B5 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 95 01 00 35 04 06 00 BE [04:52:45]Write to MH i2c: E2 02 01 61 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9E B5 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 95 01 00 35 04 06 00 BE 00 00 31 [04:52:45]Write i2c OK [04:52:45]MH_I2C_Read... [04:52:45]OFD Sender: No OFD packet to send [04:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:52:45]Read from MH i2c: E2 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: E2 03 00 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: E2 03 00 61 1E 00 90 00 F3 [04:52:45]RAPDU: 90 00 [04:52:45]wFMCommunicate OK [04:52:45]wFMCommunicate request_size=10 [04:52:45]MH_SAM_APDU [04:52:45]CAPDU: 80 0D 02 02 05 32 E8 27 A2 56 [04:52:45]Write to MH i2c: E2 0D 00 62 1E 80 0D 02 02 05 00 32 E8 27 A2 56 00 00 3D [04:52:45]Write i2c OK [04:52:45]MH_I2C_Read... [04:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:52:45]Read from MH i2c: E2 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: E2 03 00 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: E2 03 00 62 1E 00 90 00 F4 [04:52:45]RAPDU: 90 00 [04:52:45]wFMCommunicate OK [04:52:45]wFMCommunicate request_size=4 [04:52:45]MH_SAM_APDU [04:52:45]CAPDU: 80 0D 03 02 [04:52:45]Write to MH i2c: E2 08 00 63 1E 80 0D 03 02 00 00 00 00 FC [04:52:45]Write i2c OK [04:52:45]MH_I2C_Read... [04:52:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:52:45]Read from MH i2c: E2 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: E2 0B 00 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: E2 0B 00 63 1E 00 BA F5 13 85 93 C1 E8 85 90 00 05 [04:52:45]RAPDU: BA F5 13 85 93 C1 E8 85 90 00 [04:52:45]wFMCommunicate OK [04:52:45]SAM_PROTO_SignData done [04:52:45]FM_MakeSignedData done [04:52:45]CreateOFDProtocolMessage [04:52:45]wFMCommunicate request_size=4 [04:52:45]MH_SAM_APDU [04:52:45]CAPDU: 80 11 00 00 [04:52:45]Write to MH i2c: E2 08 00 64 1E 80 11 00 00 00 00 00 00 FC [04:52:45]Write i2c OK [04:52:45]MH_I2C_Read... [04:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:45]Read from MH i2c: E2 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: E2 17 00 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: E2 17 00 64 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4F [04:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [04:52:45]wFMCommunicate OK [04:52:45]CreateOFDProtocolMessage done [04:52:45]OFDSenderStorePacket 103826 [04:52:45]StoreOFDPacket docnum=103826 [04:52:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 80 5D 07 01 D8 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9E B5 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 95 01 00 35 04 06 00 BE 32 E8 27 A2 56 BA F5 13 85 93 C1 E8 85 [04:52:45]CheckFolder [04:52:45]dirname=/storage/ofd_packets [04:52:45]CheckFolder done [04:52:45]ProducePacketName [04:52:45]name=ofd_packets/00103826 [04:52:45]NVStorageSaveData ofd_packets/00103826 [04:52:45]File name is /storage/ofd_packets/00103826 [04:52:45]Write 301 bytes [04:52:45]NVStorageSaveData done [04:52:45]OFDSenderStorePacket done [04:52:45]KKMCreateOFDPacket done [04:52:45]NVStorageSaveData kkm_last_timestamp [04:52:45]File name is /storage/kkm_last_timestamp [04:52:45]Write 4 bytes [04:52:45]NVStorageSaveData done [04:52:45]ExternCall_PrintAddStr [04:52:45]wPrintStart [04:52:45]Write to MH i2c: 01 00 00 65 1E 83 [04:52:45]Write i2c OK [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: 01 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: 01 07 00 [04:52:45]MH_I2C_Read... [04:52:45]Read from MH i2c: 01 07 00 65 1E 00 00 00 00 00 FF 0F 98 [04:52:45]RasterBufferAndPrint [04:52:45]line Счет N : (1)673137 [04:52:45]line ИНН: 02508201610067 [04:52:45]line Контрольно-Кассовый Чек [04:52:45]line ПРОДАЖА [04:52:45]line ТРК (МРК, ГНК) : 32 [04:52:45]line Товар: 2710124130 [04:52:45]line Аи-92-К-5 [04:52:45]line 7.540 * 66.40 [04:52:45]line = 500.66 [04:52:45]line НДС 12% НСП 1% [04:52:45]line > о реализуемом товаре [04:52:45]line ОКРУГЛЕНИЕ: -0.66 [04:52:45]line ИТОГО: 500.00 [04:52:45]line Внесено: 500.00 [04:52:45]line СДАЧА: 0.00 [04:52:45]line НСП 1% : 4.43 [04:52:45]line НДС 12% : 53.17 [04:52:45]line Наличными: 500.00 [04:52:45]line Безнал.: 0.00 [04:52:45]line Место: АЗС № 120 "Партнер Нефть" [04:52:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [04:52:45]line СНО: Общий режим [04:52:45]line Чек 11 20.06.2024 04:52 [04:52:45]line Смена: 354 ФФД: 1.0 [04:52:45]line ЗНМ: 0300000164 [04:52:45]line РНМ: 0000000000092785 [04:52:45]line Версия ККМ: 001 [04:52:45]line ФМ: 0000000000875093 [04:52:45]line ФД: 103826 [04:52:45]line ФПД: 209125852553814 [04:52:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T045246&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103826&fm=209125852553814&tin=02508201610067®Number=0000000000092785&sum=50000 [04:52:45]OFD Sender: Processing packet 103826 [packets to send 17, broken 16] [04:52:45]ProducePacketName [04:52:45]name=ofd_packets/00103826 [04:52:45]OFD Sender: To server: pG, [04:52:45]CommunicateWithHost lk.salyk.kg:30040 [04:52:45]ConnectInit lk.salyk.kg [04:52:45]written 0, free lines is 4095 [04:52:45]Connected sock=10 [04:52:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 80 5D 07 01 D8 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 9E B5 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 95 01 00 35 04 06 00 BE 32 E8 27 A2 56 BA F5 13 85 93 C1 E8 85 [04:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 01 E3 47 00 F5 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 35 30 39 33 10 04 04 00 92 95 01 00 F4 03 04 00 25 5C 73 66 B6 04 01 00 00 3A 8A 1E 51 68 CD 1F 4A [04:52:46]CommunicateWithHost err = 0 [04:52:46]CheckOFDResponse [04:52:46]1017 (14) - 77093643461234 [04:52:46]1041 (16) - 0000000000875093 [04:52:46]1040 (4) - 103826 [04:52:46]1012 (4) - 19.06.2024 22:31 [04:52:46]1206 (1) - 0 [04:52:46]OFD Sender: Remove packet 103826 [04:52:46]ProducePacketName [04:52:46]name=ofd_packets/00103826 [04:52:46]NVStorageDeleteData [04:52:46]Write to MH i2c: 01 00 00 90 1E AE [04:52:46]Write i2c OK [04:52:46]MH_I2C_Read... [04:52:46]Read from MH i2c: 01 [04:52:46]MH_I2C_Read... [04:52:46]Read from MH i2c: 01 07 00 [04:52:46]MH_I2C_Read... [04:52:46]Read from MH i2c: 01 07 00 90 1E 00 00 00 00 00 E0 0C A1 [04:52:46]RasterBufferAndPrint [04:52:46]line [04:52:46]line [04:52:46]line [04:52:46]line [04:52:46]line [04:52:46]written 0, free lines is 3302 [04:52:46]MH_Cut [04:52:46]Write to MH i2c: D1 01 00 97 1E 01 87 [04:52:46]Write i2c OK [04:52:46]MH_I2C_Read... [04:52:46]Read from MH i2c: D1 [04:52:46]MH_I2C_Read... [04:52:46]Read from MH i2c: D1 01 00 [04:52:46]MH_I2C_Read... [04:52:46]Read from MH i2c: D1 01 00 97 1E 00 86 [04:52:46]Write to MH i2c: 01 00 00 98 1E B6 [04:52:46]Write i2c OK [04:52:46]MH_I2C_Read... [04:52:46]OFD Sender: No OFD packet to send [04:52:47]*** Cut start [04:52:47]*** Partial cut [04:52:47]*** CUTSNS_PIN = 1 [04:52:47]*** CUTSNS_PIN = 0 [04:52:47]*** Brake cut motor [04:52:47]Read from MH i2c: 01 [04:52:47]MH_I2C_Read... [04:52:47]*** Stop cut motor [04:52:47]*** Cut end [04:52:47]Read from MH i2c: 01 07 00 [04:52:47]MH_I2C_Read... [04:52:47]Read from MH i2c: 01 07 00 98 1E 00 00 00 00 00 FF 0F CB [04:52:47]process_action close_receipt done [04:52:47]requested_data is exist [04:52:47]produce_requested_data [04:52:47]requested_item fm.sn is exist - process it [04:52:47]wFMCommunicate request_size=4 [04:52:47]MH_SAM_APDU [04:52:47]CAPDU: 80 11 00 00 [04:52:47]Write to MH i2c: E2 08 00 99 1E 80 11 00 00 00 00 00 00 31 [04:52:47]Write i2c OK [04:52:47]MH_I2C_Read... [04:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:52:47]Read from MH i2c: E2 [04:52:47]MH_I2C_Read... [04:52:47]Read from MH i2c: E2 17 00 [04:52:47]MH_I2C_Read... [04:52:47]Read from MH i2c: E2 17 00 99 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [04:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [04:52:47]wFMCommunicate OK [04:52:47]requested_item fd.num is exist - process it [04:52:47]SAM_PROTO_GetFieldsCounters [04:52:47]wFMCommunicate request_size=4 [04:52:47]MH_SAM_APDU [04:52:47]CAPDU: 80 13 00 00 [04:52:47]Write to MH i2c: E2 08 00 9A 1E 80 13 00 00 00 00 00 00 34 [04:52:47]Write i2c OK [04:52:47]MH_I2C_Read... [04:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:52:47]Read from MH i2c: E2 [04:52:47]MH_I2C_Read... [04:52:47]Read from MH i2c: E2 62 00 [04:52:47]MH_I2C_Read... [04:52:47]Read from MH i2c: E2 62 00 9A 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 95 01 00 0E 04 04 00 62 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 [04:52:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 95 01 00 0E 04 04 00 62 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 [04:52:47]wFMCommunicate OK [04:52:47]SAM_PROTO_GetFieldsCounters done [04:52:47]requested_item shift.num is exist - process it [04:52:47]requested_item shift.opened is exist - process it [04:52:47]req_shift_opened [04:52:47]FM_GetShiftState [04:52:47]SAM_PROTO_GetShiftState [04:52:47]wFMCommunicate request_size=4 [04:52:47]MH_SAM_APDU [04:52:47]CAPDU: 80 13 01 00 [04:52:47]Write to MH i2c: E2 08 00 9B 1E 80 13 01 00 00 00 00 00 36 [04:52:47]Write i2c OK [04:52:47]MH_I2C_Read... [04:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:47]Read from MH i2c: E2 [04:52:47]MH_I2C_Read... [04:52:47]Read from MH i2c: E2 0E 00 [04:52:47]MH_I2C_Read... [04:52:47]Read from MH i2c: E2 0E 00 9B 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 85 [04:52:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [04:52:47]wFMCommunicate OK [04:52:47]SAM_PROTO_GetShiftState done [04:52:47]FM_GetShiftState done [04:52:47]req_shift_opened done [04:52:47]requested_item shift.open_date is exist - process it [04:52:47]req_shift_open_date [04:52:47]req_shift_open_date done [04:52:47]produce_requested_data done [04:52:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103826,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [04:52:47]process_action_free close_receipt [04:52:47]json_value_free [04:52:47]json_value_free done [04:52:47]process_json_proto returns [04:52:47]Send response to host [04:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103826,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [04:52:47]free response buf [04:52:47]execute_script done [04:52:47]execute_script returns [04:52:47]free content buf [04:52:47]Sock 9.Close socket [04:52:47]Sock 9.Thread stoped [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:10]accept exits with 8 [05:10:10]New connection [05:10:10]New thread 3066797412 created [05:10:10]Thread 3066940772 joined [05:10:10]Waiting for new connection... [05:10:10] Sock 8.Parse request [05:10:10]Sock 8.Check first char [05:10:10]Sock 8.First char is OK [05:10:10]request: POST /json_proto HTTP/1.0 [05:10:10]Method: POST [05:10:10]URL: /json_proto [05:10:10]Method is POST - this is cgi request [05:10:10]url: /json_proto [05:10:10]query_string will be loaded in cgi processing [05:10:10]execute_cgi json_proto POST (null) [05:10:10]execute_cgi path=json_proto method=POST [05:10:10]POST find Content-Length [05:10:10]Host: 172.17.38.133:8080 [05:10:10]Content-Length: 1212 [05:10:10]Content-Type: application/json [05:10:10] [05:10:10]POST finish read [05:10:10]Found Content-Length = 1212 [05:10:10]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673138\u000A20.06.2024 04:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.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\u000A49416\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:10:10]execute_script... [05:10:10]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673138\u000A20.06.2024 04:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.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\u000A49416\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:10:10]POST & json_proto [05:10:10]process_json_proto [05:10:10]json parsed OK: [05:10:10]protocol is kg_v1.0 [05:10:10]action value=print_text [05:10:10]process_action print_text [05:10:10]cmd_print_text [05:10:10]ExternCall_PrintAddStr [05:10:10]wPrintStart [05:10:10]Write to MH i2c: 01 00 00 9C 1E BA [05:10:10]Write i2c OK [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 07 00 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 07 00 9C 1E 00 00 00 00 00 FF 0F CF [05:10:10]RasterBufferAndPrint [05:10:10]line *****ТОВАРНЫЙ ЧЕК***** [05:10:10]line АЗС 120 [05:10:10]line Партнер нефть [05:10:10]line 02508201610067 [05:10:10]line Кассир : Дуйшенбиев А. [05:10:10]line Счет N : (1)673138 [05:10:10]line 20.06.2024 04:47 [05:10:10]line ПРОДАЖА [05:10:10]line ТРК (МРК, ГНК): 11 [05:10:10]line Вид ГСМ : 2710194210 [05:10:10]line ДТ(л)-К-5 [05:10:10]line 40.000 x 72.90 [05:10:10]line ИТОГ: 2916.00 [05:10:10]line Тип оплаты: Талоны: Топливная Карта [05:10:10]line 49416 [05:10:10]line ______________________ [05:10:10]line (подпись) [05:10:10]written 0, free lines is 4095 [05:10:10]Write to MH i2c: 01 00 00 B0 1E CE [05:10:10]Write i2c OK [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 07 00 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: 01 07 00 B0 1E 00 00 00 00 00 10 0E F3 [05:10:10]RasterBufferAndPrint [05:10:10]line [05:10:10]line [05:10:10]line [05:10:10]line [05:10:10]line [05:10:10]written 0, free lines is 3602 [05:10:10]MH_Cut [05:10:10]Write to MH i2c: D1 01 00 B7 1E 01 A7 [05:10:10]Write i2c OK [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: D1 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: D1 01 00 [05:10:10]MH_I2C_Read... [05:10:10]Read from MH i2c: D1 01 00 B7 1E 00 A6 [05:10:10]Write to MH i2c: 01 00 00 B8 1E D6 [05:10:10]Write i2c OK [05:10:10]MH_I2C_Read... [05:10:10]*** Cut start [05:10:10]*** Partial cut [05:10:10]*** CUTSNS_PIN = 1 [05:10:10]*** CUTSNS_PIN = 0 [05:10:11]*** Brake cut motor [05:10:11]Read from MH i2c: 01 [05:10:11]MH_I2C_Read... [05:10:11]*** Stop cut motor [05:10:11]*** Cut end [05:10:11]Read from MH i2c: 01 07 00 [05:10:11]MH_I2C_Read... [05:10:11]Read from MH i2c: 01 07 00 B8 1E 00 00 00 00 00 FF 0F EB [05:10:11]process_action print_text done [05:10:11]requested_data is exist [05:10:11]produce_requested_data [05:10:11]requested_item fm.sn is exist - process it [05:10:11]wFMCommunicate request_size=4 [05:10:11]MH_SAM_APDU [05:10:11]CAPDU: 80 11 00 00 [05:10:11]Write to MH i2c: E2 08 00 B9 1E 80 11 00 00 00 00 00 00 51 [05:10:11]Write i2c OK [05:10:11]MH_I2C_Read... [05:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:10:11]Read from MH i2c: E2 [05:10:11]MH_I2C_Read... [05:10:11]Read from MH i2c: E2 17 00 [05:10:11]MH_I2C_Read... [05:10:11]Read from MH i2c: E2 17 00 B9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [05:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:10:11]wFMCommunicate OK [05:10:11]requested_item fd.num is exist - process it [05:10:11]SAM_PROTO_GetFieldsCounters [05:10:11]wFMCommunicate request_size=4 [05:10:11]MH_SAM_APDU [05:10:11]CAPDU: 80 13 00 00 [05:10:11]Write to MH i2c: E2 08 00 BA 1E 80 13 00 00 00 00 00 00 54 [05:10:11]Write i2c OK [05:10:11]MH_I2C_Read... [05:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:10:11]Read from MH i2c: E2 [05:10:11]MH_I2C_Read... [05:10:11]Read from MH i2c: E2 62 00 [05:10:11]MH_I2C_Read... [05:10:11]Read from MH i2c: E2 62 00 BA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 95 01 00 0E 04 04 00 62 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 27 [05:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 95 01 00 0E 04 04 00 62 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 [05:10:11]wFMCommunicate OK [05:10:11]SAM_PROTO_GetFieldsCounters done [05:10:11]requested_item shift.num is exist - process it [05:10:11]requested_item shift.opened is exist - process it [05:10:11]req_shift_opened [05:10:11]FM_GetShiftState [05:10:11]SAM_PROTO_GetShiftState [05:10:11]wFMCommunicate request_size=4 [05:10:11]MH_SAM_APDU [05:10:11]CAPDU: 80 13 01 00 [05:10:11]Write to MH i2c: E2 08 00 BB 1E 80 13 01 00 00 00 00 00 56 [05:10:11]Write i2c OK [05:10:11]MH_I2C_Read... [05:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:10:11]Read from MH i2c: E2 [05:10:11]MH_I2C_Read... [05:10:11]Read from MH i2c: E2 0E 00 [05:10:11]MH_I2C_Read... [05:10:11]Read from MH i2c: E2 0E 00 BB 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A5 [05:10:11]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [05:10:11]wFMCommunicate OK [05:10:11]SAM_PROTO_GetShiftState done [05:10:11]FM_GetShiftState done [05:10:11]req_shift_opened done [05:10:11]requested_item shift.open_date is exist - process it [05:10:11]req_shift_open_date [05:10:11]req_shift_open_date done [05:10:11]produce_requested_data done [05:10:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103826,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [05:10:11]process_action_free print_text [05:10:11]json_value_free [05:10:11]json_value_free done [05:10:11]process_json_proto returns [05:10:11]Send response to host [05:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103826,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [05:10:11]free response buf [05:10:11]execute_script done [05:10:11]execute_script returns [05:10:11]free content buf [05:10:11]Sock 8.Close socket [05:10:11]Sock 8.Thread stoped [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:56]accept exits with 9 [05:30:56]New connection [05:30:56]New thread 3066940772 created [05:30:56]Thread 3066797412 joined [05:30:56]Waiting for new connection... [05:30:56] Sock 9.Parse request [05:30:56]Sock 9.Check first char [05:30:56]Sock 9.First char is OK [05:30:56]request: POST /json_proto HTTP/1.0 [05:30:56]Method: POST [05:30:56]URL: /json_proto [05:30:56]Method is POST - this is cgi request [05:30:56]url: /json_proto [05:30:56]query_string will be loaded in cgi processing [05:30:56]execute_cgi json_proto POST (null) [05:30:56]execute_cgi path=json_proto method=POST [05:30:56]POST find Content-Length [05:30:56]Host: 172.17.38.133:8080 [05:30:56]Content-Length: 677 [05:30:56]Content-Type: application/json [05:30:56] [05:30:56]POST finish read [05:30:56]Found Content-Length = 677 [05:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673139", "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" : 73.90, "quantity" : 8.800, "sum" : 650.32, "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" ] } } [05:30:56]execute_script... [05:30:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673139", "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" : 73.90, "quantity" : 8.800, "sum" : 650.32, "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" ] } } [05:30:56]POST & json_proto [05:30:56]process_json_proto [05:30:56]json parsed OK: [05:30:56]protocol is kg_v1.0 [05:30:56]action value=close_receipt [05:30:56]process_action close_receipt [05:30:56]cmd_close_receipt [05:30:56]MH_GetDate [05:30:56]Write to MH i2c: F0 00 00 BC 1E C9 [05:30:56]Write i2c OK [05:30:56]MH_I2C_Read... [05:30:56]Read from MH i2c: F0 [05:30:56]MH_I2C_Read... [05:30:56]Read from MH i2c: F0 09 00 [05:30:56]MH_I2C_Read... [05:30:56]Read from MH i2c: F0 09 00 BC 1E 00 93 BE 73 66 BD 8F 7C 64 28 [05:30:56]GetLastDocTimeStamp 1718859166 [05:30:56]current date 1718861459 [05:30:56]FM_GetShiftState [05:30:56]SAM_PROTO_GetShiftState [05:30:56]wFMCommunicate request_size=4 [05:30:56]MH_SAM_APDU [05:30:56]CAPDU: 80 13 01 00 [05:30:56]Write to MH i2c: E2 08 00 BD 1E 80 13 01 00 00 00 00 00 58 [05:30:56]Write i2c OK [05:30:56]MH_I2C_Read... [05:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:56]Read from MH i2c: E2 [05:30:56]MH_I2C_Read... [05:30:56]Read from MH i2c: E2 0E 00 [05:30:56]MH_I2C_Read... [05:30:56]Read from MH i2c: E2 0E 00 BD 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A7 [05:30:56]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [05:30:56]wFMCommunicate OK [05:30:56]SAM_PROTO_GetShiftState done [05:30:56]FM_GetShiftState done [05:30:56]opened in 1718843124 [05:30:56]opened+sec_in_day 1718929524 [05:30:56]quantity*price = 65032 [05:30:56]sum+1 = 65033 [05:30:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.06 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 12 20.06.2024 05:30 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103827 ФПД: 174925121704279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T053059&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103827&fm=174925121704279&tin=02508201610067®Number=0000000000092785&sum=65000 [05:30:57]StoreToDocumentArchive [05:30:57]shift 354 fd 103827 [05:30:57]save to /storage/0354/doc_00103827 [05:30:57]save last doc name /storage/0354/doc_00103827 to /storage/kkm_last_doc_name [05:30:57]save OK [05:30:57]Clear old archive folders... [05:30:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:30:57]tlvbuf is 016B9C20 [05:30:57]SAM_PROTO_ClearQueue [05:30:57]wFMCommunicate request_size=4 [05:30:57]MH_SAM_APDU [05:30:57]CAPDU: 80 09 00 00 [05:30:57]Write to MH i2c: E2 08 00 CA 1E 80 09 00 00 00 00 00 00 5A [05:30:57]Write i2c OK [05:30:57]MH_I2C_Read... [05:30:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:30:57]Read from MH i2c: E2 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 03 00 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 03 00 CA 1E 00 90 00 5C [05:30:57]RAPDU: 90 00 [05:30:57]wFMCommunicate OK [05:30:57]SAM_PROTO_ClearQueue done [05:30:57]KKMCreateOFDPacket [05:30:57]OFDProtocolAddRootSTLVToBuf [05:30:57]FM_MakeSignedData [05:30:57]FM_MakeSignedData [05:30:57]SAM_PROTO_SignData [05:30:57]wFMCommunicate request_size=4 [05:30:57]MH_SAM_APDU [05:30:57]CAPDU: 80 0D 01 02 [05:30:57]Write to MH i2c: E2 08 00 CB 1E 80 0D 01 02 00 00 00 00 62 [05:30:57]Write i2c OK [05:30:57]MH_I2C_Read... [05:30:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:30:57]Read from MH i2c: E2 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 03 00 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 03 00 CB 1E 00 90 00 5D [05:30:57]RAPDU: 90 00 [05:30:57]wFMCommunicate OK [05:30:57]wFMCommunicate request_size=255 [05:30:57]MH_SAM_APDU [05:30:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 22 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 08 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 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 0C 00 00 00 F4 03 04 00 93 BE 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 95 01 00 35 04 06 00 9F [05:30:57]Write to MH i2c: E2 02 01 CC 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 08 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 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 0C 00 00 00 F4 03 04 00 93 BE 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 95 01 00 35 04 06 00 9F 00 00 78 [05:30:57]Write i2c OK [05:30:57]MH_I2C_Read... [05:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:57]Read from MH i2c: E2 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 03 00 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 03 00 CC 1E 00 90 00 5E [05:30:57]RAPDU: 90 00 [05:30:57]wFMCommunicate OK [05:30:57]wFMCommunicate request_size=10 [05:30:57]MH_SAM_APDU [05:30:57]CAPDU: 80 0D 02 02 05 17 ED BD D1 57 [05:30:57]Write to MH i2c: E2 0D 00 CD 1E 80 0D 02 02 05 00 17 ED BD D1 57 00 00 58 [05:30:57]Write i2c OK [05:30:57]MH_I2C_Read... [05:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:57]Read from MH i2c: E2 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 03 00 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 03 00 CD 1E 00 90 00 5F [05:30:57]RAPDU: 90 00 [05:30:57]wFMCommunicate OK [05:30:57]wFMCommunicate request_size=4 [05:30:57]MH_SAM_APDU [05:30:57]CAPDU: 80 0D 03 02 [05:30:57]Write to MH i2c: E2 08 00 CE 1E 80 0D 03 02 00 00 00 00 67 [05:30:57]Write i2c OK [05:30:57]MH_I2C_Read... [05:30:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:30:57]Read from MH i2c: E2 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 0B 00 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 0B 00 CE 1E 00 17 E2 D8 72 DB 3D D0 88 90 00 1B [05:30:57]RAPDU: 17 E2 D8 72 DB 3D D0 88 90 00 [05:30:57]wFMCommunicate OK [05:30:57]SAM_PROTO_SignData done [05:30:57]FM_MakeSignedData done [05:30:57]CreateOFDProtocolMessage [05:30:57]wFMCommunicate request_size=4 [05:30:57]MH_SAM_APDU [05:30:57]CAPDU: 80 11 00 00 [05:30:57]Write to MH i2c: E2 08 00 CF 1E 80 11 00 00 00 00 00 00 67 [05:30:57]Write i2c OK [05:30:57]MH_I2C_Read... [05:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:57]Read from MH i2c: E2 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 17 00 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: E2 17 00 CF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [05:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:30:57]wFMCommunicate OK [05:30:57]CreateOFDProtocolMessage done [05:30:57]OFDSenderStorePacket 103827 [05:30:57]StoreOFDPacket docnum=103827 [05:30:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 94 EF 07 01 E9 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 60 22 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 08 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 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 0C 00 00 00 F4 03 04 00 93 BE 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 95 01 00 35 04 06 00 9F 17 ED BD D1 57 17 E2 D8 72 DB 3D D0 88 [05:30:57]CheckFolder [05:30:57]dirname=/storage/ofd_packets [05:30:57]CheckFolder done [05:30:57]ProducePacketName [05:30:57]name=ofd_packets/00103827 [05:30:57]NVStorageSaveData ofd_packets/00103827 [05:30:57]File name is /storage/ofd_packets/00103827 [05:30:57]Write 301 bytes [05:30:57]NVStorageSaveData done [05:30:57]OFDSenderStorePacket done [05:30:57]KKMCreateOFDPacket done [05:30:57]NVStorageSaveData kkm_last_timestamp [05:30:57]File name is /storage/kkm_last_timestamp [05:30:57]Write 4 bytes [05:30:57]NVStorageSaveData done [05:30:57]ExternCall_PrintAddStr [05:30:57]wPrintStart [05:30:57]Write to MH i2c: 01 00 00 D0 1E EE [05:30:57]Write i2c OK [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: 01 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: 01 07 00 [05:30:57]MH_I2C_Read... [05:30:57]Read from MH i2c: 01 07 00 D0 1E 00 00 00 00 00 FF 0F 03 [05:30:57]RasterBufferAndPrint [05:30:57]line Счет N : (1)673139 [05:30:57]line ИНН: 02508201610067 [05:30:57]line Контрольно-Кассовый Чек [05:30:57]line ПРОДАЖА [05:30:57]line ТРК (МРК, ГНК) : 41 [05:30:57]line Товар: 2710124500 [05:30:57]line Аи-95-К-5 [05:30:57]line 8.800 * 73.90 [05:30:57]line = 650.32 [05:30:57]line НДС 12% НСП 1% [05:30:57]line > о реализуемом товаре [05:30:57]line ОКРУГЛЕНИЕ: -0.32 [05:30:57]line ИТОГО: 650.00 [05:30:57]line Внесено: 650.00 [05:30:57]line СДАЧА: 0.00 [05:30:57]line НСП 1% : 5.75 [05:30:57]line НДС 12% : 69.06 [05:30:57]line Наличными: 650.00 [05:30:57]line Безнал.: 0.00 [05:30:57]line Место: АЗС № 120 "Партнер Нефть" [05:30:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:30:57]line СНО: Общий режим [05:30:57]line Чек 12 20.06.2024 05:30 [05:30:57]line Смена: 354 ФФД: 1.0 [05:30:57]line ЗНМ: 0300000164 [05:30:57]line РНМ: 0000000000092785 [05:30:57]line Версия ККМ: 001 [05:30:57]line ФМ: 0000000000875093 [05:30:57]line ФД: 103827 [05:30:58]line ФПД: 174925121704279 [05:30:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T053059&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103827&fm=174925121704279&tin=02508201610067®Number=0000000000092785&sum=65000 [05:30:58]OFD Sender: Processing packet 103827 [packets to send 17, broken 16] [05:30:58]ProducePacketName [05:30:58]name=ofd_packets/00103827 [05:30:58]OFD Sender: To server: pG, [05:30:58]CommunicateWithHost lk.salyk.kg:30040 [05:30:58]ConnectInit lk.salyk.kg [05:30:58]written 0, free lines is 4095 [05:30:58]Connected sock=10 [05:30:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 94 EF 07 01 E9 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 60 22 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 08 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 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 0C 00 00 00 F4 03 04 00 93 BE 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 95 01 00 35 04 06 00 9F 17 ED BD D1 57 17 E2 D8 72 DB 3D D0 88 [05:30:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4B 00 47 00 34 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 95 01 00 F4 03 04 00 19 65 73 66 B6 04 01 00 00 1C D7 EC 71 07 8F 20 9A [05:30:58]CommunicateWithHost err = 0 [05:30:58]CheckOFDResponse [05:30:58]1017 (14) - 77093643461234 [05:30:58]1041 (16) - 0000000000875093 [05:30:58]1040 (4) - 103827 [05:30:58]1012 (4) - 19.06.2024 23:09 [05:30:58]1206 (1) - 0 [05:30:58]OFD Sender: Remove packet 103827 [05:30:58]ProducePacketName [05:30:58]name=ofd_packets/00103827 [05:30:58]NVStorageDeleteData [05:30:58]Write to MH i2c: 01 00 00 FB 1E 19 [05:30:58]Write i2c OK [05:30:58]MH_I2C_Read... [05:30:58]Read from MH i2c: 01 [05:30:58]MH_I2C_Read... [05:30:58]Read from MH i2c: 01 07 00 [05:30:58]MH_I2C_Read... [05:30:58]Read from MH i2c: 01 07 00 FB 1E 00 00 00 00 00 D1 0C FD [05:30:58]RasterBufferAndPrint [05:30:58]line [05:30:58]line [05:30:58]line [05:30:58]line [05:30:58]line [05:30:58]written 0, free lines is 3286 [05:30:58]MH_Cut [05:30:58]Write to MH i2c: D1 01 00 02 1F 01 F3 [05:30:58]Write i2c OK [05:30:58]MH_I2C_Read... [05:30:58]Read from MH i2c: D1 [05:30:58]MH_I2C_Read... [05:30:58]Read from MH i2c: D1 01 00 [05:30:58]MH_I2C_Read... [05:30:58]Read from MH i2c: D1 01 00 02 1F 00 F2 [05:30:58]Write to MH i2c: 01 00 00 03 1F 22 [05:30:58]Write i2c OK [05:30:58]MH_I2C_Read... [05:30:58]OFD Sender: No OFD packet to send [05:30:59]*** Cut start [05:30:59]*** Partial cut [05:30:59]*** CUTSNS_PIN = 1 [05:30:59]*** CUTSNS_PIN = 0 [05:30:59]*** Brake cut motor [05:30:59]Read from MH i2c: 01 [05:30:59]MH_I2C_Read... [05:30:59]*** Stop cut motor [05:30:59]*** Cut end [05:30:59]Read from MH i2c: 01 07 00 [05:30:59]MH_I2C_Read... [05:30:59]Read from MH i2c: 01 07 00 03 1F 00 00 00 00 00 FF 0F 37 [05:30:59]process_action close_receipt done [05:30:59]requested_data is exist [05:30:59]produce_requested_data [05:30:59]requested_item fm.sn is exist - process it [05:30:59]wFMCommunicate request_size=4 [05:30:59]MH_SAM_APDU [05:30:59]CAPDU: 80 11 00 00 [05:30:59]Write to MH i2c: E2 08 00 04 1F 80 11 00 00 00 00 00 00 9D [05:30:59]Write i2c OK [05:30:59]MH_I2C_Read... [05:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:59]Read from MH i2c: E2 [05:30:59]MH_I2C_Read... [05:30:59]Read from MH i2c: E2 17 00 [05:30:59]MH_I2C_Read... [05:30:59]Read from MH i2c: E2 17 00 04 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [05:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:30:59]wFMCommunicate OK [05:30:59]requested_item fd.num is exist - process it [05:30:59]SAM_PROTO_GetFieldsCounters [05:30:59]wFMCommunicate request_size=4 [05:30:59]MH_SAM_APDU [05:30:59]CAPDU: 80 13 00 00 [05:30:59]Write to MH i2c: E2 08 00 05 1F 80 13 00 00 00 00 00 00 A0 [05:30:59]Write i2c OK [05:30:59]MH_I2C_Read... [05:31:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:31:00]Read from MH i2c: E2 [05:31:00]MH_I2C_Read... [05:31:00]Read from MH i2c: E2 62 00 [05:31:00]MH_I2C_Read... [05:31:00]Read from MH i2c: E2 62 00 05 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 93 95 01 00 0E 04 04 00 62 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 77 [05:31:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 93 95 01 00 0E 04 04 00 62 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 [05:31:00]wFMCommunicate OK [05:31:00]SAM_PROTO_GetFieldsCounters done [05:31:00]requested_item shift.num is exist - process it [05:31:00]requested_item shift.opened is exist - process it [05:31:00]req_shift_opened [05:31:00]FM_GetShiftState [05:31:00]SAM_PROTO_GetShiftState [05:31:00]wFMCommunicate request_size=4 [05:31:00]MH_SAM_APDU [05:31:00]CAPDU: 80 13 01 00 [05:31:00]Write to MH i2c: E2 08 00 06 1F 80 13 01 00 00 00 00 00 A2 [05:31:00]Write i2c OK [05:31:00]MH_I2C_Read... [05:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:00]Read from MH i2c: E2 [05:31:00]MH_I2C_Read... [05:31:00]Read from MH i2c: E2 0E 00 [05:31:00]MH_I2C_Read... [05:31:00]Read from MH i2c: E2 0E 00 06 1F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F1 [05:31:00]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [05:31:00]wFMCommunicate OK [05:31:00]SAM_PROTO_GetShiftState done [05:31:00]FM_GetShiftState done [05:31:00]req_shift_opened done [05:31:00]requested_item shift.open_date is exist - process it [05:31:00]req_shift_open_date [05:31:00]req_shift_open_date done [05:31:00]produce_requested_data done [05:31:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103827,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [05:31:00]process_action_free close_receipt [05:31:00]json_value_free [05:31:00]json_value_free done [05:31:00]process_json_proto returns [05:31:00]Send response to host [05:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103827,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [05:31:00]free response buf [05:31:00]execute_script done [05:31:00]execute_script returns [05:31:00]free content buf [05:31:00]Sock 9.Close socket [05:31:00]Sock 9.Thread stoped [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:11]int [05:38:11]Write to MH i2c: 01 00 00 07 1F 26 [05:38:11]*** FLAG_PRN_PAP1 set [05:38:11]Write i2c OK [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: 01 [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: 01 07 00 [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: 01 07 00 07 1F 00 01 00 00 00 FF 0F 3C [05:38:11]state=0 [05:38:11]No paper [05:38:11]int [05:38:11]Write to MH i2c: 01 00 00 08 1F 27 [05:38:11]*** FLAG_PRN_PAP2 set [05:38:11]Write i2c OK [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: 01 [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: 01 07 00 [05:38:11]MH_I2C_Read... [05:38:11]Read from MH i2c: 01 07 00 08 1F 00 03 00 00 00 FF 0F 3F [05:38:11]state=0 [05:38:11]No paper [05:38:11]Cover opened [05:38:14]OFD Sender: No OFD packet to send [05:38:14]int [05:38:14]Write to MH i2c: 01 00 00 09 1F 28 [05:38:14]Write i2c OK [05:38:14]MH_I2C_Read... [05:38:14]Read from MH i2c: 01 [05:38:14]MH_I2C_Read... [05:38:14]Read from MH i2c: 01 07 00 [05:38:14]MH_I2C_Read... [05:38:14]*** FLAG_PRN_PAP1 reset [05:38:14]*** FLAG_PRN_PAP2 reset [05:38:14]Read from MH i2c: 01 07 00 09 1F 00 00 00 00 00 FF 0F 3D [05:38:14]state=3 [05:38:14]Cover closed [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:40:58]CreateOFDProtocolMessage done [05:40:58]OFDSenderStorePacket 103828 [05:40:58]StoreOFDPacket docnum=103828 [05:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 83 08 07 01 BB 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E8 C0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 95 01 00 35 04 06 00 DD D0 D2 D3 9C 40 4E 2D 63 90 77 67 B0 64 [05:40:58]CheckFolder [05:40:58]dirname=/storage/ofd_packets [05:40:58]CheckFolder done [05:40:58]ProducePacketName [05:40:58]name=ofd_packets/00103828 [05:40:58]NVStorageSaveData ofd_packets/00103828 [05:40:58]File name is /storage/ofd_packets/00103828 [05:40:58]Write 301 bytes [05:40:58]NVStorageSaveData done [05:40:58]OFDSenderStorePacket done [05:40:58]KKMCreateOFDPacket done [05:40:58]NVStorageSaveData kkm_last_timestamp [05:40:58]File name is /storage/kkm_last_timestamp [05:40:58]Write 4 bytes [05:40:58]NVStorageSaveData done [05:40:58]ExternCall_PrintAddStr [05:40:58]wPrintStart [05:40:58]Write to MH i2c: 01 00 00 24 00 24 [05:40:58]Write i2c OK [05:40:58]MH_I2C_Read... [05:40:58]Read from MH i2c: 01 [05:40:58]MH_I2C_Read... [05:40:58]Read from MH i2c: 01 07 00 [05:40:58]MH_I2C_Read... [05:40:58]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [05:40:58]RasterBufferAndPrint [05:40:58]line Счет N : (1)673140 [05:40:58]line ИНН: 02508201610067 [05:40:58]line Контрольно-Кассовый Чек [05:40:58]line ПРОДАЖА [05:40:58]line ТРК (МРК, ГНК) : 41 [05:40:58]line Товар: 2710124500 [05:40:58]line Аи-95-К-5 [05:40:58]line 13.540 * 73.90 [05:40:58]line = 1000.61 [05:40:58]line НДС 12% НСП 1% [05:40:58]line > о реализуемом товаре [05:40:58]line ИТОГО: 1000.61 [05:40:58]line НСП 1% : 8.85 [05:40:58]line НДС 12% : 106.26 [05:40:58]line Наличными: 0.00 [05:40:58]line Безнал.: 1000.61 [05:40:58]line Место: АЗС № 120 "Партнер Нефть" [05:40:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [05:40:58]line СНО: Общий режим [05:40:58]line Чек 13 20.06.2024 05:40 [05:40:58]line Смена: 354 ФФД: 1.0 [05:40:58]line ЗНМ: 0300000164 [05:40:58]line РНМ: 0000000000092785 [05:40:58]line Версия ККМ: 001 [05:40:58]line Платежная система: Бакай Банк [05:40:58]line ФМ: 0000000000875093 [05:40:58]line ФД: 103828 [05:40:58]line ФПД: 243888960019520 [05:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T054056&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103828&fm=243888960019520&tin=02508201610067®Number=0000000000092785&sum=100061 [05:40:58]written 0, free lines is 4095 [05:40:58]OFD Sender: Processing packet 103828 [packets to send 17, broken 16] [05:40:58]ProducePacketName [05:40:58]name=ofd_packets/00103828 [05:40:58]OFD Sender: To server: pG, [05:40:58]CommunicateWithHost lk.salyk.kg:30040 [05:40:58]ConnectInit lk.salyk.kg [05:40:58]Write to MH i2c: 01 00 00 4E 00 4E [05:40:58]Write i2c OK [05:40:58]MH_I2C_Read... [05:40:58]Read from MH i2c: 01 [05:40:58]MH_I2C_Read... [05:40:58]Read from MH i2c: 01 07 00 [05:40:58]MH_I2C_Read... [05:40:58]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 E1 0C 42 [05:40:58]RasterBufferAndPrint [05:40:58]line [05:40:58]line [05:40:58]line [05:40:58]line [05:40:58]line [05:40:58]written 0, free lines is 3302 [05:40:58]MH_Cut [05:40:58]Write to MH i2c: D1 01 00 55 00 01 27 [05:40:58]Write i2c OK [05:40:58]MH_I2C_Read... [05:40:58]Read from MH i2c: D1 [05:40:58]MH_I2C_Read... [05:40:58]Read from MH i2c: D1 01 00 [05:40:58]MH_I2C_Read... [05:40:58]Read from MH i2c: D1 01 00 55 00 00 26 [05:40:58]Write to MH i2c: 01 00 00 56 00 56 [05:40:58]Write i2c OK [05:40:58]MH_I2C_Read... [05:40:59]*** Cut start [05:40:59]*** Partial cut [05:40:59]*** CUTSNS_PIN = 1 [05:40:59]*** CUTSNS_PIN = 0 [05:40:59]*** Brake cut motor [05:41:00]Read from MH i2c: 01 [05:41:00]MH_I2C_Read... [05:41:00]*** Stop cut motor [05:41:00]*** Cut end [05:41:00]Read from MH i2c: 01 07 00 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [05:41:00]process_action close_receipt done [05:41:00]requested_data is exist [05:41:00]produce_requested_data [05:41:00]requested_item fm.sn is exist - process it [05:41:00]wFMCommunicate request_size=4 [05:41:00]MH_SAM_APDU [05:41:00]CAPDU: 80 11 00 00 [05:41:00]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [05:41:00]Write i2c OK [05:41:00]MH_I2C_Read... [05:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:41:00]Read from MH i2c: E2 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: E2 17 00 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [05:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [05:41:00]wFMCommunicate OK [05:41:00]requested_item fd.num is exist - process it [05:41:00]SAM_PROTO_GetFieldsCounters [05:41:00]wFMCommunicate request_size=4 [05:41:00]MH_SAM_APDU [05:41:00]CAPDU: 80 13 00 00 [05:41:00]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [05:41:00]Write i2c OK [05:41:00]MH_I2C_Read... [05:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:41:00]Read from MH i2c: E2 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: E2 62 00 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: E2 62 00 58 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 94 95 01 00 0E 04 04 00 62 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 AF [05:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 94 95 01 00 0E 04 04 00 62 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 [05:41:00]wFMCommunicate OK [05:41:00]SAM_PROTO_GetFieldsCounters done [05:41:00]requested_item shift.num is exist - process it [05:41:00]requested_item shift.opened is exist - process it [05:41:00]req_shift_opened [05:41:00]FM_GetShiftState [05:41:00]SAM_PROTO_GetShiftState [05:41:00]wFMCommunicate request_size=4 [05:41:00]MH_SAM_APDU [05:41:00]CAPDU: 80 13 01 00 [05:41:00]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [05:41:00]Write i2c OK [05:41:00]MH_I2C_Read... [05:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:41:00]Read from MH i2c: E2 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: E2 0E 00 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 25 [05:41:00]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [05:41:00]wFMCommunicate OK [05:41:00]SAM_PROTO_GetShiftState done [05:41:00]FM_GetShiftState done [05:41:00]req_shift_opened done [05:41:00]requested_item shift.open_date is exist - process it [05:41:00]req_shift_open_date [05:41:00]req_shift_open_date done [05:41:00]produce_requested_data done [05:41:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103828,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [05:41:00]process_action_free close_receipt [05:41:00]json_value_free [05:41:00]json_value_free done [05:41:00]process_json_proto returns [05:41:00]Send response to host [05:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103828,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [05:41:00]free response buf [05:41:00]execute_script done [05:41:00]execute_script returns [05:41:00]free content buf [05:41:00]Sock 9.Close socket [05:41:00]Sock 9.Thread stoped [05:41:00]int [05:41:00]Write to MH i2c: 01 00 00 5A 00 5A [05:41:00]*** FLAG_PRN_PAP1 set [05:41:00]Write i2c OK [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: 01 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: 01 07 00 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: 01 07 00 5A 00 00 01 00 00 00 FF 0F 70 [05:41:00]state=0 [05:41:00]No paper [05:41:00]int [05:41:00]Write to MH i2c: 01 00 00 5B 00 5B [05:41:00]*** FLAG_PRN_PAP2 set [05:41:00]Write i2c OK [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: 01 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: 01 07 00 [05:41:00]MH_I2C_Read... [05:41:00]Read from MH i2c: 01 07 00 5B 00 00 03 00 00 00 FF 0F 73 [05:41:00]state=0 [05:41:00]No paper [05:41:00]Cover opened [05:41:02]ConnectInit Can't connect to host [05:41:03]ConnectInit Can't take IP for lk.salyk.kg [05:41:03]CommunicateWithHost connect error [05:41:03]CommunicateWithHost err = -1 [05:41:03]OFD Sender: Server communicate error [05:41:05]Write to MH i2c: 01 00 00 5C 00 5C [05:41:05]Write i2c OK [05:41:05]MH_I2C_Read... [05:41:05]Read from MH i2c: 01 [05:41:05]MH_I2C_Read... [05:41:05]Read from MH i2c: 01 07 00 [05:41:05]MH_I2C_Read... [05:41:05]Read from MH i2c: 01 07 00 5C 00 00 03 00 00 00 FF 0F 74 [05:41:05]state=3 [05:41:05]No paper [05:41:05]Cover opened [05:41:08]OFD Sender: Processing packet 103828 [packets to send 17, broken 16] [05:41:08]ProducePacketName [05:41:08]name=ofd_packets/00103828 [05:41:08]OFD Sender: To server: pG, [05:41:08]CommunicateWithHost lk.salyk.kg:30040 [05:41:08]ConnectInit lk.salyk.kg [05:41:08]Connected sock=9 [05:41:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 83 08 07 01 BB 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E8 C0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 95 01 00 35 04 06 00 DD D0 D2 D3 9C 40 4E 2D 63 90 77 67 B0 64 [05:41:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 3E 80 47 00 91 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 95 01 00 F4 03 04 00 79 67 73 66 B6 04 01 00 00 84 3B 98 EC 4A 83 95 94 [05:41:08]CommunicateWithHost err = 0 [05:41:08]CheckOFDResponse [05:41:08]1017 (14) - 77093643461234 [05:41:08]1041 (16) - 0000000000875093 [05:41:08]1040 (4) - 103828 [05:41:08]1012 (4) - 19.06.2024 23:19 [05:41:08]1206 (1) - 0 [05:41:08]OFD Sender: Remove packet 103828 [05:41:08]ProducePacketName [05:41:08]name=ofd_packets/00103828 [05:41:08]NVStorageDeleteData [05:41:09]OFD Sender: No OFD packet to send [05:41:10]Write to MH i2c: 01 00 00 5D 00 5D [05:41:10]Write i2c OK [05:41:10]MH_I2C_Read... [05:41:10]Read from MH i2c: 01 [05:41:10]MH_I2C_Read... [05:41:10]Read from MH i2c: 01 07 00 [05:41:10]MH_I2C_Read... [05:41:10]Read from MH i2c: 01 07 00 5D 00 00 03 00 00 00 FF 0F 75 [05:41:10]state=3 [05:41:10]No paper [05:41:10]Cover opened [05:41:14]OFD Sender: No OFD packet to send [05:41:15]Write to MH i2c: 01 00 00 5E 00 5E [05:41:15]Write i2c OK [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: 01 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: 01 07 00 [05:41:15]MH_I2C_Read... [05:41:15]Read from MH i2c: 01 07 00 5E 00 00 03 00 00 00 FF 0F 76 [05:41:15]state=3 [05:41:15]No paper [05:41:15]Cover opened [05:41:19]OFD Sender: No OFD packet to send [05:41:20]Write to MH i2c: 01 00 00 5F 00 5F [05:41:20]Write i2c OK [05:41:20]MH_I2C_Read... [05:41:20]Read from MH i2c: 01 [05:41:20]MH_I2C_Read... [05:41:20]Read from MH i2c: 01 07 00 [05:41:20]MH_I2C_Read... [05:41:20]Read from MH i2c: 01 07 00 5F 00 00 03 00 00 00 FF 0F 77 [05:41:20]state=3 [05:41:20]No paper [05:41:20]Cover opened [05:41:24]OFD Sender: No OFD packet to send [05:41:25]Write to MH i2c: 01 00 00 60 00 60 [05:41:25]Write i2c OK [05:41:25]MH_I2C_Read... [05:41:25]Read from MH i2c: 01 [05:41:25]MH_I2C_Read... [05:41:25]Read from MH i2c: 01 07 00 [05:41:25]MH_I2C_Read... [05:41:25]Read from MH i2c: 01 07 00 60 00 00 03 00 00 00 FF 0F 78 [05:41:25]state=3 [05:41:25]No paper [05:41:25]Cover opened [05:41:29]OFD Sender: No OFD packet to send [05:41:30]Write to MH i2c: 01 00 00 61 00 61 [05:41:30]Write i2c OK [05:41:30]MH_I2C_Read... [05:41:30]Read from MH i2c: 01 [05:41:30]MH_I2C_Read... [05:41:30]Read from MH i2c: 01 07 00 [05:41:30]MH_I2C_Read... [05:41:30]Read from MH i2c: 01 07 00 61 00 00 03 00 00 00 FF 0F 79 [05:41:30]state=3 [05:41:30]No paper [05:41:30]Cover opened [05:41:34]OFD Sender: No OFD packet to send [05:41:35]Write to MH i2c: 01 00 00 62 00 62 [05:41:35]Write i2c OK [05:41:35]MH_I2C_Read... [05:41:35]Read from MH i2c: 01 [05:41:35]MH_I2C_Read... [05:41:35]Read from MH i2c: 01 07 00 [05:41:35]MH_I2C_Read... [05:41:35]Read from MH i2c: 01 07 00 62 00 00 03 00 00 00 FF 0F 7A [05:41:35]state=3 [05:41:35]No paper [05:41:35]Cover opened [05:41:39]OFD Sender: No OFD packet to send [05:41:40]Write to MH i2c: 01 00 00 63 00 63 [05:41:40]Write i2c OK [05:41:40]MH_I2C_Read... [05:41:40]Read from MH i2c: 01 [05:41:40]MH_I2C_Read... [05:41:40]Read from MH i2c: 01 07 00 [05:41:40]MH_I2C_Read... [05:41:40]Read from MH i2c: 01 07 00 63 00 00 03 00 00 00 FF 0F 7B [05:41:40]state=3 [05:41:40]No paper [05:41:40]Cover opened [05:41:44]OFD Sender: No OFD packet to send [05:41:45]Write to MH i2c: 01 00 00 64 00 64 [05:41:45]Write i2c OK [05:41:45]MH_I2C_Read... [05:41:45]Read from MH i2c: 01 [05:41:45]MH_I2C_Read... [05:41:45]Read from MH i2c: 01 07 00 [05:41:45]MH_I2C_Read... [05:41:45]Read from MH i2c: 01 07 00 64 00 00 03 00 00 00 FF 0F 7C [05:41:45]state=3 [05:41:45]No paper [05:41:45]Cover opened [05:41:49]OFD Sender: No OFD packet to send [05:41:50]Write to MH i2c: 01 00 00 65 00 65 [05:41:50]Write i2c OK [05:41:50]MH_I2C_Read... [05:41:50]Read from MH i2c: 01 [05:41:50]MH_I2C_Read... [05:41:50]Read from MH i2c: 01 07 00 [05:41:50]MH_I2C_Read... [05:41:50]Read from MH i2c: 01 07 00 65 00 00 03 00 00 00 FF 0F 7D [05:41:50]state=3 [05:41:50]No paper [05:41:50]Cover opened [05:41:54]int [05:41:54]Write to MH i2c: 01 00 00 66 00 66 [05:41:54]Write i2c OK [05:41:54]MH_I2C_Read... [05:41:54]Read from MH i2c: 01 [05:41:54]MH_I2C_Read... [05:41:54]Read from MH i2c: 01 07 00 [05:41:54]MH_I2C_Read... [05:41:54]*** FLAG_PRN_PAP1 reset [05:41:54]*** FLAG_PRN_PAP2 reset [05:41:54]Read from MH i2c: 01 07 00 66 00 00 00 00 00 00 FF 0F 7B [05:41:54]state=3 [05:41:54]Cover closed [05:41:54]OFD Sender: No OFD packet to send [05:41:55]int [05:41:55]Write to MH i2c: 01 00 00 67 00 67 [05:41:55]*** FLAG_PRN_KEY set [05:41:55]Write i2c OK [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: 01 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: 01 07 00 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: 01 07 00 67 00 00 08 00 00 00 FF 0F 84 [05:41:55]state=0 [05:41:55]Key pressed [05:41:55]Feed [05:41:55]Write to MH i2c: D8 00 00 68 00 3F [05:41:55]Write i2c OK [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: D8 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: D8 01 00 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: D8 01 00 68 00 00 40 [05:41:55]int [05:41:55]Write to MH i2c: 01 00 00 69 00 69 [05:41:55]Write i2c OK [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: 01 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: 01 07 00 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: 01 07 00 69 00 00 48 00 00 00 3C 00 F4 [05:41:55]state=2 [05:41:55]Key pressed [05:41:55]int [05:41:55]Write to MH i2c: 01 00 00 6A 00 6A [05:41:55]*** FLAG_PRN_KEY reset [05:41:55]Write i2c OK [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: 01 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: 01 07 00 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: 01 07 00 6A 00 00 00 00 00 00 F6 0F 76 [05:41:55]state=2 [05:41:55]Stop feed [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:08]accept exits with 7 [06:00:08]New connection [06:00:08]New thread 3067063652 created [06:00:08]Thread 3067207012 joined [06:00:08]Waiting for new connection... [06:00:08] Sock 7.Parse request [06:00:08]Sock 7.Check first char [06:00:08]Sock 7.First char is OK [06:00:08]request: POST /json_proto HTTP/1.0 [06:00:08]Method: POST [06:00:08]URL: /json_proto [06:00:08]Method is POST - this is cgi request [06:00:08]url: /json_proto [06:00:08]query_string will be loaded in cgi processing [06:00:08]execute_cgi json_proto POST (null) [06:00:08]execute_cgi path=json_proto method=POST [06:00:08]POST find Content-Length [06:00:08]Host: 172.17.38.133:8080 [06:00:08]Content-Length: 682 [06:00:08]Content-Type: application/json [06:00:08] [06:00:08]POST finish read [06:00:08]Found Content-Length = 682 [06:00:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:08]execute_script... [06: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)673141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:08]POST & json_proto [06:00:08]process_json_proto [06:00:08]json parsed OK: [06:00:08]protocol is kg_v1.0 [06:00:08]action value=close_receipt [06:00:08]process_action close_receipt [06:00:08]cmd_close_receipt [06:00:08]MH_GetDate [06:00:08]Write to MH i2c: F0 00 00 6B 00 5A [06:00:08]Write i2c OK [06:00:08]MH_I2C_Read... [06:00:08]Read from MH i2c: F0 [06:00:08]MH_I2C_Read... [06:00:08]Read from MH i2c: F0 09 00 [06:00:08]MH_I2C_Read... [06:00:08]Read from MH i2c: F0 09 00 6B 00 00 69 C5 73 66 BD 8F 7C 64 96 [06:00:08]GetLastDocTimeStamp 1718862056 [06:00:08]current date 1718863209 [06:00:08]FM_GetShiftState [06:00:08]SAM_PROTO_GetShiftState [06:00:08]wFMCommunicate request_size=4 [06:00:08]MH_SAM_APDU [06:00:08]CAPDU: 80 13 01 00 [06:00:08]Write to MH i2c: E2 08 00 6C 00 80 13 01 00 00 00 00 00 E9 [06:00:08]Write i2c OK [06:00:08]MH_I2C_Read... [06:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:09]Read from MH i2c: E2 [06:00:09]MH_I2C_Read... [06:00:09]Read from MH i2c: E2 0E 00 [06:00:09]MH_I2C_Read... [06:00:09]Read from MH i2c: E2 0E 00 6C 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 38 [06:00:09]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:00:09]wFMCommunicate OK [06:00:09]SAM_PROTO_GetShiftState done [06:00:09]FM_GetShiftState done [06:00:09]opened in 1718843124 [06:00:09]opened+sec_in_day 1718929524 [06:00:09]quantity*price = 100064 [06:00:09]sum+1 = 100066 [06:00:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 14 20.06.2024 06:00 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103829 ФПД: 106518825095420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T060009&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103829&fm=106518825095420&tin=02508201610067®Number=0000000000092785&sum=100000 [06:00:10]StoreToDocumentArchive [06:00:10]shift 354 fd 103829 [06:00:10]save to /storage/0354/doc_00103829 [06:00:10]save last doc name /storage/0354/doc_00103829 to /storage/kkm_last_doc_name [06:00:10]save OK [06:00:10]Clear old archive folders... [06:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:00:10]tlvbuf is 0083BCA0 [06:00:10]SAM_PROTO_ClearQueue [06:00:10]wFMCommunicate request_size=4 [06:00:10]MH_SAM_APDU [06:00:10]CAPDU: 80 09 00 00 [06:00:10]Write to MH i2c: E2 08 00 79 00 80 09 00 00 00 00 00 00 EB [06:00:10]Write i2c OK [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 [06:00:10]MH_I2C_Read... [06:00:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:00:10]Read from MH i2c: E2 03 00 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [06:00:10]RAPDU: 90 00 [06:00:10]wFMCommunicate OK [06:00:10]SAM_PROTO_ClearQueue done [06:00:10]KKMCreateOFDPacket [06:00:10]OFDProtocolAddRootSTLVToBuf [06:00:10]FM_MakeSignedData [06:00:10]FM_MakeSignedData [06:00:10]SAM_PROTO_SignData [06:00:10]wFMCommunicate request_size=4 [06:00:10]MH_SAM_APDU [06:00:10]CAPDU: 80 0D 01 02 [06:00:10]Write to MH i2c: E2 08 00 7A 00 80 0D 01 02 00 00 00 00 F3 [06:00:10]Write i2c OK [06:00:10]MH_I2C_Read... [06:00:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:00:10]Read from MH i2c: E2 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 03 00 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [06:00:10]RAPDU: 90 00 [06:00:10]wFMCommunicate OK [06:00:10]wFMCommunicate request_size=255 [06:00:10]MH_SAM_APDU [06:00:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 69 C5 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 95 01 00 35 04 06 00 60 [06:00:10]Write to MH i2c: E2 02 01 7B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 69 C5 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 95 01 00 35 04 06 00 60 00 00 00 [06:00:10]Write i2c OK [06:00:10]MH_I2C_Read... [06:00:10]OFD Sender: No OFD packet to send [06:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:10]Read from MH i2c: E2 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 03 00 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [06:00:10]RAPDU: 90 00 [06:00:10]wFMCommunicate OK [06:00:10]wFMCommunicate request_size=10 [06:00:10]MH_SAM_APDU [06:00:10]CAPDU: 80 0D 02 02 05 E0 D8 BB 50 FC [06:00:10]Write to MH i2c: E2 0D 00 7C 00 80 0D 02 02 05 00 E0 D8 BB 50 FC 00 00 BF [06:00:10]Write i2c OK [06:00:10]MH_I2C_Read... [06:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:10]Read from MH i2c: E2 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 03 00 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [06:00:10]RAPDU: 90 00 [06:00:10]wFMCommunicate OK [06:00:10]wFMCommunicate request_size=4 [06:00:10]MH_SAM_APDU [06:00:10]CAPDU: 80 0D 03 02 [06:00:10]Write to MH i2c: E2 08 00 7D 00 80 0D 03 02 00 00 00 00 F8 [06:00:10]Write i2c OK [06:00:10]MH_I2C_Read... [06:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:00:10]Read from MH i2c: E2 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 0B 00 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 0B 00 7D 00 00 90 8C 6C 4D 8F 57 16 00 90 00 CA [06:00:10]RAPDU: 90 8C 6C 4D 8F 57 16 00 90 00 [06:00:10]wFMCommunicate OK [06:00:10]SAM_PROTO_SignData done [06:00:10]FM_MakeSignedData done [06:00:10]CreateOFDProtocolMessage [06:00:10]wFMCommunicate request_size=4 [06:00:10]MH_SAM_APDU [06:00:10]CAPDU: 80 11 00 00 [06:00:10]Write to MH i2c: E2 08 00 7E 00 80 11 00 00 00 00 00 00 F8 [06:00:10]Write i2c OK [06:00:10]MH_I2C_Read... [06:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:10]Read from MH i2c: E2 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 17 00 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: E2 17 00 7E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4B [06:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:00:10]wFMCommunicate OK [06:00:10]CreateOFDProtocolMessage done [06:00:10]OFDSenderStorePacket 103829 [06:00:10]StoreOFDPacket docnum=103829 [06:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 74 B1 07 01 3F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 69 C5 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 95 01 00 35 04 06 00 60 E0 D8 BB 50 FC 90 8C 6C 4D 8F 57 16 00 [06:00:10]CheckFolder [06:00:10]dirname=/storage/ofd_packets [06:00:10]CheckFolder done [06:00:10]ProducePacketName [06:00:10]name=ofd_packets/00103829 [06:00:10]NVStorageSaveData ofd_packets/00103829 [06:00:10]File name is /storage/ofd_packets/00103829 [06:00:10]Write 301 bytes [06:00:10]NVStorageSaveData done [06:00:10]OFDSenderStorePacket done [06:00:10]KKMCreateOFDPacket done [06:00:10]NVStorageSaveData kkm_last_timestamp [06:00:10]File name is /storage/kkm_last_timestamp [06:00:10]Write 4 bytes [06:00:10]NVStorageSaveData done [06:00:10]ExternCall_PrintAddStr [06:00:10]wPrintStart [06:00:10]Write to MH i2c: 01 00 00 7F 00 7F [06:00:10]Write i2c OK [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: 01 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: 01 07 00 [06:00:10]MH_I2C_Read... [06:00:10]Read from MH i2c: 01 07 00 7F 00 00 00 00 00 00 FF 0F 94 [06:00:10]RasterBufferAndPrint [06:00:10]line Счет N : (1)673141 [06:00:10]line ИНН: 02508201610067 [06:00:10]line Контрольно-Кассовый Чек [06:00:10]line ПРОДАЖА [06:00:10]line ТРК (МРК, ГНК) : 42 [06:00:10]line Товар: 2710124130 [06:00:10]line Аи-92-К-5 [06:00:10]line 15.070 * 66.40 [06:00:10]line = 1000.65 [06:00:10]line НДС 12% НСП 1% [06:00:10]line > о реализуемом товаре [06:00:10]line ОКРУГЛЕНИЕ: -0.65 [06:00:10]line ИТОГО: 1000.00 [06:00:10]line Внесено: 1000.00 [06:00:10]line СДАЧА: 0.00 [06:00:10]line НСП 1% : 8.85 [06:00:10]line НДС 12% : 106.26 [06:00:10]line Наличными: 1000.00 [06:00:10]line Безнал.: 0.00 [06:00:10]line Место: АЗС № 120 "Партнер Нефть" [06:00:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:00:10]line СНО: Общий режим [06:00:10]line Чек 14 20.06.2024 06:00 [06:00:10]line Смена: 354 ФФД: 1.0 [06:00:10]line ЗНМ: 0300000164 [06:00:10]line РНМ: 0000000000092785 [06:00:10]line Версия ККМ: 001 [06:00:10]line ФМ: 0000000000875093 [06:00:10]line ФД: 103829 [06:00:10]line ФПД: 106518825095420 [06:00:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T060009&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103829&fm=106518825095420&tin=02508201610067®Number=0000000000092785&sum=100000 [06:00:10]OFD Sender: Processing packet 103829 [packets to send 17, broken 16] [06:00:10]ProducePacketName [06:00:10]name=ofd_packets/00103829 [06:00:10]OFD Sender: To server: pG, [06:00:10]CommunicateWithHost lk.salyk.kg:30040 [06:00:10]ConnectInit lk.salyk.kg [06:00:10]written 0, free lines is 4095 [06:00:11]Connected sock=10 [06:00:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 74 B1 07 01 3F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 69 C5 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 95 01 00 35 04 06 00 60 E0 D8 BB 50 FC 90 8C 6C 4D 8F 57 16 00 [06:00:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F3 F0 47 00 81 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 95 01 00 F4 03 04 00 EF 6B 73 66 B6 04 01 00 00 31 22 9E 36 20 F3 63 EA [06:00:11]CommunicateWithHost err = 0 [06:00:11]CheckOFDResponse [06:00:11]1017 (14) - 77093643461234 [06:00:11]1041 (16) - 0000000000875093 [06:00:11]1040 (4) - 103829 [06:00:11]1012 (4) - 19.06.2024 23:38 [06:00:11]1206 (1) - 0 [06:00:11]OFD Sender: Remove packet 103829 [06:00:11]ProducePacketName [06:00:11]name=ofd_packets/00103829 [06:00:11]NVStorageDeleteData [06:00:11]Write to MH i2c: 01 00 00 AA 00 AA [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: 01 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: 01 07 00 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 DD 0C 9A [06:00:11]RasterBufferAndPrint [06:00:11]line [06:00:11]line [06:00:11]line [06:00:11]line [06:00:11]line [06:00:11]written 0, free lines is 3302 [06:00:11]MH_Cut [06:00:11]Write to MH i2c: D1 01 00 B1 00 01 83 [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: D1 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: D1 01 00 [06:00:11]MH_I2C_Read... [06:00:11]Read from MH i2c: D1 01 00 B1 00 00 82 [06:00:11]Write to MH i2c: 01 00 00 B2 00 B2 [06:00:11]Write i2c OK [06:00:11]MH_I2C_Read... [06:00:11]OFD Sender: No OFD packet to send [06:00:12]*** Cut start [06:00:12]*** Partial cut [06:00:12]*** CUTSNS_PIN = 1 [06:00:12]*** CUTSNS_PIN = 0 [06:00:12]*** Brake cut motor [06:00:12]Read from MH i2c: 01 [06:00:12]MH_I2C_Read... [06:00:12]*** Stop cut motor [06:00:12]*** Cut end [06:00:12]Read from MH i2c: 01 07 00 [06:00:12]MH_I2C_Read... [06:00:12]Read from MH i2c: 01 07 00 B2 00 00 00 00 00 00 FF 0F C7 [06:00:12]process_action close_receipt done [06:00:12]requested_data is exist [06:00:12]produce_requested_data [06:00:12]requested_item fm.sn is exist - process it [06:00:12]wFMCommunicate request_size=4 [06:00:12]MH_SAM_APDU [06:00:12]CAPDU: 80 11 00 00 [06:00:12]Write to MH i2c: E2 08 00 B3 00 80 11 00 00 00 00 00 00 2D [06:00:12]Write i2c OK [06:00:12]MH_I2C_Read... [06:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:12]Read from MH i2c: E2 [06:00:12]MH_I2C_Read... [06:00:12]Read from MH i2c: E2 17 00 [06:00:12]MH_I2C_Read... [06:00:12]Read from MH i2c: E2 17 00 B3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 80 [06:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:00:12]wFMCommunicate OK [06:00:12]requested_item fd.num is exist - process it [06:00:12]SAM_PROTO_GetFieldsCounters [06:00:12]wFMCommunicate request_size=4 [06:00:12]MH_SAM_APDU [06:00:12]CAPDU: 80 13 00 00 [06:00:12]Write to MH i2c: E2 08 00 B4 00 80 13 00 00 00 00 00 00 30 [06:00:12]Write i2c OK [06:00:12]MH_I2C_Read... [06:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:00:13]Read from MH i2c: E2 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: E2 62 00 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: E2 62 00 B4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 95 95 01 00 0E 04 04 00 62 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 0F [06:00:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 95 95 01 00 0E 04 04 00 62 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 [06:00:13]wFMCommunicate OK [06:00:13]SAM_PROTO_GetFieldsCounters done [06:00:13]requested_item shift.num is exist - process it [06:00:13]requested_item shift.opened is exist - process it [06:00:13]req_shift_opened [06:00:13]FM_GetShiftState [06:00:13]SAM_PROTO_GetShiftState [06:00:13]wFMCommunicate request_size=4 [06:00:13]MH_SAM_APDU [06:00:13]CAPDU: 80 13 01 00 [06:00:13]Write to MH i2c: E2 08 00 B5 00 80 13 01 00 00 00 00 00 32 [06:00:13]Write i2c OK [06:00:13]MH_I2C_Read... [06:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:13]Read from MH i2c: E2 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: E2 0E 00 [06:00:13]MH_I2C_Read... [06:00:13]Read from MH i2c: E2 0E 00 B5 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 81 [06:00:13]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:00:13]wFMCommunicate OK [06:00:13]SAM_PROTO_GetShiftState done [06:00:13]FM_GetShiftState done [06:00:13]req_shift_opened done [06:00:13]requested_item shift.open_date is exist - process it [06:00:13]req_shift_open_date [06:00:13]req_shift_open_date done [06:00:13]produce_requested_data done [06:00:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103829,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [06:00:13]process_action_free close_receipt [06:00:13]json_value_free [06:00:13]json_value_free done [06:00:13]process_json_proto returns [06:00:13]Send response to host [06:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103829,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [06:00:13]free response buf [06:00:13]execute_script done [06:00:13]execute_script returns [06:00:13]free content buf [06:00:13]Sock 7.Close socket [06:00:13]Sock 7.Thread stoped [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:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11: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]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:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]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:08]accept exits with 9 [06:30:08]New connection [06:30:08]New thread 3067207012 created [06:30:08]Thread 3067063652 joined [06:30:08]Waiting for new connection... [06:30:08] Sock 9.Parse request [06:30:08]Sock 9.Check first char [06:30:08]Sock 9.First char is OK [06:30:08]request: POST /json_proto HTTP/1.0 [06:30:08]Method: POST [06:30:08]URL: /json_proto [06:30:08]Method is POST - this is cgi request [06:30:08]url: /json_proto [06:30:08]query_string will be loaded in cgi processing [06:30:08]execute_cgi json_proto POST (null) [06:30:08]execute_cgi path=json_proto method=POST [06:30:08]POST find Content-Length [06:30:08]Host: 172.17.38.133:8080 [06:30:08]Content-Length: 682 [06:30:08]Content-Type: application/json [06:30:08] [06:30:08]POST finish read [06:30:08]Found Content-Length = 682 [06:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673142", "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" : 73.90, "quantity" : 42.000, "sum" : 3103.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3103.00, "payments": [ { "type": 0, "sum" : 3103.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:30:08]execute_script... [06:30: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)673142", "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" : 73.90, "quantity" : 42.000, "sum" : 3103.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3103.00, "payments": [ { "type": 0, "sum" : 3103.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:30:08]POST & json_proto [06:30:08]process_json_proto [06:30:08]json parsed OK: [06:30:08]protocol is kg_v1.0 [06:30:08]action value=close_receipt [06:30:08]process_action close_receipt [06:30:08]cmd_close_receipt [06:30:08]MH_GetDate [06:30:08]Write to MH i2c: F0 00 00 B6 00 A5 [06:30:08]Write i2c OK [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: F0 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: F0 09 00 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: F0 09 00 B6 00 00 71 CC 73 66 BD 8F 7C 64 F0 [06:30:08]GetLastDocTimeStamp 1718863209 [06:30:08]current date 1718865009 [06:30:08]FM_GetShiftState [06:30:08]SAM_PROTO_GetShiftState [06:30:08]wFMCommunicate request_size=4 [06:30:08]MH_SAM_APDU [06:30:08]CAPDU: 80 13 01 00 [06:30:08]Write to MH i2c: E2 08 00 B7 00 80 13 01 00 00 00 00 00 34 [06:30:08]Write i2c OK [06:30:08]MH_I2C_Read... [06:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:08]Read from MH i2c: E2 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 0E 00 [06:30:08]MH_I2C_Read... [06:30:08]Read from MH i2c: E2 0E 00 B7 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 83 [06:30:08]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:30:08]wFMCommunicate OK [06:30:08]SAM_PROTO_GetShiftState done [06:30:08]FM_GetShiftState done [06:30:08]opened in 1718843124 [06:30:08]opened+sec_in_day 1718929524 [06:30:08]quantity*price = 310380 [06:30:08]sum+1 = 310381 [06:30:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 3103.00 Внесено: 3500.00 СДАЧА: 397.00 НСП 1% : 27.47 НДС 12% : 329.61 Наличными: 3103.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 15 20.06.2024 06:30 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103830 ФПД: 270222814950490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T063009&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103830&fm=270222814950490&tin=02508201610067®Number=0000000000092785&sum=310300 [06:30:09]StoreToDocumentArchive [06:30:09]shift 354 fd 103830 [06:30:09]save to /storage/0354/doc_00103830 [06:30:09]save last doc name /storage/0354/doc_00103830 to /storage/kkm_last_doc_name [06:30:09]save OK [06:30:09]Clear old archive folders... [06:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:30:09]tlvbuf is 00824D80 [06:30:09]SAM_PROTO_ClearQueue [06:30:09]wFMCommunicate request_size=4 [06:30:09]MH_SAM_APDU [06:30:09]CAPDU: 80 09 00 00 [06:30:09]Write to MH i2c: E2 08 00 C4 00 80 09 00 00 00 00 00 00 36 [06:30:09]Write i2c OK [06:30:09]MH_I2C_Read... [06:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:30:09]Read from MH i2c: E2 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 03 00 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [06:30:09]RAPDU: 90 00 [06:30:09]wFMCommunicate OK [06:30:09]SAM_PROTO_ClearQueue done [06:30:09]KKMCreateOFDPacket [06:30:09]OFDProtocolAddRootSTLVToBuf [06:30:09]FM_MakeSignedData [06:30:09]FM_MakeSignedData [06:30:09]SAM_PROTO_SignData [06:30:09]wFMCommunicate request_size=4 [06:30:09]MH_SAM_APDU [06:30:09]CAPDU: 80 0D 01 02 [06:30:09]Write to MH i2c: E2 08 00 C5 00 80 0D 01 02 00 00 00 00 3E [06:30:09]Write i2c OK [06:30:09]MH_I2C_Read... [06:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:30:09]Read from MH i2c: E2 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 03 00 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 03 00 C5 00 00 90 00 39 [06:30:09]RAPDU: 90 00 [06:30:09]wFMCommunicate OK [06:30:09]wFMCommunicate request_size=255 [06:30:09]MH_SAM_APDU [06:30: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 10 A4 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6C BC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C BC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 80 00 00 00 00 07 04 06 00 1C BC 04 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 71 CC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 95 01 00 35 04 06 00 F5 [06:30:09]Write to MH i2c: E2 02 01 C6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6C BC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C BC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 80 00 00 00 00 07 04 06 00 1C BC 04 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 71 CC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 95 01 00 35 04 06 00 F5 00 00 93 [06:30:09]Write i2c OK [06:30:09]MH_I2C_Read... [06:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:09]Read from MH i2c: E2 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 03 00 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 03 00 C6 00 00 90 00 3A [06:30:09]RAPDU: 90 00 [06:30:09]wFMCommunicate OK [06:30:09]wFMCommunicate request_size=10 [06:30:09]MH_SAM_APDU [06:30:09]CAPDU: 80 0D 02 02 05 C4 26 E5 34 5A [06:30:09]Write to MH i2c: E2 0D 00 C7 00 80 0D 02 02 05 00 C4 26 E5 34 5A 00 00 A8 [06:30:09]Write i2c OK [06:30:09]MH_I2C_Read... [06:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:30:09]Read from MH i2c: E2 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 03 00 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [06:30:09]RAPDU: 90 00 [06:30:09]wFMCommunicate OK [06:30:09]wFMCommunicate request_size=4 [06:30:09]MH_SAM_APDU [06:30:09]CAPDU: 80 0D 03 02 [06:30:09]Write to MH i2c: E2 08 00 C8 00 80 0D 03 02 00 00 00 00 43 [06:30:09]Write i2c OK [06:30:09]MH_I2C_Read... [06:30:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:30:09]Read from MH i2c: E2 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 0B 00 [06:30:09]MH_I2C_Read... [06:30:09]Read from MH i2c: E2 0B 00 C8 00 00 C5 C4 EB 1F 58 FD E9 0E 90 00 23 [06:30:10]RAPDU: C5 C4 EB 1F 58 FD E9 0E 90 00 [06:30:10]wFMCommunicate OK [06:30:10]SAM_PROTO_SignData done [06:30:10]FM_MakeSignedData done [06:30:10]CreateOFDProtocolMessage [06:30:10]wFMCommunicate request_size=4 [06:30:10]MH_SAM_APDU [06:30:10]CAPDU: 80 11 00 00 [06:30:10]Write to MH i2c: E2 08 00 C9 00 80 11 00 00 00 00 00 00 43 [06:30:10]Write i2c OK [06:30:10]MH_I2C_Read... [06:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:10]Read from MH i2c: E2 [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: E2 17 00 [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: E2 17 00 C9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 96 [06:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:30:10]wFMCommunicate OK [06:30:10]CreateOFDProtocolMessage done [06:30:10]OFDSenderStorePacket 103830 [06:30:10]StoreOFDPacket docnum=103830 [06:30:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B0 CE 07 01 8F 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 A4 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6C BC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C BC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 80 00 00 00 00 07 04 06 00 1C BC 04 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 71 CC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 95 01 00 35 04 06 00 F5 C4 26 E5 34 5A C5 C4 EB 1F 58 FD E9 0E [06:30:10]CheckFolder [06:30:10]dirname=/storage/ofd_packets [06:30:10]CheckFolder done [06:30:10]ProducePacketName [06:30:10]name=ofd_packets/00103830 [06:30:10]NVStorageSaveData ofd_packets/00103830 [06:30:10]File name is /storage/ofd_packets/00103830 [06:30:10]Write 301 bytes [06:30:10]NVStorageSaveData done [06:30:10]OFDSenderStorePacket done [06:30:10]KKMCreateOFDPacket done [06:30:10]NVStorageSaveData kkm_last_timestamp [06:30:10]File name is /storage/kkm_last_timestamp [06:30:10]Write 4 bytes [06:30:10]NVStorageSaveData done [06:30:10]ExternCall_PrintAddStr [06:30:10]wPrintStart [06:30:10]Write to MH i2c: 01 00 00 CA 00 CA [06:30:10]OFD Sender: Processing packet 103830 [packets to send 17, broken 16] [06:30:10]ProducePacketName [06:30:10]name=ofd_packets/00103830 [06:30:10]OFD Sender: To server: pG, [06:30:10]CommunicateWithHost lk.salyk.kg:30040 [06:30:10]ConnectInit lk.salyk.kg [06:30:10]Write i2c OK [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: 01 [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: 01 07 00 [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: 01 07 00 CA 00 00 00 00 00 00 FF 0F DF [06:30:10]RasterBufferAndPrint [06:30:10]line Счет N : (1)673142 [06:30:10]line ИНН: 02508201610067 [06:30:10]line Контрольно-Кассовый Чек [06:30:10]line ПРОДАЖА [06:30:10]line ТРК (МРК, ГНК) : 31 [06:30:10]line Товар: 2710124500 [06:30:10]line Аи-95-К-5 [06:30:10]line 42.000 * 73.90 [06:30:10]line = 3103.80 [06:30:10]line НДС 12% НСП 1% [06:30:10]line > о реализуемом товаре [06:30:10]line ОКРУГЛЕНИЕ: -0.80 [06:30:10]line ИТОГО: 3103.00 [06:30:10]line Внесено: 3500.00 [06:30:10]line СДАЧА: 397.00 [06:30:10]line НСП 1% : 27.47 [06:30:10]line НДС 12% : 329.61 [06:30:10]line Наличными: 3103.00 [06:30:10]line Безнал.: 0.00 [06:30:10]line Место: АЗС № 120 "Партнер Нефть" [06:30:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:30:10]line СНО: Общий режим [06:30:10]line Чек 15 20.06.2024 06:30 [06:30:10]line Смена: 354 ФФД: 1.0 [06:30:10]line ЗНМ: 0300000164 [06:30:10]line РНМ: 0000000000092785 [06:30:10]line Версия ККМ: 001 [06:30:10]line ФМ: 0000000000875093 [06:30:10]line ФД: 103830 [06:30:10]line ФПД: 270222814950490 [06:30:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T063009&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103830&fm=270222814950490&tin=02508201610067®Number=0000000000092785&sum=310300 [06:30:10]Connected sock=10 [06:30:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B0 CE 07 01 8F 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 A4 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6C BC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C BC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 80 00 00 00 00 07 04 06 00 1C BC 04 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 71 CC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 95 01 00 35 04 06 00 F5 C4 26 E5 34 5A C5 C4 EB 1F 58 FD E9 0E [06:30:10]written 0, free lines is 4095 [06:30:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D7 69 47 00 87 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 35 30 39 33 10 04 04 00 96 95 01 00 F4 03 04 00 F7 72 73 66 B6 04 01 00 00 4B 7C 93 47 ED 20 64 4A [06:30:10]CommunicateWithHost err = 0 [06:30:10]CheckOFDResponse [06:30:10]1017 (14) - 77093643461234 [06:30:10]1041 (16) - 0000000000875093 [06:30:10]1040 (4) - 103830 [06:30:10]1012 (4) - 20.06.2024 00:08 [06:30:10]1206 (1) - 0 [06:30:10]OFD Sender: Remove packet 103830 [06:30:10]ProducePacketName [06:30:10]name=ofd_packets/00103830 [06:30:10]NVStorageDeleteData [06:30:10]Write to MH i2c: 01 00 00 F5 00 F5 [06:30:10]Write i2c OK [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: 01 [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: 01 07 00 [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 DF 0C E7 [06:30:10]RasterBufferAndPrint [06:30:10]line [06:30:10]line [06:30:10]line [06:30:10]line [06:30:10]line [06:30:10]written 0, free lines is 3301 [06:30:10]MH_Cut [06:30:10]Write to MH i2c: D1 01 00 FC 00 01 CE [06:30:10]Write i2c OK [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: D1 [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: D1 01 00 [06:30:10]MH_I2C_Read... [06:30:10]Read from MH i2c: D1 01 00 FC 00 00 CD [06:30:10]Write to MH i2c: 01 00 00 FD 00 FD [06:30:10]Write i2c OK [06:30:10]MH_I2C_Read... [06:30:11]OFD Sender: No OFD packet to send [06:30:11]*** Cut start [06:30:11]*** Partial cut [06:30:11]*** CUTSNS_PIN = 1 [06:30:11]*** CUTSNS_PIN = 0 [06:30:11]*** Brake cut motor [06:30:12]Read from MH i2c: 01 [06:30:12]MH_I2C_Read... [06:30:12]*** Stop cut motor [06:30:12]*** Cut end [06:30:12]Read from MH i2c: 01 07 00 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: 01 07 00 FD 00 00 00 00 00 00 FF 0F 12 [06:30:12]process_action close_receipt done [06:30:12]requested_data is exist [06:30:12]produce_requested_data [06:30:12]requested_item fm.sn is exist - process it [06:30:12]wFMCommunicate request_size=4 [06:30:12]MH_SAM_APDU [06:30:12]CAPDU: 80 11 00 00 [06:30:12]Write to MH i2c: E2 08 00 FE 00 80 11 00 00 00 00 00 00 78 [06:30:12]Write i2c OK [06:30:12]MH_I2C_Read... [06:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:30:12]Read from MH i2c: E2 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 17 00 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 17 00 FE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CB [06:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:30:12]wFMCommunicate OK [06:30:12]requested_item fd.num is exist - process it [06:30:12]SAM_PROTO_GetFieldsCounters [06:30:12]wFMCommunicate request_size=4 [06:30:12]MH_SAM_APDU [06:30:12]CAPDU: 80 13 00 00 [06:30:12]Write to MH i2c: E2 08 00 FF 00 80 13 00 00 00 00 00 00 7B [06:30:12]Write i2c OK [06:30:12]MH_I2C_Read... [06:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:30:12]Read from MH i2c: E2 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 62 00 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 62 00 FF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 96 95 01 00 0E 04 04 00 62 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 5E [06:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 96 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:30:12]wFMCommunicate OK [06:30:12]SAM_PROTO_GetFieldsCounters done [06:30:12]requested_item shift.num is exist - process it [06:30:12]requested_item shift.opened is exist - process it [06:30:12]req_shift_opened [06:30:12]FM_GetShiftState [06:30:12]SAM_PROTO_GetShiftState [06:30:12]wFMCommunicate request_size=4 [06:30:12]MH_SAM_APDU [06:30:12]CAPDU: 80 13 01 00 [06:30:12]Write to MH i2c: E2 08 00 00 01 80 13 01 00 00 00 00 00 7E [06:30:12]Write i2c OK [06:30:12]MH_I2C_Read... [06:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:30:12]Read from MH i2c: E2 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 0E 00 [06:30:12]MH_I2C_Read... [06:30:12]Read from MH i2c: E2 0E 00 00 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CD [06:30:12]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:30:12]wFMCommunicate OK [06:30:12]SAM_PROTO_GetShiftState done [06:30:12]FM_GetShiftState done [06:30:12]req_shift_opened done [06:30:12]requested_item shift.open_date is exist - process it [06:30:12]req_shift_open_date [06:30:12]req_shift_open_date done [06:30:12]produce_requested_data done [06:30:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103830,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [06:30:12]process_action_free close_receipt [06:30:12]json_value_free [06:30:12]json_value_free done [06:30:12]process_json_proto returns [06:30:12]Send response to host [06:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103830,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [06:30:12]free response buf [06:30:12]execute_script done [06:30:12]execute_script returns [06:30:12]free content buf [06:30:12]Sock 9.Close socket [06:30:12]Sock 9.Thread stoped [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:20]accept exits with 7 [06:34:20]New connection [06:34:20]New thread 3067063652 created [06:34:20]Thread 3067207012 joined [06:34:20]Waiting for new connection... [06:34:20] Sock 7.Parse request [06:34:20]Sock 7.Check first char [06:34:20]Sock 7.First char is OK [06:34:20]request: POST /json_proto HTTP/1.0 [06:34:20]Method: POST [06:34:20]URL: /json_proto [06:34:20]Method is POST - this is cgi request [06:34:20]url: /json_proto [06:34:20]query_string will be loaded in cgi processing [06:34:20]execute_cgi json_proto POST (null) [06:34:20]execute_cgi path=json_proto method=POST [06:34:20]POST find Content-Length [06:34:20]Host: 172.17.38.133:8080 [06:34:20]Content-Length: 682 [06:34:20]Content-Type: application/json [06:34:20] [06:34:20]POST finish read [06:34:20]Found Content-Length = 682 [06:34:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:34:20]execute_script... [06:34: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)673143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:34:20]POST & json_proto [06:34:20]process_json_proto [06:34:20]json parsed OK: [06:34:20]protocol is kg_v1.0 [06:34:20]action value=close_receipt [06:34:20]process_action close_receipt [06:34:20]cmd_close_receipt [06:34:20]MH_GetDate [06:34:20]Write to MH i2c: F0 00 00 01 01 F1 [06:34:20]Write i2c OK [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: F0 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: F0 09 00 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: F0 09 00 01 01 00 6C CD 73 66 BD 8F 7C 64 38 [06:34:20]GetLastDocTimeStamp 1718865009 [06:34:20]current date 1718865260 [06:34:20]FM_GetShiftState [06:34:20]SAM_PROTO_GetShiftState [06:34:20]wFMCommunicate request_size=4 [06:34:20]MH_SAM_APDU [06:34:20]CAPDU: 80 13 01 00 [06:34:20]Write to MH i2c: E2 08 00 02 01 80 13 01 00 00 00 00 00 80 [06:34:20]Write i2c OK [06:34:20]MH_I2C_Read... [06:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:20]Read from MH i2c: E2 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: E2 0E 00 [06:34:20]MH_I2C_Read... [06:34:20]Read from MH i2c: E2 0E 00 02 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CF [06:34:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:34:20]wFMCommunicate OK [06:34:20]SAM_PROTO_GetShiftState done [06:34:20]FM_GetShiftState done [06:34:20]opened in 1718843124 [06:34:20]opened+sec_in_day 1718929524 [06:34:20]quantity*price = 100064 [06:34:20]sum+1 = 100066 [06:34:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 16 20.06.2024 06:34 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103831 ФПД: 71381001291948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T063420&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103831&fm=71381001291948&tin=02508201610067®Number=0000000000092785&sum=100000 [06:34:21]StoreToDocumentArchive [06:34:21]shift 354 fd 103831 [06:34:21]save to /storage/0354/doc_00103831 [06:34:21]save last doc name /storage/0354/doc_00103831 to /storage/kkm_last_doc_name [06:34:21]save OK [06:34:21]Clear old archive folders... [06:34:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:34:21]tlvbuf is 0082D210 [06:34:21]SAM_PROTO_ClearQueue [06:34:21]wFMCommunicate request_size=4 [06:34:21]MH_SAM_APDU [06:34:21]CAPDU: 80 09 00 00 [06:34:21]Write to MH i2c: E2 08 00 0F 01 80 09 00 00 00 00 00 00 82 [06:34:21]Write i2c OK [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 [06:34:21]MH_I2C_Read... [06:34:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:34:21]Read from MH i2c: E2 03 00 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [06:34:21]RAPDU: 90 00 [06:34:21]wFMCommunicate OK [06:34:21]SAM_PROTO_ClearQueue done [06:34:21]KKMCreateOFDPacket [06:34:21]OFDProtocolAddRootSTLVToBuf [06:34:21]FM_MakeSignedData [06:34:21]FM_MakeSignedData [06:34:21]SAM_PROTO_SignData [06:34:21]wFMCommunicate request_size=4 [06:34:21]MH_SAM_APDU [06:34:21]CAPDU: 80 0D 01 02 [06:34:21]Write to MH i2c: E2 08 00 10 01 80 0D 01 02 00 00 00 00 8A [06:34:21]Write i2c OK [06:34:21]MH_I2C_Read... [06:34:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:34:21]Read from MH i2c: E2 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 03 00 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 03 00 10 01 00 90 00 85 [06:34:21]RAPDU: 90 00 [06:34:21]wFMCommunicate OK [06:34:21]wFMCommunicate request_size=255 [06:34:21]MH_SAM_APDU [06:34: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6C CD 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 97 95 01 00 35 04 06 00 40 [06:34:21]Write to MH i2c: E2 02 01 11 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6C CD 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 97 95 01 00 35 04 06 00 40 00 00 86 [06:34:21]Write i2c OK [06:34:21]MH_I2C_Read... [06:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:21]Read from MH i2c: E2 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 03 00 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 03 00 11 01 00 90 00 86 [06:34:21]RAPDU: 90 00 [06:34:21]wFMCommunicate OK [06:34:21]wFMCommunicate request_size=10 [06:34:21]MH_SAM_APDU [06:34:21]CAPDU: 80 0D 02 02 05 EB AF 39 C8 AC [06:34:21]Write to MH i2c: E2 0D 00 12 01 80 0D 02 02 05 00 EB AF 39 C8 AC 00 00 DE [06:34:21]Write i2c OK [06:34:21]MH_I2C_Read... [06:34:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:21]Read from MH i2c: E2 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 03 00 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 03 00 12 01 00 90 00 87 [06:34:21]RAPDU: 90 00 [06:34:21]wFMCommunicate OK [06:34:21]wFMCommunicate request_size=4 [06:34:21]MH_SAM_APDU [06:34:21]CAPDU: 80 0D 03 02 [06:34:21]Write to MH i2c: E2 08 00 13 01 80 0D 03 02 00 00 00 00 8F [06:34:21]Write i2c OK [06:34:21]MH_I2C_Read... [06:34:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:34:21]Read from MH i2c: E2 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 0B 00 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 0B 00 13 01 00 E5 64 D6 9C 95 A4 19 88 90 00 25 [06:34:21]RAPDU: E5 64 D6 9C 95 A4 19 88 90 00 [06:34:21]wFMCommunicate OK [06:34:21]SAM_PROTO_SignData done [06:34:21]FM_MakeSignedData done [06:34:21]CreateOFDProtocolMessage [06:34:21]wFMCommunicate request_size=4 [06:34:21]MH_SAM_APDU [06:34:21]CAPDU: 80 11 00 00 [06:34:21]Write to MH i2c: E2 08 00 14 01 80 11 00 00 00 00 00 00 8F [06:34:21]Write i2c OK [06:34:21]MH_I2C_Read... [06:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:21]Read from MH i2c: E2 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 17 00 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: E2 17 00 14 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E2 [06:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:34:21]wFMCommunicate OK [06:34:21]CreateOFDProtocolMessage done [06:34:21]OFDSenderStorePacket 103831 [06:34:21]StoreOFDPacket docnum=103831 [06:34:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0B 83 07 01 CD E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6C CD 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 97 95 01 00 35 04 06 00 40 EB AF 39 C8 AC E5 64 D6 9C 95 A4 19 88 [06:34:21]CheckFolder [06:34:21]dirname=/storage/ofd_packets [06:34:21]CheckFolder done [06:34:21]ProducePacketName [06:34:21]name=ofd_packets/00103831 [06:34:21]NVStorageSaveData ofd_packets/00103831 [06:34:21]File name is /storage/ofd_packets/00103831 [06:34:21]Write 301 bytes [06:34:21]NVStorageSaveData done [06:34:21]OFDSenderStorePacket done [06:34:21]KKMCreateOFDPacket done [06:34:21]NVStorageSaveData kkm_last_timestamp [06:34:21]File name is /storage/kkm_last_timestamp [06:34:21]Write 4 bytes [06:34:21]NVStorageSaveData done [06:34:21]ExternCall_PrintAddStr [06:34:21]wPrintStart [06:34:21]Write to MH i2c: 01 00 00 15 01 16 [06:34:21]Write i2c OK [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: 01 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: 01 07 00 [06:34:21]MH_I2C_Read... [06:34:21]Read from MH i2c: 01 07 00 15 01 00 00 00 00 00 FF 0F 2B [06:34:21]RasterBufferAndPrint [06:34:21]line Счет N : (1)673143 [06:34:21]line ИНН: 02508201610067 [06:34:21]line Контрольно-Кассовый Чек [06:34:21]line ПРОДАЖА [06:34:21]line ТРК (МРК, ГНК) : 42 [06:34:21]line Товар: 2710124130 [06:34:21]line Аи-92-К-5 [06:34:21]line 15.070 * 66.40 [06:34:21]line = 1000.65 [06:34:21]line НДС 12% НСП 1% [06:34:21]line > о реализуемом товаре [06:34:21]line ОКРУГЛЕНИЕ: -0.65 [06:34:21]line ИТОГО: 1000.00 [06:34:21]line Внесено: 1000.00 [06:34:21]line СДАЧА: 0.00 [06:34:21]line НСП 1% : 8.85 [06:34:21]line НДС 12% : 106.26 [06:34:21]line Наличными: 1000.00 [06:34:21]line Безнал.: 0.00 [06:34:21]line Место: АЗС № 120 "Партнер Нефть" [06:34:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:34:21]line СНО: Общий режим [06:34:21]line Чек 16 20.06.2024 06:34 [06:34:21]line Смена: 354 ФФД: 1.0 [06:34:21]line ЗНМ: 0300000164 [06:34:21]line РНМ: 0000000000092785 [06:34:21]line Версия ККМ: 001 [06:34:21]line ФМ: 0000000000875093 [06:34:21]line ФД: 103831 [06:34:21]line ФПД: 71381001291948 [06:34:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T063420&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103831&fm=71381001291948&tin=02508201610067®Number=0000000000092785&sum=100000 [06:34:22]OFD Sender: Processing packet 103831 [packets to send 17, broken 16] [06:34:22]ProducePacketName [06:34:22]name=ofd_packets/00103831 [06:34:22]OFD Sender: To server: pG, [06:34:22]CommunicateWithHost lk.salyk.kg:30040 [06:34:22]ConnectInit lk.salyk.kg [06:34:22]written 0, free lines is 4095 [06:34:22]Connected sock=10 [06:34:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0B 83 07 01 CD E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6C CD 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 97 95 01 00 35 04 06 00 40 EB AF 39 C8 AC E5 64 D6 9C 95 A4 19 88 [06:34:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AF C5 47 00 E6 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 35 30 39 33 10 04 04 00 97 95 01 00 F4 03 04 00 F3 73 73 66 B6 04 01 00 00 E4 E5 ED B2 F0 22 5C FE [06:34:22]CommunicateWithHost err = 0 [06:34:22]CheckOFDResponse [06:34:22]1017 (14) - 77093643461234 [06:34:22]1041 (16) - 0000000000875093 [06:34:22]1040 (4) - 103831 [06:34:22]1012 (4) - 20.06.2024 00:12 [06:34:22]1206 (1) - 0 [06:34:22]OFD Sender: Remove packet 103831 [06:34:22]ProducePacketName [06:34:22]name=ofd_packets/00103831 [06:34:22]NVStorageDeleteData [06:34:22]Write to MH i2c: 01 00 00 40 01 41 [06:34:22]Write i2c OK [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: 01 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: 01 07 00 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 E0 0C 34 [06:34:22]RasterBufferAndPrint [06:34:22]line [06:34:22]line [06:34:22]line [06:34:22]line [06:34:22]line [06:34:22]written 0, free lines is 3302 [06:34:22]MH_Cut [06:34:22]Write to MH i2c: D1 01 00 47 01 01 1A [06:34:22]Write i2c OK [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: D1 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: D1 01 00 [06:34:22]MH_I2C_Read... [06:34:22]Read from MH i2c: D1 01 00 47 01 00 19 [06:34:22]Write to MH i2c: 01 00 00 48 01 49 [06:34:22]Write i2c OK [06:34:22]MH_I2C_Read... [06:34:23]OFD Sender: No OFD packet to send [06:34:23]*** Cut start [06:34:23]*** Partial cut [06:34:23]*** CUTSNS_PIN = 1 [06:34:23]*** CUTSNS_PIN = 0 [06:34:23]*** Brake cut motor [06:34:24]Read from MH i2c: 01 [06:34:24]MH_I2C_Read... [06:34:24]*** Stop cut motor [06:34:24]*** Cut end [06:34:24]Read from MH i2c: 01 07 00 [06:34:24]MH_I2C_Read... [06:34:24]Read from MH i2c: 01 07 00 48 01 00 00 00 00 00 FF 0F 5E [06:34:24]process_action close_receipt done [06:34:24]requested_data is exist [06:34:24]produce_requested_data [06:34:24]requested_item fm.sn is exist - process it [06:34:24]wFMCommunicate request_size=4 [06:34:24]MH_SAM_APDU [06:34:24]CAPDU: 80 11 00 00 [06:34:24]Write to MH i2c: E2 08 00 49 01 80 11 00 00 00 00 00 00 C4 [06:34:24]Write i2c OK [06:34:24]MH_I2C_Read... [06:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:24]Read from MH i2c: E2 [06:34:24]MH_I2C_Read... [06:34:24]Read from MH i2c: E2 17 00 [06:34:24]MH_I2C_Read... [06:34:24]Read from MH i2c: E2 17 00 49 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 17 [06:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:34:24]wFMCommunicate OK [06:34:24]requested_item fd.num is exist - process it [06:34:24]SAM_PROTO_GetFieldsCounters [06:34:24]wFMCommunicate request_size=4 [06:34:24]MH_SAM_APDU [06:34:24]CAPDU: 80 13 00 00 [06:34:24]Write to MH i2c: E2 08 00 4A 01 80 13 00 00 00 00 00 00 C7 [06:34:24]Write i2c OK [06:34:24]MH_I2C_Read... [06:34:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:34:24]Read from MH i2c: E2 [06:34:24]MH_I2C_Read... [06:34:24]Read from MH i2c: E2 62 00 [06:34:24]MH_I2C_Read... [06:34:24]Read from MH i2c: E2 62 00 4A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 97 95 01 00 0E 04 04 00 62 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 AE [06:34:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 97 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:34:24]wFMCommunicate OK [06:34:24]SAM_PROTO_GetFieldsCounters done [06:34:24]requested_item shift.num is exist - process it [06:34:24]requested_item shift.opened is exist - process it [06:34:24]req_shift_opened [06:34:24]FM_GetShiftState [06:34:24]SAM_PROTO_GetShiftState [06:34:24]wFMCommunicate request_size=4 [06:34:24]MH_SAM_APDU [06:34:24]CAPDU: 80 13 01 00 [06:34:24]Write to MH i2c: E2 08 00 4B 01 80 13 01 00 00 00 00 00 C9 [06:34:24]Write i2c OK [06:34:24]MH_I2C_Read... [06:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:24]Read from MH i2c: E2 [06:34:24]MH_I2C_Read... [06:34:24]Read from MH i2c: E2 0E 00 [06:34:24]MH_I2C_Read... [06:34:24]Read from MH i2c: E2 0E 00 4B 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 18 [06:34:24]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:34:24]wFMCommunicate OK [06:34:24]SAM_PROTO_GetShiftState done [06:34:24]FM_GetShiftState done [06:34:24]req_shift_opened done [06:34:24]requested_item shift.open_date is exist - process it [06:34:24]req_shift_open_date [06:34:24]req_shift_open_date done [06:34:24]produce_requested_data done [06:34:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103831,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [06:34:24]process_action_free close_receipt [06:34:24]json_value_free [06:34:24]json_value_free done [06:34:24]process_json_proto returns [06:34:24]Send response to host [06:34:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103831,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [06:34:24]free response buf [06:34:24]execute_script done [06:34:24]execute_script returns [06:34:24]free content buf [06:34:24]Sock 7.Close socket [06:34:24]Sock 7.Thread stoped [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:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:48]OFD Sender: No OFD packet to send [06:44:53]OFD Sender: No OFD packet to send [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:24]accept exits with 9 [06:48:24]New connection [06:48:24]New thread 3067207012 created [06:48:24]Thread 3067063652 joined [06:48:24]Waiting for new connection... [06:48:24] Sock 9.Parse request [06:48:24]Sock 9.Check first char [06:48:24]Sock 9.First char is OK [06:48:24]request: POST /json_proto HTTP/1.0 [06:48:24]Method: POST [06:48:24]URL: /json_proto [06:48:24]Method is POST - this is cgi request [06:48:24]url: /json_proto [06:48:24]query_string will be loaded in cgi processing [06:48:24]execute_cgi json_proto POST (null) [06:48:24]execute_cgi path=json_proto method=POST [06:48:24]POST find Content-Length [06:48:24]Host: 172.17.38.133:8080 [06:48:24]Content-Length: 687 [06:48:24]Content-Type: application/json [06:48:24] [06:48:24]POST finish read [06:48:24]Found Content-Length = 687 [06:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:24]execute_script... [06:48:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:24]POST & json_proto [06:48:24]process_json_proto [06:48:24]json parsed OK: [06:48:24]protocol is kg_v1.0 [06:48:24]action value=close_receipt [06:48:24]process_action close_receipt [06:48:24]cmd_close_receipt [06:48:24]MH_GetDate [06:48:24]Write to MH i2c: F0 00 00 4C 01 3C [06:48:24]Write i2c OK [06:48:24]MH_I2C_Read... [06:48:24]Read from MH i2c: F0 [06:48:24]MH_I2C_Read... [06:48:24]Read from MH i2c: F0 09 00 [06:48:24]MH_I2C_Read... [06:48:24]Read from MH i2c: F0 09 00 4C 01 00 B9 D0 73 66 BD 8F 7C 64 D3 [06:48:24]GetLastDocTimeStamp 1718865260 [06:48:24]current date 1718866105 [06:48:24]FM_GetShiftState [06:48:24]SAM_PROTO_GetShiftState [06:48:24]wFMCommunicate request_size=4 [06:48:24]MH_SAM_APDU [06:48:24]CAPDU: 80 13 01 00 [06:48:24]Write to MH i2c: E2 08 00 4D 01 80 13 01 00 00 00 00 00 CB [06:48:24]Write i2c OK [06:48:24]MH_I2C_Read... [06:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:25]Read from MH i2c: E2 [06:48:25]MH_I2C_Read... [06:48:25]Read from MH i2c: E2 0E 00 [06:48:25]MH_I2C_Read... [06:48:25]Read from MH i2c: E2 0E 00 4D 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1A [06:48:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:48:25]wFMCommunicate OK [06:48:25]SAM_PROTO_GetShiftState done [06:48:25]FM_GetShiftState done [06:48:25]opened in 1718843124 [06:48:25]opened+sec_in_day 1718929524 [06:48:25]quantity*price = 100018 [06:48:25]sum+1 = 100020 [06:48:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 17 20.06.2024 06:48 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103832 ФПД: 72046910107025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T064825&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103832&fm=72046910107025&tin=02508201610067®Number=0000000000092785&sum=100000 [06:48:26]StoreToDocumentArchive [06:48:26]shift 354 fd 103832 [06:48:26]save to /storage/0354/doc_00103832 [06:48:26]save last doc name /storage/0354/doc_00103832 to /storage/kkm_last_doc_name [06:48:26]save OK [06:48:26]Clear old archive folders... [06:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:48:26]tlvbuf is 0081A7A0 [06:48:26]SAM_PROTO_ClearQueue [06:48:26]wFMCommunicate request_size=4 [06:48:26]MH_SAM_APDU [06:48:26]CAPDU: 80 09 00 00 [06:48:26]Write to MH i2c: E2 08 00 5A 01 80 09 00 00 00 00 00 00 CD [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [06:48:26]RAPDU: 90 00 [06:48:26]wFMCommunicate OK [06:48:26]SAM_PROTO_ClearQueue done [06:48:26]KKMCreateOFDPacket [06:48:26]OFDProtocolAddRootSTLVToBuf [06:48:26]FM_MakeSignedData [06:48:26]FM_MakeSignedData [06:48:26]SAM_PROTO_SignData [06:48:26]wFMCommunicate request_size=4 [06:48:26]MH_SAM_APDU [06:48:26]CAPDU: 80 0D 01 02 [06:48:26]Write to MH i2c: E2 08 00 5B 01 80 0D 01 02 00 00 00 00 D5 [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [06:48:26]RAPDU: 90 00 [06:48:26]wFMCommunicate OK [06:48:26]wFMCommunicate request_size=255 [06:48:26]MH_SAM_APDU [06:48:26]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 11 00 00 00 F4 03 04 00 B9 D0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 98 95 01 00 35 04 06 00 [06:48:26]Write to MH i2c: E2 02 01 5C 01 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 11 00 00 00 F4 03 04 00 B9 D0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 98 95 01 00 35 04 06 00 00 00 2D [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [06:48:26]RAPDU: 90 00 [06:48:26]wFMCommunicate OK [06:48:26]wFMCommunicate request_size=11 [06:48:26]MH_SAM_APDU [06:48:26]CAPDU: 80 0D 02 02 06 41 86 BA 7B ED 91 [06:48:26]Write to MH i2c: E2 0E 00 5D 01 80 0D 02 02 06 00 41 86 BA 7B ED 91 00 00 5E [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 03 00 5D 01 00 90 00 D2 [06:48:26]RAPDU: 90 00 [06:48:26]wFMCommunicate OK [06:48:26]wFMCommunicate request_size=4 [06:48:26]MH_SAM_APDU [06:48:26]CAPDU: 80 0D 03 02 [06:48:26]Write to MH i2c: E2 08 00 5E 01 80 0D 03 02 00 00 00 00 DA [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 0B 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 0B 00 5E 01 00 7A 9F D5 D4 B3 E0 F5 73 90 00 98 [06:48:26]RAPDU: 7A 9F D5 D4 B3 E0 F5 73 90 00 [06:48:26]wFMCommunicate OK [06:48:26]SAM_PROTO_SignData done [06:48:26]FM_MakeSignedData done [06:48:26]CreateOFDProtocolMessage [06:48:26]wFMCommunicate request_size=4 [06:48:26]MH_SAM_APDU [06:48:26]CAPDU: 80 11 00 00 [06:48:26]Write to MH i2c: E2 08 00 5F 01 80 11 00 00 00 00 00 00 DA [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:26]Read from MH i2c: E2 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 17 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: E2 17 00 5F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2D [06:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:48:26]wFMCommunicate OK [06:48:26]CreateOFDProtocolMessage done [06:48:26]OFDSenderStorePacket 103832 [06:48:26]StoreOFDPacket docnum=103832 [06:48:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 76 95 08 01 A0 AD 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 11 00 00 00 F4 03 04 00 B9 D0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 98 95 01 00 35 04 06 00 41 86 BA 7B ED 91 7A 9F D5 D4 B3 E0 F5 73 [06:48:26]CheckFolder [06:48:26]dirname=/storage/ofd_packets [06:48:26]CheckFolder done [06:48:26]ProducePacketName [06:48:26]name=ofd_packets/00103832 [06:48:26]NVStorageSaveData ofd_packets/00103832 [06:48:26]File name is /storage/ofd_packets/00103832 [06:48:26]Write 302 bytes [06:48:26]NVStorageSaveData done [06:48:26]OFDSenderStorePacket done [06:48:26]KKMCreateOFDPacket done [06:48:26]NVStorageSaveData kkm_last_timestamp [06:48:26]File name is /storage/kkm_last_timestamp [06:48:26]Write 4 bytes [06:48:26]NVStorageSaveData done [06:48:26]ExternCall_PrintAddStr [06:48:26]wPrintStart [06:48:26]Write to MH i2c: 01 00 00 60 01 61 [06:48:26]Write i2c OK [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: 01 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: 01 07 00 [06:48:26]MH_I2C_Read... [06:48:26]Read from MH i2c: 01 07 00 60 01 00 00 00 00 00 FF 0F 76 [06:48:26]RasterBufferAndPrint [06:48:26]line Счет N : (1)673145 [06:48:26]line ИНН: 02508201610067 [06:48:26]line Контрольно-Кассовый Чек [06:48:26]line ПРОДАЖА [06:48:26]line ТРК (МРК, ГНК) : 21 [06:48:26]line Товар: 2710194210 [06:48:26]line ДТ(л)-К-5 [06:48:26]line 13.720 * 72.90 [06:48:26]line = 1000.19 [06:48:26]line НДС 12% НСП 1% [06:48:26]line > о реализуемом товаре [06:48:26]line ОКРУГЛЕНИЕ: -0.19 [06:48:26]line ИТОГО: 1000.00 [06:48:26]line Внесено: 1000.00 [06:48:26]line СДАЧА: 0.00 [06:48:26]line НСП 1% : 8.85 [06:48:26]line НДС 12% : 106.21 [06:48:26]line Наличными: 1000.00 [06:48:26]line Безнал.: 0.00 [06:48:26]line Место: АЗС № 120 "Партнер Нефть" [06:48:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:48:26]line СНО: Общий режим [06:48:26]line Чек 17 20.06.2024 06:48 [06:48:26]line Смена: 354 ФФД: 1.0 [06:48:26]line ЗНМ: 0300000164 [06:48:26]line РНМ: 0000000000092785 [06:48:26]line Версия ККМ: 001 [06:48:26]line ФМ: 0000000000875093 [06:48:26]line ФД: 103832 [06:48:26]line ФПД: 72046910107025 [06:48:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T064825&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103832&fm=72046910107025&tin=02508201610067®Number=0000000000092785&sum=100000 [06:48:26]OFD Sender: Processing packet 103832 [packets to send 17, broken 16] [06:48:26]ProducePacketName [06:48:26]name=ofd_packets/00103832 [06:48:26]OFD Sender: To server: pG, [06:48:26]CommunicateWithHost lk.salyk.kg:30040 [06:48:26]ConnectInit lk.salyk.kg [06:48:26]written 0, free lines is 4095 [06:48:27]Connected sock=10 [06:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 76 95 08 01 A0 AD 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 11 00 00 00 F4 03 04 00 B9 D0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 98 95 01 00 35 04 06 00 41 86 BA 7B ED 91 7A 9F D5 D4 B3 E0 F5 73 [06:48:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DA FB 47 00 90 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 98 95 01 00 F4 03 04 00 3F 77 73 66 B6 04 01 00 00 15 2A EF 38 A6 62 EC BB [06:48:27]CommunicateWithHost err = 0 [06:48:27]CheckOFDResponse [06:48:27]1017 (14) - 77093643461234 [06:48:27]1041 (16) - 0000000000875093 [06:48:27]1040 (4) - 103832 [06:48:27]1012 (4) - 20.06.2024 00:26 [06:48:27]1206 (1) - 0 [06:48:27]OFD Sender: Remove packet 103832 [06:48:27]ProducePacketName [06:48:27]name=ofd_packets/00103832 [06:48:27]NVStorageDeleteData [06:48:27]Write to MH i2c: 01 00 00 8B 01 8C [06:48:27]Write i2c OK [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: 01 [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: 01 07 00 [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 EA 0C 89 [06:48:27]RasterBufferAndPrint [06:48:27]line [06:48:27]line [06:48:27]line [06:48:27]line [06:48:27]line [06:48:27]written 0, free lines is 3312 [06:48:27]MH_Cut [06:48:27]Write to MH i2c: D1 01 00 92 01 01 65 [06:48:27]Write i2c OK [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: D1 [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: D1 01 00 [06:48:27]MH_I2C_Read... [06:48:27]Read from MH i2c: D1 01 00 92 01 00 64 [06:48:27]Write to MH i2c: 01 00 00 93 01 94 [06:48:27]Write i2c OK [06:48:27]MH_I2C_Read... [06:48:27]OFD Sender: No OFD packet to send [06:48:28]*** Cut start [06:48:28]*** Partial cut [06:48:28]*** CUTSNS_PIN = 1 [06:48:28]*** CUTSNS_PIN = 0 [06:48:28]*** Brake cut motor [06:48:28]Read from MH i2c: 01 [06:48:28]MH_I2C_Read... [06:48:28]*** Stop cut motor [06:48:28]*** Cut end [06:48:28]Read from MH i2c: 01 07 00 [06:48:28]MH_I2C_Read... [06:48:28]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 FF 0F A9 [06:48:28]process_action close_receipt done [06:48:28]requested_data is exist [06:48:28]produce_requested_data [06:48:28]requested_item fm.sn is exist - process it [06:48:28]wFMCommunicate request_size=4 [06:48:28]MH_SAM_APDU [06:48:28]CAPDU: 80 11 00 00 [06:48:28]Write to MH i2c: E2 08 00 94 01 80 11 00 00 00 00 00 00 0F [06:48:28]Write i2c OK [06:48:28]MH_I2C_Read... [06:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:28]Read from MH i2c: E2 [06:48:28]MH_I2C_Read... [06:48:28]Read from MH i2c: E2 17 00 [06:48:28]MH_I2C_Read... [06:48:28]Read from MH i2c: E2 17 00 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 62 [06:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:48:28]wFMCommunicate OK [06:48:28]requested_item fd.num is exist - process it [06:48:28]SAM_PROTO_GetFieldsCounters [06:48:28]wFMCommunicate request_size=4 [06:48:28]MH_SAM_APDU [06:48:28]CAPDU: 80 13 00 00 [06:48:28]Write to MH i2c: E2 08 00 95 01 80 13 00 00 00 00 00 00 12 [06:48:28]Write i2c OK [06:48:28]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 62 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 62 00 95 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 98 95 01 00 0E 04 04 00 62 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 FD [06:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 98 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:48:29]wFMCommunicate OK [06:48:29]SAM_PROTO_GetFieldsCounters done [06:48:29]requested_item shift.num is exist - process it [06:48:29]requested_item shift.opened is exist - process it [06:48:29]req_shift_opened [06:48:29]FM_GetShiftState [06:48:29]SAM_PROTO_GetShiftState [06:48:29]wFMCommunicate request_size=4 [06:48:29]MH_SAM_APDU [06:48:29]CAPDU: 80 13 01 00 [06:48:29]Write to MH i2c: E2 08 00 96 01 80 13 01 00 00 00 00 00 14 [06:48:29]Write i2c OK [06:48:29]MH_I2C_Read... [06:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:29]Read from MH i2c: E2 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 0E 00 [06:48:29]MH_I2C_Read... [06:48:29]Read from MH i2c: E2 0E 00 96 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 63 [06:48:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:48:29]wFMCommunicate OK [06:48:29]SAM_PROTO_GetShiftState done [06:48:29]FM_GetShiftState done [06:48:29]req_shift_opened done [06:48:29]requested_item shift.open_date is exist - process it [06:48:29]req_shift_open_date [06:48:29]req_shift_open_date done [06:48:29]produce_requested_data done [06:48:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103832,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [06:48:29]process_action_free close_receipt [06:48:29]json_value_free [06:48:29]json_value_free done [06:48:29]process_json_proto returns [06:48:29]Send response to host [06:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103832,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [06:48:29]free response buf [06:48:29]execute_script done [06:48:29]execute_script returns [06:48:29]free content buf [06:48:29]Sock 9.Close socket [06:48:29]Sock 9.Thread stoped [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:44]accept exits with 7 [06:48:44]New connection [06:48:44]New thread 3067063652 created [06:48:44]Thread 3067207012 joined [06:48:44]Waiting for new connection... [06:48:44] Sock 7.Parse request [06:48:44]Sock 7.Check first char [06:48:44]Sock 7.First char is OK [06:48:44]request: POST /json_proto HTTP/1.0 [06:48:44]Method: POST [06:48:44]URL: /json_proto [06:48:44]Method is POST - this is cgi request [06:48:44]url: /json_proto [06:48:44]query_string will be loaded in cgi processing [06:48:44]execute_cgi json_proto POST (null) [06:48:44]execute_cgi path=json_proto method=POST [06:48:44]POST find Content-Length [06:48:44]Host: 172.17.38.133:8080 [06:48:44]Content-Length: 803 [06:48:44]Content-Type: application/json [06:48:44] [06:48:44]POST finish read [06:48:44]Found Content-Length = 803 [06:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 27.110, "sum" : 1800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:44]execute_script... [06:48:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 27.110, "sum" : 1800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:44]POST & json_proto [06:48:44]process_json_proto [06:48:44]json parsed OK: [06:48:44]protocol is kg_v1.0 [06:48:44]action value=close_receipt [06:48:44]process_action close_receipt [06:48:44]cmd_close_receipt [06:48:44]MH_GetDate [06:48:44]Write to MH i2c: F0 00 00 97 01 87 [06:48:44]Write i2c OK [06:48:44]MH_I2C_Read... [06:48:44]Read from MH i2c: F0 [06:48:44]MH_I2C_Read... [06:48:44]Read from MH i2c: F0 09 00 [06:48:44]MH_I2C_Read... [06:48:44]Read from MH i2c: F0 09 00 97 01 00 CC D0 73 66 BD 8F 7C 64 31 [06:48:44]GetLastDocTimeStamp 1718866105 [06:48:44]current date 1718866124 [06:48:44]FM_GetShiftState [06:48:44]SAM_PROTO_GetShiftState [06:48:44]wFMCommunicate request_size=4 [06:48:44]MH_SAM_APDU [06:48:44]CAPDU: 80 13 01 00 [06:48:44]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [06:48:44]Write i2c OK [06:48:44]MH_I2C_Read... [06:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:44]Read from MH i2c: E2 [06:48:44]MH_I2C_Read... [06:48:44]Read from MH i2c: E2 0E 00 [06:48:44]MH_I2C_Read... [06:48:44]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 65 [06:48:44]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:48:44]wFMCommunicate OK [06:48:44]SAM_PROTO_GetShiftState done [06:48:44]FM_GetShiftState done [06:48:44]opened in 1718843124 [06:48:44]opened+sec_in_day 1718929524 [06:48:44]quantity*price = 180010 [06:48:44]sum+1 = 180011 [06:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.10 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 0.00 Безнал.: 1800.10 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 18 20.06.2024 06:48 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103833 ФПД: 230983423683444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T064844&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103833&fm=230983423683444&tin=02508201610067®Number=0000000000092785&sum=180010 [06:48:45]StoreToDocumentArchive [06:48:45]shift 354 fd 103833 [06:48:45]save to /storage/0354/doc_00103833 [06:48:45]save last doc name /storage/0354/doc_00103833 to /storage/kkm_last_doc_name [06:48:45]save OK [06:48:45]Clear old archive folders... [06:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:48:45]tlvbuf is 00817130 [06:48:45]SAM_PROTO_ClearQueue [06:48:45]wFMCommunicate request_size=4 [06:48:45]MH_SAM_APDU [06:48:45]CAPDU: 80 09 00 00 [06:48:45]Write to MH i2c: E2 08 00 A5 01 80 09 00 00 00 00 00 00 18 [06:48:45]Write i2c OK [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 [06:48:45]MH_I2C_Read... [06:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:45]Read from MH i2c: E2 03 00 [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [06:48:45]RAPDU: 90 00 [06:48:45]wFMCommunicate OK [06:48:45]SAM_PROTO_ClearQueue done [06:48:45]KKMCreateOFDPacket [06:48:45]OFDProtocolAddRootSTLVToBuf [06:48:45]FM_MakeSignedData [06:48:45]FM_MakeSignedData [06:48:45]SAM_PROTO_SignData [06:48:45]wFMCommunicate request_size=4 [06:48:45]MH_SAM_APDU [06:48:45]CAPDU: 80 0D 01 02 [06:48:45]Write to MH i2c: E2 08 00 A6 01 80 0D 01 02 00 00 00 00 20 [06:48:45]Write i2c OK [06:48:45]MH_I2C_Read... [06:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:45]Read from MH i2c: E2 [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 03 00 [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [06:48:45]RAPDU: 90 00 [06:48:45]wFMCommunicate OK [06:48:45]wFMCommunicate request_size=255 [06:48:45]MH_SAM_APDU [06:48:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CC D0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 99 95 01 00 35 04 06 00 D2 [06:48:45]Write to MH i2c: E2 02 01 A7 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 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CC D0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 99 95 01 00 35 04 06 00 D2 00 00 69 [06:48:45]Write i2c OK [06:48:45]MH_I2C_Read... [06:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:45]Read from MH i2c: E2 [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 03 00 [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [06:48:45]RAPDU: 90 00 [06:48:45]wFMCommunicate OK [06:48:45]wFMCommunicate request_size=10 [06:48:45]MH_SAM_APDU [06:48:45]CAPDU: 80 0D 02 02 05 14 04 EA EB 74 [06:48:45]Write to MH i2c: E2 0D 00 A8 01 80 0D 02 02 05 00 14 04 EA EB 74 00 00 8E [06:48:45]Write i2c OK [06:48:45]MH_I2C_Read... [06:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:45]Read from MH i2c: E2 [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 03 00 [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [06:48:45]RAPDU: 90 00 [06:48:45]wFMCommunicate OK [06:48:45]wFMCommunicate request_size=4 [06:48:45]MH_SAM_APDU [06:48:45]CAPDU: 80 0D 03 02 [06:48:45]Write to MH i2c: E2 08 00 A9 01 80 0D 03 02 00 00 00 00 25 [06:48:45]Write i2c OK [06:48:45]MH_I2C_Read... [06:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:45]Read from MH i2c: E2 [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 0B 00 [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 0B 00 A9 01 00 B9 1C 82 4A 2D 3A D5 9F 90 00 A2 [06:48:45]RAPDU: B9 1C 82 4A 2D 3A D5 9F 90 00 [06:48:45]wFMCommunicate OK [06:48:45]SAM_PROTO_SignData done [06:48:45]FM_MakeSignedData done [06:48:45]CreateOFDProtocolMessage [06:48:45]wFMCommunicate request_size=4 [06:48:45]MH_SAM_APDU [06:48:45]CAPDU: 80 11 00 00 [06:48:45]Write to MH i2c: E2 08 00 AA 01 80 11 00 00 00 00 00 00 25 [06:48:45]Write i2c OK [06:48:45]MH_I2C_Read... [06:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:45]Read from MH i2c: E2 [06:48:45]MH_I2C_Read... [06:48:45]Read from MH i2c: E2 17 00 [06:48:45]MH_I2C_Read... [06:48:46]Read from MH i2c: E2 17 00 AA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 78 [06:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:48:46]wFMCommunicate OK [06:48:46]CreateOFDProtocolMessage done [06:48:46]OFDSenderStorePacket 103833 [06:48:46]StoreOFDPacket docnum=103833 [06:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 56 41 07 01 4A 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CC D0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 99 95 01 00 35 04 06 00 D2 14 04 EA EB 74 B9 1C 82 4A 2D 3A D5 9F [06:48:46]CheckFolder [06:48:46]dirname=/storage/ofd_packets [06:48:46]CheckFolder done [06:48:46]ProducePacketName [06:48:46]name=ofd_packets/00103833 [06:48:46]NVStorageSaveData ofd_packets/00103833 [06:48:46]File name is /storage/ofd_packets/00103833 [06:48:46]Write 301 bytes [06:48:46]NVStorageSaveData done [06:48:46]OFDSenderStorePacket done [06:48:46]KKMCreateOFDPacket done [06:48:46]NVStorageSaveData kkm_last_timestamp [06:48:46]File name is /storage/kkm_last_timestamp [06:48:46]Write 4 bytes [06:48:46]NVStorageSaveData done [06:48:46]ExternCall_PrintAddStr [06:48:46]wPrintStart [06:48:46]Write to MH i2c: 01 00 00 AB 01 AC [06:48:46]Write i2c OK [06:48:46]MH_I2C_Read... [06:48:46]Read from MH i2c: 01 [06:48:46]MH_I2C_Read... [06:48:46]Read from MH i2c: 01 07 00 [06:48:46]MH_I2C_Read... [06:48:46]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 FF 0F C1 [06:48:46]RasterBufferAndPrint [06:48:46]line Счет N : (1)673144 [06:48:46]line ИНН: 02508201610067 [06:48:46]line Контрольно-Кассовый Чек [06:48:46]line ПРОДАЖА [06:48:46]line ТРК (МРК, ГНК) : 32 [06:48:46]line Товар: 2710124130 [06:48:46]line Аи-92-К-5 [06:48:46]line 27.110 * 66.40 [06:48:46]line = 1800.10 [06:48:46]line НДС 12% НСП 1% [06:48:46]line > о реализуемом товаре [06:48:46]line ИТОГО: 1800.10 [06:48:46]line НСП 1% : 15.93 [06:48:46]line НДС 12% : 191.16 [06:48:46]line Наличными: 0.00 [06:48:46]line Безнал.: 1800.10 [06:48:46]line Место: АЗС № 120 "Партнер Нефть" [06:48:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:48:46]line СНО: Общий режим [06:48:46]line Чек 18 20.06.2024 06:48 [06:48:46]line Смена: 354 ФФД: 1.0 [06:48:46]line ЗНМ: 0300000164 [06:48:46]line РНМ: 0000000000092785 [06:48:46]line Версия ККМ: 001 [06:48:46]line Платежная система: O! деньги [06:48:46]line ФМ: 0000000000875093 [06:48:46]line ФД: 103833 [06:48:46]line ФПД: 230983423683444 [06:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T064844&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103833&fm=230983423683444&tin=02508201610067®Number=0000000000092785&sum=180010 [06:48:46]written 0, free lines is 4095 [06:48:46]OFD Sender: Processing packet 103833 [packets to send 17, broken 16] [06:48:46]ProducePacketName [06:48:46]name=ofd_packets/00103833 [06:48:46]OFD Sender: To server: pG, [06:48:46]CommunicateWithHost lk.salyk.kg:30040 [06:48:46]ConnectInit lk.salyk.kg [06:48:46]Connected sock=10 [06:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 56 41 07 01 4A 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 CC D0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 99 95 01 00 35 04 06 00 D2 14 04 EA EB 74 B9 1C 82 4A 2D 3A D5 9F [06:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7E B2 47 00 2B 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 99 95 01 00 F4 03 04 00 53 77 73 66 B6 04 01 00 00 18 30 5B B0 8D 86 02 3E [06:48:46]CommunicateWithHost err = 0 [06:48:46]CheckOFDResponse [06:48:46]1017 (14) - 77093643461234 [06:48:46]1041 (16) - 0000000000875093 [06:48:46]1040 (4) - 103833 [06:48:46]1012 (4) - 20.06.2024 00:26 [06:48:46]1206 (1) - 0 [06:48:46]OFD Sender: Remove packet 103833 [06:48:46]ProducePacketName [06:48:46]name=ofd_packets/00103833 [06:48:46]NVStorageDeleteData [06:48:46]Write to MH i2c: 01 00 00 D5 01 D6 [06:48:46]Write i2c OK [06:48:46]MH_I2C_Read... [06:48:46]Read from MH i2c: 01 [06:48:46]MH_I2C_Read... [06:48:46]Read from MH i2c: 01 07 00 [06:48:46]MH_I2C_Read... [06:48:46]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 01 0D EB [06:48:46]RasterBufferAndPrint [06:48:46]line [06:48:46]line [06:48:46]line [06:48:46]line [06:48:46]line [06:48:46]written 0, free lines is 3335 [06:48:46]MH_Cut [06:48:46]Write to MH i2c: D1 01 00 DC 01 01 AF [06:48:46]Write i2c OK [06:48:46]MH_I2C_Read... [06:48:46]Read from MH i2c: D1 [06:48:46]MH_I2C_Read... [06:48:46]Read from MH i2c: D1 01 00 [06:48:46]MH_I2C_Read... [06:48:46]Read from MH i2c: D1 01 00 DC 01 00 AE [06:48:46]Write to MH i2c: 01 00 00 DD 01 DE [06:48:46]Write i2c OK [06:48:46]MH_I2C_Read... [06:48:47]OFD Sender: No OFD packet to send [06:48:47]*** Cut start [06:48:47]*** Partial cut [06:48:47]*** CUTSNS_PIN = 1 [06:48:47]*** CUTSNS_PIN = 0 [06:48:47]*** Brake cut motor [06:48:48]Read from MH i2c: 01 [06:48:48]MH_I2C_Read... [06:48:48]*** Stop cut motor [06:48:48]*** Cut end [06:48:48]Read from MH i2c: 01 07 00 [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: 01 07 00 DD 01 00 00 00 00 00 FF 0F F3 [06:48:48]process_action close_receipt done [06:48:48]requested_data is exist [06:48:48]produce_requested_data [06:48:48]requested_item fm.sn is exist - process it [06:48:48]wFMCommunicate request_size=4 [06:48:48]MH_SAM_APDU [06:48:48]CAPDU: 80 11 00 00 [06:48:48]Write to MH i2c: E2 08 00 DE 01 80 11 00 00 00 00 00 00 59 [06:48:48]Write i2c OK [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: E2 [06:48:48]MH_I2C_Read... [06:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:48]Read from MH i2c: E2 17 00 [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: E2 17 00 DE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AC [06:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:48:48]wFMCommunicate OK [06:48:48]requested_item fd.num is exist - process it [06:48:48]SAM_PROTO_GetFieldsCounters [06:48:48]wFMCommunicate request_size=4 [06:48:48]MH_SAM_APDU [06:48:48]CAPDU: 80 13 00 00 [06:48:48]Write to MH i2c: E2 08 00 DF 01 80 13 00 00 00 00 00 00 5C [06:48:48]Write i2c OK [06:48:48]MH_I2C_Read... [06:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:48]Read from MH i2c: E2 [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: E2 62 00 [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: E2 62 00 DF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 99 95 01 00 0E 04 04 00 62 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 4B [06:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 99 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:48:48]wFMCommunicate OK [06:48:48]SAM_PROTO_GetFieldsCounters done [06:48:48]requested_item shift.num is exist - process it [06:48:48]requested_item shift.opened is exist - process it [06:48:48]req_shift_opened [06:48:48]FM_GetShiftState [06:48:48]SAM_PROTO_GetShiftState [06:48:48]wFMCommunicate request_size=4 [06:48:48]MH_SAM_APDU [06:48:48]CAPDU: 80 13 01 00 [06:48:48]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [06:48:48]Write i2c OK [06:48:48]MH_I2C_Read... [06:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:48]Read from MH i2c: E2 [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: E2 0E 00 [06:48:48]MH_I2C_Read... [06:48:48]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AD [06:48:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:48:48]wFMCommunicate OK [06:48:48]SAM_PROTO_GetShiftState done [06:48:48]FM_GetShiftState done [06:48:48]req_shift_opened done [06:48:48]requested_item shift.open_date is exist - process it [06:48:48]req_shift_open_date [06:48:48]req_shift_open_date done [06:48:48]produce_requested_data done [06:48:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103833,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [06:48:48]process_action_free close_receipt [06:48:48]json_value_free [06:48:48]json_value_free done [06:48:48]process_json_proto returns [06:48:48]Send response to host [06:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103833,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [06:48:48]free response buf [06:48:48]execute_script done [06:48:48]execute_script returns [06:48:48]free content buf [06:48:48]Sock 7.Close socket [06:48:48]Sock 7.Thread stoped [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:11]accept exits with 9 [06:52:11]New connection [06:52:11]New thread 3067207012 created [06:52:11]Thread 3067063652 joined [06:52:11]Waiting for new connection... [06:52:11] Sock 9.Parse request [06:52:11]Sock 9.Check first char [06:52:11]Sock 9.First char is OK [06:52:11]request: POST /json_proto HTTP/1.0 [06:52:11]Method: POST [06:52:11]URL: /json_proto [06:52:11]Method is POST - this is cgi request [06:52:11]url: /json_proto [06:52:11]query_string will be loaded in cgi processing [06:52:11]execute_cgi json_proto POST (null) [06:52:11]execute_cgi path=json_proto method=POST [06:52:11]POST find Content-Length [06:52:11]Host: 172.17.38.133:8080 [06:52:11]Content-Length: 677 [06:52:11]Content-Type: application/json [06:52:11] [06:52:11]POST finish read [06:52:11]Found Content-Length = 677 [06:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:11]execute_script... [06:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:11]POST & json_proto [06:52:11]process_json_proto [06:52:11]json parsed OK: [06:52:11]protocol is kg_v1.0 [06:52:11]action value=close_receipt [06:52:11]process_action close_receipt [06:52:11]cmd_close_receipt [06:52:11]MH_GetDate [06:52:11]Write to MH i2c: F0 00 00 E1 01 D1 [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: F0 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: F0 09 00 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: F0 09 00 E1 01 00 9B D1 73 66 BD 8F 7C 64 4B [06:52:11]GetLastDocTimeStamp 1718866124 [06:52:11]current date 1718866331 [06:52:11]FM_GetShiftState [06:52:11]SAM_PROTO_GetShiftState [06:52:11]wFMCommunicate request_size=4 [06:52:11]MH_SAM_APDU [06:52:11]CAPDU: 80 13 01 00 [06:52:11]Write to MH i2c: E2 08 00 E2 01 80 13 01 00 00 00 00 00 60 [06:52:11]Write i2c OK [06:52:11]MH_I2C_Read... [06:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:11]Read from MH i2c: E2 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: E2 0E 00 [06:52:11]MH_I2C_Read... [06:52:11]Read from MH i2c: E2 0E 00 E2 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AF [06:52:11]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:52:11]wFMCommunicate OK [06:52:11]SAM_PROTO_GetShiftState done [06:52:11]FM_GetShiftState done [06:52:11]opened in 1718843124 [06:52:11]opened+sec_in_day 1718929524 [06:52:11]quantity*price = 50065 [06:52:11]sum+1 = 50067 [06:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 19 20.06.2024 06:52 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103834 ФПД: 175716160195694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T065211&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103834&fm=175716160195694&tin=02508201610067®Number=0000000000092785&sum=50000 [06:52:12]StoreToDocumentArchive [06:52:12]shift 354 fd 103834 [06:52:12]save to /storage/0354/doc_00103834 [06:52:12]save last doc name /storage/0354/doc_00103834 to /storage/kkm_last_doc_name [06:52:12]save OK [06:52:12]Clear old archive folders... [06:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:52:12]tlvbuf is 0084D280 [06:52:12]SAM_PROTO_ClearQueue [06:52:12]wFMCommunicate request_size=4 [06:52:12]MH_SAM_APDU [06:52:12]CAPDU: 80 09 00 00 [06:52:12]Write to MH i2c: E2 08 00 EF 01 80 09 00 00 00 00 00 00 62 [06:52:12]Write i2c OK [06:52:12]MH_I2C_Read... [06:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:12]Read from MH i2c: E2 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 03 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [06:52:12]RAPDU: 90 00 [06:52:12]wFMCommunicate OK [06:52:12]SAM_PROTO_ClearQueue done [06:52:12]KKMCreateOFDPacket [06:52:12]OFDProtocolAddRootSTLVToBuf [06:52:12]FM_MakeSignedData [06:52:12]FM_MakeSignedData [06:52:12]SAM_PROTO_SignData [06:52:12]wFMCommunicate request_size=4 [06:52:12]MH_SAM_APDU [06:52:12]CAPDU: 80 0D 01 02 [06:52:12]Write to MH i2c: E2 08 00 F0 01 80 0D 01 02 00 00 00 00 6A [06:52:12]Write i2c OK [06:52:12]MH_I2C_Read... [06:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:12]OFD Sender: No OFD packet to send [06:52:12]Read from MH i2c: E2 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 03 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [06:52:12]RAPDU: 90 00 [06:52:12]wFMCommunicate OK [06:52:12]wFMCommunicate request_size=255 [06:52:12]MH_SAM_APDU [06:52:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B D1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9A 95 01 00 35 04 06 00 9F [06:52:12]Write to MH i2c: E2 02 01 F1 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B D1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9A 95 01 00 35 04 06 00 9F 00 00 AE [06:52:12]Write i2c OK [06:52:12]MH_I2C_Read... [06:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:12]Read from MH i2c: E2 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 03 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [06:52:12]RAPDU: 90 00 [06:52:12]wFMCommunicate OK [06:52:12]wFMCommunicate request_size=10 [06:52:12]MH_SAM_APDU [06:52:12]CAPDU: 80 0D 02 02 05 D0 1B 4F 4C 6E [06:52:12]Write to MH i2c: E2 0D 00 F2 01 80 0D 02 02 05 00 D0 1B 4F 4C 6E 00 00 6B [06:52:12]Write i2c OK [06:52:12]MH_I2C_Read... [06:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:12]Read from MH i2c: E2 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 03 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [06:52:12]RAPDU: 90 00 [06:52:12]wFMCommunicate OK [06:52:12]wFMCommunicate request_size=4 [06:52:12]MH_SAM_APDU [06:52:12]CAPDU: 80 0D 03 02 [06:52:12]Write to MH i2c: E2 08 00 F3 01 80 0D 03 02 00 00 00 00 6F [06:52:12]Write i2c OK [06:52:12]MH_I2C_Read... [06:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:12]Read from MH i2c: E2 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 0B 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 0B 00 F3 01 00 F5 C8 81 E4 F5 2E 31 94 90 00 7A [06:52:12]RAPDU: F5 C8 81 E4 F5 2E 31 94 90 00 [06:52:12]wFMCommunicate OK [06:52:12]SAM_PROTO_SignData done [06:52:12]FM_MakeSignedData done [06:52:12]CreateOFDProtocolMessage [06:52:12]wFMCommunicate request_size=4 [06:52:12]MH_SAM_APDU [06:52:12]CAPDU: 80 11 00 00 [06:52:12]Write to MH i2c: E2 08 00 F4 01 80 11 00 00 00 00 00 00 6F [06:52:12]Write i2c OK [06:52:12]MH_I2C_Read... [06:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:12]Read from MH i2c: E2 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 17 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: E2 17 00 F4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C2 [06:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:52:12]wFMCommunicate OK [06:52:12]CreateOFDProtocolMessage done [06:52:12]OFDSenderStorePacket 103834 [06:52:12]StoreOFDPacket docnum=103834 [06:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1A 32 07 01 66 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B D1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9A 95 01 00 35 04 06 00 9F D0 1B 4F 4C 6E F5 C8 81 E4 F5 2E 31 94 [06:52:12]CheckFolder [06:52:12]dirname=/storage/ofd_packets [06:52:12]CheckFolder done [06:52:12]ProducePacketName [06:52:12]name=ofd_packets/00103834 [06:52:12]NVStorageSaveData ofd_packets/00103834 [06:52:12]File name is /storage/ofd_packets/00103834 [06:52:12]Write 301 bytes [06:52:12]NVStorageSaveData done [06:52:12]OFDSenderStorePacket done [06:52:12]KKMCreateOFDPacket done [06:52:12]NVStorageSaveData kkm_last_timestamp [06:52:12]File name is /storage/kkm_last_timestamp [06:52:12]Write 4 bytes [06:52:12]NVStorageSaveData done [06:52:12]ExternCall_PrintAddStr [06:52:12]wPrintStart [06:52:12]Write to MH i2c: 01 00 00 F5 01 F6 [06:52:12]Write i2c OK [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: 01 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: 01 07 00 [06:52:12]MH_I2C_Read... [06:52:12]Read from MH i2c: 01 07 00 F5 01 00 00 00 00 00 FF 0F 0B [06:52:12]RasterBufferAndPrint [06:52:12]line Счет N : (1)673146 [06:52:12]line ИНН: 02508201610067 [06:52:12]line Контрольно-Кассовый Чек [06:52:12]line ПРОДАЖА [06:52:12]line ТРК (МРК, ГНК) : 42 [06:52:12]line Товар: 2710124130 [06:52:12]line Аи-92-К-5 [06:52:12]line 7.540 * 66.40 [06:52:12]line = 500.66 [06:52:12]line НДС 12% НСП 1% [06:52:12]line > о реализуемом товаре [06:52:12]line ОКРУГЛЕНИЕ: -0.66 [06:52:12]line ИТОГО: 500.00 [06:52:12]line Внесено: 500.00 [06:52:12]line СДАЧА: 0.00 [06:52:12]line НСП 1% : 4.43 [06:52:12]line НДС 12% : 53.17 [06:52:12]line Наличными: 500.00 [06:52:12]line Безнал.: 0.00 [06:52:12]line Место: АЗС № 120 "Партнер Нефть" [06:52:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:52:12]line СНО: Общий режим [06:52:12]line Чек 19 20.06.2024 06:52 [06:52:12]line Смена: 354 ФФД: 1.0 [06:52:12]line ЗНМ: 0300000164 [06:52:12]line РНМ: 0000000000092785 [06:52:12]line Версия ККМ: 001 [06:52:12]line ФМ: 0000000000875093 [06:52:12]line ФД: 103834 [06:52:12]line ФПД: 175716160195694 [06:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T065211&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103834&fm=175716160195694&tin=02508201610067®Number=0000000000092785&sum=50000 [06:52:13]OFD Sender: Processing packet 103834 [packets to send 17, broken 16] [06:52:13]ProducePacketName [06:52:13]name=ofd_packets/00103834 [06:52:13]OFD Sender: To server: pG, [06:52:13]CommunicateWithHost lk.salyk.kg:30040 [06:52:13]ConnectInit lk.salyk.kg [06:52:13]written 0, free lines is 4095 [06:52:13]Connected sock=10 [06:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1A 32 07 01 66 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B D1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9A 95 01 00 35 04 06 00 9F D0 1B 4F 4C 6E F5 C8 81 E4 F5 2E 31 94 [06:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DB A6 47 00 2C 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9A 95 01 00 F4 03 04 00 22 78 73 66 B6 04 01 00 00 93 4F DF 66 67 EA DD C7 [06:52:13]CommunicateWithHost err = 0 [06:52:13]CheckOFDResponse [06:52:13]1017 (14) - 77093643461234 [06:52:13]1041 (16) - 0000000000875093 [06:52:13]1040 (4) - 103834 [06:52:13]1012 (4) - 20.06.2024 00:30 [06:52:13]1206 (1) - 0 [06:52:13]OFD Sender: Remove packet 103834 [06:52:13]ProducePacketName [06:52:13]name=ofd_packets/00103834 [06:52:13]NVStorageDeleteData [06:52:13]Write to MH i2c: 01 00 00 20 02 22 [06:52:13]Write i2c OK [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: 01 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: 01 07 00 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 EB 0C 20 [06:52:13]RasterBufferAndPrint [06:52:13]line [06:52:13]line [06:52:13]line [06:52:13]line [06:52:13]line [06:52:13]written 0, free lines is 3314 [06:52:13]MH_Cut [06:52:13]Write to MH i2c: D1 01 00 27 02 01 FB [06:52:13]Write i2c OK [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: D1 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: D1 01 00 [06:52:13]MH_I2C_Read... [06:52:13]Read from MH i2c: D1 01 00 27 02 00 FA [06:52:13]Write to MH i2c: 01 00 00 28 02 2A [06:52:13]Write i2c OK [06:52:13]MH_I2C_Read... [06:52:14]OFD Sender: No OFD packet to send [06:52:14]*** Cut start [06:52:14]*** Partial cut [06:52:14]*** CUTSNS_PIN = 1 [06:52:14]*** CUTSNS_PIN = 0 [06:52:14]*** Brake cut motor [06:52:15]Read from MH i2c: 01 [06:52:15]MH_I2C_Read... [06:52:15]*** Stop cut motor [06:52:15]*** Cut end [06:52:15]Read from MH i2c: 01 07 00 [06:52:15]MH_I2C_Read... [06:52:15]Read from MH i2c: 01 07 00 28 02 00 00 00 00 00 FF 0F 3F [06:52:15]process_action close_receipt done [06:52:15]requested_data is exist [06:52:15]produce_requested_data [06:52:15]requested_item fm.sn is exist - process it [06:52:15]wFMCommunicate request_size=4 [06:52:15]MH_SAM_APDU [06:52:15]CAPDU: 80 11 00 00 [06:52:15]Write to MH i2c: E2 08 00 29 02 80 11 00 00 00 00 00 00 A5 [06:52:15]Write i2c OK [06:52:15]MH_I2C_Read... [06:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:15]Read from MH i2c: E2 [06:52:15]MH_I2C_Read... [06:52:15]Read from MH i2c: E2 17 00 [06:52:15]MH_I2C_Read... [06:52:15]Read from MH i2c: E2 17 00 29 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [06:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:52:15]wFMCommunicate OK [06:52:15]requested_item fd.num is exist - process it [06:52:15]SAM_PROTO_GetFieldsCounters [06:52:15]wFMCommunicate request_size=4 [06:52:15]MH_SAM_APDU [06:52:15]CAPDU: 80 13 00 00 [06:52:15]Write to MH i2c: E2 08 00 2A 02 80 13 00 00 00 00 00 00 A8 [06:52:15]Write i2c OK [06:52:15]MH_I2C_Read... [06:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:15]Read from MH i2c: E2 [06:52:15]MH_I2C_Read... [06:52:15]Read from MH i2c: E2 62 00 [06:52:15]MH_I2C_Read... [06:52:15]Read from MH i2c: E2 62 00 2A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9A 95 01 00 0E 04 04 00 62 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 9B [06:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9A 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:15]wFMCommunicate OK [06:52:15]SAM_PROTO_GetFieldsCounters done [06:52:15]requested_item shift.num is exist - process it [06:52:15]requested_item shift.opened is exist - process it [06:52:15]req_shift_opened [06:52:15]FM_GetShiftState [06:52:15]SAM_PROTO_GetShiftState [06:52:15]wFMCommunicate request_size=4 [06:52:15]MH_SAM_APDU [06:52:15]CAPDU: 80 13 01 00 [06:52:15]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [06:52:15]Write i2c OK [06:52:15]MH_I2C_Read... [06:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:15]Read from MH i2c: E2 [06:52:15]MH_I2C_Read... [06:52:15]Read from MH i2c: E2 0E 00 [06:52:15]MH_I2C_Read... [06:52:15]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F9 [06:52:15]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:52:15]wFMCommunicate OK [06:52:15]SAM_PROTO_GetShiftState done [06:52:15]FM_GetShiftState done [06:52:15]req_shift_opened done [06:52:15]requested_item shift.open_date is exist - process it [06:52:15]req_shift_open_date [06:52:15]req_shift_open_date done [06:52:15]produce_requested_data done [06:52:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103834,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [06:52:15]process_action_free close_receipt [06:52:15]json_value_free [06:52:15]json_value_free done [06:52:15]process_json_proto returns [06:52:15]Send response to host [06:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103834,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [06:52:15]free response buf [06:52:15]execute_script done [06:52:15]execute_script returns [06:52:15]free content buf [06:52:15]Sock 9.Close socket [06:52:15]Sock 9.Thread stoped [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:56:01]ConnectInit Can't connect to host [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:23]accept exits with 7 [06:59:23]New connection [06:59:23]New thread 3067063652 created [06:59:23]Thread 3067207012 joined [06:59:23]Waiting for new connection... [06:59:23] Sock 7.Parse request [06:59:23]Sock 7.Check first char [06:59:23]Sock 7.First char is OK [06:59:23]request: POST /json_proto HTTP/1.0 [06:59:23]Method: POST [06:59:23]URL: /json_proto [06:59:23]Method is POST - this is cgi request [06:59:23]url: /json_proto [06:59:23]query_string will be loaded in cgi processing [06:59:23]execute_cgi json_proto POST (null) [06:59:23]execute_cgi path=json_proto method=POST [06:59:23]POST find Content-Length [06:59:23]Host: 172.17.38.133:8080 [06:59:23]Content-Length: 687 [06:59:23]Content-Type: application/json [06:59:23] [06:59:23]POST finish read [06:59:23]Found Content-Length = 687 [06:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [06:59:23]execute_script... [06:59: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)673147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [06:59:23]POST & json_proto [06:59:23]process_json_proto [06:59:23]json parsed OK: [06:59:23]protocol is kg_v1.0 [06:59:23]action value=close_receipt [06:59:23]process_action close_receipt [06:59:23]cmd_close_receipt [06:59:23]MH_GetDate [06:59:23]Write to MH i2c: F0 00 00 2C 02 1D [06:59:23]Write i2c OK [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: F0 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: F0 09 00 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: F0 09 00 2C 02 00 4C D3 73 66 BD 8F 7C 64 4A [06:59:23]GetLastDocTimeStamp 1718866331 [06:59:23]current date 1718866764 [06:59:23]FM_GetShiftState [06:59:23]SAM_PROTO_GetShiftState [06:59:23]wFMCommunicate request_size=4 [06:59:23]MH_SAM_APDU [06:59:23]CAPDU: 80 13 01 00 [06:59:23]Write to MH i2c: E2 08 00 2D 02 80 13 01 00 00 00 00 00 AC [06:59:23]Write i2c OK [06:59:23]MH_I2C_Read... [06:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:23]Read from MH i2c: E2 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: E2 0E 00 [06:59:23]MH_I2C_Read... [06:59:23]Read from MH i2c: E2 0E 00 2D 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FB [06:59:23]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:59:23]wFMCommunicate OK [06:59:23]SAM_PROTO_GetShiftState done [06:59:23]FM_GetShiftState done [06:59:23]opened in 1718843124 [06:59:23]opened+sec_in_day 1718929524 [06:59:23]quantity*price = 300056 [06:59:23]sum+1 = 300057 [06:59:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 20 20.06.2024 06:59 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103835 ФПД: 234298872316757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T065924&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103835&fm=234298872316757&tin=02508201610067®Number=0000000000092785&sum=300000 [06:59:24]StoreToDocumentArchive [06:59:24]shift 354 fd 103835 [06:59:24]save to /storage/0354/doc_00103835 [06:59:24]save last doc name /storage/0354/doc_00103835 to /storage/kkm_last_doc_name [06:59:24]save OK [06:59:24]Clear old archive folders... [06:59:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:59:24]tlvbuf is 00836FE0 [06:59:24]SAM_PROTO_ClearQueue [06:59:24]wFMCommunicate request_size=4 [06:59:24]MH_SAM_APDU [06:59:24]CAPDU: 80 09 00 00 [06:59:24]Write to MH i2c: E2 08 00 3A 02 80 09 00 00 00 00 00 00 AE [06:59:24]Write i2c OK [06:59:24]MH_I2C_Read... [06:59:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:24]Read from MH i2c: E2 [06:59:24]MH_I2C_Read... [06:59:24]Read from MH i2c: E2 03 00 [06:59:24]MH_I2C_Read... [06:59:24]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [06:59:24]RAPDU: 90 00 [06:59:24]wFMCommunicate OK [06:59:24]SAM_PROTO_ClearQueue done [06:59:24]KKMCreateOFDPacket [06:59:24]OFDProtocolAddRootSTLVToBuf [06:59:24]FM_MakeSignedData [06:59:24]FM_MakeSignedData [06:59:24]SAM_PROTO_SignData [06:59:24]wFMCommunicate request_size=4 [06:59:24]MH_SAM_APDU [06:59:24]CAPDU: 80 0D 01 02 [06:59:24]Write to MH i2c: E2 08 00 3B 02 80 0D 01 02 00 00 00 00 B6 [06:59:24]Write i2c OK [06:59:24]MH_I2C_Read... [06:59:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:24]Read from MH i2c: E2 [06:59:24]MH_I2C_Read... [06:59:24]Read from MH i2c: E2 03 00 [06:59:24]MH_I2C_Read... [06:59:24]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [06:59:24]RAPDU: 90 00 [06:59:24]wFMCommunicate OK [06:59:24]wFMCommunicate request_size=255 [06:59:24]MH_SAM_APDU [06:59:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 14 00 00 00 F4 03 04 00 4C D3 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9B 95 01 00 35 04 06 00 [06:59:24]Write to MH i2c: E2 02 01 3C 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 14 00 00 00 F4 03 04 00 4C D3 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9B 95 01 00 35 04 06 00 00 00 9A [06:59:24]Write i2c OK [06:59:24]MH_I2C_Read... [06:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:25]Read from MH i2c: E2 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 03 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [06:59:25]RAPDU: 90 00 [06:59:25]wFMCommunicate OK [06:59:25]wFMCommunicate request_size=11 [06:59:25]MH_SAM_APDU [06:59:25]CAPDU: 80 0D 02 02 06 D5 17 F5 0E 43 55 [06:59:25]Write to MH i2c: E2 0E 00 3D 02 80 0D 02 02 06 00 D5 17 F5 0E 43 55 00 00 4C [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:25]Read from MH i2c: E2 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 03 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [06:59:25]RAPDU: 90 00 [06:59:25]wFMCommunicate OK [06:59:25]wFMCommunicate request_size=4 [06:59:25]MH_SAM_APDU [06:59:25]CAPDU: 80 0D 03 02 [06:59:25]Write to MH i2c: E2 08 00 3E 02 80 0D 03 02 00 00 00 00 BB [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:25]Read from MH i2c: E2 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 0B 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 0B 00 3E 02 00 E9 3E FC C1 38 11 C8 11 90 00 C2 [06:59:25]RAPDU: E9 3E FC C1 38 11 C8 11 90 00 [06:59:25]wFMCommunicate OK [06:59:25]SAM_PROTO_SignData done [06:59:25]FM_MakeSignedData done [06:59:25]CreateOFDProtocolMessage [06:59:25]wFMCommunicate request_size=4 [06:59:25]MH_SAM_APDU [06:59:25]CAPDU: 80 11 00 00 [06:59:25]Write to MH i2c: E2 08 00 3F 02 80 11 00 00 00 00 00 00 BB [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:25]Read from MH i2c: E2 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 17 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 17 00 3F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0E [06:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:59:25]wFMCommunicate OK [06:59:25]CreateOFDProtocolMessage done [06:59:25]OFDSenderStorePacket 103835 [06:59:25]StoreOFDPacket docnum=103835 [06:59:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6C CB 08 01 49 05 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 14 00 00 00 F4 03 04 00 4C D3 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9B 95 01 00 35 04 06 00 D5 17 F5 0E 43 55 E9 3E FC C1 38 11 C8 11 [06:59:25]CheckFolder [06:59:25]dirname=/storage/ofd_packets [06:59:25]CheckFolder done [06:59:25]ProducePacketName [06:59:25]name=ofd_packets/00103835 [06:59:25]NVStorageSaveData ofd_packets/00103835 [06:59:25]File name is /storage/ofd_packets/00103835 [06:59:25]Write 302 bytes [06:59:25]NVStorageSaveData done [06:59:25]OFDSenderStorePacket done [06:59:25]KKMCreateOFDPacket done [06:59:25]NVStorageSaveData kkm_last_timestamp [06:59:25]File name is /storage/kkm_last_timestamp [06:59:25]Write 4 bytes [06:59:25]NVStorageSaveData done [06:59:25]ExternCall_PrintAddStr [06:59:25]wPrintStart [06:59:25]Write to MH i2c: 01 00 00 40 02 42 [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: 01 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: 01 07 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: 01 07 00 40 02 00 00 00 00 00 FF 0F 57 [06:59:25]RasterBufferAndPrint [06:59:25]line Счет N : (1)673147 [06:59:25]line ИНН: 02508201610067 [06:59:25]line Контрольно-Кассовый Чек [06:59:25]line ПРОДАЖА [06:59:25]line ТРК (МРК, ГНК) : 21 [06:59:25]line Товар: 2710194210 [06:59:25]line ДТ(л)-К-5 [06:59:25]line 41.160 * 72.90 [06:59:25]line = 3000.56 [06:59:25]line НДС 12% НСП 1% [06:59:25]line > о реализуемом товаре [06:59:25]line ОКРУГЛЕНИЕ: -0.56 [06:59:25]line ИТОГО: 3000.00 [06:59:25]line Внесено: 3000.00 [06:59:25]line СДАЧА: 0.00 [06:59:25]line НСП 1% : 26.55 [06:59:25]line НДС 12% : 318.64 [06:59:25]line Наличными: 3000.00 [06:59:25]line Безнал.: 0.00 [06:59:25]line Место: АЗС № 120 "Партнер Нефть" [06:59:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [06:59:25]line СНО: Общий режим [06:59:25]line Чек 20 20.06.2024 06:59 [06:59:25]line Смена: 354 ФФД: 1.0 [06:59:25]line ЗНМ: 0300000164 [06:59:25]line РНМ: 0000000000092785 [06:59:25]line Версия ККМ: 001 [06:59:25]line ФМ: 0000000000875093 [06:59:25]line ФД: 103835 [06:59:25]line ФПД: 234298872316757 [06:59:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T065924&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103835&fm=234298872316757&tin=02508201610067®Number=0000000000092785&sum=300000 [06:59:25]OFD Sender: Processing packet 103835 [packets to send 17, broken 16] [06:59:25]ProducePacketName [06:59:25]name=ofd_packets/00103835 [06:59:25]OFD Sender: To server: pG, [06:59:25]CommunicateWithHost lk.salyk.kg:30040 [06:59:25]ConnectInit lk.salyk.kg [06:59:25]written 0, free lines is 4095 [06:59:25]Connected sock=10 [06:59:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 6C CB 08 01 49 05 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 14 00 00 00 F4 03 04 00 4C D3 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9B 95 01 00 35 04 06 00 D5 17 F5 0E 43 55 E9 3E FC C1 38 11 C8 11 [06:59:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 86 86 47 00 33 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9B 95 01 00 F4 03 04 00 D2 79 73 66 B6 04 01 00 00 5C 14 C1 66 06 AA 5C EB [06:59:25]CommunicateWithHost err = 0 [06:59:25]CheckOFDResponse [06:59:25]1017 (14) - 77093643461234 [06:59:25]1041 (16) - 0000000000875093 [06:59:25]1040 (4) - 103835 [06:59:25]1012 (4) - 20.06.2024 00:37 [06:59:25]1206 (1) - 0 [06:59:25]OFD Sender: Remove packet 103835 [06:59:25]ProducePacketName [06:59:25]name=ofd_packets/00103835 [06:59:25]NVStorageDeleteData [06:59:25]Write to MH i2c: 01 00 00 6B 02 6D [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: 01 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: 01 07 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 F1 0C 71 [06:59:25]RasterBufferAndPrint [06:59:25]line [06:59:25]line [06:59:25]line [06:59:25]line [06:59:25]line [06:59:25]written 0, free lines is 3319 [06:59:25]MH_Cut [06:59:25]Write to MH i2c: D1 01 00 72 02 01 46 [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: D1 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: D1 01 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: D1 01 00 72 02 00 45 [06:59:25]Write to MH i2c: 01 00 00 73 02 75 [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:26]OFD Sender: No OFD packet to send [06:59:26]*** Cut start [06:59:26]*** Partial cut [06:59:26]*** CUTSNS_PIN = 1 [06:59:26]*** CUTSNS_PIN = 0 [06:59:26]*** Brake cut motor [06:59:27]Read from MH i2c: 01 [06:59:27]MH_I2C_Read... [06:59:27]*** Stop cut motor [06:59:27]*** Cut end [06:59:27]Read from MH i2c: 01 07 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 FF 0F 8A [06:59:27]process_action close_receipt done [06:59:27]requested_data is exist [06:59:27]produce_requested_data [06:59:27]requested_item fm.sn is exist - process it [06:59:27]wFMCommunicate request_size=4 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 11 00 00 [06:59:27]Write to MH i2c: E2 08 00 74 02 80 11 00 00 00 00 00 00 F0 [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 17 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 17 00 74 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [06:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [06:59:27]wFMCommunicate OK [06:59:27]requested_item fd.num is exist - process it [06:59:27]SAM_PROTO_GetFieldsCounters [06:59:27]wFMCommunicate request_size=4 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 13 00 00 [06:59:27]Write to MH i2c: E2 08 00 75 02 80 13 00 00 00 00 00 00 F3 [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 62 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 62 00 75 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9B 95 01 00 0E 04 04 00 62 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 EA [06:59:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9B 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:59:27]wFMCommunicate OK [06:59:27]SAM_PROTO_GetFieldsCounters done [06:59:27]requested_item shift.num is exist - process it [06:59:27]requested_item shift.opened is exist - process it [06:59:27]req_shift_opened [06:59:27]FM_GetShiftState [06:59:27]SAM_PROTO_GetShiftState [06:59:27]wFMCommunicate request_size=4 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 13 01 00 [06:59:27]Write to MH i2c: E2 08 00 76 02 80 13 01 00 00 00 00 00 F5 [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 0E 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 0E 00 76 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 44 [06:59:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [06:59:27]wFMCommunicate OK [06:59:27]SAM_PROTO_GetShiftState done [06:59:27]FM_GetShiftState done [06:59:27]req_shift_opened done [06:59:27]requested_item shift.open_date is exist - process it [06:59:27]req_shift_open_date [06:59:27]req_shift_open_date done [06:59:27]produce_requested_data done [06:59:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103835,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [06:59:27]process_action_free close_receipt [06:59:27]json_value_free [06:59:27]json_value_free done [06:59:27]process_json_proto returns [06:59:27]Send response to host [06:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103835,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [06:59:27]free response buf [06:59:27]execute_script done [06:59:27]execute_script returns [06:59:27]free content buf [06:59:27]Sock 7.Close socket [06:59:27]Sock 7.Thread stoped [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [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:42]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: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:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:10]accept exits with 9 [07:37:10]New connection [07:37:10]New thread 3067207012 created [07:37:10]Thread 3067063652 joined [07:37:10]Waiting for new connection... [07:37:10] Sock 9.Parse request [07:37:10]Sock 9.Check first char [07:37:10]Sock 9.First char is OK [07:37:10]request: POST /json_proto HTTP/1.0 [07:37:10]Method: POST [07:37:10]URL: /json_proto [07:37:10]Method is POST - this is cgi request [07:37:10]url: /json_proto [07:37:10]query_string will be loaded in cgi processing [07:37:10]execute_cgi json_proto POST (null) [07:37:10]execute_cgi path=json_proto method=POST [07:37:10]POST find Content-Length [07:37:10]Host: 172.17.38.133:8080 [07:37:10]Content-Length: 682 [07:37:10]Content-Type: application/json [07:37:10] [07:37:10]POST finish read [07:37:10]Found Content-Length = 682 [07:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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:37:10]execute_script... [07:37: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)673148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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:37:10]POST & json_proto [07:37:10]process_json_proto [07:37:10]json parsed OK: [07:37:10]protocol is kg_v1.0 [07:37:10]action value=close_receipt [07:37:10]process_action close_receipt [07:37:10]cmd_close_receipt [07:37:10]MH_GetDate [07:37:10]Write to MH i2c: F0 00 00 77 02 68 [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: F0 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: F0 09 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: F0 09 00 77 02 00 27 DC 73 66 BD 8F 7C 64 79 [07:37:10]GetLastDocTimeStamp 1718866764 [07:37:10]current date 1718869031 [07:37:10]FM_GetShiftState [07:37:10]SAM_PROTO_GetShiftState [07:37:10]wFMCommunicate request_size=4 [07:37:10]MH_SAM_APDU [07:37:10]CAPDU: 80 13 01 00 [07:37:10]Write to MH i2c: E2 08 00 78 02 80 13 01 00 00 00 00 00 F7 [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:10]Read from MH i2c: E2 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: E2 0E 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: E2 0E 00 78 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 46 [07:37:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [07:37:10]wFMCommunicate OK [07:37:10]SAM_PROTO_GetShiftState done [07:37:10]FM_GetShiftState done [07:37:10]opened in 1718843124 [07:37:10]opened+sec_in_day 1718929524 [07:37:10]quantity*price = 150064 [07:37:10]sum+1 = 150065 [07:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 21 20.06.2024 07:37 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103836 ФПД: 260289798908412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T073711&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103836&fm=260289798908412&tin=02508201610067®Number=0000000000092785&sum=150000 [07:37:11]StoreToDocumentArchive [07:37:11]shift 354 fd 103836 [07:37:11]save to /storage/0354/doc_00103836 [07:37:11]save last doc name /storage/0354/doc_00103836 to /storage/kkm_last_doc_name [07:37:11]save OK [07:37:11]Clear old archive folders... [07:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:37:11]tlvbuf is 0084BBE0 [07:37:11]SAM_PROTO_ClearQueue [07:37:11]wFMCommunicate request_size=4 [07:37:11]MH_SAM_APDU [07:37:11]CAPDU: 80 09 00 00 [07:37:11]Write to MH i2c: E2 08 00 85 02 80 09 00 00 00 00 00 00 F9 [07:37:11]Write i2c OK [07:37:11]MH_I2C_Read... [07:37:11]Read from MH i2c: E2 [07:37:11]MH_I2C_Read... [07:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:11]Read from MH i2c: E2 03 00 [07:37:11]MH_I2C_Read... [07:37:11]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [07:37:11]RAPDU: 90 00 [07:37:11]wFMCommunicate OK [07:37:11]SAM_PROTO_ClearQueue done [07:37:11]KKMCreateOFDPacket [07:37:11]OFDProtocolAddRootSTLVToBuf [07:37:11]FM_MakeSignedData [07:37:11]FM_MakeSignedData [07:37:11]SAM_PROTO_SignData [07:37:11]wFMCommunicate request_size=4 [07:37:11]MH_SAM_APDU [07:37:11]CAPDU: 80 0D 01 02 [07:37:11]Write to MH i2c: E2 08 00 86 02 80 0D 01 02 00 00 00 00 01 [07:37:11]Write i2c OK [07:37:11]MH_I2C_Read... [07:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:11]Read from MH i2c: E2 [07:37:11]MH_I2C_Read... [07:37:11]Read from MH i2c: E2 03 00 [07:37:11]MH_I2C_Read... [07:37:11]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [07:37:11]RAPDU: 90 00 [07:37:11]wFMCommunicate OK [07:37:11]wFMCommunicate request_size=255 [07:37:11]MH_SAM_APDU [07:37: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 15 00 00 00 F4 03 04 00 27 DC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 95 01 00 35 04 06 00 EC [07:37:11]Write to MH i2c: E2 02 01 87 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 15 00 00 00 F4 03 04 00 27 DC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 95 01 00 35 04 06 00 EC 00 00 D1 [07:37:11]Write i2c OK [07:37:11]MH_I2C_Read... [07:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:12]Read from MH i2c: E2 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 03 00 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [07:37:12]RAPDU: 90 00 [07:37:12]wFMCommunicate OK [07:37:12]wFMCommunicate request_size=10 [07:37:12]MH_SAM_APDU [07:37:12]CAPDU: 80 0D 02 02 05 BB 71 00 A9 FC [07:37:12]Write to MH i2c: E2 0D 00 88 02 80 0D 02 02 05 00 BB 71 00 A9 FC 00 00 DF [07:37:12]Write i2c OK [07:37:12]MH_I2C_Read... [07:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:12]Read from MH i2c: E2 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 03 00 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [07:37:12]RAPDU: 90 00 [07:37:12]wFMCommunicate OK [07:37:12]wFMCommunicate request_size=4 [07:37:12]MH_SAM_APDU [07:37:12]CAPDU: 80 0D 03 02 [07:37:12]Write to MH i2c: E2 08 00 89 02 80 0D 03 02 00 00 00 00 06 [07:37:12]Write i2c OK [07:37:12]MH_I2C_Read... [07:37:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:12]Read from MH i2c: E2 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 0B 00 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 0B 00 89 02 00 F3 AA AA 46 57 65 94 CF 90 00 B3 [07:37:12]RAPDU: F3 AA AA 46 57 65 94 CF 90 00 [07:37:12]wFMCommunicate OK [07:37:12]SAM_PROTO_SignData done [07:37:12]FM_MakeSignedData done [07:37:12]CreateOFDProtocolMessage [07:37:12]wFMCommunicate request_size=4 [07:37:12]MH_SAM_APDU [07:37:12]CAPDU: 80 11 00 00 [07:37:12]Write to MH i2c: E2 08 00 8A 02 80 11 00 00 00 00 00 00 06 [07:37:12]Write i2c OK [07:37:12]MH_I2C_Read... [07:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:12]Read from MH i2c: E2 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 17 00 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 17 00 8A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 59 [07:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:37:12]wFMCommunicate OK [07:37:12]CreateOFDProtocolMessage done [07:37:12]OFDSenderStorePacket 103836 [07:37:12]StoreOFDPacket docnum=103836 [07:37:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DC 1C 07 01 AD 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 15 00 00 00 F4 03 04 00 27 DC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 95 01 00 35 04 06 00 EC BB 71 00 A9 FC F3 AA AA 46 57 65 94 CF [07:37:12]CheckFolder [07:37:12]dirname=/storage/ofd_packets [07:37:12]CheckFolder done [07:37:12]ProducePacketName [07:37:12]name=ofd_packets/00103836 [07:37:12]NVStorageSaveData ofd_packets/00103836 [07:37:12]File name is /storage/ofd_packets/00103836 [07:37:12]Write 301 bytes [07:37:12]NVStorageSaveData done [07:37:12]OFDSenderStorePacket done [07:37:12]KKMCreateOFDPacket done [07:37:12]NVStorageSaveData kkm_last_timestamp [07:37:12]File name is /storage/kkm_last_timestamp [07:37:12]Write 4 bytes [07:37:12]NVStorageSaveData done [07:37:12]ExternCall_PrintAddStr [07:37:12]wPrintStart [07:37:12]Write to MH i2c: 01 00 00 8B 02 8D [07:37:12]Write i2c OK [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: 01 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: 01 07 00 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: 01 07 00 8B 02 00 00 00 00 00 FF 0F A2 [07:37:12]RasterBufferAndPrint [07:37:12]line Счет N : (1)673148 [07:37:12]line ИНН: 02508201610067 [07:37:12]line Контрольно-Кассовый Чек [07:37:12]line ПРОДАЖА [07:37:12]line ТРК (МРК, ГНК) : 32 [07:37:12]line Товар: 2710124130 [07:37:12]line Аи-92-К-5 [07:37:12]line 22.600 * 66.40 [07:37:12]line = 1500.64 [07:37:12]line НДС 12% НСП 1% [07:37:12]line > о реализуемом товаре [07:37:12]line ОКРУГЛЕНИЕ: -0.64 [07:37:12]line ИТОГО: 1500.00 [07:37:12]line Внесено: 1500.00 [07:37:12]line СДАЧА: 0.00 [07:37:12]line НСП 1% : 13.28 [07:37:12]line НДС 12% : 159.36 [07:37:12]line Наличными: 1500.00 [07:37:12]line Безнал.: 0.00 [07:37:12]line Место: АЗС № 120 "Партнер Нефть" [07:37:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:37:12]line СНО: Общий режим [07:37:12]line Чек 21 20.06.2024 07:37 [07:37:12]line Смена: 354 ФФД: 1.0 [07:37:12]line ЗНМ: 0300000164 [07:37:12]line РНМ: 0000000000092785 [07:37:12]line Версия ККМ: 001 [07:37:12]line ФМ: 0000000000875093 [07:37:12]line ФД: 103836 [07:37:12]line ФПД: 260289798908412 [07:37:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T073711&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103836&fm=260289798908412&tin=02508201610067®Number=0000000000092785&sum=150000 [07:37:12]OFD Sender: Processing packet 103836 [packets to send 17, broken 16] [07:37:12]ProducePacketName [07:37:12]name=ofd_packets/00103836 [07:37:12]OFD Sender: To server: pG, [07:37:12]CommunicateWithHost lk.salyk.kg:30040 [07:37:12]ConnectInit lk.salyk.kg [07:37:12]written 0, free lines is 4095 [07:37:12]Connected sock=10 [07:37:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DC 1C 07 01 AD 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 15 00 00 00 F4 03 04 00 27 DC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 95 01 00 35 04 06 00 EC BB 71 00 A9 FC F3 AA AA 46 57 65 94 CF [07:37:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B6 8C 47 00 FB 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9C 95 01 00 F4 03 04 00 AD 82 73 66 B6 04 01 00 00 26 DB 17 D5 F2 96 16 59 [07:37:13]CommunicateWithHost err = 0 [07:37:13]CheckOFDResponse [07:37:13]1017 (14) - 77093643461234 [07:37:13]1041 (16) - 0000000000875093 [07:37:13]1040 (4) - 103836 [07:37:13]1012 (4) - 20.06.2024 01:15 [07:37:13]1206 (1) - 0 [07:37:13]OFD Sender: Remove packet 103836 [07:37:13]ProducePacketName [07:37:13]name=ofd_packets/00103836 [07:37:13]NVStorageDeleteData [07:37:13]Write to MH i2c: 01 00 00 B6 02 B8 [07:37:13]Write i2c OK [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: 01 [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: 01 07 00 [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 DC 0C A7 [07:37:13]RasterBufferAndPrint [07:37:13]line [07:37:13]line [07:37:13]line [07:37:13]line [07:37:13]line [07:37:13]written 0, free lines is 3298 [07:37:13]MH_Cut [07:37:13]Write to MH i2c: D1 01 00 BD 02 01 91 [07:37:13]Write i2c OK [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: D1 [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: D1 01 00 [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: D1 01 00 BD 02 00 90 [07:37:13]Write to MH i2c: 01 00 00 BE 02 C0 [07:37:13]Write i2c OK [07:37:13]MH_I2C_Read... [07:37:13]OFD Sender: No OFD packet to send [07:37:13]*** Cut start [07:37:13]*** Partial cut [07:37:13]*** CUTSNS_PIN = 1 [07:37:13]*** CUTSNS_PIN = 0 [07:37:14]*** Brake cut motor [07:37:14]Read from MH i2c: 01 [07:37:14]MH_I2C_Read... [07:37:14]*** Stop cut motor [07:37:14]*** Cut end [07:37:14]Read from MH i2c: 01 07 00 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 FF 0F D5 [07:37:14]process_action close_receipt done [07:37:14]requested_data is exist [07:37:14]produce_requested_data [07:37:14]requested_item fm.sn is exist - process it [07:37:14]wFMCommunicate request_size=4 [07:37:14]MH_SAM_APDU [07:37:14]CAPDU: 80 11 00 00 [07:37:14]Write to MH i2c: E2 08 00 BF 02 80 11 00 00 00 00 00 00 3B [07:37:14]Write i2c OK [07:37:14]MH_I2C_Read... [07:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:14]Read from MH i2c: E2 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 17 00 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 17 00 BF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8E [07:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:37:14]wFMCommunicate OK [07:37:14]requested_item fd.num is exist - process it [07:37:14]SAM_PROTO_GetFieldsCounters [07:37:14]wFMCommunicate request_size=4 [07:37:14]MH_SAM_APDU [07:37:14]CAPDU: 80 13 00 00 [07:37:14]Write to MH i2c: E2 08 00 C0 02 80 13 00 00 00 00 00 00 3E [07:37:14]Write i2c OK [07:37:14]MH_I2C_Read... [07:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:14]Read from MH i2c: E2 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 62 00 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 62 00 C0 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9C 95 01 00 0E 04 04 00 62 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 39 [07:37:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9C 95 01 00 0E 04 04 00 62 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 [07:37:14]wFMCommunicate OK [07:37:14]SAM_PROTO_GetFieldsCounters done [07:37:14]requested_item shift.num is exist - process it [07:37:14]requested_item shift.opened is exist - process it [07:37:14]req_shift_opened [07:37:14]FM_GetShiftState [07:37:14]SAM_PROTO_GetShiftState [07:37:14]wFMCommunicate request_size=4 [07:37:14]MH_SAM_APDU [07:37:14]CAPDU: 80 13 01 00 [07:37:14]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [07:37:14]Write i2c OK [07:37:14]MH_I2C_Read... [07:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:14]Read from MH i2c: E2 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 0E 00 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8F [07:37:14]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [07:37:14]wFMCommunicate OK [07:37:14]SAM_PROTO_GetShiftState done [07:37:14]FM_GetShiftState done [07:37:14]req_shift_opened done [07:37:14]requested_item shift.open_date is exist - process it [07:37:14]req_shift_open_date [07:37:14]req_shift_open_date done [07:37:14]produce_requested_data done [07:37:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103836,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [07:37:14]process_action_free close_receipt [07:37:14]json_value_free [07:37:14]json_value_free done [07:37:14]process_json_proto returns [07:37:14]Send response to host [07:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103836,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [07:37:14]free response buf [07:37:14]execute_script done [07:37:14]execute_script returns [07:37:14]free content buf [07:37:14]Sock 9.Close socket [07:37:14]Sock 9.Thread stoped [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:41]accept exits with 7 [07:41:41]New connection [07:41:41]New thread 3067063652 created [07:41:41]Thread 3067207012 joined [07:41:41]Waiting for new connection... [07:41:41] Sock 7.Parse request [07:41:41]Sock 7.Check first char [07:41:41]Sock 7.First char is OK [07:41:41]request: POST /json_proto HTTP/1.0 [07:41:41]Method: POST [07:41:41]URL: /json_proto [07:41:41]Method is POST - this is cgi request [07:41:41]url: /json_proto [07:41:41]query_string will be loaded in cgi processing [07:41:41]execute_cgi json_proto POST (null) [07:41:41]execute_cgi path=json_proto method=POST [07:41:41]POST find Content-Length [07:41:41]Host: 172.17.38.133:8080 [07:41:41]Content-Length: 687 [07:41:41]Content-Type: application/json [07:41:41] [07:41:41]POST finish read [07:41:41]Found Content-Length = 687 [07:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:41]execute_script... [07:41: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)673149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:41]POST & json_proto [07:41:41]process_json_proto [07:41:41]json parsed OK: [07:41:41]protocol is kg_v1.0 [07:41:41]action value=close_receipt [07:41:41]process_action close_receipt [07:41:41]cmd_close_receipt [07:41:41]MH_GetDate [07:41:41]Write to MH i2c: F0 00 00 C2 02 B3 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: F0 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: F0 09 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: F0 09 00 C2 02 00 36 DD 73 66 BD 8F 7C 64 D4 [07:41:41]GetLastDocTimeStamp 1718869031 [07:41:41]current date 1718869302 [07:41:41]FM_GetShiftState [07:41:41]SAM_PROTO_GetShiftState [07:41:41]wFMCommunicate request_size=4 [07:41:41]MH_SAM_APDU [07:41:41]CAPDU: 80 13 01 00 [07:41:41]Write to MH i2c: E2 08 00 C3 02 80 13 01 00 00 00 00 00 42 [07:41:41]Write i2c OK [07:41:41]MH_I2C_Read... [07:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:41]Read from MH i2c: E2 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 0E 00 [07:41:41]MH_I2C_Read... [07:41:41]Read from MH i2c: E2 0E 00 C3 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 91 [07:41:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [07:41:41]wFMCommunicate OK [07:41:41]SAM_PROTO_GetShiftState done [07:41:41]FM_GetShiftState done [07:41:41]opened in 1718843124 [07:41:41]opened+sec_in_day 1718929524 [07:41:41]quantity*price = 100018 [07:41:41]sum+1 = 100020 [07:41:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 22 20.06.2024 07:41 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103837 ФПД: 155537109585726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T074142&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103837&fm=155537109585726&tin=02508201610067®Number=0000000000092785&sum=100000 [07:41:42]StoreToDocumentArchive [07:41:42]shift 354 fd 103837 [07:41:42]save to /storage/0354/doc_00103837 [07:41:42]save last doc name /storage/0354/doc_00103837 to /storage/kkm_last_doc_name [07:41:42]save OK [07:41:42]Clear old archive folders... [07:41:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:41:42]tlvbuf is 0084D820 [07:41:42]SAM_PROTO_ClearQueue [07:41:42]wFMCommunicate request_size=4 [07:41:42]MH_SAM_APDU [07:41:42]CAPDU: 80 09 00 00 [07:41:42]Write to MH i2c: E2 08 00 D0 02 80 09 00 00 00 00 00 00 44 [07:41:42]Write i2c OK [07:41:42]MH_I2C_Read... [07:41:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:42]Read from MH i2c: E2 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: E2 03 00 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [07:41:42]RAPDU: 90 00 [07:41:42]wFMCommunicate OK [07:41:42]SAM_PROTO_ClearQueue done [07:41:42]KKMCreateOFDPacket [07:41:42]OFDProtocolAddRootSTLVToBuf [07:41:42]FM_MakeSignedData [07:41:42]FM_MakeSignedData [07:41:42]SAM_PROTO_SignData [07:41:42]wFMCommunicate request_size=4 [07:41:42]MH_SAM_APDU [07:41:42]CAPDU: 80 0D 01 02 [07:41:42]Write to MH i2c: E2 08 00 D1 02 80 0D 01 02 00 00 00 00 4C [07:41:42]Write i2c OK [07:41:42]MH_I2C_Read... [07:41:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:42]Read from MH i2c: E2 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: E2 03 00 [07:41:42]MH_I2C_Read... [07:41:42]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [07:41:42]RAPDU: 90 00 [07:41:42]wFMCommunicate OK [07:41:42]wFMCommunicate request_size=255 [07:41:42]MH_SAM_APDU [07:41:42]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 16 00 00 00 F4 03 04 00 36 DD 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 95 01 00 35 04 06 00 [07:41:42]Write to MH i2c: E2 02 01 D2 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 16 00 00 00 F4 03 04 00 36 DD 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 95 01 00 35 04 06 00 00 00 38 [07:41:42]Write i2c OK [07:41:42]MH_I2C_Read... [07:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:43]Read from MH i2c: E2 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 03 00 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [07:41:43]RAPDU: 90 00 [07:41:43]wFMCommunicate OK [07:41:43]wFMCommunicate request_size=11 [07:41:43]MH_SAM_APDU [07:41:43]CAPDU: 80 0D 02 02 06 8D 75 CE 2A 8F 3E [07:41:43]Write to MH i2c: E2 0E 00 D3 02 80 0D 02 02 06 00 8D 75 CE 2A 8F 3E 00 00 22 [07:41:43]Write i2c OK [07:41:43]MH_I2C_Read... [07:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:43]Read from MH i2c: E2 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 03 00 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [07:41:43]RAPDU: 90 00 [07:41:43]wFMCommunicate OK [07:41:43]wFMCommunicate request_size=4 [07:41:43]MH_SAM_APDU [07:41:43]CAPDU: 80 0D 03 02 [07:41:43]Write to MH i2c: E2 08 00 D4 02 80 0D 03 02 00 00 00 00 51 [07:41:43]Write i2c OK [07:41:43]MH_I2C_Read... [07:41:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:43]Read from MH i2c: E2 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 0B 00 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 0B 00 D4 02 00 EE 96 50 1D 01 7C 5A 3E 90 00 58 [07:41:43]RAPDU: EE 96 50 1D 01 7C 5A 3E 90 00 [07:41:43]wFMCommunicate OK [07:41:43]SAM_PROTO_SignData done [07:41:43]FM_MakeSignedData done [07:41:43]CreateOFDProtocolMessage [07:41:43]wFMCommunicate request_size=4 [07:41:43]MH_SAM_APDU [07:41:43]CAPDU: 80 11 00 00 [07:41:43]Write to MH i2c: E2 08 00 D5 02 80 11 00 00 00 00 00 00 51 [07:41:43]Write i2c OK [07:41:43]MH_I2C_Read... [07:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:43]Read from MH i2c: E2 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 17 00 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: E2 17 00 D5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [07:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:41:43]wFMCommunicate OK [07:41:43]CreateOFDProtocolMessage done [07:41:43]OFDSenderStorePacket 103837 [07:41:43]StoreOFDPacket docnum=103837 [07:41:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 50 5B 08 01 86 EA 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 16 00 00 00 F4 03 04 00 36 DD 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 95 01 00 35 04 06 00 8D 75 CE 2A 8F 3E EE 96 50 1D 01 7C 5A 3E [07:41:43]CheckFolder [07:41:43]dirname=/storage/ofd_packets [07:41:43]CheckFolder done [07:41:43]ProducePacketName [07:41:43]name=ofd_packets/00103837 [07:41:43]NVStorageSaveData ofd_packets/00103837 [07:41:43]File name is /storage/ofd_packets/00103837 [07:41:43]Write 302 bytes [07:41:43]NVStorageSaveData done [07:41:43]OFDSenderStorePacket done [07:41:43]KKMCreateOFDPacket done [07:41:43]NVStorageSaveData kkm_last_timestamp [07:41:43]File name is /storage/kkm_last_timestamp [07:41:43]Write 4 bytes [07:41:43]NVStorageSaveData done [07:41:43]ExternCall_PrintAddStr [07:41:43]wPrintStart [07:41:43]Write to MH i2c: 01 00 00 D6 02 D8 [07:41:43]OFD Sender: Processing packet 103837 [packets to send 17, broken 16] [07:41:43]ProducePacketName [07:41:43]name=ofd_packets/00103837 [07:41:43]OFD Sender: To server: pG, [07:41:43]CommunicateWithHost lk.salyk.kg:30040 [07:41:43]ConnectInit lk.salyk.kg [07:41:43]Write i2c OK [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: 01 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: 01 07 00 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: 01 07 00 D6 02 00 00 00 00 00 FF 0F ED [07:41:43]RasterBufferAndPrint [07:41:43]line Счет N : (1)673149 [07:41:43]line ИНН: 02508201610067 [07:41:43]line Контрольно-Кассовый Чек [07:41:43]line ПРОДАЖА [07:41:43]line ТРК (МРК, ГНК) : 21 [07:41:43]line Товар: 2710194210 [07:41:43]line ДТ(л)-К-5 [07:41:43]line 13.720 * 72.90 [07:41:43]line = 1000.19 [07:41:43]line НДС 12% НСП 1% [07:41:43]line > о реализуемом товаре [07:41:43]line ОКРУГЛЕНИЕ: -0.19 [07:41:43]line ИТОГО: 1000.00 [07:41:43]line Внесено: 1000.00 [07:41:43]line СДАЧА: 0.00 [07:41:43]line НСП 1% : 8.85 [07:41:43]line НДС 12% : 106.21 [07:41:43]line Наличными: 1000.00 [07:41:43]line Безнал.: 0.00 [07:41:43]line Место: АЗС № 120 "Партнер Нефть" [07:41:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:41:43]line СНО: Общий режим [07:41:43]line Чек 22 20.06.2024 07:41 [07:41:43]line Смена: 354 ФФД: 1.0 [07:41:43]line ЗНМ: 0300000164 [07:41:43]line РНМ: 0000000000092785 [07:41:43]line Версия ККМ: 001 [07:41:43]line ФМ: 0000000000875093 [07:41:43]line ФД: 103837 [07:41:43]line ФПД: 155537109585726 [07:41:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T074142&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103837&fm=155537109585726&tin=02508201610067®Number=0000000000092785&sum=100000 [07:41:43]Connected sock=10 [07:41:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 50 5B 08 01 86 EA 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 16 00 00 00 F4 03 04 00 36 DD 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9D 95 01 00 35 04 06 00 8D 75 CE 2A 8F 3E EE 96 50 1D 01 7C 5A 3E [07:41:43]written 0, free lines is 4095 [07:41:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C0 78 47 00 49 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 35 30 39 33 10 04 04 00 9D 95 01 00 F4 03 04 00 BC 83 73 66 B6 04 01 00 00 D1 8E 70 53 E1 07 1F 97 [07:41:43]CommunicateWithHost err = 0 [07:41:43]CheckOFDResponse [07:41:43]1017 (14) - 77093643461234 [07:41:43]1041 (16) - 0000000000875093 [07:41:43]1040 (4) - 103837 [07:41:43]1012 (4) - 20.06.2024 01:19 [07:41:43]1206 (1) - 0 [07:41:43]OFD Sender: Remove packet 103837 [07:41:43]ProducePacketName [07:41:43]name=ofd_packets/00103837 [07:41:43]NVStorageDeleteData [07:41:43]Write to MH i2c: 01 00 00 01 03 04 [07:41:43]Write i2c OK [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: 01 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: 01 07 00 [07:41:43]MH_I2C_Read... [07:41:43]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 D0 0C E7 [07:41:43]RasterBufferAndPrint [07:41:43]line [07:41:43]line [07:41:43]line [07:41:43]line [07:41:43]line [07:41:44]written 0, free lines is 3288 [07:41:44]MH_Cut [07:41:44]Write to MH i2c: D1 01 00 08 03 01 DD [07:41:44]Write i2c OK [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: D1 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: D1 01 00 [07:41:44]MH_I2C_Read... [07:41:44]Read from MH i2c: D1 01 00 08 03 00 DC [07:41:44]Write to MH i2c: 01 00 00 09 03 0C [07:41:44]Write i2c OK [07:41:44]MH_I2C_Read... [07:41:44]OFD Sender: No OFD packet to send [07:41:44]*** Cut start [07:41:44]*** Partial cut [07:41:44]*** CUTSNS_PIN = 1 [07:41:44]*** CUTSNS_PIN = 0 [07:41:45]*** Brake cut motor [07:41:45]Read from MH i2c: 01 [07:41:45]MH_I2C_Read... [07:41:45]*** Stop cut motor [07:41:45]*** Cut end [07:41:45]Read from MH i2c: 01 07 00 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: 01 07 00 09 03 00 00 00 00 00 FF 0F 21 [07:41:45]process_action close_receipt done [07:41:45]requested_data is exist [07:41:45]produce_requested_data [07:41:45]requested_item fm.sn is exist - process it [07:41:45]wFMCommunicate request_size=4 [07:41:45]MH_SAM_APDU [07:41:45]CAPDU: 80 11 00 00 [07:41:45]Write to MH i2c: E2 08 00 0A 03 80 11 00 00 00 00 00 00 87 [07:41:45]Write i2c OK [07:41:45]MH_I2C_Read... [07:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:45]Read from MH i2c: E2 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 17 00 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 17 00 0A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [07:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:41:45]wFMCommunicate OK [07:41:45]requested_item fd.num is exist - process it [07:41:45]SAM_PROTO_GetFieldsCounters [07:41:45]wFMCommunicate request_size=4 [07:41:45]MH_SAM_APDU [07:41:45]CAPDU: 80 13 00 00 [07:41:45]Write to MH i2c: E2 08 00 0B 03 80 13 00 00 00 00 00 00 8A [07:41:45]Write i2c OK [07:41:45]MH_I2C_Read... [07:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:45]Read from MH i2c: E2 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 62 00 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 62 00 0B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9D 95 01 00 0E 04 04 00 62 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 89 [07:41:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9D 95 01 00 0E 04 04 00 62 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 [07:41:45]wFMCommunicate OK [07:41:45]SAM_PROTO_GetFieldsCounters done [07:41:45]requested_item shift.num is exist - process it [07:41:45]requested_item shift.opened is exist - process it [07:41:45]req_shift_opened [07:41:45]FM_GetShiftState [07:41:45]SAM_PROTO_GetShiftState [07:41:45]wFMCommunicate request_size=4 [07:41:45]MH_SAM_APDU [07:41:45]CAPDU: 80 13 01 00 [07:41:45]Write to MH i2c: E2 08 00 0C 03 80 13 01 00 00 00 00 00 8C [07:41:45]Write i2c OK [07:41:45]MH_I2C_Read... [07:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:45]Read from MH i2c: E2 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 0E 00 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 0E 00 0C 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DB [07:41:45]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [07:41:45]wFMCommunicate OK [07:41:45]SAM_PROTO_GetShiftState done [07:41:45]FM_GetShiftState done [07:41:45]req_shift_opened done [07:41:45]requested_item shift.open_date is exist - process it [07:41:45]req_shift_open_date [07:41:45]req_shift_open_date done [07:41:45]produce_requested_data done [07:41:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103837,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [07:41:45]process_action_free close_receipt [07:41:45]json_value_free [07:41:45]json_value_free done [07:41:45]process_json_proto returns [07:41:45]Send response to host [07:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103837,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [07:41:45]free response buf [07:41:45]execute_script done [07:41:45]execute_script returns [07:41:45]free content buf [07:41:45]Sock 7.Close socket [07:41:45]Sock 7.Thread stoped [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:44]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]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:39]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:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:31]accept exits with 9 [07:57:31]New connection [07:57:31]New thread 3067207012 created [07:57:31]Thread 3067063652 joined [07:57:31]Waiting for new connection... [07:57:31] Sock 9.Parse request [07:57:31]Sock 9.Check first char [07:57:31]Sock 9.First char is OK [07:57:31]request: POST /json_proto HTTP/1.0 [07:57:31]Method: POST [07:57:31]URL: /json_proto [07:57:31]Method is POST - this is cgi request [07:57:31]url: /json_proto [07:57:31]query_string will be loaded in cgi processing [07:57:31]execute_cgi json_proto POST (null) [07:57:31]execute_cgi path=json_proto method=POST [07:57:31]POST find Content-Length [07:57:31]Host: 172.17.38.133:8080 [07:57:31]Content-Length: 682 [07:57:31]Content-Type: application/json [07:57:31] [07:57:31]POST finish read [07:57:31]Found Content-Length = 682 [07:57:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:31]execute_script... [07:57: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)673151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:31]POST & json_proto [07:57:31]process_json_proto [07:57:31]json parsed OK: [07:57:31]protocol is kg_v1.0 [07:57:31]action value=close_receipt [07:57:31]process_action close_receipt [07:57:31]cmd_close_receipt [07:57:31]MH_GetDate [07:57:31]Write to MH i2c: F0 00 00 0D 03 FF [07:57:31]Write i2c OK [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: F0 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: F0 09 00 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: F0 09 00 0D 03 00 EB E0 73 66 BD 8F 7C 64 D8 [07:57:31]GetLastDocTimeStamp 1718869302 [07:57:31]current date 1718870251 [07:57:31]FM_GetShiftState [07:57:31]SAM_PROTO_GetShiftState [07:57:31]wFMCommunicate request_size=4 [07:57:31]MH_SAM_APDU [07:57:31]CAPDU: 80 13 01 00 [07:57:31]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [07:57:31]Write i2c OK [07:57:31]MH_I2C_Read... [07:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:31]Read from MH i2c: E2 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: E2 0E 00 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DD [07:57:31]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [07:57:31]wFMCommunicate OK [07:57:31]SAM_PROTO_GetShiftState done [07:57:31]FM_GetShiftState done [07:57:31]opened in 1718843124 [07:57:31]opened+sec_in_day 1718929524 [07:57:31]quantity*price = 100064 [07:57:31]sum+1 = 100066 [07:57:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 23 20.06.2024 07:57 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103838 ФПД: 133880722308133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T075731&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103838&fm=133880722308133&tin=02508201610067®Number=0000000000092785&sum=100000 [07:57:32]StoreToDocumentArchive [07:57:32]shift 354 fd 103838 [07:57:32]save to /storage/0354/doc_00103838 [07:57:32]save last doc name /storage/0354/doc_00103838 to /storage/kkm_last_doc_name [07:57:32]save OK [07:57:32]Clear old archive folders... [07:57:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:32]tlvbuf is 008187F0 [07:57:32]SAM_PROTO_ClearQueue [07:57:32]wFMCommunicate request_size=4 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 09 00 00 [07:57:32]Write to MH i2c: E2 08 00 1B 03 80 09 00 00 00 00 00 00 90 [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:32]Read from MH i2c: E2 03 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [07:57:32]RAPDU: 90 00 [07:57:32]wFMCommunicate OK [07:57:32]SAM_PROTO_ClearQueue done [07:57:32]KKMCreateOFDPacket [07:57:32]OFDProtocolAddRootSTLVToBuf [07:57:32]FM_MakeSignedData [07:57:32]FM_MakeSignedData [07:57:32]SAM_PROTO_SignData [07:57:32]wFMCommunicate request_size=4 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 0D 01 02 [07:57:32]Write to MH i2c: E2 08 00 1C 03 80 0D 01 02 00 00 00 00 98 [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [07:57:32]RAPDU: 90 00 [07:57:32]wFMCommunicate OK [07:57:32]wFMCommunicate request_size=255 [07:57:32]MH_SAM_APDU [07:57: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 EB E0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 95 01 00 35 04 06 00 79 [07:57:32]Write to MH i2c: E2 02 01 1D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 EB E0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 95 01 00 35 04 06 00 79 00 00 6D [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [07:57:32]RAPDU: 90 00 [07:57:32]wFMCommunicate OK [07:57:32]wFMCommunicate request_size=10 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 0D 02 02 05 C3 88 E5 3C 25 [07:57:32]Write to MH i2c: E2 0D 00 1E 03 80 0D 02 02 05 00 C3 88 E5 3C 25 00 00 36 [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [07:57:32]RAPDU: 90 00 [07:57:32]wFMCommunicate OK [07:57:32]wFMCommunicate request_size=4 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 0D 03 02 [07:57:32]Write to MH i2c: E2 08 00 1F 03 80 0D 03 02 00 00 00 00 9D [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 0B 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 0B 00 1F 03 00 E1 BE EC F6 15 AE 59 C9 90 00 04 [07:57:32]RAPDU: E1 BE EC F6 15 AE 59 C9 90 00 [07:57:32]wFMCommunicate OK [07:57:32]SAM_PROTO_SignData done [07:57:32]FM_MakeSignedData done [07:57:32]CreateOFDProtocolMessage [07:57:32]wFMCommunicate request_size=4 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 11 00 00 [07:57:32]Write to MH i2c: E2 08 00 20 03 80 11 00 00 00 00 00 00 9D [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 17 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 17 00 20 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [07:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:57:32]wFMCommunicate OK [07:57:32]CreateOFDProtocolMessage done [07:57:32]OFDSenderStorePacket 103838 [07:57:32]StoreOFDPacket docnum=103838 [07:57:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E2 B4 07 01 DF AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 EB E0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 95 01 00 35 04 06 00 79 C3 88 E5 3C 25 E1 BE EC F6 15 AE 59 C9 [07:57:32]CheckFolder [07:57:32]dirname=/storage/ofd_packets [07:57:32]CheckFolder done [07:57:32]ProducePacketName [07:57:32]name=ofd_packets/00103838 [07:57:32]NVStorageSaveData ofd_packets/00103838 [07:57:32]File name is /storage/ofd_packets/00103838 [07:57:32]Write 301 bytes [07:57:32]NVStorageSaveData done [07:57:32]OFDSenderStorePacket done [07:57:32]KKMCreateOFDPacket done [07:57:32]NVStorageSaveData kkm_last_timestamp [07:57:32]File name is /storage/kkm_last_timestamp [07:57:32]Write 4 bytes [07:57:32]NVStorageSaveData done [07:57:32]ExternCall_PrintAddStr [07:57:32]wPrintStart [07:57:32]Write to MH i2c: 01 00 00 21 03 24 [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: 01 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: 01 07 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: 01 07 00 21 03 00 00 00 00 00 FF 0F 39 [07:57:32]RasterBufferAndPrint [07:57:32]line Счет N : (1)673151 [07:57:32]line ИНН: 02508201610067 [07:57:32]line Контрольно-Кассовый Чек [07:57:32]line ПРОДАЖА [07:57:32]line ТРК (МРК, ГНК) : 32 [07:57:32]line Товар: 2710124130 [07:57:32]line Аи-92-К-5 [07:57:32]line 15.070 * 66.40 [07:57:32]line = 1000.65 [07:57:32]line НДС 12% НСП 1% [07:57:32]line > о реализуемом товаре [07:57:32]line ОКРУГЛЕНИЕ: -0.65 [07:57:32]line ИТОГО: 1000.00 [07:57:32]line Внесено: 1000.00 [07:57:32]line СДАЧА: 0.00 [07:57:32]line НСП 1% : 8.85 [07:57:32]line НДС 12% : 106.26 [07:57:32]line Наличными: 1000.00 [07:57:32]line Безнал.: 0.00 [07:57:32]line Место: АЗС № 120 "Партнер Нефть" [07:57:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:57:32]line СНО: Общий режим [07:57:32]line Чек 23 20.06.2024 07:57 [07:57:32]line Смена: 354 ФФД: 1.0 [07:57:32]line ЗНМ: 0300000164 [07:57:32]line РНМ: 0000000000092785 [07:57:32]line Версия ККМ: 001 [07:57:32]line ФМ: 0000000000875093 [07:57:32]line ФД: 103838 [07:57:32]line ФПД: 133880722308133 [07:57:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T075731&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103838&fm=133880722308133&tin=02508201610067®Number=0000000000092785&sum=100000 [07:57:33]OFD Sender: Processing packet 103838 [packets to send 17, broken 16] [07:57:33]ProducePacketName [07:57:33]name=ofd_packets/00103838 [07:57:33]OFD Sender: To server: pG, [07:57:33]CommunicateWithHost lk.salyk.kg:30040 [07:57:33]ConnectInit lk.salyk.kg [07:57:33]written 0, free lines is 4095 [07:57:33]Connected sock=10 [07:57:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E2 B4 07 01 DF AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 EB E0 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 95 01 00 35 04 06 00 79 C3 88 E5 3C 25 E1 BE EC F6 15 AE 59 C9 [07:57:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 EC 9B 47 00 3B D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9E 95 01 00 F4 03 04 00 72 87 73 66 B6 04 01 00 00 8A 91 DE B5 B5 56 37 13 [07:57:33]CommunicateWithHost err = 0 [07:57:33]CheckOFDResponse [07:57:33]1017 (14) - 77093643461234 [07:57:33]1041 (16) - 0000000000875093 [07:57:33]1040 (4) - 103838 [07:57:33]1012 (4) - 20.06.2024 01:35 [07:57:33]1206 (1) - 0 [07:57:33]OFD Sender: Remove packet 103838 [07:57:33]ProducePacketName [07:57:33]name=ofd_packets/00103838 [07:57:33]NVStorageDeleteData [07:57:33]Write to MH i2c: 01 00 00 4C 03 4F [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: 01 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: 01 07 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 DD 0C 3F [07:57:33]RasterBufferAndPrint [07:57:33]line [07:57:33]line [07:57:33]line [07:57:33]line [07:57:33]line [07:57:33]written 0, free lines is 3299 [07:57:33]MH_Cut [07:57:33]Write to MH i2c: D1 01 00 53 03 01 28 [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: D1 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: D1 01 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: D1 01 00 53 03 00 27 [07:57:33]Write to MH i2c: 01 00 00 54 03 57 [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:33]OFD Sender: No OFD packet to send [07:57:34]*** Cut start [07:57:34]*** Partial cut [07:57:34]*** CUTSNS_PIN = 1 [07:57:34]*** CUTSNS_PIN = 0 [07:57:34]*** Brake cut motor [07:57:34]Read from MH i2c: 01 [07:57:34]MH_I2C_Read... [07:57:34]*** Stop cut motor [07:57:34]*** Cut end [07:57:34]Read from MH i2c: 01 07 00 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 FF 0F 6C [07:57:34]process_action close_receipt done [07:57:34]requested_data is exist [07:57:34]produce_requested_data [07:57:34]requested_item fm.sn is exist - process it [07:57:34]wFMCommunicate request_size=4 [07:57:34]MH_SAM_APDU [07:57:34]CAPDU: 80 11 00 00 [07:57:34]Write to MH i2c: E2 08 00 55 03 80 11 00 00 00 00 00 00 D2 [07:57:34]Write i2c OK [07:57:34]MH_I2C_Read... [07:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:34]Read from MH i2c: E2 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 17 00 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 17 00 55 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 25 [07:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:57:34]wFMCommunicate OK [07:57:34]requested_item fd.num is exist - process it [07:57:34]SAM_PROTO_GetFieldsCounters [07:57:34]wFMCommunicate request_size=4 [07:57:34]MH_SAM_APDU [07:57:34]CAPDU: 80 13 00 00 [07:57:34]Write to MH i2c: E2 08 00 56 03 80 13 00 00 00 00 00 00 D5 [07:57:34]Write i2c OK [07:57:34]MH_I2C_Read... [07:57:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:35]Read from MH i2c: E2 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 62 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 62 00 56 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9E 95 01 00 0E 04 04 00 62 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 D8 [07:57:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9E 95 01 00 0E 04 04 00 62 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 [07:57:35]wFMCommunicate OK [07:57:35]SAM_PROTO_GetFieldsCounters done [07:57:35]requested_item shift.num is exist - process it [07:57:35]requested_item shift.opened is exist - process it [07:57:35]req_shift_opened [07:57:35]FM_GetShiftState [07:57:35]SAM_PROTO_GetShiftState [07:57:35]wFMCommunicate request_size=4 [07:57:35]MH_SAM_APDU [07:57:35]CAPDU: 80 13 01 00 [07:57:35]Write to MH i2c: E2 08 00 57 03 80 13 01 00 00 00 00 00 D7 [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:35]Read from MH i2c: E2 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 0E 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 0E 00 57 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 26 [07:57:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [07:57:35]wFMCommunicate OK [07:57:35]SAM_PROTO_GetShiftState done [07:57:35]FM_GetShiftState done [07:57:35]req_shift_opened done [07:57:35]requested_item shift.open_date is exist - process it [07:57:35]req_shift_open_date [07:57:35]req_shift_open_date done [07:57:35]produce_requested_data done [07:57:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103838,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [07:57:35]process_action_free close_receipt [07:57:35]json_value_free [07:57:35]json_value_free done [07:57:35]process_json_proto returns [07:57:35]Send response to host [07:57:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103838,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [07:57:35]free response buf [07:57:35]execute_script done [07:57:35]execute_script returns [07:57:35]free content buf [07:57:35]Sock 9.Close socket [07:57:35]Sock 9.Thread stoped [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:48]OFD Sender: No OFD packet to send [07:58:53]OFD Sender: No OFD packet to send [07:58:54]accept exits with 7 [07:58:54]New connection [07:58:54]New thread 3067063652 created [07:58:54]Thread 3067207012 joined [07:58:54]Waiting for new connection... [07:58:54] Sock 7.Parse request [07:58:54]Sock 7.Check first char [07:58:54]Sock 7.First char is OK [07:58:54]request: POST /json_proto HTTP/1.0 [07:58:54]Method: POST [07:58:54]URL: /json_proto [07:58:54]Method is POST - this is cgi request [07:58:54]url: /json_proto [07:58:54]query_string will be loaded in cgi processing [07:58:54]execute_cgi json_proto POST (null) [07:58:54]execute_cgi path=json_proto method=POST [07:58:54]POST find Content-Length [07:58:54]Host: 172.17.38.133:8080 [07:58:54]Content-Length: 687 [07:58:54]Content-Type: application/json [07:58:54] [07:58:54]POST finish read [07:58:54]Found Content-Length = 687 [07:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:54]execute_script... [07:58: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)673150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:54]POST & json_proto [07:58:54]process_json_proto [07:58:54]json parsed OK: [07:58:54]protocol is kg_v1.0 [07:58:54]action value=close_receipt [07:58:54]process_action close_receipt [07:58:54]cmd_close_receipt [07:58:54]MH_GetDate [07:58:54]Write to MH i2c: F0 00 00 58 03 4A [07:58:54]Write i2c OK [07:58:54]MH_I2C_Read... [07:58:54]Read from MH i2c: F0 [07:58:54]MH_I2C_Read... [07:58:54]Read from MH i2c: F0 09 00 [07:58:54]MH_I2C_Read... [07:58:54]Read from MH i2c: F0 09 00 58 03 00 3F E1 73 66 BD 8F 7C 64 78 [07:58:54]GetLastDocTimeStamp 1718870251 [07:58:54]current date 1718870335 [07:58:54]FM_GetShiftState [07:58:54]SAM_PROTO_GetShiftState [07:58:54]wFMCommunicate request_size=4 [07:58:54]MH_SAM_APDU [07:58:54]CAPDU: 80 13 01 00 [07:58:54]Write to MH i2c: E2 08 00 59 03 80 13 01 00 00 00 00 00 D9 [07:58:54]Write i2c OK [07:58:54]MH_I2C_Read... [07:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:54]Read from MH i2c: E2 [07:58:54]MH_I2C_Read... [07:58:54]Read from MH i2c: E2 0E 00 [07:58:54]MH_I2C_Read... [07:58:54]Read from MH i2c: E2 0E 00 59 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 28 [07:58:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [07:58:54]wFMCommunicate OK [07:58:54]SAM_PROTO_GetShiftState done [07:58:54]FM_GetShiftState done [07:58:54]opened in 1718843124 [07:58:54]opened+sec_in_day 1718929524 [07:58:54]quantity*price = 300056 [07:58:54]sum+1 = 300057 [07:58:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 24 20.06.2024 07:58 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103839 ФПД: 88072707985205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T075855&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103839&fm=88072707985205&tin=02508201610067®Number=0000000000092785&sum=300000 [07:58:55]StoreToDocumentArchive [07:58:55]shift 354 fd 103839 [07:58:55]save to /storage/0354/doc_00103839 [07:58:55]save last doc name /storage/0354/doc_00103839 to /storage/kkm_last_doc_name [07:58:55]save OK [07:58:55]Clear old archive folders... [07:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:58:55]tlvbuf is 00833890 [07:58:55]SAM_PROTO_ClearQueue [07:58:55]wFMCommunicate request_size=4 [07:58:55]MH_SAM_APDU [07:58:55]CAPDU: 80 09 00 00 [07:58:55]Write to MH i2c: E2 08 00 66 03 80 09 00 00 00 00 00 00 DB [07:58:55]Write i2c OK [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 [07:58:55]MH_I2C_Read... [07:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:55]Read from MH i2c: E2 03 00 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [07:58:55]RAPDU: 90 00 [07:58:55]wFMCommunicate OK [07:58:55]SAM_PROTO_ClearQueue done [07:58:55]KKMCreateOFDPacket [07:58:55]OFDProtocolAddRootSTLVToBuf [07:58:55]FM_MakeSignedData [07:58:55]FM_MakeSignedData [07:58:55]SAM_PROTO_SignData [07:58:55]wFMCommunicate request_size=4 [07:58:55]MH_SAM_APDU [07:58:55]CAPDU: 80 0D 01 02 [07:58:55]Write to MH i2c: E2 08 00 67 03 80 0D 01 02 00 00 00 00 E3 [07:58:55]Write i2c OK [07:58:55]MH_I2C_Read... [07:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:55]Read from MH i2c: E2 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 03 00 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [07:58:55]RAPDU: 90 00 [07:58:55]wFMCommunicate OK [07:58:55]wFMCommunicate request_size=255 [07:58:55]MH_SAM_APDU [07:58:55]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 18 00 00 00 F4 03 04 00 3F E1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 95 01 00 35 04 06 00 [07:58:55]Write to MH i2c: E2 02 01 68 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 18 00 00 00 F4 03 04 00 3F E1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 95 01 00 35 04 06 00 00 00 D0 [07:58:55]Write i2c OK [07:58:55]MH_I2C_Read... [07:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:55]Read from MH i2c: E2 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 03 00 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [07:58:55]RAPDU: 90 00 [07:58:55]wFMCommunicate OK [07:58:55]wFMCommunicate request_size=11 [07:58:55]MH_SAM_APDU [07:58:55]CAPDU: 80 0D 02 02 06 50 1A 06 79 4F 35 [07:58:55]Write to MH i2c: E2 0E 00 69 03 80 0D 02 02 06 00 50 1A 06 79 4F 35 00 00 5F [07:58:55]Write i2c OK [07:58:55]MH_I2C_Read... [07:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:55]Read from MH i2c: E2 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 03 00 [07:58:55]MH_I2C_Read... [07:58:55]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [07:58:55]RAPDU: 90 00 [07:58:55]wFMCommunicate OK [07:58:55]wFMCommunicate request_size=4 [07:58:55]MH_SAM_APDU [07:58:55]CAPDU: 80 0D 03 02 [07:58:55]Write to MH i2c: E2 08 00 6A 03 80 0D 03 02 00 00 00 00 E8 [07:58:55]Write i2c OK [07:58:55]MH_I2C_Read... [07:58:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:56]Read from MH i2c: E2 [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: E2 0B 00 [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: E2 0B 00 6A 03 00 7C 2A 5E D9 25 15 FB C7 90 00 C2 [07:58:56]RAPDU: 7C 2A 5E D9 25 15 FB C7 90 00 [07:58:56]wFMCommunicate OK [07:58:56]SAM_PROTO_SignData done [07:58:56]FM_MakeSignedData done [07:58:56]CreateOFDProtocolMessage [07:58:56]wFMCommunicate request_size=4 [07:58:56]MH_SAM_APDU [07:58:56]CAPDU: 80 11 00 00 [07:58:56]Write to MH i2c: E2 08 00 6B 03 80 11 00 00 00 00 00 00 E8 [07:58:56]Write i2c OK [07:58:56]MH_I2C_Read... [07:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:56]Read from MH i2c: E2 [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: E2 17 00 [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: E2 17 00 6B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [07:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:58:56]wFMCommunicate OK [07:58:56]CreateOFDProtocolMessage done [07:58:56]OFDSenderStorePacket 103839 [07:58:56]StoreOFDPacket docnum=103839 [07:58:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 19 D7 08 01 58 B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 18 00 00 00 F4 03 04 00 3F E1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 95 01 00 35 04 06 00 50 1A 06 79 4F 35 7C 2A 5E D9 25 15 FB C7 [07:58:56]CheckFolder [07:58:56]dirname=/storage/ofd_packets [07:58:56]CheckFolder done [07:58:56]ProducePacketName [07:58:56]name=ofd_packets/00103839 [07:58:56]NVStorageSaveData ofd_packets/00103839 [07:58:56]File name is /storage/ofd_packets/00103839 [07:58:56]Write 302 bytes [07:58:56]NVStorageSaveData done [07:58:56]OFDSenderStorePacket done [07:58:56]KKMCreateOFDPacket done [07:58:56]NVStorageSaveData kkm_last_timestamp [07:58:56]File name is /storage/kkm_last_timestamp [07:58:56]Write 4 bytes [07:58:56]NVStorageSaveData done [07:58:56]ExternCall_PrintAddStr [07:58:56]wPrintStart [07:58:56]Write to MH i2c: 01 00 00 6C 03 6F [07:58:56]Write i2c OK [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: 01 [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: 01 07 00 [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FF 0F 84 [07:58:56]RasterBufferAndPrint [07:58:56]line Счет N : (1)673150 [07:58:56]line ИНН: 02508201610067 [07:58:56]line Контрольно-Кассовый Чек [07:58:56]line ПРОДАЖА [07:58:56]line ТРК (МРК, ГНК) : 11 [07:58:56]line Товар: 2710194210 [07:58:56]line ДТ(л)-К-5 [07:58:56]line 41.160 * 72.90 [07:58:56]line = 3000.56 [07:58:56]line НДС 12% НСП 1% [07:58:56]line > о реализуемом товаре [07:58:56]line ОКРУГЛЕНИЕ: -0.56 [07:58:56]line ИТОГО: 3000.00 [07:58:56]line Внесено: 3000.00 [07:58:56]line СДАЧА: 0.00 [07:58:56]line НСП 1% : 26.55 [07:58:56]line НДС 12% : 318.64 [07:58:56]line Наличными: 3000.00 [07:58:56]line Безнал.: 0.00 [07:58:56]line Место: АЗС № 120 "Партнер Нефть" [07:58:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [07:58:56]line СНО: Общий режим [07:58:56]line Чек 24 20.06.2024 07:58 [07:58:56]line Смена: 354 ФФД: 1.0 [07:58:56]line ЗНМ: 0300000164 [07:58:56]line РНМ: 0000000000092785 [07:58:56]line Версия ККМ: 001 [07:58:56]line ФМ: 0000000000875093 [07:58:56]line ФД: 103839 [07:58:56]line ФПД: 88072707985205 [07:58:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T075855&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103839&fm=88072707985205&tin=02508201610067®Number=0000000000092785&sum=300000 [07:58:56]OFD Sender: Processing packet 103839 [packets to send 17, broken 16] [07:58:56]ProducePacketName [07:58:56]name=ofd_packets/00103839 [07:58:56]OFD Sender: To server: pG, [07:58:56]CommunicateWithHost lk.salyk.kg:30040 [07:58:56]ConnectInit lk.salyk.kg [07:58:56]written 0, free lines is 4095 [07:58:56]Connected sock=9 [07:58:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 19 D7 08 01 58 B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 18 00 00 00 F4 03 04 00 3F E1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 95 01 00 35 04 06 00 50 1A 06 79 4F 35 7C 2A 5E D9 25 15 FB C7 [07:58:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6E 45 47 00 BB 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 9F 95 01 00 F4 03 04 00 C5 87 73 66 B6 04 01 00 00 7C 12 CD E6 7B 17 48 B5 [07:58:56]CommunicateWithHost err = 0 [07:58:56]CheckOFDResponse [07:58:56]1017 (14) - 77093643461234 [07:58:56]1041 (16) - 0000000000875093 [07:58:56]1040 (4) - 103839 [07:58:56]1012 (4) - 20.06.2024 01:37 [07:58:56]1206 (1) - 0 [07:58:56]OFD Sender: Remove packet 103839 [07:58:56]ProducePacketName [07:58:56]name=ofd_packets/00103839 [07:58:56]NVStorageDeleteData [07:58:56]Write to MH i2c: 01 00 00 97 03 9A [07:58:56]Write i2c OK [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: 01 [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: 01 07 00 [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 E4 0C 91 [07:58:56]RasterBufferAndPrint [07:58:56]line [07:58:56]line [07:58:56]line [07:58:56]line [07:58:56]line [07:58:56]written 0, free lines is 3306 [07:58:56]MH_Cut [07:58:56]Write to MH i2c: D1 01 00 9E 03 01 73 [07:58:56]Write i2c OK [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: D1 [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: D1 01 00 [07:58:56]MH_I2C_Read... [07:58:56]Read from MH i2c: D1 01 00 9E 03 00 72 [07:58:56]Write to MH i2c: 01 00 00 9F 03 A2 [07:58:56]Write i2c OK [07:58:56]MH_I2C_Read... [07:58:57]OFD Sender: No OFD packet to send [07:58:57]*** Cut start [07:58:57]*** Partial cut [07:58:57]*** CUTSNS_PIN = 1 [07:58:57]*** CUTSNS_PIN = 0 [07:58:57]*** Brake cut motor [07:58:58]Read from MH i2c: 01 [07:58:58]MH_I2C_Read... [07:58:58]*** Stop cut motor [07:58:58]*** Cut end [07:58:58]Read from MH i2c: 01 07 00 [07:58:58]MH_I2C_Read... [07:58:58]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 FF 0F B7 [07:58:58]process_action close_receipt done [07:58:58]requested_data is exist [07:58:58]produce_requested_data [07:58:58]requested_item fm.sn is exist - process it [07:58:58]wFMCommunicate request_size=4 [07:58:58]MH_SAM_APDU [07:58:58]CAPDU: 80 11 00 00 [07:58:58]Write to MH i2c: E2 08 00 A0 03 80 11 00 00 00 00 00 00 1D [07:58:58]Write i2c OK [07:58:58]MH_I2C_Read... [07:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:58]Read from MH i2c: E2 [07:58:58]MH_I2C_Read... [07:58:58]Read from MH i2c: E2 17 00 [07:58:58]MH_I2C_Read... [07:58:58]Read from MH i2c: E2 17 00 A0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [07:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [07:58:58]wFMCommunicate OK [07:58:58]requested_item fd.num is exist - process it [07:58:58]SAM_PROTO_GetFieldsCounters [07:58:58]wFMCommunicate request_size=4 [07:58:58]MH_SAM_APDU [07:58:58]CAPDU: 80 13 00 00 [07:58:58]Write to MH i2c: E2 08 00 A1 03 80 13 00 00 00 00 00 00 20 [07:58:58]Write i2c OK [07:58:58]MH_I2C_Read... [07:58:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:58]Read from MH i2c: E2 [07:58:58]MH_I2C_Read... [07:58:58]Read from MH i2c: E2 62 00 [07:58:58]MH_I2C_Read... [07:58:58]Read from MH i2c: E2 62 00 A1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9F 95 01 00 0E 04 04 00 62 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 27 [07:58:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 9F 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:58]wFMCommunicate OK [07:58:58]SAM_PROTO_GetFieldsCounters done [07:58:58]requested_item shift.num is exist - process it [07:58:58]requested_item shift.opened is exist - process it [07:58:58]req_shift_opened [07:58:58]FM_GetShiftState [07:58:58]SAM_PROTO_GetShiftState [07:58:58]wFMCommunicate request_size=4 [07:58:58]MH_SAM_APDU [07:58:58]CAPDU: 80 13 01 00 [07:58:58]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [07:58:58]Write i2c OK [07:58:58]MH_I2C_Read... [07:58:58]Read from MH i2c: E2 [07:58:58]MH_I2C_Read... [07:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:58]Read from MH i2c: E2 0E 00 [07:58:58]MH_I2C_Read... [07:58:58]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 71 [07:58:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [07:58:58]wFMCommunicate OK [07:58:58]SAM_PROTO_GetShiftState done [07:58:58]FM_GetShiftState done [07:58:58]req_shift_opened done [07:58:58]requested_item shift.open_date is exist - process it [07:58:58]req_shift_open_date [07:58:58]req_shift_open_date done [07:58:58]produce_requested_data done [07:58:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103839,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [07:58:58]process_action_free close_receipt [07:58:58]json_value_free [07:58:58]json_value_free done [07:58:58]process_json_proto returns [07:58:58]Send response to host [07:58:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103839,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [07:58:58]free response buf [07:58:58]execute_script done [07:58:58]execute_script returns [07:58:58]free content buf [07:58:58]Sock 7.Close socket [07:58:58]Sock 7.Thread stoped [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:02]accept exits with 10 [08:04:02]New connection [08:04:02]New thread 3067207012 created [08:04:02]Thread 3067063652 joined [08:04:02]Waiting for new connection... [08:04:02] Sock 10.Parse request [08:04:02]Sock 10.Check first char [08:04:02]Sock 10.First char is OK [08:04:02]request: POST /json_proto HTTP/1.0 [08:04:02]Method: POST [08:04:02]URL: /json_proto [08:04:02]Method is POST - this is cgi request [08:04:02]url: /json_proto [08:04:02]query_string will be loaded in cgi processing [08:04:02]execute_cgi json_proto POST (null) [08:04:02]execute_cgi path=json_proto method=POST [08:04:02]POST find Content-Length [08:04:02]Host: 172.17.38.133:8080 [08:04:02]Content-Length: 682 [08:04:02]Content-Type: application/json [08:04:02] [08:04:02]POST finish read [08:04:02]Found Content-Length = 682 [08:04:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [08:04:02]execute_script... [08:04: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)673152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [08:04:02]POST & json_proto [08:04:02]process_json_proto [08:04:02]json parsed OK: [08:04:02]protocol is kg_v1.0 [08:04:02]action value=close_receipt [08:04:02]process_action close_receipt [08:04:02]cmd_close_receipt [08:04:02]MH_GetDate [08:04:02]Write to MH i2c: F0 00 00 A3 03 95 [08:04:02]Write i2c OK [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: F0 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: F0 09 00 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: F0 09 00 A3 03 00 73 E2 73 66 BD 8F 7C 64 F8 [08:04:02]GetLastDocTimeStamp 1718870335 [08:04:02]current date 1718870643 [08:04:02]FM_GetShiftState [08:04:02]SAM_PROTO_GetShiftState [08:04:02]wFMCommunicate request_size=4 [08:04:02]MH_SAM_APDU [08:04:02]CAPDU: 80 13 01 00 [08:04:02]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [08:04:02]Write i2c OK [08:04:02]MH_I2C_Read... [08:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:02]Read from MH i2c: E2 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: E2 0E 00 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 73 [08:04:02]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:04:02]wFMCommunicate OK [08:04:02]SAM_PROTO_GetShiftState done [08:04:02]FM_GetShiftState done [08:04:02]opened in 1718843124 [08:04:02]opened+sec_in_day 1718929524 [08:04:02]quantity*price = 200063 [08:04:02]sum+1 = 200064 [08:04:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 25 20.06.2024 08:04 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103840 ФПД: 224503666210963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T080403&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103840&fm=224503666210963&tin=02508201610067®Number=0000000000092785&sum=200000 [08:04:03]StoreToDocumentArchive [08:04:03]shift 354 fd 103840 [08:04:03]save to /storage/0354/doc_00103840 [08:04:03]save last doc name /storage/0354/doc_00103840 to /storage/kkm_last_doc_name [08:04:03]save OK [08:04:03]Clear old archive folders... [08:04:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:03]tlvbuf is 00832FF0 [08:04:03]SAM_PROTO_ClearQueue [08:04:03]wFMCommunicate request_size=4 [08:04:03]MH_SAM_APDU [08:04:03]CAPDU: 80 09 00 00 [08:04:03]Write to MH i2c: E2 08 00 B1 03 80 09 00 00 00 00 00 00 26 [08:04:03]Write i2c OK [08:04:03]MH_I2C_Read... [08:04:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:03]Read from MH i2c: E2 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: E2 03 00 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [08:04:03]RAPDU: 90 00 [08:04:03]wFMCommunicate OK [08:04:03]SAM_PROTO_ClearQueue done [08:04:03]KKMCreateOFDPacket [08:04:03]OFDProtocolAddRootSTLVToBuf [08:04:03]FM_MakeSignedData [08:04:03]FM_MakeSignedData [08:04:03]SAM_PROTO_SignData [08:04:03]wFMCommunicate request_size=4 [08:04:03]MH_SAM_APDU [08:04:03]CAPDU: 80 0D 01 02 [08:04:03]Write to MH i2c: E2 08 00 B2 03 80 0D 01 02 00 00 00 00 2E [08:04:03]Write i2c OK [08:04:03]MH_I2C_Read... [08:04:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:03]Read from MH i2c: E2 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: E2 03 00 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [08:04:03]RAPDU: 90 00 [08:04:03]wFMCommunicate OK [08:04:03]wFMCommunicate request_size=255 [08:04:03]MH_SAM_APDU [08:04:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 19 00 00 00 F4 03 04 00 73 E2 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 95 01 00 35 04 06 00 CC [08:04:03]Write to MH i2c: E2 02 01 B3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 19 00 00 00 F4 03 04 00 73 E2 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 95 01 00 35 04 06 00 CC 00 00 89 [08:04:03]Write i2c OK [08:04:03]MH_I2C_Read... [08:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:04]Read from MH i2c: E2 [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: E2 03 00 [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [08:04:04]RAPDU: 90 00 [08:04:04]wFMCommunicate OK [08:04:04]wFMCommunicate request_size=10 [08:04:04]MH_SAM_APDU [08:04:04]CAPDU: 80 0D 02 02 05 2F 55 46 78 93 [08:04:04]Write to MH i2c: E2 0D 00 B4 03 80 0D 02 02 05 00 2F 55 46 78 93 00 00 10 [08:04:04]Write i2c OK [08:04:04]MH_I2C_Read... [08:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:04]Read from MH i2c: E2 [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: E2 03 00 [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [08:04:04]RAPDU: 90 00 [08:04:04]wFMCommunicate OK [08:04:04]wFMCommunicate request_size=4 [08:04:04]MH_SAM_APDU [08:04:04]CAPDU: 80 0D 03 02 [08:04:04]Write to MH i2c: E2 08 00 B5 03 80 0D 03 02 00 00 00 00 33 [08:04:04]Write i2c OK [08:04:04]MH_I2C_Read... [08:04:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:04]Read from MH i2c: E2 [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: E2 0B 00 [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: E2 0B 00 B5 03 00 B4 3A BA 4A 89 C9 5C D9 90 00 AD [08:04:04]RAPDU: B4 3A BA 4A 89 C9 5C D9 90 00 [08:04:04]wFMCommunicate OK [08:04:04]SAM_PROTO_SignData done [08:04:04]FM_MakeSignedData done [08:04:04]CreateOFDProtocolMessage [08:04:04]wFMCommunicate request_size=4 [08:04:04]MH_SAM_APDU [08:04:04]CAPDU: 80 11 00 00 [08:04:04]Write to MH i2c: E2 08 00 B6 03 80 11 00 00 00 00 00 00 33 [08:04:04]Write i2c OK [08:04:04]MH_I2C_Read... [08:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:04]Read from MH i2c: E2 [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: E2 17 00 [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: E2 17 00 B6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [08:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:04:04]wFMCommunicate OK [08:04:04]CreateOFDProtocolMessage done [08:04:04]OFDSenderStorePacket 103840 [08:04:04]StoreOFDPacket docnum=103840 [08:04:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F2 7F 07 01 B7 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 19 00 00 00 F4 03 04 00 73 E2 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 95 01 00 35 04 06 00 CC 2F 55 46 78 93 B4 3A BA 4A 89 C9 5C D9 [08:04:04]CheckFolder [08:04:04]dirname=/storage/ofd_packets [08:04:04]CheckFolder done [08:04:04]ProducePacketName [08:04:04]name=ofd_packets/00103840 [08:04:04]NVStorageSaveData ofd_packets/00103840 [08:04:04]File name is /storage/ofd_packets/00103840 [08:04:04]Write 301 bytes [08:04:04]NVStorageSaveData done [08:04:04]OFDSenderStorePacket done [08:04:04]KKMCreateOFDPacket done [08:04:04]NVStorageSaveData kkm_last_timestamp [08:04:04]File name is /storage/kkm_last_timestamp [08:04:04]Write 4 bytes [08:04:04]NVStorageSaveData done [08:04:04]ExternCall_PrintAddStr [08:04:04]wPrintStart [08:04:04]Write to MH i2c: 01 00 00 B7 03 BA [08:04:04]Write i2c OK [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: 01 [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: 01 07 00 [08:04:04]MH_I2C_Read... [08:04:04]Read from MH i2c: 01 07 00 B7 03 00 00 00 00 00 FF 0F CF [08:04:04]RasterBufferAndPrint [08:04:04]line Счет N : (1)673152 [08:04:04]line ИНН: 02508201610067 [08:04:04]line Контрольно-Кассовый Чек [08:04:04]line ПРОДАЖА [08:04:04]line ТРК (МРК, ГНК) : 42 [08:04:04]line Товар: 2710124130 [08:04:04]line Аи-92-К-5 [08:04:04]line 30.130 * 66.40 [08:04:04]line = 2000.63 [08:04:04]line НДС 12% НСП 1% [08:04:04]line > о реализуемом товаре [08:04:04]line ОКРУГЛЕНИЕ: -0.63 [08:04:04]line ИТОГО: 2000.00 [08:04:04]line Внесено: 2000.00 [08:04:04]line СДАЧА: 0.00 [08:04:04]line НСП 1% : 17.70 [08:04:04]line НДС 12% : 212.46 [08:04:04]line Наличными: 2000.00 [08:04:04]line Безнал.: 0.00 [08:04:04]line Место: АЗС № 120 "Партнер Нефть" [08:04:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:04:04]line СНО: Общий режим [08:04:04]line Чек 25 20.06.2024 08:04 [08:04:04]line Смена: 354 ФФД: 1.0 [08:04:04]line ЗНМ: 0300000164 [08:04:04]line РНМ: 0000000000092785 [08:04:04]line Версия ККМ: 001 [08:04:04]line ФМ: 0000000000875093 [08:04:04]line ФД: 103840 [08:04:04]line ФПД: 224503666210963 [08:04:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T080403&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103840&fm=224503666210963&tin=02508201610067®Number=0000000000092785&sum=200000 [08:04:04]OFD Sender: Processing packet 103840 [packets to send 17, broken 16] [08:04:04]ProducePacketName [08:04:04]name=ofd_packets/00103840 [08:04:04]OFD Sender: To server: pG, [08:04:04]CommunicateWithHost lk.salyk.kg:30040 [08:04:04]ConnectInit lk.salyk.kg [08:04:04]written 0, free lines is 4095 [08:04:04]Connected sock=9 [08:04:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F2 7F 07 01 B7 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 19 00 00 00 F4 03 04 00 73 E2 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 95 01 00 35 04 06 00 CC 2F 55 46 78 93 B4 3A BA 4A 89 C9 5C D9 [08:04:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B5 DF 47 00 59 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A0 95 01 00 F4 03 04 00 F9 88 73 66 B6 04 01 00 00 FE 4D B5 5F 7F 49 60 6C [08:04:04]CommunicateWithHost err = 0 [08:04:04]CheckOFDResponse [08:04:04]1017 (14) - 77093643461234 [08:04:04]1041 (16) - 0000000000875093 [08:04:04]1040 (4) - 103840 [08:04:04]1012 (4) - 20.06.2024 01:42 [08:04:04]1206 (1) - 0 [08:04:04]OFD Sender: Remove packet 103840 [08:04:04]ProducePacketName [08:04:04]name=ofd_packets/00103840 [08:04:05]NVStorageDeleteData [08:04:05]Write to MH i2c: 01 00 00 E2 03 E5 [08:04:05]Write i2c OK [08:04:05]MH_I2C_Read... [08:04:05]Read from MH i2c: 01 [08:04:05]MH_I2C_Read... [08:04:05]Read from MH i2c: 01 07 00 [08:04:05]MH_I2C_Read... [08:04:05]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 DA 0C D2 [08:04:05]RasterBufferAndPrint [08:04:05]line [08:04:05]line [08:04:05]line [08:04:05]line [08:04:05]line [08:04:05]written 0, free lines is 3298 [08:04:05]MH_Cut [08:04:05]Write to MH i2c: D1 01 00 E9 03 01 BE [08:04:05]Write i2c OK [08:04:05]MH_I2C_Read... [08:04:05]Read from MH i2c: D1 [08:04:05]MH_I2C_Read... [08:04:05]Read from MH i2c: D1 01 00 [08:04:05]MH_I2C_Read... [08:04:05]Read from MH i2c: D1 01 00 E9 03 00 BD [08:04:05]Write to MH i2c: 01 00 00 EA 03 ED [08:04:05]Write i2c OK [08:04:05]MH_I2C_Read... [08:04:05]OFD Sender: No OFD packet to send [08:04:05]*** Cut start [08:04:05]*** Partial cut [08:04:05]*** CUTSNS_PIN = 1 [08:04:05]*** CUTSNS_PIN = 0 [08:04:06]*** Brake cut motor [08:04:06]Read from MH i2c: 01 [08:04:06]MH_I2C_Read... [08:04:06]*** Stop cut motor [08:04:06]*** Cut end [08:04:06]Read from MH i2c: 01 07 00 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 FF 0F 02 [08:04:06]process_action close_receipt done [08:04:06]requested_data is exist [08:04:06]produce_requested_data [08:04:06]requested_item fm.sn is exist - process it [08:04:06]wFMCommunicate request_size=4 [08:04:06]MH_SAM_APDU [08:04:06]CAPDU: 80 11 00 00 [08:04:06]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [08:04:06]Write i2c OK [08:04:06]MH_I2C_Read... [08:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:06]Read from MH i2c: E2 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: E2 17 00 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [08:04:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:04:06]wFMCommunicate OK [08:04:06]requested_item fd.num is exist - process it [08:04:06]SAM_PROTO_GetFieldsCounters [08:04:06]wFMCommunicate request_size=4 [08:04:06]MH_SAM_APDU [08:04:06]CAPDU: 80 13 00 00 [08:04:06]Write to MH i2c: E2 08 00 EC 03 80 13 00 00 00 00 00 00 6B [08:04:06]Write i2c OK [08:04:06]MH_I2C_Read... [08:04:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:06]Read from MH i2c: E2 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: E2 62 00 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: E2 62 00 EC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A0 95 01 00 0E 04 04 00 62 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 76 [08:04:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A0 95 01 00 0E 04 04 00 62 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:04:06]wFMCommunicate OK [08:04:06]SAM_PROTO_GetFieldsCounters done [08:04:06]requested_item shift.num is exist - process it [08:04:06]requested_item shift.opened is exist - process it [08:04:06]req_shift_opened [08:04:06]FM_GetShiftState [08:04:06]SAM_PROTO_GetShiftState [08:04:06]wFMCommunicate request_size=4 [08:04:06]MH_SAM_APDU [08:04:06]CAPDU: 80 13 01 00 [08:04:06]Write to MH i2c: E2 08 00 ED 03 80 13 01 00 00 00 00 00 6D [08:04:06]Write i2c OK [08:04:06]MH_I2C_Read... [08:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:06]Read from MH i2c: E2 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: E2 0E 00 [08:04:06]MH_I2C_Read... [08:04:06]Read from MH i2c: E2 0E 00 ED 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BC [08:04:06]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:04:06]wFMCommunicate OK [08:04:06]SAM_PROTO_GetShiftState done [08:04:06]FM_GetShiftState done [08:04:06]req_shift_opened done [08:04:06]requested_item shift.open_date is exist - process it [08:04:06]req_shift_open_date [08:04:06]req_shift_open_date done [08:04:06]produce_requested_data done [08:04:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103840,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [08:04:06]process_action_free close_receipt [08:04:06]json_value_free [08:04:06]json_value_free done [08:04:06]process_json_proto returns [08:04:06]Send response to host [08:04:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103840,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [08:04:06]free response buf [08:04:06]execute_script done [08:04:06]execute_script returns [08:04:06]free content buf [08:04:06]Sock 10.Close socket [08:04:06]Sock 10.Thread stoped [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:47]accept exits with 7 [08:09:47]New connection [08:09:47]New thread 3067063652 created [08:09:47]Thread 3067207012 joined [08:09:47]Waiting for new connection... [08:09:47] Sock 7.Parse request [08:09:47]Sock 7.Check first char [08:09:47]Sock 7.First char is OK [08:09:47]request: POST /json_proto HTTP/1.0 [08:09:47]Method: POST [08:09:47]URL: /json_proto [08:09:47]Method is POST - this is cgi request [08:09:47]url: /json_proto [08:09:47]query_string will be loaded in cgi processing [08:09:47]execute_cgi json_proto POST (null) [08:09:47]execute_cgi path=json_proto method=POST [08:09:47]POST find Content-Length [08:09:47]Host: 172.17.38.133:8080 [08:09:47]Content-Length: 682 [08:09:47]Content-Type: application/json [08:09:47] [08:09:47]POST finish read [08:09:47]Found Content-Length = 682 [08:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:47]execute_script... [08:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:47]POST & json_proto [08:09:47]process_json_proto [08:09:47]json parsed OK: [08:09:47]protocol is kg_v1.0 [08:09:47]action value=close_receipt [08:09:47]process_action close_receipt [08:09:47]cmd_close_receipt [08:09:47]MH_GetDate [08:09:47]Write to MH i2c: F0 00 00 EE 03 E0 [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: F0 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: F0 09 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: F0 09 00 EE 03 00 CC E3 73 66 BD 8F 7C 64 9D [08:09:47]GetLastDocTimeStamp 1718870643 [08:09:47]current date 1718870988 [08:09:47]FM_GetShiftState [08:09:47]SAM_PROTO_GetShiftState [08:09:47]wFMCommunicate request_size=4 [08:09:47]MH_SAM_APDU [08:09:47]CAPDU: 80 13 01 00 [08:09:47]Write to MH i2c: E2 08 00 EF 03 80 13 01 00 00 00 00 00 6F [08:09:47]Write i2c OK [08:09:47]MH_I2C_Read... [08:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:47]Read from MH i2c: E2 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 0E 00 [08:09:47]MH_I2C_Read... [08:09:47]Read from MH i2c: E2 0E 00 EF 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BE [08:09:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:09:47]wFMCommunicate OK [08:09:47]SAM_PROTO_GetShiftState done [08:09:47]FM_GetShiftState done [08:09:47]opened in 1718843124 [08:09:47]opened+sec_in_day 1718929524 [08:09:47]quantity*price = 50009 [08:09:47]sum+1 = 50010 [08:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 26 20.06.2024 08:09 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103841 ФПД: 121437457582771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T080948&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103841&fm=121437457582771&tin=02508201610067®Number=0000000000092785&sum=50000 [08:09:48]StoreToDocumentArchive [08:09:48]shift 354 fd 103841 [08:09:48]save to /storage/0354/doc_00103841 [08:09:48]save last doc name /storage/0354/doc_00103841 to /storage/kkm_last_doc_name [08:09:49]save OK [08:09:49]Clear old archive folders... [08:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:09:49]tlvbuf is 008369D0 [08:09:49]SAM_PROTO_ClearQueue [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 09 00 00 [08:09:49]Write to MH i2c: E2 08 00 FC 03 80 09 00 00 00 00 00 00 71 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]SAM_PROTO_ClearQueue done [08:09:49]KKMCreateOFDPacket [08:09:49]OFDProtocolAddRootSTLVToBuf [08:09:49]FM_MakeSignedData [08:09:49]FM_MakeSignedData [08:09:49]SAM_PROTO_SignData [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 0D 01 02 [08:09:49]Write to MH i2c: E2 08 00 FD 03 80 0D 01 02 00 00 00 00 79 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]wFMCommunicate request_size=255 [08:09:49]MH_SAM_APDU [08:09:49]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CC E3 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 95 01 00 35 04 06 00 [08:09:49]Write to MH i2c: E2 02 01 FE 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CC E3 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 95 01 00 35 04 06 00 00 00 4D [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 FE 03 00 90 00 75 [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]wFMCommunicate request_size=11 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 0D 02 02 06 6E 72 5C 85 8A B3 [08:09:49]Write to MH i2c: E2 0E 00 FF 03 80 0D 02 02 06 00 6E 72 5C 85 8A B3 00 00 86 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 FF 03 00 90 00 76 [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 0D 03 02 [08:09:49]Write to MH i2c: E2 08 00 00 04 80 0D 03 02 00 00 00 00 7F [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 0B 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 0B 00 00 04 00 7C A0 B8 DF 7D 2C B1 17 90 00 A4 [08:09:49]RAPDU: 7C A0 B8 DF 7D 2C B1 17 90 00 [08:09:49]wFMCommunicate OK [08:09:49]SAM_PROTO_SignData done [08:09:49]FM_MakeSignedData done [08:09:49]CreateOFDProtocolMessage [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 11 00 00 [08:09:49]Write to MH i2c: E2 08 00 01 04 80 11 00 00 00 00 00 00 7F [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 17 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 17 00 01 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [08:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:09:49]wFMCommunicate OK [08:09:49]CreateOFDProtocolMessage done [08:09:49]OFDSenderStorePacket 103841 [08:09:49]StoreOFDPacket docnum=103841 [08:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C7 D1 08 01 22 A7 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CC E3 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 95 01 00 35 04 06 00 6E 72 5C 85 8A B3 7C A0 B8 DF 7D 2C B1 17 [08:09:49]CheckFolder [08:09:49]dirname=/storage/ofd_packets [08:09:49]CheckFolder done [08:09:49]ProducePacketName [08:09:49]name=ofd_packets/00103841 [08:09:49]NVStorageSaveData ofd_packets/00103841 [08:09:49]File name is /storage/ofd_packets/00103841 [08:09:49]Write 302 bytes [08:09:49]NVStorageSaveData done [08:09:49]OFDSenderStorePacket done [08:09:49]KKMCreateOFDPacket done [08:09:49]NVStorageSaveData kkm_last_timestamp [08:09:49]File name is /storage/kkm_last_timestamp [08:09:49]Write 4 bytes [08:09:49]NVStorageSaveData done [08:09:49]ExternCall_PrintAddStr [08:09:49]wPrintStart [08:09:49]Write to MH i2c: 01 00 00 02 04 06 [08:09:49]OFD Sender: Processing packet 103841 [packets to send 17, broken 16] [08:09:49]ProducePacketName [08:09:49]name=ofd_packets/00103841 [08:09:49]OFD Sender: To server: pG, [08:09:49]CommunicateWithHost lk.salyk.kg:30040 [08:09:49]ConnectInit lk.salyk.kg [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: 01 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: 01 07 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: 01 07 00 02 04 00 00 00 00 00 FF 0F 1B [08:09:49]RasterBufferAndPrint [08:09:49]line Счет N : (1)673153 [08:09:49]line ИНН: 02508201610067 [08:09:49]line Контрольно-Кассовый Чек [08:09:49]line ПРОДАЖА [08:09:49]line ТРК (МРК, ГНК) : 21 [08:09:49]line Товар: 2710194210 [08:09:49]line ДТ(л)-К-5 [08:09:49]line 6.860 * 72.90 [08:09:49]line = 500.09 [08:09:49]line НДС 12% НСП 1% [08:09:49]line > о реализуемом товаре [08:09:49]line ОКРУГЛЕНИЕ: -0.09 [08:09:49]line ИТОГО: 500.00 [08:09:49]line Внесено: 500.00 [08:09:49]line СДАЧА: 0.00 [08:09:49]line НСП 1% : 4.43 [08:09:49]line НДС 12% : 53.11 [08:09:49]line Наличными: 500.00 [08:09:49]line Безнал.: 0.00 [08:09:49]line Место: АЗС № 120 "Партнер Нефть" [08:09:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:09:49]line СНО: Общий режим [08:09:49]line Чек 26 20.06.2024 08:09 [08:09:49]line Смена: 354 ФФД: 1.0 [08:09:49]line ЗНМ: 0300000164 [08:09:49]line РНМ: 0000000000092785 [08:09:49]line Версия ККМ: 001 [08:09:49]line ФМ: 0000000000875093 [08:09:49]line ФД: 103841 [08:09:49]line ФПД: 121437457582771 [08:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T080948&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103841&fm=121437457582771&tin=02508201610067®Number=0000000000092785&sum=50000 [08:09:49]Connected sock=10 [08:09:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C7 D1 08 01 22 A7 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CC E3 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 95 01 00 35 04 06 00 6E 72 5C 85 8A B3 7C A0 B8 DF 7D 2C B1 17 [08:09:49]written 0, free lines is 4095 [08:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2A E6 47 00 9F B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A1 95 01 00 F4 03 04 00 52 8A 73 66 B6 04 01 00 00 97 45 A3 79 56 9D 80 D7 [08:09:50]CommunicateWithHost err = 0 [08:09:50]CheckOFDResponse [08:09:50]1017 (14) - 77093643461234 [08:09:50]1041 (16) - 0000000000875093 [08:09:50]1040 (4) - 103841 [08:09:50]1012 (4) - 20.06.2024 01:48 [08:09:50]1206 (1) - 0 [08:09:50]OFD Sender: Remove packet 103841 [08:09:50]ProducePacketName [08:09:50]name=ofd_packets/00103841 [08:09:50]NVStorageDeleteData [08:09:50]Write to MH i2c: 01 00 00 2D 04 31 [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 2D 04 00 00 00 00 00 CC 0C 10 [08:09:50]RasterBufferAndPrint [08:09:50]line [08:09:50]line [08:09:50]line [08:09:50]line [08:09:50]line [08:09:50]written 0, free lines is 3280 [08:09:50]MH_Cut [08:09:50]Write to MH i2c: D1 01 00 34 04 01 0A [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: D1 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: D1 01 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: D1 01 00 34 04 00 09 [08:09:50]Write to MH i2c: 01 00 00 35 04 39 [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]OFD Sender: No OFD packet to send [08:09:51]*** Cut start [08:09:51]*** Partial cut [08:09:51]*** CUTSNS_PIN = 1 [08:09:51]*** CUTSNS_PIN = 0 [08:09:51]*** Brake cut motor [08:09:51]Read from MH i2c: 01 [08:09:51]MH_I2C_Read... [08:09:51]*** Stop cut motor [08:09:51]*** Cut end [08:09:51]Read from MH i2c: 01 07 00 [08:09:51]MH_I2C_Read... [08:09:51]Read from MH i2c: 01 07 00 35 04 00 00 00 00 00 FF 0F 4E [08:09:51]process_action close_receipt done [08:09:51]requested_data is exist [08:09:51]produce_requested_data [08:09:51]requested_item fm.sn is exist - process it [08:09:51]wFMCommunicate request_size=4 [08:09:51]MH_SAM_APDU [08:09:51]CAPDU: 80 11 00 00 [08:09:51]Write to MH i2c: E2 08 00 36 04 80 11 00 00 00 00 00 00 B4 [08:09:51]Write i2c OK [08:09:51]MH_I2C_Read... [08:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:51]Read from MH i2c: E2 [08:09:51]MH_I2C_Read... [08:09:51]Read from MH i2c: E2 17 00 [08:09:51]MH_I2C_Read... [08:09:51]Read from MH i2c: E2 17 00 36 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [08:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:09:51]wFMCommunicate OK [08:09:51]requested_item fd.num is exist - process it [08:09:51]SAM_PROTO_GetFieldsCounters [08:09:51]wFMCommunicate request_size=4 [08:09:51]MH_SAM_APDU [08:09:51]CAPDU: 80 13 00 00 [08:09:51]Write to MH i2c: E2 08 00 37 04 80 13 00 00 00 00 00 00 B7 [08:09:51]Write i2c OK [08:09:51]MH_I2C_Read... [08:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:51]Read from MH i2c: E2 [08:09:51]MH_I2C_Read... [08:09:51]Read from MH i2c: E2 62 00 [08:09:51]MH_I2C_Read... [08:09:51]Read from MH i2c: E2 62 00 37 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A1 95 01 00 0E 04 04 00 62 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 C6 [08:09:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A1 95 01 00 0E 04 04 00 62 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:09:51]wFMCommunicate OK [08:09:51]SAM_PROTO_GetFieldsCounters done [08:09:51]requested_item shift.num is exist - process it [08:09:51]requested_item shift.opened is exist - process it [08:09:51]req_shift_opened [08:09:51]FM_GetShiftState [08:09:51]SAM_PROTO_GetShiftState [08:09:51]wFMCommunicate request_size=4 [08:09:51]MH_SAM_APDU [08:09:51]CAPDU: 80 13 01 00 [08:09:51]Write to MH i2c: E2 08 00 38 04 80 13 01 00 00 00 00 00 B9 [08:09:51]Write i2c OK [08:09:51]MH_I2C_Read... [08:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:51]Read from MH i2c: E2 [08:09:51]MH_I2C_Read... [08:09:51]Read from MH i2c: E2 0E 00 [08:09:51]MH_I2C_Read... [08:09:51]Read from MH i2c: E2 0E 00 38 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 08 [08:09:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:09:51]wFMCommunicate OK [08:09:51]SAM_PROTO_GetShiftState done [08:09:51]FM_GetShiftState done [08:09:51]req_shift_opened done [08:09:51]requested_item shift.open_date is exist - process it [08:09:51]req_shift_open_date [08:09:51]req_shift_open_date done [08:09:51]produce_requested_data done [08:09:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103841,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [08:09:51]process_action_free close_receipt [08:09:51]json_value_free [08:09:51]json_value_free done [08:09:51]process_json_proto returns [08:09:51]Send response to host [08:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103841,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [08:09:51]free response buf [08:09:51]execute_script done [08:09:51]execute_script returns [08:09:51]free content buf [08:09:51]Sock 7.Close socket [08:09:51]Sock 7.Thread stoped [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:01]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:51]OFD Sender: No OFD packet to send [08:21:56]OFD Sender: No OFD packet to send [08:22:01]OFD Sender: No OFD packet to send [08:22:06]OFD Sender: No OFD packet to send [08:22:11]OFD Sender: No OFD packet to send [08:22:16]OFD Sender: No OFD packet to send [08:22:21]OFD Sender: No OFD packet to send [08:22:26]OFD Sender: No OFD packet to send [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [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:20]accept exits with 9 [08:25:20]New connection [08:25:20]New thread 3067207012 created [08:25:20]Thread 3067063652 joined [08:25:20]Waiting for new connection... [08:25:20] Sock 9.Parse request [08:25:20]Sock 9.Check first char [08:25:20]Sock 9.First char is OK [08:25:20]request: POST /json_proto HTTP/1.0 [08:25:20]Method: POST [08:25:20]URL: /json_proto [08:25:20]Method is POST - this is cgi request [08:25:20]url: /json_proto [08:25:20]query_string will be loaded in cgi processing [08:25:20]execute_cgi json_proto POST (null) [08:25:20]execute_cgi path=json_proto method=POST [08:25:20]POST find Content-Length [08:25:20]Host: 172.17.38.133:8080 [08:25:20]Content-Length: 1196 [08:25:20]Content-Type: application/json [08:25:20] [08:25:20]POST finish read [08:25:20]Found Content-Length = 1196 [08:25: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673154\u000A20.06.2024 08:02\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 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.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\u000A3886585\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:20]execute_script... [08:25: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673154\u000A20.06.2024 08:02\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 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.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\u000A3886585\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:20]POST & json_proto [08:25:20]process_json_proto [08:25:20]json parsed OK: [08:25:20]protocol is kg_v1.0 [08:25:20]action value=print_text [08:25:20]process_action print_text [08:25:20]cmd_print_text [08:25:20]ExternCall_PrintAddStr [08:25:20]wPrintStart [08:25:20]Write to MH i2c: 01 00 00 39 04 3D [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 FF 0F 52 [08:25:20]RasterBufferAndPrint [08:25:20]line *****ТОВАРНЫЙ ЧЕК***** [08:25:20]line АЗС 120 [08:25:20]line Партнер нефть [08:25:20]line 02508201610067 [08:25:20]line Кассир : Дуйшенбиев А. [08:25:20]line Счет N : (1)673154 [08:25:20]line 20.06.2024 08:02 [08:25:20]line ПРОДАЖА [08:25:20]line ТРК (МРК, ГНК): 32 [08:25:20]line Вид ГСМ : 2710124130 [08:25:20]line Аи-92-К-5 [08:25:20]line 10.000 x 66.40 [08:25:20]line ИТОГ: 664.00 [08:25:20]line Тип оплаты: Талоны: Партнер нефть [08:25:20]line 3886585 [08:25:20]line ______________________ [08:25:20]line (подпись) [08:25:20]written 0, free lines is 4095 [08:25:20]Write to MH i2c: 01 00 00 4D 04 51 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 4D 04 00 00 00 00 00 13 0E 79 [08:25:20]RasterBufferAndPrint [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]written 0, free lines is 3605 [08:25:20]MH_Cut [08:25:20]Write to MH i2c: D1 01 00 54 04 01 2A [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 01 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 01 00 54 04 00 29 [08:25:20]Write to MH i2c: 01 00 00 55 04 59 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:21]OFD Sender: No OFD packet to send [08:25:21]*** Cut start [08:25:21]*** Partial cut [08:25:21]*** CUTSNS_PIN = 1 [08:25:21]*** CUTSNS_PIN = 0 [08:25:21]*** Brake cut motor [08:25:22]Read from MH i2c: 01 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: 01 07 00 [08:25:22]MH_I2C_Read... [08:25:22]*** Stop cut motor [08:25:22]*** Cut end [08:25:22]Read from MH i2c: 01 07 00 55 04 00 00 00 00 00 FF 0F 6E [08:25:22]process_action print_text done [08:25:22]requested_data is exist [08:25:22]produce_requested_data [08:25:22]requested_item fm.sn is exist - process it [08:25:22]wFMCommunicate request_size=4 [08:25:22]MH_SAM_APDU [08:25:22]CAPDU: 80 11 00 00 [08:25:22]Write to MH i2c: E2 08 00 56 04 80 11 00 00 00 00 00 00 D4 [08:25:22]Write i2c OK [08:25:22]MH_I2C_Read... [08:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:22]Read from MH i2c: E2 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 17 00 [08:25:22]MH_I2C_Read... [08:25:22]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 35 30 39 33 90 00 27 [08:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:25:22]wFMCommunicate OK [08:25:22]requested_item fd.num is exist - process it [08:25:22]SAM_PROTO_GetFieldsCounters [08:25:22]wFMCommunicate request_size=4 [08:25:22]MH_SAM_APDU [08:25:22]CAPDU: 80 13 00 00 [08:25:22]Write to MH i2c: E2 08 00 57 04 80 13 00 00 00 00 00 00 D7 [08:25:22]Write i2c OK [08:25:22]MH_I2C_Read... [08:25:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:22]Read from MH i2c: E2 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 62 00 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 62 00 57 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A1 95 01 00 0E 04 04 00 62 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 E6 [08:25:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A1 95 01 00 0E 04 04 00 62 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:25:22]wFMCommunicate OK [08:25:22]SAM_PROTO_GetFieldsCounters done [08:25:22]requested_item shift.num is exist - process it [08:25:22]requested_item shift.opened is exist - process it [08:25:22]req_shift_opened [08:25:22]FM_GetShiftState [08:25:22]SAM_PROTO_GetShiftState [08:25:22]wFMCommunicate request_size=4 [08:25:22]MH_SAM_APDU [08:25:22]CAPDU: 80 13 01 00 [08:25:22]Write to MH i2c: E2 08 00 58 04 80 13 01 00 00 00 00 00 D9 [08:25:22]Write i2c OK [08:25:22]MH_I2C_Read... [08:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:22]Read from MH i2c: E2 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 0E 00 [08:25:22]MH_I2C_Read... [08:25:22]Read from MH i2c: E2 0E 00 58 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 28 [08:25:22]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:25:22]wFMCommunicate OK [08:25:22]SAM_PROTO_GetShiftState done [08:25:22]FM_GetShiftState done [08:25:22]req_shift_opened done [08:25:22]requested_item shift.open_date is exist - process it [08:25:22]req_shift_open_date [08:25:22]req_shift_open_date done [08:25:22]produce_requested_data done [08:25:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103841,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [08:25:22]process_action_free print_text [08:25:22]json_value_free [08:25:22]json_value_free done [08:25:22]process_json_proto returns [08:25:22]Send response to host [08:25:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103841,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [08:25:22]free response buf [08:25:22]execute_script done [08:25:22]execute_script returns [08:25:22]free content buf [08:25:22]Sock 9.Close socket [08:25:22]Sock 9.Thread stoped [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:33]accept exits with 7 [08:29:33]New connection [08:29:33]New thread 3067063652 created [08:29:33]Thread 3067207012 joined [08:29:33]Waiting for new connection... [08:29:33] Sock 7.Parse request [08:29:33]Sock 7.Check first char [08:29:33]Sock 7.First char is OK [08:29:33]request: POST /json_proto HTTP/1.0 [08:29:33]Method: POST [08:29:33]URL: /json_proto [08:29:33]Method is POST - this is cgi request [08:29:33]url: /json_proto [08:29:33]query_string will be loaded in cgi processing [08:29:33]execute_cgi json_proto POST (null) [08:29:33]execute_cgi path=json_proto method=POST [08:29:33]POST find Content-Length [08:29:33]Host: 172.17.38.133:8080 [08:29:33]Content-Length: 682 [08:29:33]Content-Type: application/json [08:29:33] [08:29:33]POST finish read [08:29:33]Found Content-Length = 682 [08:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 27.520, "sum" : 1827.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1827.00, "payments": [ { "type": 0, "sum" : 1827.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:33]execute_script... [08:29:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 27.520, "sum" : 1827.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1827.00, "payments": [ { "type": 0, "sum" : 1827.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:33]POST & json_proto [08:29:33]process_json_proto [08:29:33]json parsed OK: [08:29:33]protocol is kg_v1.0 [08:29:33]action value=close_receipt [08:29:33]process_action close_receipt [08:29:33]cmd_close_receipt [08:29:33]MH_GetDate [08:29:33]Write to MH i2c: F0 00 00 59 04 4C [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: F0 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: F0 09 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: F0 09 00 59 04 00 6E E8 73 66 BD 8F 7C 64 B0 [08:29:33]GetLastDocTimeStamp 1718870988 [08:29:33]current date 1718872174 [08:29:33]FM_GetShiftState [08:29:33]SAM_PROTO_GetShiftState [08:29:33]wFMCommunicate request_size=4 [08:29:33]MH_SAM_APDU [08:29:33]CAPDU: 80 13 01 00 [08:29:33]Write to MH i2c: E2 08 00 5A 04 80 13 01 00 00 00 00 00 DB [08:29:33]Write i2c OK [08:29:33]MH_I2C_Read... [08:29:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:33]Read from MH i2c: E2 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 0E 00 [08:29:33]MH_I2C_Read... [08:29:33]Read from MH i2c: E2 0E 00 5A 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 2A [08:29:33]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:29:33]wFMCommunicate OK [08:29:33]SAM_PROTO_GetShiftState done [08:29:33]FM_GetShiftState done [08:29:33]opened in 1718843124 [08:29:33]opened+sec_in_day 1718929524 [08:29:33]quantity*price = 182732 [08:29:33]sum+1 = 182734 [08:29:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1827.00 Внесено: 2000.00 СДАЧА: 173.00 НСП 1% : 16.17 НДС 12% : 194.05 Наличными: 1827.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 27 20.06.2024 08:29 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103842 ФПД: 250297702653011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T082934&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103842&fm=250297702653011&tin=02508201610067®Number=0000000000092785&sum=182700 [08:29:34]StoreToDocumentArchive [08:29:34]shift 354 fd 103842 [08:29:34]save to /storage/0354/doc_00103842 [08:29:34]save last doc name /storage/0354/doc_00103842 to /storage/kkm_last_doc_name [08:29:34]save OK [08:29:34]Clear old archive folders... [08:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:34]tlvbuf is 008385F0 [08:29:34]SAM_PROTO_ClearQueue [08:29:34]wFMCommunicate request_size=4 [08:29:34]MH_SAM_APDU [08:29:34]CAPDU: 80 09 00 00 [08:29:34]Write to MH i2c: E2 08 00 67 04 80 09 00 00 00 00 00 00 DD [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 [08:29:34]MH_I2C_Read... [08:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:34]Read from MH i2c: E2 03 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [08:29:34]RAPDU: 90 00 [08:29:34]wFMCommunicate OK [08:29:34]SAM_PROTO_ClearQueue done [08:29:34]KKMCreateOFDPacket [08:29:34]OFDProtocolAddRootSTLVToBuf [08:29:34]FM_MakeSignedData [08:29:34]FM_MakeSignedData [08:29:34]SAM_PROTO_SignData [08:29:34]wFMCommunicate request_size=4 [08:29:34]MH_SAM_APDU [08:29:34]CAPDU: 80 0D 01 02 [08:29:34]Write to MH i2c: E2 08 00 68 04 80 0D 01 02 00 00 00 00 E5 [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:34]Read from MH i2c: E2 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 03 00 [08:29:34]MH_I2C_Read... [08:29:34]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [08:29:34]RAPDU: 90 00 [08:29:34]wFMCommunicate OK [08:29:34]wFMCommunicate request_size=255 [08:29:34]MH_SAM_APDU [08:29:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 6B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CD C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 4B 00 00 00 00 07 04 06 00 AC C9 02 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 6E E8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 95 01 00 35 04 06 00 E3 [08:29:34]Write to MH i2c: E2 02 01 69 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 80 6B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CD C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 4B 00 00 00 00 07 04 06 00 AC C9 02 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 6E E8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 95 01 00 35 04 06 00 E3 00 00 A6 [08:29:34]Write i2c OK [08:29:34]MH_I2C_Read... [08:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:35]Read from MH i2c: E2 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 03 00 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [08:29:35]RAPDU: 90 00 [08:29:35]wFMCommunicate OK [08:29:35]wFMCommunicate request_size=10 [08:29:35]MH_SAM_APDU [08:29:35]CAPDU: 80 0D 02 02 05 A4 F9 A7 9C 53 [08:29:35]Write to MH i2c: E2 0D 00 6A 04 80 0D 02 02 05 00 A4 F9 A7 9C 53 00 00 25 [08:29:35]Write i2c OK [08:29:35]MH_I2C_Read... [08:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:35]Read from MH i2c: E2 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 03 00 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [08:29:35]RAPDU: 90 00 [08:29:35]wFMCommunicate OK [08:29:35]wFMCommunicate request_size=4 [08:29:35]MH_SAM_APDU [08:29:35]CAPDU: 80 0D 03 02 [08:29:35]Write to MH i2c: E2 08 00 6B 04 80 0D 03 02 00 00 00 00 EA [08:29:35]Write i2c OK [08:29:35]MH_I2C_Read... [08:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:35]Read from MH i2c: E2 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 0B 00 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 0B 00 6B 04 00 AA 27 A2 6A 28 ED 00 AE 90 00 8B [08:29:35]RAPDU: AA 27 A2 6A 28 ED 00 AE 90 00 [08:29:35]wFMCommunicate OK [08:29:35]SAM_PROTO_SignData done [08:29:35]FM_MakeSignedData done [08:29:35]CreateOFDProtocolMessage [08:29:35]wFMCommunicate request_size=4 [08:29:35]MH_SAM_APDU [08:29:35]CAPDU: 80 11 00 00 [08:29:35]Write to MH i2c: E2 08 00 6C 04 80 11 00 00 00 00 00 00 EA [08:29:35]Write i2c OK [08:29:35]MH_I2C_Read... [08:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:35]Read from MH i2c: E2 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 17 00 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: E2 17 00 6C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3D [08:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:29:35]wFMCommunicate OK [08:29:35]CreateOFDProtocolMessage done [08:29:35]OFDSenderStorePacket 103842 [08:29:35]StoreOFDPacket docnum=103842 [08:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 11 3F 07 01 0E 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 6B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CD C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 4B 00 00 00 00 07 04 06 00 AC C9 02 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 6E E8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 95 01 00 35 04 06 00 E3 A4 F9 A7 9C 53 AA 27 A2 6A 28 ED 00 AE [08:29:35]CheckFolder [08:29:35]dirname=/storage/ofd_packets [08:29:35]CheckFolder done [08:29:35]ProducePacketName [08:29:35]name=ofd_packets/00103842 [08:29:35]NVStorageSaveData ofd_packets/00103842 [08:29:35]File name is /storage/ofd_packets/00103842 [08:29:35]Write 301 bytes [08:29:35]NVStorageSaveData done [08:29:35]OFDSenderStorePacket done [08:29:35]KKMCreateOFDPacket done [08:29:35]NVStorageSaveData kkm_last_timestamp [08:29:35]File name is /storage/kkm_last_timestamp [08:29:35]Write 4 bytes [08:29:35]NVStorageSaveData done [08:29:35]ExternCall_PrintAddStr [08:29:35]wPrintStart [08:29:35]Write to MH i2c: 01 00 00 6D 04 71 [08:29:35]Write i2c OK [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: 01 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: 01 07 00 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 FF 0F 86 [08:29:35]RasterBufferAndPrint [08:29:35]line Счет N : (1)673155 [08:29:35]line ИНН: 02508201610067 [08:29:35]line Контрольно-Кассовый Чек [08:29:35]line ПРОДАЖА [08:29:35]line ТРК (МРК, ГНК) : 42 [08:29:35]line Товар: 2710124130 [08:29:35]line Аи-92-К-5 [08:29:35]line 27.520 * 66.40 [08:29:35]line = 1827.33 [08:29:35]line НДС 12% НСП 1% [08:29:35]line > о реализуемом товаре [08:29:35]line ОКРУГЛЕНИЕ: -0.33 [08:29:35]line ИТОГО: 1827.00 [08:29:35]line Внесено: 2000.00 [08:29:35]line СДАЧА: 173.00 [08:29:35]line НСП 1% : 16.17 [08:29:35]line НДС 12% : 194.05 [08:29:35]line Наличными: 1827.00 [08:29:35]line Безнал.: 0.00 [08:29:35]line Место: АЗС № 120 "Партнер Нефть" [08:29:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:29:35]line СНО: Общий режим [08:29:35]line Чек 27 20.06.2024 08:29 [08:29:35]line Смена: 354 ФФД: 1.0 [08:29:35]line ЗНМ: 0300000164 [08:29:35]line РНМ: 0000000000092785 [08:29:35]line Версия ККМ: 001 [08:29:35]line ФМ: 0000000000875093 [08:29:35]line ФД: 103842 [08:29:35]line ФПД: 250297702653011 [08:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T082934&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103842&fm=250297702653011&tin=02508201610067®Number=0000000000092785&sum=182700 [08:29:35]OFD Sender: Processing packet 103842 [packets to send 17, broken 16] [08:29:35]ProducePacketName [08:29:35]name=ofd_packets/00103842 [08:29:35]OFD Sender: To server: pG, [08:29:35]CommunicateWithHost lk.salyk.kg:30040 [08:29:35]ConnectInit lk.salyk.kg [08:29:35]written 0, free lines is 4095 [08:29:35]Connected sock=10 [08:29:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 11 3F 07 01 0E 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 6B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CD C9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC C9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 4B 00 00 00 00 07 04 06 00 AC C9 02 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 6E E8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A2 95 01 00 35 04 06 00 E3 A4 F9 A7 9C 53 AA 27 A2 6A 28 ED 00 AE [08:29:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 14 22 47 00 2E 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 35 30 39 33 10 04 04 00 A2 95 01 00 F4 03 04 00 F4 8E 73 66 B6 04 01 00 00 62 CB FE 7A 0D B6 E0 B6 [08:29:35]CommunicateWithHost err = 0 [08:29:35]CheckOFDResponse [08:29:35]1017 (14) - 77093643461234 [08:29:35]1041 (16) - 0000000000875093 [08:29:35]1040 (4) - 103842 [08:29:35]1012 (4) - 20.06.2024 02:07 [08:29:35]1206 (1) - 0 [08:29:35]OFD Sender: Remove packet 103842 [08:29:35]ProducePacketName [08:29:35]name=ofd_packets/00103842 [08:29:35]NVStorageDeleteData [08:29:36]Write to MH i2c: 01 00 00 98 04 9C [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: 01 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: 01 07 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: 01 07 00 98 04 00 00 00 00 00 DD 0C 8C [08:29:36]RasterBufferAndPrint [08:29:36]line [08:29:36]line [08:29:36]line [08:29:36]line [08:29:36]line [08:29:36]written 0, free lines is 3300 [08:29:36]MH_Cut [08:29:36]Write to MH i2c: D1 01 00 9F 04 01 75 [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: D1 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: D1 01 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: D1 01 00 9F 04 00 74 [08:29:36]Write to MH i2c: 01 00 00 A0 04 A4 [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]OFD Sender: No OFD packet to send [08:29:36]*** Cut start [08:29:36]*** Partial cut [08:29:36]*** CUTSNS_PIN = 1 [08:29:36]*** CUTSNS_PIN = 0 [08:29:37]*** Brake cut motor [08:29:37]Read from MH i2c: 01 [08:29:37]MH_I2C_Read... [08:29:37]*** Stop cut motor [08:29:37]*** Cut end [08:29:37]Read from MH i2c: 01 07 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: 01 07 00 A0 04 00 00 00 00 00 FF 0F B9 [08:29:37]process_action close_receipt done [08:29:37]requested_data is exist [08:29:37]produce_requested_data [08:29:37]requested_item fm.sn is exist - process it [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 11 00 00 [08:29:37]Write to MH i2c: E2 08 00 A1 04 80 11 00 00 00 00 00 00 1F [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 17 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 17 00 A1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 72 [08:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:29:37]wFMCommunicate OK [08:29:37]requested_item fd.num is exist - process it [08:29:37]SAM_PROTO_GetFieldsCounters [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 13 00 00 [08:29:37]Write to MH i2c: E2 08 00 A2 04 80 13 00 00 00 00 00 00 22 [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 62 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 62 00 A2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A2 95 01 00 0E 04 04 00 62 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 35 [08:29:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A2 95 01 00 0E 04 04 00 62 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:29:37]wFMCommunicate OK [08:29:37]SAM_PROTO_GetFieldsCounters done [08:29:37]requested_item shift.num is exist - process it [08:29:37]requested_item shift.opened is exist - process it [08:29:37]req_shift_opened [08:29:37]FM_GetShiftState [08:29:37]SAM_PROTO_GetShiftState [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 13 01 00 [08:29:37]Write to MH i2c: E2 08 00 A3 04 80 13 01 00 00 00 00 00 24 [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:37]Read from MH i2c: E2 0E 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 0E 00 A3 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 73 [08:29:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:29:37]wFMCommunicate OK [08:29:37]SAM_PROTO_GetShiftState done [08:29:37]FM_GetShiftState done [08:29:37]req_shift_opened done [08:29:37]requested_item shift.open_date is exist - process it [08:29:37]req_shift_open_date [08:29:37]req_shift_open_date done [08:29:37]produce_requested_data done [08:29:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103842,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [08:29:37]process_action_free close_receipt [08:29:37]json_value_free [08:29:37]json_value_free done [08:29:37]process_json_proto returns [08:29:37]Send response to host [08:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103842,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [08:29:37]free response buf [08:29:37]execute_script done [08:29:37]execute_script returns [08:29:37]free content buf [08:29:37]Sock 7.Close socket [08:29:37]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:55]accept exits with 9 [08:30:55]New connection [08:30:55]New thread 3067207012 created [08:30:55]Thread 3067063652 joined [08:30:55]Waiting for new connection... [08:30:55] Sock 9.Parse request [08:30:55]Sock 9.Check first char [08:30:55]Sock 9.First char is OK [08:30:55]request: POST /json_proto HTTP/1.0 [08:30:55]Method: POST [08:30:55]URL: /json_proto [08:30:55]Method is POST - this is cgi request [08:30:55]url: /json_proto [08:30:55]query_string will be loaded in cgi processing [08:30:55]execute_cgi json_proto POST (null) [08:30:55]execute_cgi path=json_proto method=POST [08:30:55]POST find Content-Length [08:30:55]Host: 172.17.38.133:8080 [08:30:55]Content-Length: 682 [08:30:55]Content-Type: application/json [08:30:55] [08:30:55]POST finish read [08:30:55]Found Content-Length = 682 [08:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:30:55]execute_script... [08:30: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)673156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:30:55]POST & json_proto [08:30:55]process_json_proto [08:30:55]json parsed OK: [08:30:55]protocol is kg_v1.0 [08:30:55]action value=close_receipt [08:30:55]process_action close_receipt [08:30:55]cmd_close_receipt [08:30:55]MH_GetDate [08:30:55]Write to MH i2c: F0 00 00 A4 04 97 [08:30:55]Write i2c OK [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: F0 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: F0 09 00 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: F0 09 00 A4 04 00 C0 E8 73 66 BD 8F 7C 64 4D [08:30:55]GetLastDocTimeStamp 1718872174 [08:30:55]current date 1718872256 [08:30:55]FM_GetShiftState [08:30:55]SAM_PROTO_GetShiftState [08:30:55]wFMCommunicate request_size=4 [08:30:55]MH_SAM_APDU [08:30:55]CAPDU: 80 13 01 00 [08:30:55]Write to MH i2c: E2 08 00 A5 04 80 13 01 00 00 00 00 00 26 [08:30:55]Write i2c OK [08:30:55]MH_I2C_Read... [08:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:55]Read from MH i2c: E2 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: E2 0E 00 [08:30:55]MH_I2C_Read... [08:30:55]Read from MH i2c: E2 0E 00 A5 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 75 [08:30:55]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:30:55]wFMCommunicate OK [08:30:55]SAM_PROTO_GetShiftState done [08:30:55]FM_GetShiftState done [08:30:55]opened in 1718843124 [08:30:55]opened+sec_in_day 1718929524 [08:30:55]quantity*price = 100064 [08:30:55]sum+1 = 100066 [08:30:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 28 20.06.2024 08:30 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103843 ФПД: 66348273271241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T083056&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103843&fm=66348273271241&tin=02508201610067®Number=0000000000092785&sum=100000 [08:30:57]StoreToDocumentArchive [08:30:57]shift 354 fd 103843 [08:30:57]save to /storage/0354/doc_00103843 [08:30:57]save last doc name /storage/0354/doc_00103843 to /storage/kkm_last_doc_name [08:30:57]save OK [08:30:57]Clear old archive folders... [08:30:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:57]tlvbuf is 0082CC90 [08:30:57]SAM_PROTO_ClearQueue [08:30:57]wFMCommunicate request_size=4 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 09 00 00 [08:30:57]Write to MH i2c: E2 08 00 B2 04 80 09 00 00 00 00 00 00 28 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [08:30:57]RAPDU: 90 00 [08:30:57]wFMCommunicate OK [08:30:57]SAM_PROTO_ClearQueue done [08:30:57]KKMCreateOFDPacket [08:30:57]OFDProtocolAddRootSTLVToBuf [08:30:57]FM_MakeSignedData [08:30:57]FM_MakeSignedData [08:30:57]SAM_PROTO_SignData [08:30:57]wFMCommunicate request_size=4 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 0D 01 02 [08:30:57]Write to MH i2c: E2 08 00 B3 04 80 0D 01 02 00 00 00 00 30 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [08:30:57]RAPDU: 90 00 [08:30:57]wFMCommunicate OK [08:30:57]wFMCommunicate request_size=255 [08:30:57]MH_SAM_APDU [08:30: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C0 E8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 95 01 00 35 04 06 00 3C [08:30:57]Write to MH i2c: E2 02 01 B4 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C0 E8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 95 01 00 35 04 06 00 3C 00 00 AF [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [08:30:57]RAPDU: 90 00 [08:30:57]wFMCommunicate OK [08:30:57]wFMCommunicate request_size=10 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 0D 02 02 05 57 E9 42 81 C9 [08:30:57]Write to MH i2c: E2 0D 00 B5 04 80 0D 02 02 05 00 57 E9 42 81 C9 00 00 09 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [08:30:57]RAPDU: 90 00 [08:30:57]wFMCommunicate OK [08:30:57]wFMCommunicate request_size=4 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 0D 03 02 [08:30:57]Write to MH i2c: E2 08 00 B6 04 80 0D 03 02 00 00 00 00 35 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 0B 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 0B 00 B6 04 00 E5 94 19 82 2E E7 93 C5 90 00 B7 [08:30:57]RAPDU: E5 94 19 82 2E E7 93 C5 90 00 [08:30:57]wFMCommunicate OK [08:30:57]SAM_PROTO_SignData done [08:30:57]FM_MakeSignedData done [08:30:57]CreateOFDProtocolMessage [08:30:57]wFMCommunicate request_size=4 [08:30:57]MH_SAM_APDU [08:30:57]CAPDU: 80 11 00 00 [08:30:57]Write to MH i2c: E2 08 00 B7 04 80 11 00 00 00 00 00 00 35 [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:57]Read from MH i2c: E2 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 17 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: E2 17 00 B7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 88 [08:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:30:57]wFMCommunicate OK [08:30:57]CreateOFDProtocolMessage done [08:30:57]OFDSenderStorePacket 103843 [08:30:57]StoreOFDPacket docnum=103843 [08:30:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FD DC 07 01 D6 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C0 E8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 95 01 00 35 04 06 00 3C 57 E9 42 81 C9 E5 94 19 82 2E E7 93 C5 [08:30:57]CheckFolder [08:30:57]dirname=/storage/ofd_packets [08:30:57]CheckFolder done [08:30:57]ProducePacketName [08:30:57]name=ofd_packets/00103843 [08:30:57]NVStorageSaveData ofd_packets/00103843 [08:30:57]File name is /storage/ofd_packets/00103843 [08:30:57]Write 301 bytes [08:30:57]NVStorageSaveData done [08:30:57]OFDSenderStorePacket done [08:30:57]KKMCreateOFDPacket done [08:30:57]NVStorageSaveData kkm_last_timestamp [08:30:57]File name is /storage/kkm_last_timestamp [08:30:57]Write 4 bytes [08:30:57]NVStorageSaveData done [08:30:57]ExternCall_PrintAddStr [08:30:57]wPrintStart [08:30:57]Write to MH i2c: 01 00 00 B8 04 BC [08:30:57]Write i2c OK [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 07 00 [08:30:57]MH_I2C_Read... [08:30:57]Read from MH i2c: 01 07 00 B8 04 00 00 00 00 00 FF 0F D1 [08:30:57]RasterBufferAndPrint [08:30:57]line Счет N : (1)673156 [08:30:57]line ИНН: 02508201610067 [08:30:57]line Контрольно-Кассовый Чек [08:30:57]line ПРОДАЖА [08:30:57]line ТРК (МРК, ГНК) : 42 [08:30:57]line Товар: 2710124130 [08:30:57]line Аи-92-К-5 [08:30:57]line 15.070 * 66.40 [08:30:57]line = 1000.65 [08:30:57]line НДС 12% НСП 1% [08:30:57]line > о реализуемом товаре [08:30:57]line ОКРУГЛЕНИЕ: -0.65 [08:30:57]line ИТОГО: 1000.00 [08:30:57]line Внесено: 1000.00 [08:30:57]line СДАЧА: 0.00 [08:30:57]line НСП 1% : 8.85 [08:30:57]line НДС 12% : 106.26 [08:30:57]line Наличными: 1000.00 [08:30:57]line Безнал.: 0.00 [08:30:57]line Место: АЗС № 120 "Партнер Нефть" [08:30:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:30:57]line СНО: Общий режим [08:30:57]line Чек 28 20.06.2024 08:30 [08:30:57]line Смена: 354 ФФД: 1.0 [08:30:57]line ЗНМ: 0300000164 [08:30:57]line РНМ: 0000000000092785 [08:30:57]line Версия ККМ: 001 [08:30:57]line ФМ: 0000000000875093 [08:30:57]line ФД: 103843 [08:30:57]line ФПД: 66348273271241 [08:30:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T083056&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103843&fm=66348273271241&tin=02508201610067®Number=0000000000092785&sum=100000 [08:30:57]OFD Sender: Processing packet 103843 [packets to send 17, broken 16] [08:30:57]ProducePacketName [08:30:57]name=ofd_packets/00103843 [08:30:57]OFD Sender: To server: pG, [08:30:57]CommunicateWithHost lk.salyk.kg:30040 [08:30:57]ConnectInit lk.salyk.kg [08:30:57]written 0, free lines is 4095 [08:30:58]Connected sock=10 [08:30:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FD DC 07 01 D6 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C0 E8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 95 01 00 35 04 06 00 3C 57 E9 42 81 C9 E5 94 19 82 2E E7 93 C5 [08:30:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 29 CE 47 00 42 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A3 95 01 00 F4 03 04 00 46 8F 73 66 B6 04 01 00 00 40 D2 8E 99 BA 2B 54 4C [08:30:58]CommunicateWithHost err = 0 [08:30:58]CheckOFDResponse [08:30:58]1017 (14) - 77093643461234 [08:30:58]1041 (16) - 0000000000875093 [08:30:58]1040 (4) - 103843 [08:30:58]1012 (4) - 20.06.2024 02:09 [08:30:58]1206 (1) - 0 [08:30:58]OFD Sender: Remove packet 103843 [08:30:58]ProducePacketName [08:30:58]name=ofd_packets/00103843 [08:30:58]NVStorageDeleteData [08:30:58]Write to MH i2c: 01 00 00 E3 04 E7 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: 01 07 00 E3 04 00 00 00 00 00 D4 0C CE [08:30:58]RasterBufferAndPrint [08:30:58]line [08:30:58]line [08:30:58]line [08:30:58]line [08:30:58]line [08:30:58]written 0, free lines is 3292 [08:30:58]MH_Cut [08:30:58]Write to MH i2c: D1 01 00 EA 04 01 C0 [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: D1 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: D1 01 00 [08:30:58]MH_I2C_Read... [08:30:58]Read from MH i2c: D1 01 00 EA 04 00 BF [08:30:58]Write to MH i2c: 01 00 00 EB 04 EF [08:30:58]Write i2c OK [08:30:58]MH_I2C_Read... [08:30:58]OFD Sender: No OFD packet to send [08:30:59]*** Cut start [08:30:59]*** Partial cut [08:30:59]*** CUTSNS_PIN = 1 [08:30:59]*** CUTSNS_PIN = 0 [08:30:59]*** Brake cut motor [08:30:59]Read from MH i2c: 01 [08:30:59]MH_I2C_Read... [08:30:59]*** Stop cut motor [08:30:59]*** Cut end [08:30:59]Read from MH i2c: 01 07 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: 01 07 00 EB 04 00 00 00 00 00 FF 0F 04 [08:30:59]process_action close_receipt done [08:30:59]requested_data is exist [08:30:59]produce_requested_data [08:30:59]requested_item fm.sn is exist - process it [08:30:59]wFMCommunicate request_size=4 [08:30:59]MH_SAM_APDU [08:30:59]CAPDU: 80 11 00 00 [08:30:59]Write to MH i2c: E2 08 00 EC 04 80 11 00 00 00 00 00 00 6A [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:59]Read from MH i2c: E2 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 17 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 17 00 EC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BD [08:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:30:59]wFMCommunicate OK [08:30:59]requested_item fd.num is exist - process it [08:30:59]SAM_PROTO_GetFieldsCounters [08:30:59]wFMCommunicate request_size=4 [08:30:59]MH_SAM_APDU [08:30:59]CAPDU: 80 13 00 00 [08:30:59]Write to MH i2c: E2 08 00 ED 04 80 13 00 00 00 00 00 00 6D [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:59]Read from MH i2c: E2 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 62 00 [08:30:59]MH_I2C_Read... [08:30:59]Read from MH i2c: E2 62 00 ED 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A3 95 01 00 0E 04 04 00 62 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 84 [08:30:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A3 95 01 00 0E 04 04 00 62 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:59]wFMCommunicate OK [08:30:59]SAM_PROTO_GetFieldsCounters done [08:30:59]requested_item shift.num is exist - process it [08:30:59]requested_item shift.opened is exist - process it [08:30:59]req_shift_opened [08:30:59]FM_GetShiftState [08:30:59]SAM_PROTO_GetShiftState [08:30:59]wFMCommunicate request_size=4 [08:30:59]MH_SAM_APDU [08:30:59]CAPDU: 80 13 01 00 [08:30:59]Write to MH i2c: E2 08 00 EE 04 80 13 01 00 00 00 00 00 6F [08:30:59]Write i2c OK [08:30:59]MH_I2C_Read... [08:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:00]Read from MH i2c: E2 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 0E 00 [08:31:00]MH_I2C_Read... [08:31:00]Read from MH i2c: E2 0E 00 EE 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BE [08:31:00]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:31:00]wFMCommunicate OK [08:31:00]SAM_PROTO_GetShiftState done [08:31:00]FM_GetShiftState done [08:31:00]req_shift_opened done [08:31:00]requested_item shift.open_date is exist - process it [08:31:00]req_shift_open_date [08:31:00]req_shift_open_date done [08:31:00]produce_requested_data done [08:31:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103843,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [08:31:00]process_action_free close_receipt [08:31:00]json_value_free [08:31:00]json_value_free done [08:31:00]process_json_proto returns [08:31:00]Send response to host [08:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103843,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [08:31:00]free response buf [08:31:00]execute_script done [08:31:00]execute_script returns [08:31:00]free content buf [08:31:00]Sock 9.Close socket [08:31:00]Sock 9.Thread stoped [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:08]accept exits with 7 [08:41:08]New connection [08:41:08]New thread 3067063652 created [08:41:08]Thread 3067207012 joined [08:41:08]Waiting for new connection... [08:41:08] Sock 7.Parse request [08:41:08]Sock 7.Check first char [08:41:08]Sock 7.First char is OK [08:41:08]request: POST /json_proto HTTP/1.0 [08:41:08]Method: POST [08:41:08]URL: /json_proto [08:41:08]Method is POST - this is cgi request [08:41:08]url: /json_proto [08:41:08]query_string will be loaded in cgi processing [08:41:08]execute_cgi json_proto POST (null) [08:41:08]execute_cgi path=json_proto method=POST [08:41:08]POST find Content-Length [08:41:08]Host: 172.17.38.133:8080 [08:41:08]Content-Length: 677 [08:41:08]Content-Type: application/json [08:41:08] [08:41:08]POST finish read [08:41:08]Found Content-Length = 677 [08:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:41:08]execute_script... [08:41: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)673157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:41:08]POST & json_proto [08:41:08]process_json_proto [08:41:08]json parsed OK: [08:41:08]protocol is kg_v1.0 [08:41:08]action value=close_receipt [08:41:08]process_action close_receipt [08:41:08]cmd_close_receipt [08:41:08]MH_GetDate [08:41:08]Write to MH i2c: F0 00 00 EF 04 E2 [08:41:08]Write i2c OK [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: F0 [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: F0 09 00 [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: F0 09 00 EF 04 00 25 EB 73 66 BD 8F 7C 64 00 [08:41:08]GetLastDocTimeStamp 1718872256 [08:41:08]current date 1718872869 [08:41:08]FM_GetShiftState [08:41:08]SAM_PROTO_GetShiftState [08:41:08]wFMCommunicate request_size=4 [08:41:08]MH_SAM_APDU [08:41:08]CAPDU: 80 13 01 00 [08:41:08]Write to MH i2c: E2 08 00 F0 04 80 13 01 00 00 00 00 00 71 [08:41:08]Write i2c OK [08:41:08]MH_I2C_Read... [08:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:08]Read from MH i2c: E2 [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: E2 0E 00 [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: E2 0E 00 F0 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C0 [08:41:08]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:41:08]wFMCommunicate OK [08:41:08]SAM_PROTO_GetShiftState done [08:41:08]FM_GetShiftState done [08:41:08]opened in 1718843124 [08:41:08]opened+sec_in_day 1718929524 [08:41:08]quantity*price = 30012 [08:41:08]sum+1 = 30014 [08:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 29 20.06.2024 08:41 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103844 ФПД: 18187532283041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T084109&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103844&fm=18187532283041&tin=02508201610067®Number=0000000000092785&sum=30000 [08:41:09]StoreToDocumentArchive [08:41:09]shift 354 fd 103844 [08:41:09]save to /storage/0354/doc_00103844 [08:41:09]save last doc name /storage/0354/doc_00103844 to /storage/kkm_last_doc_name [08:41:09]save OK [08:41:09]Clear old archive folders... [08:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:09]tlvbuf is 00833CC0 [08:41:09]SAM_PROTO_ClearQueue [08:41:09]wFMCommunicate request_size=4 [08:41:09]MH_SAM_APDU [08:41:09]CAPDU: 80 09 00 00 [08:41:09]Write to MH i2c: E2 08 00 FD 04 80 09 00 00 00 00 00 00 73 [08:41:09]Write i2c OK [08:41:09]MH_I2C_Read... [08:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:09]Read from MH i2c: E2 [08:41:09]MH_I2C_Read... [08:41:09]Read from MH i2c: E2 03 00 [08:41:09]MH_I2C_Read... [08:41:09]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [08:41:09]RAPDU: 90 00 [08:41:09]wFMCommunicate OK [08:41:09]SAM_PROTO_ClearQueue done [08:41:09]KKMCreateOFDPacket [08:41:09]OFDProtocolAddRootSTLVToBuf [08:41:09]FM_MakeSignedData [08:41:09]FM_MakeSignedData [08:41:09]SAM_PROTO_SignData [08:41:09]wFMCommunicate request_size=4 [08:41:09]MH_SAM_APDU [08:41:09]CAPDU: 80 0D 01 02 [08:41:09]Write to MH i2c: E2 08 00 FE 04 80 0D 01 02 00 00 00 00 7B [08:41:09]Write i2c OK [08:41:09]MH_I2C_Read... [08:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:09]Read from MH i2c: E2 [08:41:09]MH_I2C_Read... [08:41:09]Read from MH i2c: E2 03 00 [08:41:09]MH_I2C_Read... [08:41:09]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [08:41:09]RAPDU: 90 00 [08:41:09]wFMCommunicate OK [08:41:09]wFMCommunicate request_size=255 [08:41:09]MH_SAM_APDU [08:41:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 25 EB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 95 01 00 35 04 06 00 10 [08:41:09]Write to MH i2c: E2 02 01 FF 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 25 EB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 95 01 00 35 04 06 00 10 00 00 86 [08:41:09]Write i2c OK [08:41:09]MH_I2C_Read... [08:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:10]Read from MH i2c: E2 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 03 00 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [08:41:10]RAPDU: 90 00 [08:41:10]wFMCommunicate OK [08:41:10]wFMCommunicate request_size=10 [08:41:10]MH_SAM_APDU [08:41:10]CAPDU: 80 0D 02 02 05 8A 9D 66 AC A1 [08:41:10]Write to MH i2c: E2 0D 00 00 05 80 0D 02 02 05 00 8A 9D 66 AC A1 00 00 63 [08:41:10]Write i2c OK [08:41:10]MH_I2C_Read... [08:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:10]Read from MH i2c: E2 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 03 00 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [08:41:10]RAPDU: 90 00 [08:41:10]wFMCommunicate OK [08:41:10]wFMCommunicate request_size=4 [08:41:10]MH_SAM_APDU [08:41:10]CAPDU: 80 0D 03 02 [08:41:10]Write to MH i2c: E2 08 00 01 05 80 0D 03 02 00 00 00 00 81 [08:41:10]Write i2c OK [08:41:10]MH_I2C_Read... [08:41:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:10]Read from MH i2c: E2 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 0B 00 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 0B 00 01 05 00 F3 F1 15 C1 05 97 F2 28 90 00 F2 [08:41:10]RAPDU: F3 F1 15 C1 05 97 F2 28 90 00 [08:41:10]wFMCommunicate OK [08:41:10]SAM_PROTO_SignData done [08:41:10]FM_MakeSignedData done [08:41:10]CreateOFDProtocolMessage [08:41:10]wFMCommunicate request_size=4 [08:41:10]MH_SAM_APDU [08:41:10]CAPDU: 80 11 00 00 [08:41:10]Write to MH i2c: E2 08 00 02 05 80 11 00 00 00 00 00 00 81 [08:41:10]Write i2c OK [08:41:10]MH_I2C_Read... [08:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:10]Read from MH i2c: E2 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 17 00 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 17 00 02 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D4 [08:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:41:10]wFMCommunicate OK [08:41:10]CreateOFDProtocolMessage done [08:41:10]OFDSenderStorePacket 103844 [08:41:10]StoreOFDPacket docnum=103844 [08:41:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 41 EE 07 01 8D 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 25 EB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 95 01 00 35 04 06 00 10 8A 9D 66 AC A1 F3 F1 15 C1 05 97 F2 28 [08:41:10]CheckFolder [08:41:10]dirname=/storage/ofd_packets [08:41:10]CheckFolder done [08:41:10]ProducePacketName [08:41:10]name=ofd_packets/00103844 [08:41:10]NVStorageSaveData ofd_packets/00103844 [08:41:10]File name is /storage/ofd_packets/00103844 [08:41:10]Write 301 bytes [08:41:10]NVStorageSaveData done [08:41:10]OFDSenderStorePacket done [08:41:10]KKMCreateOFDPacket done [08:41:10]NVStorageSaveData kkm_last_timestamp [08:41:10]File name is /storage/kkm_last_timestamp [08:41:10]Write 4 bytes [08:41:10]NVStorageSaveData done [08:41:10]ExternCall_PrintAddStr [08:41:10]wPrintStart [08:41:10]Write to MH i2c: 01 00 00 03 05 08 [08:41:10]Write i2c OK [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: 01 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: 01 07 00 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 FF 0F 1D [08:41:10]RasterBufferAndPrint [08:41:10]line Счет N : (1)673157 [08:41:10]line ИНН: 02508201610067 [08:41:10]line Контрольно-Кассовый Чек [08:41:10]line ПРОДАЖА [08:41:10]line ТРК (МРК, ГНК) : 32 [08:41:10]line Товар: 2710124130 [08:41:10]line Аи-92-К-5 [08:41:10]line 4.520 * 66.40 [08:41:10]line = 300.13 [08:41:10]line НДС 12% НСП 1% [08:41:10]line > о реализуемом товаре [08:41:10]line ОКРУГЛЕНИЕ: -0.13 [08:41:10]line ИТОГО: 300.00 [08:41:10]line Внесено: 300.00 [08:41:10]line СДАЧА: 0.00 [08:41:10]line НСП 1% : 2.66 [08:41:10]line НДС 12% : 31.87 [08:41:10]line Наличными: 300.00 [08:41:10]line Безнал.: 0.00 [08:41:10]line Место: АЗС № 120 "Партнер Нефть" [08:41:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:41:10]line СНО: Общий режим [08:41:10]line Чек 29 20.06.2024 08:41 [08:41:10]line Смена: 354 ФФД: 1.0 [08:41:10]line ЗНМ: 0300000164 [08:41:10]line РНМ: 0000000000092785 [08:41:10]line Версия ККМ: 001 [08:41:10]line ФМ: 0000000000875093 [08:41:10]line ФД: 103844 [08:41:10]line ФПД: 18187532283041 [08:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T084109&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103844&fm=18187532283041&tin=02508201610067®Number=0000000000092785&sum=30000 [08:41:10]OFD Sender: Processing packet 103844 [packets to send 17, broken 16] [08:41:10]ProducePacketName [08:41:10]name=ofd_packets/00103844 [08:41:10]OFD Sender: To server: pG, [08:41:10]CommunicateWithHost lk.salyk.kg:30040 [08:41:10]ConnectInit lk.salyk.kg [08:41:10]written 0, free lines is 4095 [08:41:10]Connected sock=10 [08:41:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 41 EE 07 01 8D 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 25 EB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 95 01 00 35 04 06 00 10 8A 9D 66 AC A1 F3 F1 15 C1 05 97 F2 28 [08:41:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 5E A2 47 00 E0 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A4 95 01 00 F4 03 04 00 AB 91 73 66 B6 04 01 00 00 7C EC 72 E4 A5 9B E3 AC [08:41:11]CommunicateWithHost err = 0 [08:41:11]CheckOFDResponse [08:41:11]1017 (14) - 77093643461234 [08:41:11]1041 (16) - 0000000000875093 [08:41:11]1040 (4) - 103844 [08:41:11]1012 (4) - 20.06.2024 02:19 [08:41:11]1206 (1) - 0 [08:41:11]OFD Sender: Remove packet 103844 [08:41:11]ProducePacketName [08:41:11]name=ofd_packets/00103844 [08:41:11]NVStorageDeleteData [08:41:11]Write to MH i2c: 01 00 00 2E 05 33 [08:41:11]Write i2c OK [08:41:11]MH_I2C_Read... [08:41:11]Read from MH i2c: 01 [08:41:11]MH_I2C_Read... [08:41:11]Read from MH i2c: 01 07 00 [08:41:11]MH_I2C_Read... [08:41:11]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 DC 0C 22 [08:41:11]RasterBufferAndPrint [08:41:11]line [08:41:11]line [08:41:11]line [08:41:11]line [08:41:11]line [08:41:11]written 0, free lines is 3298 [08:41:11]MH_Cut [08:41:11]Write to MH i2c: D1 01 00 35 05 01 0C [08:41:11]Write i2c OK [08:41:11]MH_I2C_Read... [08:41:11]Read from MH i2c: D1 [08:41:11]MH_I2C_Read... [08:41:11]Read from MH i2c: D1 01 00 [08:41:11]MH_I2C_Read... [08:41:11]Read from MH i2c: D1 01 00 35 05 00 0B [08:41:11]Write to MH i2c: 01 00 00 36 05 3B [08:41:11]Write i2c OK [08:41:11]MH_I2C_Read... [08:41:11]OFD Sender: No OFD packet to send [08:41:11]*** Cut start [08:41:11]*** Partial cut [08:41:11]*** CUTSNS_PIN = 1 [08:41:11]*** CUTSNS_PIN = 0 [08:41:12]*** Brake cut motor [08:41:12]Read from MH i2c: 01 [08:41:12]MH_I2C_Read... [08:41:12]*** Stop cut motor [08:41:12]*** Cut end [08:41:12]Read from MH i2c: 01 07 00 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: 01 07 00 36 05 00 00 00 00 00 FF 0F 50 [08:41:12]process_action close_receipt done [08:41:12]requested_data is exist [08:41:12]produce_requested_data [08:41:12]requested_item fm.sn is exist - process it [08:41:12]wFMCommunicate request_size=4 [08:41:12]MH_SAM_APDU [08:41:12]CAPDU: 80 11 00 00 [08:41:12]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [08:41:12]Write i2c OK [08:41:12]MH_I2C_Read... [08:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:12]Read from MH i2c: E2 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: E2 17 00 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: E2 17 00 37 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 09 [08:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:41:12]wFMCommunicate OK [08:41:12]requested_item fd.num is exist - process it [08:41:12]SAM_PROTO_GetFieldsCounters [08:41:12]wFMCommunicate request_size=4 [08:41:12]MH_SAM_APDU [08:41:12]CAPDU: 80 13 00 00 [08:41:12]Write to MH i2c: E2 08 00 38 05 80 13 00 00 00 00 00 00 B9 [08:41:12]Write i2c OK [08:41:12]MH_I2C_Read... [08:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:12]Read from MH i2c: E2 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: E2 62 00 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: E2 62 00 38 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A4 95 01 00 0E 04 04 00 62 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 D4 [08:41:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A4 95 01 00 0E 04 04 00 62 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:41:12]wFMCommunicate OK [08:41:12]SAM_PROTO_GetFieldsCounters done [08:41:12]requested_item shift.num is exist - process it [08:41:12]requested_item shift.opened is exist - process it [08:41:12]req_shift_opened [08:41:12]FM_GetShiftState [08:41:12]SAM_PROTO_GetShiftState [08:41:12]wFMCommunicate request_size=4 [08:41:12]MH_SAM_APDU [08:41:12]CAPDU: 80 13 01 00 [08:41:12]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [08:41:12]Write i2c OK [08:41:12]MH_I2C_Read... [08:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:12]Read from MH i2c: E2 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: E2 0E 00 [08:41:12]MH_I2C_Read... [08:41:12]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0A [08:41:12]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:41:12]wFMCommunicate OK [08:41:12]SAM_PROTO_GetShiftState done [08:41:12]FM_GetShiftState done [08:41:12]req_shift_opened done [08:41:12]requested_item shift.open_date is exist - process it [08:41:12]req_shift_open_date [08:41:12]req_shift_open_date done [08:41:12]produce_requested_data done [08:41:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103844,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [08:41:12]process_action_free close_receipt [08:41:12]json_value_free [08:41:12]json_value_free done [08:41:12]process_json_proto returns [08:41:12]Send response to host [08:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103844,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [08:41:12]free response buf [08:41:12]execute_script done [08:41:12]execute_script returns [08:41:12]free content buf [08:41:12]Sock 7.Close socket [08:41:12]Sock 7.Thread stoped [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:32]accept exits with 9 [08:47:32]New connection [08:47:32]New thread 3067207012 created [08:47:32]Thread 3067063652 joined [08:47:32]Waiting for new connection... [08:47:32] Sock 9.Parse request [08:47:32]Sock 9.Check first char [08:47:32]Sock 9.First char is OK [08:47:32]request: POST /json_proto HTTP/1.0 [08:47:32]Method: POST [08:47:32]URL: /json_proto [08:47:32]Method is POST - this is cgi request [08:47:32]url: /json_proto [08:47:32]query_string will be loaded in cgi processing [08:47:32]execute_cgi json_proto POST (null) [08:47:32]execute_cgi path=json_proto method=POST [08:47:32]POST find Content-Length [08:47:32]Host: 172.17.38.133:8080 [08:47:32]Content-Length: 682 [08:47:32]Content-Type: application/json [08:47:32] [08:47:32]POST finish read [08:47:32]Found Content-Length = 682 [08:47:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673158", "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" : 73.90, "quantity" : 24.900, "sum" : 1840.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1840.00, "payments": [ { "type": 0, "sum" : 1840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:32]execute_script... [08:47: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)673158", "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" : 73.90, "quantity" : 24.900, "sum" : 1840.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1840.00, "payments": [ { "type": 0, "sum" : 1840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:32]POST & json_proto [08:47:32]process_json_proto [08:47:32]json parsed OK: [08:47:32]protocol is kg_v1.0 [08:47:32]action value=close_receipt [08:47:32]process_action close_receipt [08:47:32]cmd_close_receipt [08:47:32]MH_GetDate [08:47:32]Write to MH i2c: F0 00 00 3A 05 2E [08:47:32]Write i2c OK [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: F0 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: F0 09 00 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: F0 09 00 3A 05 00 A5 EC 73 66 BD 8F 7C 64 CD [08:47:32]GetLastDocTimeStamp 1718872869 [08:47:32]current date 1718873253 [08:47:32]FM_GetShiftState [08:47:32]SAM_PROTO_GetShiftState [08:47:32]wFMCommunicate request_size=4 [08:47:32]MH_SAM_APDU [08:47:32]CAPDU: 80 13 01 00 [08:47:32]Write to MH i2c: E2 08 00 3B 05 80 13 01 00 00 00 00 00 BD [08:47:32]Write i2c OK [08:47:32]MH_I2C_Read... [08:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:32]Read from MH i2c: E2 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: E2 0E 00 [08:47:32]MH_I2C_Read... [08:47:32]Read from MH i2c: E2 0E 00 3B 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0C [08:47:32]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:47:32]wFMCommunicate OK [08:47:32]SAM_PROTO_GetShiftState done [08:47:32]FM_GetShiftState done [08:47:32]opened in 1718843124 [08:47:32]opened+sec_in_day 1718929524 [08:47:32]quantity*price = 184011 [08:47:32]sum+1 = 184012 [08:47:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1840.00 Внесено: 2000.00 СДАЧА: 160.00 НСП 1% : 16.28 НДС 12% : 195.41 Наличными: 1840.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 30 20.06.2024 08:47 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103845 ФПД: 179548352070043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T084733&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103845&fm=179548352070043&tin=02508201610067®Number=0000000000092785&sum=184000 [08:47:33]StoreToDocumentArchive [08:47:33]shift 354 fd 103845 [08:47:33]save to /storage/0354/doc_00103845 [08:47:33]save last doc name /storage/0354/doc_00103845 to /storage/kkm_last_doc_name [08:47:33]save OK [08:47:33]Clear old archive folders... [08:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:33]tlvbuf is 0084AB60 [08:47:33]SAM_PROTO_ClearQueue [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 09 00 00 [08:47:33]Write to MH i2c: E2 08 00 48 05 80 09 00 00 00 00 00 00 BF [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:33]Read from MH i2c: E2 03 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [08:47:33]RAPDU: 90 00 [08:47:33]wFMCommunicate OK [08:47:33]SAM_PROTO_ClearQueue done [08:47:33]KKMCreateOFDPacket [08:47:33]OFDProtocolAddRootSTLVToBuf [08:47:33]FM_MakeSignedData [08:47:33]FM_MakeSignedData [08:47:33]SAM_PROTO_SignData [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 0D 01 02 [08:47:33]Write to MH i2c: E2 08 00 49 05 80 0D 01 02 00 00 00 00 C7 [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [08:47:33]RAPDU: 90 00 [08:47:33]wFMCommunicate OK [08:47:33]wFMCommunicate request_size=255 [08:47:33]MH_SAM_APDU [08:47: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 44 61 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CB CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 4C 00 00 00 00 07 04 06 00 C0 CE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A5 EC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 95 01 00 35 04 06 00 A3 [08:47:33]Write to MH i2c: E2 02 01 4A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 44 61 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CB CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 4C 00 00 00 00 07 04 06 00 C0 CE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A5 EC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 95 01 00 35 04 06 00 A3 00 00 01 [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [08:47:34]RAPDU: 90 00 [08:47:34]wFMCommunicate OK [08:47:34]wFMCommunicate request_size=10 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 0D 02 02 05 4C 5B BE C1 9B [08:47:34]Write to MH i2c: E2 0D 00 4B 05 80 0D 02 02 05 00 4C 5B BE C1 9B 00 00 95 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [08:47:34]RAPDU: 90 00 [08:47:34]wFMCommunicate OK [08:47:34]wFMCommunicate request_size=4 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 0D 03 02 [08:47:34]Write to MH i2c: E2 08 00 4C 05 80 0D 03 02 00 00 00 00 CC [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 0B 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 0B 00 4C 05 00 AA F3 B5 30 10 C7 7B EF 90 00 90 [08:47:34]RAPDU: AA F3 B5 30 10 C7 7B EF 90 00 [08:47:34]wFMCommunicate OK [08:47:34]SAM_PROTO_SignData done [08:47:34]FM_MakeSignedData done [08:47:34]CreateOFDProtocolMessage [08:47:34]wFMCommunicate request_size=4 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 11 00 00 [08:47:34]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 17 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [08:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:47:34]wFMCommunicate OK [08:47:34]CreateOFDProtocolMessage done [08:47:34]OFDSenderStorePacket 103845 [08:47:34]StoreOFDPacket docnum=103845 [08:47:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 74 3F 07 01 24 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 44 61 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CB CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 4C 00 00 00 00 07 04 06 00 C0 CE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A5 EC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 95 01 00 35 04 06 00 A3 4C 5B BE C1 9B AA F3 B5 30 10 C7 7B EF [08:47:34]CheckFolder [08:47:34]dirname=/storage/ofd_packets [08:47:34]CheckFolder done [08:47:34]ProducePacketName [08:47:34]name=ofd_packets/00103845 [08:47:34]NVStorageSaveData ofd_packets/00103845 [08:47:34]File name is /storage/ofd_packets/00103845 [08:47:34]Write 301 bytes [08:47:34]NVStorageSaveData done [08:47:34]OFDSenderStorePacket done [08:47:34]KKMCreateOFDPacket done [08:47:34]NVStorageSaveData kkm_last_timestamp [08:47:34]File name is /storage/kkm_last_timestamp [08:47:34]Write 4 bytes [08:47:34]NVStorageSaveData done [08:47:34]ExternCall_PrintAddStr [08:47:34]wPrintStart [08:47:34]Write to MH i2c: 01 00 00 4E 05 53 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 07 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 FF 0F 68 [08:47:34]RasterBufferAndPrint [08:47:34]line Счет N : (1)673158 [08:47:34]line ИНН: 02508201610067 [08:47:34]line Контрольно-Кассовый Чек [08:47:34]line ПРОДАЖА [08:47:34]line ТРК (МРК, ГНК) : 31 [08:47:34]line Товар: 2710124500 [08:47:34]line Аи-95-К-5 [08:47:34]line 24.900 * 73.90 [08:47:34]line = 1840.11 [08:47:34]line НДС 12% НСП 1% [08:47:34]line > о реализуемом товаре [08:47:34]line ОКРУГЛЕНИЕ: -0.11 [08:47:34]line ИТОГО: 1840.00 [08:47:34]line Внесено: 2000.00 [08:47:34]line СДАЧА: 160.00 [08:47:34]line НСП 1% : 16.28 [08:47:34]line НДС 12% : 195.41 [08:47:34]line Наличными: 1840.00 [08:47:34]line Безнал.: 0.00 [08:47:34]line Место: АЗС № 120 "Партнер Нефть" [08:47:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:47:34]line СНО: Общий режим [08:47:34]line Чек 30 20.06.2024 08:47 [08:47:34]line Смена: 354 ФФД: 1.0 [08:47:34]line ЗНМ: 0300000164 [08:47:34]line РНМ: 0000000000092785 [08:47:34]line Версия ККМ: 001 [08:47:34]line ФМ: 0000000000875093 [08:47:34]line ФД: 103845 [08:47:34]line ФПД: 179548352070043 [08:47:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T084733&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103845&fm=179548352070043&tin=02508201610067®Number=0000000000092785&sum=184000 [08:47:34]OFD Sender: Processing packet 103845 [packets to send 17, broken 16] [08:47:34]ProducePacketName [08:47:34]name=ofd_packets/00103845 [08:47:34]OFD Sender: To server: pG, [08:47:34]CommunicateWithHost lk.salyk.kg:30040 [08:47:34]ConnectInit lk.salyk.kg [08:47:34]written 0, free lines is 4095 [08:47:34]Connected sock=10 [08:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 74 3F 07 01 24 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 44 61 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CB CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 4C 00 00 00 00 07 04 06 00 C0 CE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A5 EC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 95 01 00 35 04 06 00 A3 4C 5B BE C1 9B AA F3 B5 30 10 C7 7B EF [08:47:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B5 8F 47 00 CE 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A5 95 01 00 F4 03 04 00 2B 93 73 66 B6 04 01 00 00 64 8A 22 AB AB 4A A8 23 [08:47:34]CommunicateWithHost err = 0 [08:47:34]CheckOFDResponse [08:47:34]1017 (14) - 77093643461234 [08:47:34]1041 (16) - 0000000000875093 [08:47:34]1040 (4) - 103845 [08:47:34]1012 (4) - 20.06.2024 02:25 [08:47:34]1206 (1) - 0 [08:47:34]OFD Sender: Remove packet 103845 [08:47:34]ProducePacketName [08:47:34]name=ofd_packets/00103845 [08:47:34]NVStorageDeleteData [08:47:34]Write to MH i2c: 01 00 00 79 05 7E [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 07 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 07 00 79 05 00 00 00 00 00 D4 0C 65 [08:47:34]RasterBufferAndPrint [08:47:34]line [08:47:34]line [08:47:34]line [08:47:34]line [08:47:34]line [08:47:34]written 0, free lines is 3290 [08:47:34]MH_Cut [08:47:34]Write to MH i2c: D1 01 00 80 05 01 57 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: D1 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: D1 01 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: D1 01 00 80 05 00 56 [08:47:34]Write to MH i2c: 01 00 00 81 05 86 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:35]OFD Sender: No OFD packet to send [08:47:35]*** Cut start [08:47:35]*** Partial cut [08:47:35]*** CUTSNS_PIN = 1 [08:47:35]*** CUTSNS_PIN = 0 [08:47:35]*** Brake cut motor [08:47:36]Read from MH i2c: 01 [08:47:36]MH_I2C_Read... [08:47:36]*** Stop cut motor [08:47:36]*** Cut end [08:47:36]Read from MH i2c: 01 07 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: 01 07 00 81 05 00 00 00 00 00 FF 0F 9B [08:47:36]process_action close_receipt done [08:47:36]requested_data is exist [08:47:36]produce_requested_data [08:47:36]requested_item fm.sn is exist - process it [08:47:36]wFMCommunicate request_size=4 [08:47:36]MH_SAM_APDU [08:47:36]CAPDU: 80 11 00 00 [08:47:36]Write to MH i2c: E2 08 00 82 05 80 11 00 00 00 00 00 00 01 [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:36]Read from MH i2c: E2 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 17 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 17 00 82 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [08:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:47:36]wFMCommunicate OK [08:47:36]requested_item fd.num is exist - process it [08:47:36]SAM_PROTO_GetFieldsCounters [08:47:36]wFMCommunicate request_size=4 [08:47:36]MH_SAM_APDU [08:47:36]CAPDU: 80 13 00 00 [08:47:36]Write to MH i2c: E2 08 00 83 05 80 13 00 00 00 00 00 00 04 [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:36]Read from MH i2c: E2 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 62 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 62 00 83 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A5 95 01 00 0E 04 04 00 62 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 23 [08:47:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A5 95 01 00 0E 04 04 00 62 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:47:36]wFMCommunicate OK [08:47:36]SAM_PROTO_GetFieldsCounters done [08:47:36]requested_item shift.num is exist - process it [08:47:36]requested_item shift.opened is exist - process it [08:47:36]req_shift_opened [08:47:36]FM_GetShiftState [08:47:36]SAM_PROTO_GetShiftState [08:47:36]wFMCommunicate request_size=4 [08:47:36]MH_SAM_APDU [08:47:36]CAPDU: 80 13 01 00 [08:47:36]Write to MH i2c: E2 08 00 84 05 80 13 01 00 00 00 00 00 06 [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:36]Read from MH i2c: E2 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 0E 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 0E 00 84 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 55 [08:47:36]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:47:36]wFMCommunicate OK [08:47:36]SAM_PROTO_GetShiftState done [08:47:36]FM_GetShiftState done [08:47:36]req_shift_opened done [08:47:36]requested_item shift.open_date is exist - process it [08:47:36]req_shift_open_date [08:47:36]req_shift_open_date done [08:47:36]produce_requested_data done [08:47:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103845,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [08:47:36]process_action_free close_receipt [08:47:36]json_value_free [08:47:36]json_value_free done [08:47:36]process_json_proto returns [08:47:36]Send response to host [08:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103845,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [08:47:36]free response buf [08:47:36]execute_script done [08:47:36]execute_script returns [08:47:36]free content buf [08:47:36]Sock 9.Close socket [08:47:36]Sock 9.Thread stoped [08:47:40]OFD Sender: No OFD packet to send [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50: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:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [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: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]accept exits with 7 [08:59:05]New connection [08:59:05]New thread 3067063652 created [08:59:05]Thread 3067207012 joined [08:59:05]Waiting for new connection... [08:59:05] Sock 7.Parse request [08:59:05]Sock 7.Check first char [08:59:05]Sock 7.First char is OK [08:59:05]request: POST /json_proto HTTP/1.0 [08:59:05]Method: POST [08:59:05]URL: /json_proto [08:59:05]Method is POST - this is cgi request [08:59:05]url: /json_proto [08:59:05]query_string will be loaded in cgi processing [08:59:05]execute_cgi json_proto POST (null) [08:59:05]execute_cgi path=json_proto method=POST [08:59:05]POST find Content-Length [08:59:05]Host: 172.17.38.133:8080 [08:59:05]Content-Length: 1202 [08:59:05]Content-Type: application/json [08:59:05] [08:59:05]POST finish read [08:59:05]Found Content-Length = 1202 [08:59: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673159\u000A20.06.2024 08:36\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3777684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:05]execute_script... [08:59: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673159\u000A20.06.2024 08:36\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3777684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:05]POST & json_proto [08:59:05]process_json_proto [08:59:05]json parsed OK: [08:59:05]protocol is kg_v1.0 [08:59:05]action value=print_text [08:59:05]process_action print_text [08:59:05]cmd_print_text [08:59:05]ExternCall_PrintAddStr [08:59:05]wPrintStart [08:59:05]Write to MH i2c: 01 00 00 85 05 8A [08:59:05]Write i2c OK [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: 01 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: 01 07 00 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: 01 07 00 85 05 00 00 00 00 00 FF 0F 9F [08:59:05]RasterBufferAndPrint [08:59:05]line *****ТОВАРНЫЙ ЧЕК***** [08:59:05]line АЗС 120 [08:59:05]line Партнер нефть [08:59:05]line 02508201610067 [08:59:05]line Кассир : Дуйшенбиев А. [08:59:05]line Счет N : (1)673159 [08:59:05]line 20.06.2024 08:36 [08:59:05]line ПРОДАЖА [08:59:05]line ТРК (МРК, ГНК): 21 [08:59:05]line Вид ГСМ : 2710194210 [08:59:05]line ДТ(л)-К-5 [08:59:05]line 20.000 x 72.90 [08:59:05]line ИТОГ: 1458.00 [08:59:05]line Тип оплаты: Талоны: Партнер нефть [08:59:05]line 3777684 [08:59:05]line ______________________ [08:59:05]line (подпись) [08:59:05]written 0, free lines is 4095 [08:59:05]OFD Sender: No OFD packet to send [08:59:06]Write to MH i2c: 01 00 00 99 05 9E [08:59:06]Write i2c OK [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 07 00 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: 01 07 00 99 05 00 00 00 00 00 12 0E C5 [08:59:06]RasterBufferAndPrint [08:59:06]line [08:59:06]line [08:59:06]line [08:59:06]line [08:59:06]line [08:59:06]written 0, free lines is 3604 [08:59:06]MH_Cut [08:59:06]Write to MH i2c: D1 01 00 A0 05 01 77 [08:59:06]Write i2c OK [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: D1 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: D1 01 00 [08:59:06]MH_I2C_Read... [08:59:06]Read from MH i2c: D1 01 00 A0 05 00 76 [08:59:06]Write to MH i2c: 01 00 00 A1 05 A6 [08:59:06]Write i2c OK [08:59:06]MH_I2C_Read... [08:59:06]*** Cut start [08:59:06]*** Partial cut [08:59:06]*** CUTSNS_PIN = 1 [08:59:06]*** CUTSNS_PIN = 0 [08:59:06]*** Brake cut motor [08:59:07]Read from MH i2c: 01 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: 01 07 00 [08:59:07]MH_I2C_Read... [08:59:07]*** Stop cut motor [08:59:07]*** Cut end [08:59:07]Read from MH i2c: 01 07 00 A1 05 00 00 00 00 00 FF 0F BB [08:59:07]process_action print_text done [08:59:07]requested_data is exist [08:59:07]produce_requested_data [08:59:07]requested_item fm.sn is exist - process it [08:59:07]wFMCommunicate request_size=4 [08:59:07]MH_SAM_APDU [08:59:07]CAPDU: 80 11 00 00 [08:59:07]Write to MH i2c: E2 08 00 A2 05 80 11 00 00 00 00 00 00 21 [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:07]Read from MH i2c: E2 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 17 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 17 00 A2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 74 [08:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:59:07]wFMCommunicate OK [08:59:07]requested_item fd.num is exist - process it [08:59:07]SAM_PROTO_GetFieldsCounters [08:59:07]wFMCommunicate request_size=4 [08:59:07]MH_SAM_APDU [08:59:07]CAPDU: 80 13 00 00 [08:59:07]Write to MH i2c: E2 08 00 A3 05 80 13 00 00 00 00 00 00 24 [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:07]Read from MH i2c: E2 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 62 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 62 00 A3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A5 95 01 00 0E 04 04 00 62 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 43 [08:59:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A5 95 01 00 0E 04 04 00 62 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:59:07]wFMCommunicate OK [08:59:07]SAM_PROTO_GetFieldsCounters done [08:59:07]requested_item shift.num is exist - process it [08:59:07]requested_item shift.opened is exist - process it [08:59:07]req_shift_opened [08:59:07]FM_GetShiftState [08:59:07]SAM_PROTO_GetShiftState [08:59:07]wFMCommunicate request_size=4 [08:59:07]MH_SAM_APDU [08:59:07]CAPDU: 80 13 01 00 [08:59:07]Write to MH i2c: E2 08 00 A4 05 80 13 01 00 00 00 00 00 26 [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:07]Read from MH i2c: E2 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 0E 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 0E 00 A4 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 75 [08:59:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:59:07]wFMCommunicate OK [08:59:07]SAM_PROTO_GetShiftState done [08:59:07]FM_GetShiftState done [08:59:07]req_shift_opened done [08:59:07]requested_item shift.open_date is exist - process it [08:59:07]req_shift_open_date [08:59:07]req_shift_open_date done [08:59:07]produce_requested_data done [08:59:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103845,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [08:59:07]process_action_free print_text [08:59:07]json_value_free [08:59:07]json_value_free done [08:59:07]process_json_proto returns [08:59:07]Send response to host [08:59:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103845,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [08:59:07]free response buf [08:59:07]execute_script done [08:59:07]execute_script returns [08:59:07]free content buf [08:59:07]Sock 7.Close socket [08:59:07]Sock 7.Thread stoped [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:29]accept exits with 9 [08:59:29]New connection [08:59:29]New thread 3067207012 created [08:59:29]Thread 3067063652 joined [08:59:29]Waiting for new connection... [08:59:29] Sock 9.Parse request [08:59:29]Sock 9.Check first char [08:59:29]Sock 9.First char is OK [08:59:29]request: POST /json_proto HTTP/1.0 [08:59:29]Method: POST [08:59:29]URL: /json_proto [08:59:29]Method is POST - this is cgi request [08:59:29]url: /json_proto [08:59:29]query_string will be loaded in cgi processing [08:59:29]execute_cgi json_proto POST (null) [08:59:29]execute_cgi path=json_proto method=POST [08:59:29]POST find Content-Length [08:59:29]Host: 172.17.38.133:8080 [08:59:29]Content-Length: 682 [08:59:29]Content-Type: application/json [08:59:29] [08:59:29]POST finish read [08:59:29]Found Content-Length = 682 [08:59:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "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:59:29]execute_script... [08:59: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)673160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "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:59:29]POST & json_proto [08:59:29]process_json_proto [08:59:29]json parsed OK: [08:59:29]protocol is kg_v1.0 [08:59:29]action value=close_receipt [08:59:29]process_action close_receipt [08:59:29]cmd_close_receipt [08:59:29]MH_GetDate [08:59:29]Write to MH i2c: F0 00 00 A5 05 99 [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: F0 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: F0 09 00 [08:59:29]MH_I2C_Read... [08:59:29]Read from MH i2c: F0 09 00 A5 05 00 72 EF 73 66 BD 8F 7C 64 08 [08:59:29]GetLastDocTimeStamp 1718873253 [08:59:29]current date 1718873970 [08:59:29]FM_GetShiftState [08:59:29]SAM_PROTO_GetShiftState [08:59:29]wFMCommunicate request_size=4 [08:59:29]MH_SAM_APDU [08:59:29]CAPDU: 80 13 01 00 [08:59:29]Write to MH i2c: E2 08 00 A6 05 80 13 01 00 00 00 00 00 28 [08:59:29]Write i2c OK [08:59:29]MH_I2C_Read... [08:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:30]Read from MH i2c: E2 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 0E 00 [08:59:30]MH_I2C_Read... [08:59:30]Read from MH i2c: E2 0E 00 A6 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 77 [08:59:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:59:30]wFMCommunicate OK [08:59:30]SAM_PROTO_GetShiftState done [08:59:30]FM_GetShiftState done [08:59:30]opened in 1718843124 [08:59:30]opened+sec_in_day 1718929524 [08:59:30]quantity*price = 300061 [08:59:30]sum+1 = 300063 [08:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 31 20.06.2024 08:59 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103846 ФПД: 8292535541609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085931&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103846&fm=8292535541609&tin=02508201610067®Number=0000000000092785&sum=300000 [08:59:31]StoreToDocumentArchive [08:59:31]shift 354 fd 103846 [08:59:31]save to /storage/0354/doc_00103846 [08:59:31]save last doc name /storage/0354/doc_00103846 to /storage/kkm_last_doc_name [08:59:31]save OK [08:59:31]Clear old archive folders... [08:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:31]tlvbuf is 00833900 [08:59:31]SAM_PROTO_ClearQueue [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 09 00 00 [08:59:31]Write to MH i2c: E2 08 00 B3 05 80 09 00 00 00 00 00 00 2A [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:31]Read from MH i2c: E2 03 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [08:59:31]RAPDU: 90 00 [08:59:31]wFMCommunicate OK [08:59:31]SAM_PROTO_ClearQueue done [08:59:31]KKMCreateOFDPacket [08:59:31]OFDProtocolAddRootSTLVToBuf [08:59:31]FM_MakeSignedData [08:59:31]FM_MakeSignedData [08:59:31]SAM_PROTO_SignData [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 0D 01 02 [08:59:31]Write to MH i2c: E2 08 00 B4 05 80 0D 01 02 00 00 00 00 32 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [08:59:31]RAPDU: 90 00 [08:59:31]wFMCommunicate OK [08:59:31]wFMCommunicate request_size=255 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 73 EF 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 95 01 00 35 04 06 00 07 [08:59:31]Write to MH i2c: E2 02 01 B5 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 73 EF 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 95 01 00 35 04 06 00 07 00 00 83 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [08:59:31]RAPDU: 90 00 [08:59:31]wFMCommunicate OK [08:59:31]wFMCommunicate request_size=10 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 0D 02 02 05 8A C1 A2 9F 69 [08:59:31]Write to MH i2c: E2 0D 00 B6 05 80 0D 02 02 05 00 8A C1 A2 9F 69 00 00 34 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [08:59:31]RAPDU: 90 00 [08:59:31]wFMCommunicate OK [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 0D 03 02 [08:59:31]Write to MH i2c: E2 08 00 B7 05 80 0D 03 02 00 00 00 00 37 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0B 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 0B 00 B7 05 00 0C 6C 2C 88 81 61 47 15 90 00 A2 [08:59:31]RAPDU: 0C 6C 2C 88 81 61 47 15 90 00 [08:59:31]wFMCommunicate OK [08:59:31]SAM_PROTO_SignData done [08:59:31]FM_MakeSignedData done [08:59:31]CreateOFDProtocolMessage [08:59:31]wFMCommunicate request_size=4 [08:59:31]MH_SAM_APDU [08:59:31]CAPDU: 80 11 00 00 [08:59:31]Write to MH i2c: E2 08 00 B8 05 80 11 00 00 00 00 00 00 37 [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:31]Read from MH i2c: E2 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 17 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: E2 17 00 B8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8A [08:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:59:31]wFMCommunicate OK [08:59:31]CreateOFDProtocolMessage done [08:59:31]OFDSenderStorePacket 103846 [08:59:31]StoreOFDPacket docnum=103846 [08:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DA 07 07 01 E3 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 73 EF 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 95 01 00 35 04 06 00 07 8A C1 A2 9F 69 0C 6C 2C 88 81 61 47 15 [08:59:31]CheckFolder [08:59:31]dirname=/storage/ofd_packets [08:59:31]CheckFolder done [08:59:31]ProducePacketName [08:59:31]name=ofd_packets/00103846 [08:59:31]NVStorageSaveData ofd_packets/00103846 [08:59:31]File name is /storage/ofd_packets/00103846 [08:59:31]Write 301 bytes [08:59:31]NVStorageSaveData done [08:59:31]OFDSenderStorePacket done [08:59:31]KKMCreateOFDPacket done [08:59:31]NVStorageSaveData kkm_last_timestamp [08:59:31]File name is /storage/kkm_last_timestamp [08:59:31]Write 4 bytes [08:59:31]NVStorageSaveData done [08:59:31]ExternCall_PrintAddStr [08:59:31]wPrintStart [08:59:31]Write to MH i2c: 01 00 00 B9 05 BE [08:59:31]Write i2c OK [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 07 00 [08:59:31]MH_I2C_Read... [08:59:31]Read from MH i2c: 01 07 00 B9 05 00 00 00 00 00 FF 0F D3 [08:59:31]RasterBufferAndPrint [08:59:31]line Счет N : (1)673160 [08:59:31]line ИНН: 02508201610067 [08:59:31]line Контрольно-Кассовый Чек [08:59:31]line ПРОДАЖА [08:59:31]line ТРК (МРК, ГНК) : 42 [08:59:31]line Товар: 2710124130 [08:59:31]line Аи-92-К-5 [08:59:31]line 45.190 * 66.40 [08:59:31]line = 3000.62 [08:59:31]line НДС 12% НСП 1% [08:59:31]line > о реализуемом товаре [08:59:31]line ОКРУГЛЕНИЕ: -0.62 [08:59:31]line ИТОГО: 3000.00 [08:59:31]line Внесено: 3000.00 [08:59:31]line СДАЧА: 0.00 [08:59:31]line НСП 1% : 26.55 [08:59:31]line НДС 12% : 318.65 [08:59:31]line Наличными: 3000.00 [08:59:31]line Безнал.: 0.00 [08:59:31]line Место: АЗС № 120 "Партнер Нефть" [08:59:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [08:59:31]line СНО: Общий режим [08:59:31]line Чек 31 20.06.2024 08:59 [08:59:31]line Смена: 354 ФФД: 1.0 [08:59:31]line ЗНМ: 0300000164 [08:59:31]line РНМ: 0000000000092785 [08:59:31]line Версия ККМ: 001 [08:59:31]line ФМ: 0000000000875093 [08:59:31]line ФД: 103846 [08:59:31]line ФПД: 8292535541609 [08:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T085931&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103846&fm=8292535541609&tin=02508201610067®Number=0000000000092785&sum=300000 [08:59:32]OFD Sender: Processing packet 103846 [packets to send 17, broken 16] [08:59:32]ProducePacketName [08:59:32]name=ofd_packets/00103846 [08:59:32]OFD Sender: To server: pG, [08:59:32]CommunicateWithHost lk.salyk.kg:30040 [08:59:32]ConnectInit lk.salyk.kg [08:59:32]written 0, free lines is 4095 [08:59:32]Connected sock=10 [08:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DA 07 07 01 E3 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 73 EF 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 95 01 00 35 04 06 00 07 8A C1 A2 9F 69 0C 6C 2C 88 81 61 47 15 [08:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7F 8C 47 00 FD E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A6 95 01 00 F4 03 04 00 F9 95 73 66 B6 04 01 00 00 17 E6 EE 4F 89 04 80 80 [08:59:32]CommunicateWithHost err = 0 [08:59:32]CheckOFDResponse [08:59:32]1017 (14) - 77093643461234 [08:59:32]1041 (16) - 0000000000875093 [08:59:32]1040 (4) - 103846 [08:59:32]1012 (4) - 20.06.2024 02:37 [08:59:32]1206 (1) - 0 [08:59:32]OFD Sender: Remove packet 103846 [08:59:32]ProducePacketName [08:59:32]name=ofd_packets/00103846 [08:59:32]NVStorageDeleteData [08:59:32]Write to MH i2c: 01 00 00 E4 05 E9 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: 01 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: 01 07 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 D5 0C D1 [08:59:32]RasterBufferAndPrint [08:59:32]line [08:59:32]line [08:59:32]line [08:59:32]line [08:59:32]line [08:59:32]written 0, free lines is 3292 [08:59:32]MH_Cut [08:59:32]Write to MH i2c: D1 01 00 EB 05 01 C2 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: D1 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: D1 01 00 [08:59:32]MH_I2C_Read... [08:59:32]Read from MH i2c: D1 01 00 EB 05 00 C1 [08:59:32]Write to MH i2c: 01 00 00 EC 05 F1 [08:59:32]Write i2c OK [08:59:32]MH_I2C_Read... [08:59:32]OFD Sender: No OFD packet to send [08:59:33]*** Cut start [08:59:33]*** Partial cut [08:59:33]*** CUTSNS_PIN = 1 [08:59:33]*** CUTSNS_PIN = 0 [08:59:33]*** Brake cut motor [08:59:33]Read from MH i2c: 01 [08:59:33]MH_I2C_Read... [08:59:33]*** Stop cut motor [08:59:33]*** Cut end [08:59:33]Read from MH i2c: 01 07 00 [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: 01 07 00 EC 05 00 00 00 00 00 FF 0F 06 [08:59:33]process_action close_receipt done [08:59:33]requested_data is exist [08:59:33]produce_requested_data [08:59:33]requested_item fm.sn is exist - process it [08:59:33]wFMCommunicate request_size=4 [08:59:33]MH_SAM_APDU [08:59:33]CAPDU: 80 11 00 00 [08:59:33]Write to MH i2c: E2 08 00 ED 05 80 11 00 00 00 00 00 00 6C [08:59:33]Write i2c OK [08:59:33]MH_I2C_Read... [08:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:33]Read from MH i2c: E2 [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: E2 17 00 [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: E2 17 00 ED 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BF [08:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [08:59:33]wFMCommunicate OK [08:59:33]requested_item fd.num is exist - process it [08:59:33]SAM_PROTO_GetFieldsCounters [08:59:33]wFMCommunicate request_size=4 [08:59:33]MH_SAM_APDU [08:59:33]CAPDU: 80 13 00 00 [08:59:33]Write to MH i2c: E2 08 00 EE 05 80 13 00 00 00 00 00 00 6F [08:59:33]Write i2c OK [08:59:33]MH_I2C_Read... [08:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:33]Read from MH i2c: E2 [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: E2 62 00 [08:59:33]MH_I2C_Read... [08:59:33]Read from MH i2c: E2 62 00 EE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A6 95 01 00 0E 04 04 00 62 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 92 [08:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A6 95 01 00 0E 04 04 00 62 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:59:34]wFMCommunicate OK [08:59:34]SAM_PROTO_GetFieldsCounters done [08:59:34]requested_item shift.num is exist - process it [08:59:34]requested_item shift.opened is exist - process it [08:59:34]req_shift_opened [08:59:34]FM_GetShiftState [08:59:34]SAM_PROTO_GetShiftState [08:59:34]wFMCommunicate request_size=4 [08:59:34]MH_SAM_APDU [08:59:34]CAPDU: 80 13 01 00 [08:59:34]Write to MH i2c: E2 08 00 EF 05 80 13 01 00 00 00 00 00 71 [08:59:34]Write i2c OK [08:59:34]MH_I2C_Read... [08:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:34]Read from MH i2c: E2 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 0E 00 [08:59:34]MH_I2C_Read... [08:59:34]Read from MH i2c: E2 0E 00 EF 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C0 [08:59:34]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [08:59:34]wFMCommunicate OK [08:59:34]SAM_PROTO_GetShiftState done [08:59:34]FM_GetShiftState done [08:59:34]req_shift_opened done [08:59:34]requested_item shift.open_date is exist - process it [08:59:34]req_shift_open_date [08:59:34]req_shift_open_date done [08:59:34]produce_requested_data done [08:59:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103846,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [08:59:34]process_action_free close_receipt [08:59:34]json_value_free [08:59:34]json_value_free done [08:59:34]process_json_proto returns [08:59:34]Send response to host [08:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103846,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [08:59:34]free response buf [08:59:34]execute_script done [08:59:34]execute_script returns [08:59:34]free content buf [08:59:34]Sock 9.Close socket [08:59:34]Sock 9.Thread stoped [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:37]accept exits with 7 [09:06:37]New connection [09:06:37]New thread 3067063652 created [09:06:37]Thread 3067207012 joined [09:06:37]Waiting for new connection... [09:06:37] Sock 7.Parse request [09:06:37]Sock 7.Check first char [09:06:37]Sock 7.First char is OK [09:06:37]request: POST /json_proto HTTP/1.0 [09:06:37]Method: POST [09:06:37]URL: /json_proto [09:06:37]Method is POST - this is cgi request [09:06:37]url: /json_proto [09:06:37]query_string will be loaded in cgi processing [09:06:37]execute_cgi json_proto POST (null) [09:06:37]execute_cgi path=json_proto method=POST [09:06:37]POST find Content-Length [09:06:37]Host: 172.17.38.133:8080 [09:06:37]Content-Length: 677 [09:06:37]Content-Type: application/json [09:06:37] [09:06:37]POST finish read [09:06:37]Found Content-Length = 677 [09:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:06:37]execute_script... [09:06: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)673164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:06:37]POST & json_proto [09:06:37]process_json_proto [09:06:37]json parsed OK: [09:06:37]protocol is kg_v1.0 [09:06:37]action value=close_receipt [09:06:37]process_action close_receipt [09:06:37]cmd_close_receipt [09:06:37]MH_GetDate [09:06:37]Write to MH i2c: F0 00 00 F0 05 E4 [09:06:37]Write i2c OK [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: F0 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: F0 09 00 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: F0 09 00 F0 05 00 1E F1 73 66 BD 8F 7C 64 01 [09:06:37]GetLastDocTimeStamp 1718873971 [09:06:37]current date 1718874398 [09:06:37]FM_GetShiftState [09:06:37]SAM_PROTO_GetShiftState [09:06:37]wFMCommunicate request_size=4 [09:06:37]MH_SAM_APDU [09:06:37]CAPDU: 80 13 01 00 [09:06:37]Write to MH i2c: E2 08 00 F1 05 80 13 01 00 00 00 00 00 73 [09:06:37]Write i2c OK [09:06:37]MH_I2C_Read... [09:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:37]Read from MH i2c: E2 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: E2 0E 00 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: E2 0E 00 F1 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C2 [09:06:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:06:37]wFMCommunicate OK [09:06:37]SAM_PROTO_GetShiftState done [09:06:37]FM_GetShiftState done [09:06:37]opened in 1718843124 [09:06:37]opened+sec_in_day 1718929524 [09:06:37]quantity*price = 40039 [09:06:37]sum+1 = 40040 [09:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 32 20.06.2024 09:06 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103847 ФПД: 248880512041247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090638&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103847&fm=248880512041247&tin=02508201610067®Number=0000000000092785&sum=40000 [09:06:38]StoreToDocumentArchive [09:06:38]shift 354 fd 103847 [09:06:38]save to /storage/0354/doc_00103847 [09:06:38]save last doc name /storage/0354/doc_00103847 to /storage/kkm_last_doc_name [09:06:38]save OK [09:06:38]Clear old archive folders... [09:06:38]OFD Sender: No OFD packet to send [09:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:38]tlvbuf is 00845EA0 [09:06:38]SAM_PROTO_ClearQueue [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 09 00 00 [09:06:38]Write to MH i2c: E2 08 00 FE 05 80 09 00 00 00 00 00 00 75 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 FE 05 00 90 00 77 [09:06:38]RAPDU: 90 00 [09:06:38]wFMCommunicate OK [09:06:38]SAM_PROTO_ClearQueue done [09:06:38]KKMCreateOFDPacket [09:06:38]OFDProtocolAddRootSTLVToBuf [09:06:38]FM_MakeSignedData [09:06:38]FM_MakeSignedData [09:06:38]SAM_PROTO_SignData [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 0D 01 02 [09:06:38]Write to MH i2c: E2 08 00 FF 05 80 0D 01 02 00 00 00 00 7D [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 FF 05 00 90 00 78 [09:06:38]RAPDU: 90 00 [09:06:38]wFMCommunicate OK [09:06:38]wFMCommunicate request_size=255 [09:06:38]MH_SAM_APDU [09:06: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 20 00 00 00 F4 03 04 00 1E F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 95 01 00 35 04 06 00 E2 [09:06:38]Write to MH i2c: E2 02 01 00 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 20 00 00 00 F4 03 04 00 1E F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 95 01 00 35 04 06 00 E2 00 00 90 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [09:06:38]RAPDU: 90 00 [09:06:38]wFMCommunicate OK [09:06:38]wFMCommunicate request_size=10 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 0D 02 02 05 5B 02 83 01 1F [09:06:38]Write to MH i2c: E2 0D 00 01 06 80 0D 02 02 05 00 5B 02 83 01 1F 00 00 8B [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [09:06:38]RAPDU: 90 00 [09:06:38]wFMCommunicate OK [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 0D 03 02 [09:06:38]Write to MH i2c: E2 08 00 02 06 80 0D 03 02 00 00 00 00 83 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 0B 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 0B 00 02 06 00 EA DC 6C 61 A1 4A EF 16 90 00 07 [09:06:38]RAPDU: EA DC 6C 61 A1 4A EF 16 90 00 [09:06:38]wFMCommunicate OK [09:06:38]SAM_PROTO_SignData done [09:06:38]FM_MakeSignedData done [09:06:38]CreateOFDProtocolMessage [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 11 00 00 [09:06:38]Write to MH i2c: E2 08 00 03 06 80 11 00 00 00 00 00 00 83 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 17 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 17 00 03 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D6 [09:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:06:38]wFMCommunicate OK [09:06:38]CreateOFDProtocolMessage done [09:06:38]OFDSenderStorePacket 103847 [09:06:38]StoreOFDPacket docnum=103847 [09:06:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A6 4D 07 01 8A 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 20 00 00 00 F4 03 04 00 1E F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 95 01 00 35 04 06 00 E2 5B 02 83 01 1F EA DC 6C 61 A1 4A EF 16 [09:06:38]CheckFolder [09:06:38]dirname=/storage/ofd_packets [09:06:38]CheckFolder done [09:06:38]ProducePacketName [09:06:38]name=ofd_packets/00103847 [09:06:38]NVStorageSaveData ofd_packets/00103847 [09:06:38]File name is /storage/ofd_packets/00103847 [09:06:38]Write 301 bytes [09:06:38]NVStorageSaveData done [09:06:38]OFDSenderStorePacket done [09:06:38]KKMCreateOFDPacket done [09:06:38]NVStorageSaveData kkm_last_timestamp [09:06:38]File name is /storage/kkm_last_timestamp [09:06:38]Write 4 bytes [09:06:38]NVStorageSaveData done [09:06:38]ExternCall_PrintAddStr [09:06:38]wPrintStart [09:06:38]Write to MH i2c: 01 00 00 04 06 0A [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: 01 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: 01 07 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: 01 07 00 04 06 00 00 00 00 00 FF 0F 1F [09:06:38]RasterBufferAndPrint [09:06:38]line Счет N : (1)673164 [09:06:38]line ИНН: 02508201610067 [09:06:38]line Контрольно-Кассовый Чек [09:06:38]line ПРОДАЖА [09:06:38]line ТРК (МРК, ГНК) : 42 [09:06:38]line Товар: 2710124130 [09:06:38]line Аи-92-К-5 [09:06:38]line 6.030 * 66.40 [09:06:38]line = 400.39 [09:06:38]line НДС 12% НСП 1% [09:06:38]line > о реализуемом товаре [09:06:38]line ОКРУГЛЕНИЕ: -0.39 [09:06:38]line ИТОГО: 400.00 [09:06:38]line Внесено: 400.00 [09:06:38]line СДАЧА: 0.00 [09:06:38]line НСП 1% : 3.54 [09:06:38]line НДС 12% : 42.52 [09:06:38]line Наличными: 400.00 [09:06:38]line Безнал.: 0.00 [09:06:38]line Место: АЗС № 120 "Партнер Нефть" [09:06:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:06:38]line СНО: Общий режим [09:06:38]line Чек 32 20.06.2024 09:06 [09:06:38]line Смена: 354 ФФД: 1.0 [09:06:38]line ЗНМ: 0300000164 [09:06:38]line РНМ: 0000000000092785 [09:06:38]line Версия ККМ: 001 [09:06:38]line ФМ: 0000000000875093 [09:06:38]line ФД: 103847 [09:06:38]line ФПД: 248880512041247 [09:06:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090638&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103847&fm=248880512041247&tin=02508201610067®Number=0000000000092785&sum=40000 [09:06:39]OFD Sender: Processing packet 103847 [packets to send 17, broken 16] [09:06:39]ProducePacketName [09:06:39]name=ofd_packets/00103847 [09:06:39]OFD Sender: To server: pG, [09:06:39]CommunicateWithHost lk.salyk.kg:30040 [09:06:39]ConnectInit lk.salyk.kg [09:06:39]written 0, free lines is 4095 [09:06:39]Connected sock=10 [09:06:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A6 4D 07 01 8A 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 20 00 00 00 F4 03 04 00 1E F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 95 01 00 35 04 06 00 E2 5B 02 83 01 1F EA DC 6C 61 A1 4A EF 16 [09:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F5 C9 47 00 C7 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A7 95 01 00 F4 03 04 00 A4 97 73 66 B6 04 01 00 00 B1 DA 8B 7D 4C FB 5A 0E [09:06:39]CommunicateWithHost err = 0 [09:06:39]CheckOFDResponse [09:06:39]1017 (14) - 77093643461234 [09:06:39]1041 (16) - 0000000000875093 [09:06:39]1040 (4) - 103847 [09:06:39]1012 (4) - 20.06.2024 02:44 [09:06:39]1206 (1) - 0 [09:06:39]OFD Sender: Remove packet 103847 [09:06:39]ProducePacketName [09:06:39]name=ofd_packets/00103847 [09:06:39]NVStorageDeleteData [09:06:39]Write to MH i2c: 01 00 00 2F 06 35 [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 07 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 D0 0C 18 [09:06:39]RasterBufferAndPrint [09:06:39]line [09:06:39]line [09:06:39]line [09:06:39]line [09:06:39]line [09:06:39]written 0, free lines is 3287 [09:06:39]MH_Cut [09:06:39]Write to MH i2c: D1 01 00 36 06 01 0E [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: D1 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: D1 01 00 [09:06:39]MH_I2C_Read... [09:06:39]Read from MH i2c: D1 01 00 36 06 00 0D [09:06:39]Write to MH i2c: 01 00 00 37 06 3D [09:06:39]Write i2c OK [09:06:39]MH_I2C_Read... [09:06:39]OFD Sender: No OFD packet to send [09:06:40]*** Cut start [09:06:40]*** Partial cut [09:06:40]*** CUTSNS_PIN = 1 [09:06:40]*** CUTSNS_PIN = 0 [09:06:40]*** Brake cut motor [09:06:40]Read from MH i2c: 01 [09:06:40]MH_I2C_Read... [09:06:40]*** Stop cut motor [09:06:40]*** Cut end [09:06:40]Read from MH i2c: 01 07 00 [09:06:40]MH_I2C_Read... [09:06:40]Read from MH i2c: 01 07 00 37 06 00 00 00 00 00 FF 0F 52 [09:06:40]process_action close_receipt done [09:06:40]requested_data is exist [09:06:40]produce_requested_data [09:06:40]requested_item fm.sn is exist - process it [09:06:40]wFMCommunicate request_size=4 [09:06:40]MH_SAM_APDU [09:06:40]CAPDU: 80 11 00 00 [09:06:40]Write to MH i2c: E2 08 00 38 06 80 11 00 00 00 00 00 00 B8 [09:06:40]Write i2c OK [09:06:40]MH_I2C_Read... [09:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:40]Read from MH i2c: E2 [09:06:40]MH_I2C_Read... [09:06:40]Read from MH i2c: E2 17 00 [09:06:40]MH_I2C_Read... [09:06:40]Read from MH i2c: E2 17 00 38 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [09:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:06:40]wFMCommunicate OK [09:06:40]requested_item fd.num is exist - process it [09:06:40]SAM_PROTO_GetFieldsCounters [09:06:40]wFMCommunicate request_size=4 [09:06:40]MH_SAM_APDU [09:06:40]CAPDU: 80 13 00 00 [09:06:40]Write to MH i2c: E2 08 00 39 06 80 13 00 00 00 00 00 00 BB [09:06:40]Write i2c OK [09:06:40]MH_I2C_Read... [09:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:41]Read from MH i2c: E2 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 62 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 62 00 39 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A7 95 01 00 0E 04 04 00 62 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 E2 [09:06:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A7 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:41]wFMCommunicate OK [09:06:41]SAM_PROTO_GetFieldsCounters done [09:06:41]requested_item shift.num is exist - process it [09:06:41]requested_item shift.opened is exist - process it [09:06:41]req_shift_opened [09:06:41]FM_GetShiftState [09:06:41]SAM_PROTO_GetShiftState [09:06:41]wFMCommunicate request_size=4 [09:06:41]MH_SAM_APDU [09:06:41]CAPDU: 80 13 01 00 [09:06:41]Write to MH i2c: E2 08 00 3A 06 80 13 01 00 00 00 00 00 BD [09:06:41]Write i2c OK [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 [09:06:41]MH_I2C_Read... [09:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:41]Read from MH i2c: E2 0E 00 [09:06:41]MH_I2C_Read... [09:06:41]Read from MH i2c: E2 0E 00 3A 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0C [09:06:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:06:41]wFMCommunicate OK [09:06:41]SAM_PROTO_GetShiftState done [09:06:41]FM_GetShiftState done [09:06:41]req_shift_opened done [09:06:41]requested_item shift.open_date is exist - process it [09:06:41]req_shift_open_date [09:06:41]req_shift_open_date done [09:06:41]produce_requested_data done [09:06:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103847,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:06:41]process_action_free close_receipt [09:06:41]json_value_free [09:06:41]json_value_free done [09:06:41]process_json_proto returns [09:06:41]Send response to host [09:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103847,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:06:41]free response buf [09:06:41]execute_script done [09:06:41]execute_script returns [09:06:41]free content buf [09:06:41]Sock 7.Close socket [09:06:41]Sock 7.Thread stoped [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07: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: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:50]accept exits with 9 [09:09:50]New connection [09:09:50]New thread 3067207012 created [09:09:50]Thread 3067063652 joined [09:09:50]Waiting for new connection... [09:09:50] Sock 9.Parse request [09:09:50]Sock 9.Check first char [09:09:50]Sock 9.First char is OK [09:09:50]request: POST /json_proto HTTP/1.0 [09:09:50]Method: POST [09:09:50]URL: /json_proto [09:09:50]Method is POST - this is cgi request [09:09:50]url: /json_proto [09:09:50]query_string will be loaded in cgi processing [09:09:50]execute_cgi json_proto POST (null) [09:09:50]execute_cgi path=json_proto method=POST [09:09:50]POST find Content-Length [09:09:50]Host: 172.17.38.133:8080 [09:09:50]Content-Length: 677 [09:09:50]Content-Type: application/json [09:09:50] [09:09:50]POST finish read [09:09:50]Found Content-Length = 677 [09:09:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673167", "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" : 73.90, "quantity" : 8.120, "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:09:50]execute_script... [09:09: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)673167", "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" : 73.90, "quantity" : 8.120, "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:09:50]POST & json_proto [09:09:50]process_json_proto [09:09:50]json parsed OK: [09:09:50]protocol is kg_v1.0 [09:09:50]action value=close_receipt [09:09:50]process_action close_receipt [09:09:50]cmd_close_receipt [09:09:50]MH_GetDate [09:09:50]Write to MH i2c: F0 00 00 3B 06 30 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: F0 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: F0 09 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: F0 09 00 3B 06 00 DF F1 73 66 BD 8F 7C 64 0E [09:09:50]GetLastDocTimeStamp 1718874398 [09:09:50]current date 1718874591 [09:09:50]FM_GetShiftState [09:09:50]SAM_PROTO_GetShiftState [09:09:50]wFMCommunicate request_size=4 [09:09:50]MH_SAM_APDU [09:09:50]CAPDU: 80 13 01 00 [09:09:50]Write to MH i2c: E2 08 00 3C 06 80 13 01 00 00 00 00 00 BF [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:50]Read from MH i2c: E2 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 3C 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0E [09:09:50]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:09:50]wFMCommunicate OK [09:09:50]SAM_PROTO_GetShiftState done [09:09:50]FM_GetShiftState done [09:09:50]opened in 1718843124 [09:09:50]opened+sec_in_day 1718929524 [09:09:50]quantity*price = 60006 [09:09:50]sum+1 = 60008 [09:09:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 33 20.06.2024 09:09 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103848 ФПД: 267648524445535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090951&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103848&fm=267648524445535&tin=02508201610067®Number=0000000000092785&sum=60000 [09:09:51]StoreToDocumentArchive [09:09:51]shift 354 fd 103848 [09:09:51]save to /storage/0354/doc_00103848 [09:09:51]save last doc name /storage/0354/doc_00103848 to /storage/kkm_last_doc_name [09:09:51]save OK [09:09:51]Clear old archive folders... [09:09:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:51]tlvbuf is 00833A20 [09:09:51]SAM_PROTO_ClearQueue [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 09 00 00 [09:09:51]Write to MH i2c: E2 08 00 49 06 80 09 00 00 00 00 00 00 C1 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [09:09:51]RAPDU: 90 00 [09:09:51]wFMCommunicate OK [09:09:51]SAM_PROTO_ClearQueue done [09:09:51]KKMCreateOFDPacket [09:09:51]OFDProtocolAddRootSTLVToBuf [09:09:51]FM_MakeSignedData [09:09:51]FM_MakeSignedData [09:09:51]SAM_PROTO_SignData [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 0D 01 02 [09:09:51]Write to MH i2c: E2 08 00 4A 06 80 0D 01 02 00 00 00 00 C9 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [09:09:51]RAPDU: 90 00 [09:09:51]wFMCommunicate OK [09:09:51]wFMCommunicate request_size=255 [09:09:51]MH_SAM_APDU [09:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 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 21 00 00 00 F4 03 04 00 DF F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 95 01 00 35 04 06 00 F3 [09:09:51]Write to MH i2c: E2 02 01 4B 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 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 21 00 00 00 F4 03 04 00 DF F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 95 01 00 35 04 06 00 F3 00 00 02 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [09:09:51]RAPDU: 90 00 [09:09:51]wFMCommunicate OK [09:09:51]wFMCommunicate request_size=10 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 0D 02 02 05 6C C7 39 67 5F [09:09:51]Write to MH i2c: E2 0D 00 4C 06 80 0D 02 02 05 00 6C C7 39 67 5F 00 00 08 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [09:09:51]RAPDU: 90 00 [09:09:51]wFMCommunicate OK [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 0D 03 02 [09:09:51]Write to MH i2c: E2 08 00 4D 06 80 0D 03 02 00 00 00 00 CE [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 0B 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 0B 00 4D 06 00 8D D7 BB 60 DD 10 E3 57 90 00 75 [09:09:51]RAPDU: 8D D7 BB 60 DD 10 E3 57 90 00 [09:09:51]wFMCommunicate OK [09:09:51]SAM_PROTO_SignData done [09:09:51]FM_MakeSignedData done [09:09:51]CreateOFDProtocolMessage [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 11 00 00 [09:09:51]Write to MH i2c: E2 08 00 4E 06 80 11 00 00 00 00 00 00 CE [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 17 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 17 00 4E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 21 [09:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:09:51]wFMCommunicate OK [09:09:51]CreateOFDProtocolMessage done [09:09:51]OFDSenderStorePacket 103848 [09:09:51]StoreOFDPacket docnum=103848 [09:09:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D6 98 07 01 5F 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 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 21 00 00 00 F4 03 04 00 DF F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 95 01 00 35 04 06 00 F3 6C C7 39 67 5F 8D D7 BB 60 DD 10 E3 57 [09:09:51]CheckFolder [09:09:51]dirname=/storage/ofd_packets [09:09:51]CheckFolder done [09:09:51]ProducePacketName [09:09:51]name=ofd_packets/00103848 [09:09:51]NVStorageSaveData ofd_packets/00103848 [09:09:51]File name is /storage/ofd_packets/00103848 [09:09:51]Write 301 bytes [09:09:51]NVStorageSaveData done [09:09:51]OFDSenderStorePacket done [09:09:51]KKMCreateOFDPacket done [09:09:51]NVStorageSaveData kkm_last_timestamp [09:09:51]File name is /storage/kkm_last_timestamp [09:09:51]Write 4 bytes [09:09:51]NVStorageSaveData done [09:09:51]ExternCall_PrintAddStr [09:09:51]wPrintStart [09:09:51]Write to MH i2c: 01 00 00 4F 06 55 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: 01 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: 01 07 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: 01 07 00 4F 06 00 00 00 00 00 FF 0F 6A [09:09:51]RasterBufferAndPrint [09:09:51]line Счет N : (1)673167 [09:09:51]line ИНН: 02508201610067 [09:09:51]line Контрольно-Кассовый Чек [09:09:51]line ПРОДАЖА [09:09:51]line ТРК (МРК, ГНК) : 41 [09:09:51]line Товар: 2710124500 [09:09:51]line Аи-95-К-5 [09:09:51]line 8.120 * 73.90 [09:09:51]line = 600.07 [09:09:51]line НДС 12% НСП 1% [09:09:51]line > о реализуемом товаре [09:09:51]line ОКРУГЛЕНИЕ: -0.07 [09:09:51]line ИТОГО: 600.00 [09:09:51]line Внесено: 600.00 [09:09:51]line СДАЧА: 0.00 [09:09:51]line НСП 1% : 5.31 [09:09:51]line НДС 12% : 63.72 [09:09:51]line Наличными: 600.00 [09:09:51]line Безнал.: 0.00 [09:09:51]line Место: АЗС № 120 "Партнер Нефть" [09:09:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:09:51]line СНО: Общий режим [09:09:51]line Чек 33 20.06.2024 09:09 [09:09:51]line Смена: 354 ФФД: 1.0 [09:09:51]line ЗНМ: 0300000164 [09:09:51]line РНМ: 0000000000092785 [09:09:51]line Версия ККМ: 001 [09:09:51]line ФМ: 0000000000875093 [09:09:51]line ФД: 103848 [09:09:51]line ФПД: 267648524445535 [09:09:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090951&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103848&fm=267648524445535&tin=02508201610067®Number=0000000000092785&sum=60000 [09:09:52]written 0, free lines is 4095 [09:09:52]OFD Sender: Processing packet 103848 [packets to send 17, broken 16] [09:09:52]ProducePacketName [09:09:52]name=ofd_packets/00103848 [09:09:52]OFD Sender: To server: pG, [09:09:52]CommunicateWithHost lk.salyk.kg:30040 [09:09:52]ConnectInit lk.salyk.kg [09:09:52]Connected sock=10 [09:09:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D6 98 07 01 5F 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 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 21 00 00 00 F4 03 04 00 DF F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 95 01 00 35 04 06 00 F3 6C C7 39 67 5F 8D D7 BB 60 DD 10 E3 57 [09:09:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C9 C5 47 00 55 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A8 95 01 00 F4 03 04 00 65 98 73 66 B6 04 01 00 00 50 31 2C 1D 0E 43 2F B9 [09:09:52]CommunicateWithHost err = 0 [09:09:52]CheckOFDResponse [09:09:52]1017 (14) - 77093643461234 [09:09:52]1041 (16) - 0000000000875093 [09:09:52]1040 (4) - 103848 [09:09:52]1012 (4) - 20.06.2024 02:48 [09:09:52]1206 (1) - 0 [09:09:52]OFD Sender: Remove packet 103848 [09:09:52]ProducePacketName [09:09:52]name=ofd_packets/00103848 [09:09:52]NVStorageDeleteData [09:09:52]Write to MH i2c: 01 00 00 7A 06 80 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: 01 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: 01 07 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 DA 0C 6D [09:09:52]RasterBufferAndPrint [09:09:52]line [09:09:52]line [09:09:52]line [09:09:52]line [09:09:52]line [09:09:52]written 0, free lines is 3297 [09:09:52]MH_Cut [09:09:52]Write to MH i2c: D1 01 00 81 06 01 59 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: D1 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: D1 01 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: D1 01 00 81 06 00 58 [09:09:52]Write to MH i2c: 01 00 00 82 06 88 [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:53]OFD Sender: No OFD packet to send [09:09:53]*** Cut start [09:09:53]*** Partial cut [09:09:53]*** CUTSNS_PIN = 1 [09:09:53]*** CUTSNS_PIN = 0 [09:09:53]*** Brake cut motor [09:09:54]Read from MH i2c: 01 [09:09:54]MH_I2C_Read... [09:09:54]*** Stop cut motor [09:09:54]*** Cut end [09:09:54]Read from MH i2c: 01 07 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: 01 07 00 82 06 00 00 00 00 00 FF 0F 9D [09:09:54]process_action close_receipt done [09:09:54]requested_data is exist [09:09:54]produce_requested_data [09:09:54]requested_item fm.sn is exist - process it [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 11 00 00 [09:09:54]Write to MH i2c: E2 08 00 83 06 80 11 00 00 00 00 00 00 03 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 17 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 17 00 83 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [09:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:09:54]wFMCommunicate OK [09:09:54]requested_item fd.num is exist - process it [09:09:54]SAM_PROTO_GetFieldsCounters [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 13 00 00 [09:09:54]Write to MH i2c: E2 08 00 84 06 80 13 00 00 00 00 00 00 06 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 62 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 62 00 84 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A8 95 01 00 0E 04 04 00 62 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 31 [09:09:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A8 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:54]wFMCommunicate OK [09:09:54]SAM_PROTO_GetFieldsCounters done [09:09:54]requested_item shift.num is exist - process it [09:09:54]requested_item shift.opened is exist - process it [09:09:54]req_shift_opened [09:09:54]FM_GetShiftState [09:09:54]SAM_PROTO_GetShiftState [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 13 01 00 [09:09:54]Write to MH i2c: E2 08 00 85 06 80 13 01 00 00 00 00 00 08 [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 0E 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 0E 00 85 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 57 [09:09:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:09:54]wFMCommunicate OK [09:09:54]SAM_PROTO_GetShiftState done [09:09:54]FM_GetShiftState done [09:09:54]req_shift_opened done [09:09:54]requested_item shift.open_date is exist - process it [09:09:54]req_shift_open_date [09:09:54]req_shift_open_date done [09:09:54]produce_requested_data done [09:09:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103848,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:09:54]process_action_free close_receipt [09:09:54]json_value_free [09:09:54]json_value_free done [09:09:54]process_json_proto returns [09:09:54]Send response to host [09:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103848,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:09:54]free response buf [09:09:54]execute_script done [09:09:54]execute_script returns [09:09:54]free content buf [09:09:54]Sock 9.Close socket [09:09:54]Sock 9.Thread stoped [09:09:54]accept exits with 7 [09:09:54]New connection [09:09:54]New thread 3067063652 created [09:09:54]Thread 3067207012 joined [09:09:54]Waiting for new connection... [09:09:54] Sock 7.Parse request [09:09:54]Sock 7.Check first char [09:09:54]Sock 7.First char is OK [09:09:54]request: POST /json_proto HTTP/1.0 [09:09:54]Method: POST [09:09:54]URL: /json_proto [09:09:54]Method is POST - this is cgi request [09:09:54]url: /json_proto [09:09:54]query_string will be loaded in cgi processing [09:09:54]execute_cgi json_proto POST (null) [09:09:54]execute_cgi path=json_proto method=POST [09:09:54]POST find Content-Length [09:09:54]Host: 172.17.38.133:8080 [09:09:54]Content-Length: 682 [09:09:54]Content-Type: application/json [09:09:54] [09:09:54]POST finish read [09:09:54]Found Content-Length = 682 [09:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673166", "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" : 73.90, "quantity" : 37.520, "sum" : 2772.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2772.00, "payments": [ { "type": 0, "sum" : 2772.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:54]execute_script... [09:09: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)673166", "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" : 73.90, "quantity" : 37.520, "sum" : 2772.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2772.00, "payments": [ { "type": 0, "sum" : 2772.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:54]POST & json_proto [09:09:54]process_json_proto [09:09:54]json parsed OK: [09:09:54]protocol is kg_v1.0 [09:09:54]action value=close_receipt [09:09:54]process_action close_receipt [09:09:54]cmd_close_receipt [09:09:54]MH_GetDate [09:09:54]Write to MH i2c: F0 00 00 86 06 7B [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: F0 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: F0 09 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: F0 09 00 86 06 00 E3 F1 73 66 BD 8F 7C 64 5D [09:09:54]GetLastDocTimeStamp 1718874591 [09:09:54]current date 1718874595 [09:09:54]FM_GetShiftState [09:09:54]SAM_PROTO_GetShiftState [09:09:54]wFMCommunicate request_size=4 [09:09:54]MH_SAM_APDU [09:09:54]CAPDU: 80 13 01 00 [09:09:54]Write to MH i2c: E2 08 00 87 06 80 13 01 00 00 00 00 00 0A [09:09:54]Write i2c OK [09:09:54]MH_I2C_Read... [09:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:54]Read from MH i2c: E2 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 0E 00 [09:09:54]MH_I2C_Read... [09:09:54]Read from MH i2c: E2 0E 00 87 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 59 [09:09:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:09:54]wFMCommunicate OK [09:09:54]SAM_PROTO_GetShiftState done [09:09:54]FM_GetShiftState done [09:09:54]opened in 1718843124 [09:09:54]opened+sec_in_day 1718929524 [09:09:54]quantity*price = 277272 [09:09:54]sum+1 = 277274 [09:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 2772.00 Внесено: 3000.00 СДАЧА: 228.00 НСП 1% : 24.54 НДС 12% : 294.45 Наличными: 2772.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 34 20.06.2024 09:09 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103849 ФПД: 158239225823316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090955&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103849&fm=158239225823316&tin=02508201610067®Number=0000000000092785&sum=277200 [09:09:56]StoreToDocumentArchive [09:09:56]shift 354 fd 103849 [09:09:56]save to /storage/0354/doc_00103849 [09:09:56]save last doc name /storage/0354/doc_00103849 to /storage/kkm_last_doc_name [09:09:56]save OK [09:09:56]Clear old archive folders... [09:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:56]tlvbuf is 00829950 [09:09:56]SAM_PROTO_ClearQueue [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 09 00 00 [09:09:56]Write to MH i2c: E2 08 00 94 06 80 09 00 00 00 00 00 00 0C [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 03 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 03 00 94 06 00 90 00 0E [09:09:56]RAPDU: 90 00 [09:09:56]wFMCommunicate OK [09:09:56]SAM_PROTO_ClearQueue done [09:09:56]KKMCreateOFDPacket [09:09:56]OFDProtocolAddRootSTLVToBuf [09:09:56]FM_MakeSignedData [09:09:56]FM_MakeSignedData [09:09:56]SAM_PROTO_SignData [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 0D 01 02 [09:09:56]Write to MH i2c: E2 08 00 95 06 80 0D 01 02 00 00 00 00 14 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 03 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [09:09:56]RAPDU: 90 00 [09:09:56]wFMCommunicate OK [09:09:56]wFMCommunicate request_size=255 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 90 92 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 19 3B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 3A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 73 00 00 00 00 07 04 06 00 D0 3A 04 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 E3 F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 95 01 00 35 04 06 00 8F [09:09:56]Write to MH i2c: E2 02 01 96 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 90 92 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 19 3B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 3A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 73 00 00 00 00 07 04 06 00 D0 3A 04 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 E3 F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 95 01 00 35 04 06 00 8F 00 00 CF [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 03 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [09:09:56]RAPDU: 90 00 [09:09:56]wFMCommunicate OK [09:09:56]wFMCommunicate request_size=10 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 0D 02 02 05 EA F0 D8 40 54 [09:09:56]Write to MH i2c: E2 0D 00 97 06 80 0D 02 02 05 00 EA F0 D8 40 54 00 00 67 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 03 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [09:09:56]RAPDU: 90 00 [09:09:56]wFMCommunicate OK [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 0D 03 02 [09:09:56]Write to MH i2c: E2 08 00 98 06 80 0D 03 02 00 00 00 00 19 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 0B 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 0B 00 98 06 00 25 F5 12 51 D5 E6 90 6B 90 00 4D [09:09:56]RAPDU: 25 F5 12 51 D5 E6 90 6B 90 00 [09:09:56]wFMCommunicate OK [09:09:56]SAM_PROTO_SignData done [09:09:56]FM_MakeSignedData done [09:09:56]CreateOFDProtocolMessage [09:09:56]wFMCommunicate request_size=4 [09:09:56]MH_SAM_APDU [09:09:56]CAPDU: 80 11 00 00 [09:09:56]Write to MH i2c: E2 08 00 99 06 80 11 00 00 00 00 00 00 19 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:56]Read from MH i2c: E2 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 17 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: E2 17 00 99 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6C [09:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:09:56]wFMCommunicate OK [09:09:56]CreateOFDProtocolMessage done [09:09:56]OFDSenderStorePacket 103849 [09:09:56]StoreOFDPacket docnum=103849 [09:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E8 F5 07 01 3A E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 90 92 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 19 3B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 3A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 73 00 00 00 00 07 04 06 00 D0 3A 04 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 E3 F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 95 01 00 35 04 06 00 8F EA F0 D8 40 54 25 F5 12 51 D5 E6 90 6B [09:09:56]CheckFolder [09:09:56]dirname=/storage/ofd_packets [09:09:56]CheckFolder done [09:09:56]ProducePacketName [09:09:56]name=ofd_packets/00103849 [09:09:56]NVStorageSaveData ofd_packets/00103849 [09:09:56]File name is /storage/ofd_packets/00103849 [09:09:56]Write 301 bytes [09:09:56]NVStorageSaveData done [09:09:56]OFDSenderStorePacket done [09:09:56]KKMCreateOFDPacket done [09:09:56]NVStorageSaveData kkm_last_timestamp [09:09:56]File name is /storage/kkm_last_timestamp [09:09:56]Write 4 bytes [09:09:56]NVStorageSaveData done [09:09:56]ExternCall_PrintAddStr [09:09:56]wPrintStart [09:09:56]Write to MH i2c: 01 00 00 9A 06 A0 [09:09:56]Write i2c OK [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: 01 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: 01 07 00 [09:09:56]MH_I2C_Read... [09:09:56]Read from MH i2c: 01 07 00 9A 06 00 00 00 00 00 FF 0F B5 [09:09:56]RasterBufferAndPrint [09:09:56]line Счет N : (1)673166 [09:09:56]line ИНН: 02508201610067 [09:09:56]line Контрольно-Кассовый Чек [09:09:56]line ПРОДАЖА [09:09:56]line ТРК (МРК, ГНК) : 31 [09:09:56]line Товар: 2710124500 [09:09:56]line Аи-95-К-5 [09:09:56]line 37.520 * 73.90 [09:09:56]line = 2772.73 [09:09:56]line НДС 12% НСП 1% [09:09:56]line > о реализуемом товаре [09:09:56]line ОКРУГЛЕНИЕ: -0.73 [09:09:56]line ИТОГО: 2772.00 [09:09:56]line Внесено: 3000.00 [09:09:56]line СДАЧА: 228.00 [09:09:56]line НСП 1% : 24.54 [09:09:56]line НДС 12% : 294.45 [09:09:56]line Наличными: 2772.00 [09:09:56]line Безнал.: 0.00 [09:09:56]line Место: АЗС № 120 "Партнер Нефть" [09:09:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:09:56]line СНО: Общий режим [09:09:56]line Чек 34 20.06.2024 09:09 [09:09:56]line Смена: 354 ФФД: 1.0 [09:09:56]line ЗНМ: 0300000164 [09:09:56]line РНМ: 0000000000092785 [09:09:56]line Версия ККМ: 001 [09:09:56]line ФМ: 0000000000875093 [09:09:56]line ФД: 103849 [09:09:56]line ФПД: 158239225823316 [09:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T090955&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103849&fm=158239225823316&tin=02508201610067®Number=0000000000092785&sum=277200 [09:09:56]written 0, free lines is 4095 [09:09:56]OFD Sender: Processing packet 103849 [packets to send 17, broken 16] [09:09:56]ProducePacketName [09:09:56]name=ofd_packets/00103849 [09:09:56]OFD Sender: To server: pG, [09:09:56]CommunicateWithHost lk.salyk.kg:30040 [09:09:56]ConnectInit lk.salyk.kg [09:09:56]Connected sock=10 [09:09:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E8 F5 07 01 3A E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 90 92 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 19 3B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 3A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 73 00 00 00 00 07 04 06 00 D0 3A 04 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 E3 F1 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 A9 95 01 00 35 04 06 00 8F EA F0 D8 40 54 25 F5 12 51 D5 E6 90 6B [09:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4D 5A 47 00 18 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 35 30 39 33 10 04 04 00 A9 95 01 00 F4 03 04 00 69 98 73 66 B6 04 01 00 00 F6 70 FD 2E EF 3C C6 7E [09:09:57]CommunicateWithHost err = 0 [09:09:57]CheckOFDResponse [09:09:57]1017 (14) - 77093643461234 [09:09:57]1041 (16) - 0000000000875093 [09:09:57]1040 (4) - 103849 [09:09:57]1012 (4) - 20.06.2024 02:48 [09:09:57]1206 (1) - 0 [09:09:57]OFD Sender: Remove packet 103849 [09:09:57]ProducePacketName [09:09:57]name=ofd_packets/00103849 [09:09:57]NVStorageDeleteData [09:09:57]Write to MH i2c: 01 00 00 C5 06 CB [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: 01 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: 01 07 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: 01 07 00 C5 06 00 00 00 00 00 EF 0C CD [09:09:57]RasterBufferAndPrint [09:09:57]line [09:09:57]line [09:09:57]line [09:09:57]line [09:09:57]line [09:09:57]written 0, free lines is 3324 [09:09:57]MH_Cut [09:09:57]Write to MH i2c: D1 01 00 CC 06 01 A4 [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: D1 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: D1 01 00 [09:09:57]MH_I2C_Read... [09:09:57]Read from MH i2c: D1 01 00 CC 06 00 A3 [09:09:57]Write to MH i2c: 01 00 00 CD 06 D3 [09:09:57]Write i2c OK [09:09:57]MH_I2C_Read... [09:09:57]OFD Sender: No OFD packet to send [09:09:57]*** Cut start [09:09:57]*** Partial cut [09:09:57]*** CUTSNS_PIN = 1 [09:09:58]*** CUTSNS_PIN = 0 [09:09:58]*** Brake cut motor [09:09:58]Read from MH i2c: 01 [09:09:58]MH_I2C_Read... [09:09:58]*** Stop cut motor [09:09:58]*** Cut end [09:09:58]Read from MH i2c: 01 07 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: 01 07 00 CD 06 00 00 00 00 00 FF 0F E8 [09:09:58]process_action close_receipt done [09:09:58]requested_data is exist [09:09:58]produce_requested_data [09:09:58]requested_item fm.sn is exist - process it [09:09:58]wFMCommunicate request_size=4 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 11 00 00 [09:09:58]Write to MH i2c: E2 08 00 CE 06 80 11 00 00 00 00 00 00 4E [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 17 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 17 00 CE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A1 [09:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:09:58]wFMCommunicate OK [09:09:58]requested_item fd.num is exist - process it [09:09:58]SAM_PROTO_GetFieldsCounters [09:09:58]wFMCommunicate request_size=4 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 13 00 00 [09:09:58]Write to MH i2c: E2 08 00 CF 06 80 13 00 00 00 00 00 00 51 [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 62 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 62 00 CF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A9 95 01 00 0E 04 04 00 62 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 80 [09:09:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 A9 95 01 00 0E 04 04 00 62 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:09:58]wFMCommunicate OK [09:09:58]SAM_PROTO_GetFieldsCounters done [09:09:58]requested_item shift.num is exist - process it [09:09:58]requested_item shift.opened is exist - process it [09:09:58]req_shift_opened [09:09:58]FM_GetShiftState [09:09:58]SAM_PROTO_GetShiftState [09:09:58]wFMCommunicate request_size=4 [09:09:58]MH_SAM_APDU [09:09:58]CAPDU: 80 13 01 00 [09:09:58]Write to MH i2c: E2 08 00 D0 06 80 13 01 00 00 00 00 00 53 [09:09:58]Write i2c OK [09:09:58]MH_I2C_Read... [09:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:58]Read from MH i2c: E2 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 0E 00 [09:09:58]MH_I2C_Read... [09:09:58]Read from MH i2c: E2 0E 00 D0 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A2 [09:09:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:09:58]wFMCommunicate OK [09:09:58]SAM_PROTO_GetShiftState done [09:09:58]FM_GetShiftState done [09:09:58]req_shift_opened done [09:09:58]requested_item shift.open_date is exist - process it [09:09:58]req_shift_open_date [09:09:58]req_shift_open_date done [09:09:58]produce_requested_data done [09:09:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103849,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:09:58]process_action_free close_receipt [09:09:58]json_value_free [09:09:58]json_value_free done [09:09:58]process_json_proto returns [09:09:58]Send response to host [09:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103849,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:09:58]free response buf [09:09:58]execute_script done [09:09:58]execute_script returns [09:09:58]free content buf [09:09:58]Sock 7.Close socket [09:09:58]Sock 7.Thread stoped [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]accept exits with 9 [09:21:03]New connection [09:21:03]New thread 3067207012 created [09:21:03]Thread 3067063652 joined [09:21:03]Waiting for new connection... [09:21:03] Sock 9.Parse request [09:21:03]Sock 9.Check first char [09:21:03]Sock 9.First char is OK [09:21:03]request: POST /json_proto HTTP/1.0 [09:21:03]Method: POST [09:21:03]URL: /json_proto [09:21:03]Method is POST - this is cgi request [09:21:03]url: /json_proto [09:21:03]query_string will be loaded in cgi processing [09:21:03]execute_cgi json_proto POST (null) [09:21:03]execute_cgi path=json_proto method=POST [09:21:03]POST find Content-Length [09:21:03]Host: 172.17.38.133:8080 [09:21:03]Content-Length: 683 [09:21:03]Content-Type: application/json [09:21:03] [09:21:03]POST finish read [09:21:03]Found Content-Length = 683 [09:21:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673169", "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" : 73.90, "quantity" : 73.630, "sum" : 5441.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 5441.00, "payments": [ { "type": 0, "sum" : 5441.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:03]execute_script... [09:21:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673169", "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" : 73.90, "quantity" : 73.630, "sum" : 5441.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 5441.00, "payments": [ { "type": 0, "sum" : 5441.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:03]POST & json_proto [09:21:03]process_json_proto [09:21:03]json parsed OK: [09:21:03]protocol is kg_v1.0 [09:21:03]action value=close_receipt [09:21:03]process_action close_receipt [09:21:03]cmd_close_receipt [09:21:03]MH_GetDate [09:21:03]Write to MH i2c: F0 00 00 D1 06 C6 [09:21:03]Write i2c OK [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: F0 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: F0 09 00 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: F0 09 00 D1 06 00 80 F4 73 66 BD 8F 7C 64 48 [09:21:03]GetLastDocTimeStamp 1718874595 [09:21:03]current date 1718875264 [09:21:03]FM_GetShiftState [09:21:03]SAM_PROTO_GetShiftState [09:21:03]wFMCommunicate request_size=4 [09:21:03]MH_SAM_APDU [09:21:03]CAPDU: 80 13 01 00 [09:21:03]Write to MH i2c: E2 08 00 D2 06 80 13 01 00 00 00 00 00 55 [09:21:03]Write i2c OK [09:21:03]MH_I2C_Read... [09:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:03]Read from MH i2c: E2 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: E2 0E 00 [09:21:03]MH_I2C_Read... [09:21:03]Read from MH i2c: E2 0E 00 D2 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A4 [09:21:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:21:03]wFMCommunicate OK [09:21:03]SAM_PROTO_GetShiftState done [09:21:03]FM_GetShiftState done [09:21:03]opened in 1718843124 [09:21:03]opened+sec_in_day 1718929524 [09:21:03]quantity*price = 544125 [09:21:03]sum+1 = 544127 [09:21:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 5441.00 Внесено: 10000.00 СДАЧА: 4559.00 НСП 1% : 48.15 НДС 12% : 577.83 Наличными: 5441.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 35 20.06.2024 09:21 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103850 ФПД: 34897987450154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092104&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103850&fm=34897987450154&tin=02508201610067®Number=0000000000092785&sum=544100 [09:21:04]StoreToDocumentArchive [09:21:04]shift 354 fd 103850 [09:21:04]save to /storage/0354/doc_00103850 [09:21:04]save last doc name /storage/0354/doc_00103850 to /storage/kkm_last_doc_name [09:21:04]save OK [09:21:04]Clear old archive folders... [09:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:04]tlvbuf is 0084A130 [09:21:04]SAM_PROTO_ClearQueue [09:21:04]wFMCommunicate request_size=4 [09:21:04]MH_SAM_APDU [09:21:04]CAPDU: 80 09 00 00 [09:21:04]Write to MH i2c: E2 08 00 DF 06 80 09 00 00 00 00 00 00 57 [09:21:04]Write i2c OK [09:21:04]MH_I2C_Read... [09:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:04]Read from MH i2c: E2 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 03 00 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 03 00 DF 06 00 90 00 59 [09:21:04]RAPDU: 90 00 [09:21:04]wFMCommunicate OK [09:21:04]SAM_PROTO_ClearQueue done [09:21:04]KKMCreateOFDPacket [09:21:04]OFDProtocolAddRootSTLVToBuf [09:21:04]FM_MakeSignedData [09:21:04]FM_MakeSignedData [09:21:04]SAM_PROTO_SignData [09:21:04]wFMCommunicate request_size=4 [09:21:04]MH_SAM_APDU [09:21:04]CAPDU: 80 0D 01 02 [09:21:04]Write to MH i2c: E2 08 00 E0 06 80 0D 01 02 00 00 00 00 5F [09:21:04]Write i2c OK [09:21:04]MH_I2C_Read... [09:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:04]Read from MH i2c: E2 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 03 00 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [09:21:04]RAPDU: 90 00 [09:21:04]wFMCommunicate OK [09:21:04]wFMCommunicate request_size=255 [09:21:04]MH_SAM_APDU [09:21: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 9E 1F 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 7E 4D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 4D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 E1 00 00 00 00 07 04 06 00 64 4D 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 80 F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 95 01 00 35 04 06 00 1F [09:21:04]Write to MH i2c: E2 02 01 E1 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 1F 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 7E 4D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 4D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 E1 00 00 00 00 07 04 06 00 64 4D 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 80 F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 95 01 00 35 04 06 00 1F 00 00 1B [09:21:04]Write i2c OK [09:21:04]MH_I2C_Read... [09:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:04]Read from MH i2c: E2 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 03 00 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [09:21:04]RAPDU: 90 00 [09:21:04]wFMCommunicate OK [09:21:04]wFMCommunicate request_size=10 [09:21:04]MH_SAM_APDU [09:21:04]CAPDU: 80 0D 02 02 05 BD 52 25 35 2A [09:21:04]Write to MH i2c: E2 0D 00 E2 06 80 0D 02 02 05 00 BD 52 25 35 2A 00 00 FF [09:21:04]Write i2c OK [09:21:04]MH_I2C_Read... [09:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:04]Read from MH i2c: E2 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 03 00 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [09:21:04]RAPDU: 90 00 [09:21:04]wFMCommunicate OK [09:21:04]wFMCommunicate request_size=4 [09:21:04]MH_SAM_APDU [09:21:04]CAPDU: 80 0D 03 02 [09:21:04]Write to MH i2c: E2 08 00 E3 06 80 0D 03 02 00 00 00 00 64 [09:21:04]Write i2c OK [09:21:04]MH_I2C_Read... [09:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:04]Read from MH i2c: E2 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 0B 00 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 0B 00 E3 06 00 C8 94 41 07 4D 11 DA E7 90 00 28 [09:21:04]RAPDU: C8 94 41 07 4D 11 DA E7 90 00 [09:21:04]wFMCommunicate OK [09:21:04]SAM_PROTO_SignData done [09:21:04]FM_MakeSignedData done [09:21:04]CreateOFDProtocolMessage [09:21:04]wFMCommunicate request_size=4 [09:21:04]MH_SAM_APDU [09:21:04]CAPDU: 80 11 00 00 [09:21:04]Write to MH i2c: E2 08 00 E4 06 80 11 00 00 00 00 00 00 64 [09:21:04]Write i2c OK [09:21:04]MH_I2C_Read... [09:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:04]Read from MH i2c: E2 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 17 00 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: E2 17 00 E4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B7 [09:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:21:04]wFMCommunicate OK [09:21:04]CreateOFDProtocolMessage done [09:21:04]OFDSenderStorePacket 103850 [09:21:04]StoreOFDPacket docnum=103850 [09:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FD 94 07 01 C4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 1F 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 7E 4D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 4D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 E1 00 00 00 00 07 04 06 00 64 4D 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 80 F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 95 01 00 35 04 06 00 1F BD 52 25 35 2A C8 94 41 07 4D 11 DA E7 [09:21:04]CheckFolder [09:21:04]dirname=/storage/ofd_packets [09:21:04]CheckFolder done [09:21:04]ProducePacketName [09:21:04]name=ofd_packets/00103850 [09:21:04]NVStorageSaveData ofd_packets/00103850 [09:21:04]File name is /storage/ofd_packets/00103850 [09:21:04]Write 301 bytes [09:21:04]NVStorageSaveData done [09:21:04]OFDSenderStorePacket done [09:21:04]KKMCreateOFDPacket done [09:21:04]NVStorageSaveData kkm_last_timestamp [09:21:04]File name is /storage/kkm_last_timestamp [09:21:04]Write 4 bytes [09:21:04]NVStorageSaveData done [09:21:04]ExternCall_PrintAddStr [09:21:04]wPrintStart [09:21:04]Write to MH i2c: 01 00 00 E5 06 EB [09:21:04]Write i2c OK [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: 01 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: 01 07 00 [09:21:04]MH_I2C_Read... [09:21:04]Read from MH i2c: 01 07 00 E5 06 00 00 00 00 00 FF 0F 00 [09:21:04]RasterBufferAndPrint [09:21:04]line Счет N : (1)673169 [09:21:04]line ИНН: 02508201610067 [09:21:04]line Контрольно-Кассовый Чек [09:21:04]line ПРОДАЖА [09:21:04]line ТРК (МРК, ГНК) : 31 [09:21:04]line Товар: 2710124500 [09:21:04]line Аи-95-К-5 [09:21:04]line 73.630 * 73.90 [09:21:04]line = 5441.26 [09:21:04]line НДС 12% НСП 1% [09:21:04]line > о реализуемом товаре [09:21:04]line ОКРУГЛЕНИЕ: -0.26 [09:21:04]line ИТОГО: 5441.00 [09:21:04]line Внесено: 10000.00 [09:21:04]line СДАЧА: 4559.00 [09:21:04]line НСП 1% : 48.15 [09:21:04]line НДС 12% : 577.83 [09:21:04]line Наличными: 5441.00 [09:21:04]line Безнал.: 0.00 [09:21:04]line Место: АЗС № 120 "Партнер Нефть" [09:21:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:21:04]line СНО: Общий режим [09:21:04]line Чек 35 20.06.2024 09:21 [09:21:04]line Смена: 354 ФФД: 1.0 [09:21:04]line ЗНМ: 0300000164 [09:21:04]line РНМ: 0000000000092785 [09:21:04]line Версия ККМ: 001 [09:21:04]line ФМ: 0000000000875093 [09:21:04]line ФД: 103850 [09:21:04]line ФПД: 34897987450154 [09:21:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092104&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103850&fm=34897987450154&tin=02508201610067®Number=0000000000092785&sum=544100 [09:21:05]OFD Sender: Processing packet 103850 [packets to send 17, broken 16] [09:21:05]ProducePacketName [09:21:05]name=ofd_packets/00103850 [09:21:05]OFD Sender: To server: pG, [09:21:05]CommunicateWithHost lk.salyk.kg:30040 [09:21:05]ConnectInit lk.salyk.kg [09:21:05]written 0, free lines is 4095 [09:21:05]Connected sock=10 [09:21:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FD 94 07 01 C4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 1F 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 7E 4D 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 4D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 E1 00 00 00 00 07 04 06 00 64 4D 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 80 F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 95 01 00 35 04 06 00 1F BD 52 25 35 2A C8 94 41 07 4D 11 DA E7 [09:21:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 19 8F 47 00 FC 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AA 95 01 00 F4 03 04 00 06 9B 73 66 B6 04 01 00 00 BC B1 16 FC FF A1 4E 6F [09:21:05]CommunicateWithHost err = 0 [09:21:05]CheckOFDResponse [09:21:05]1017 (14) - 77093643461234 [09:21:05]1041 (16) - 0000000000875093 [09:21:05]1040 (4) - 103850 [09:21:05]1012 (4) - 20.06.2024 02:59 [09:21:05]1206 (1) - 0 [09:21:05]OFD Sender: Remove packet 103850 [09:21:05]ProducePacketName [09:21:05]name=ofd_packets/00103850 [09:21:05]NVStorageDeleteData [09:21:05]Write to MH i2c: 01 00 00 10 07 17 [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: 01 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: 01 07 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: 01 07 00 10 07 00 00 00 00 00 E2 0C 0C [09:21:05]RasterBufferAndPrint [09:21:05]line [09:21:05]line [09:21:05]line [09:21:05]line [09:21:05]line [09:21:05]written 0, free lines is 3304 [09:21:05]MH_Cut [09:21:05]Write to MH i2c: D1 01 00 17 07 01 F0 [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: D1 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: D1 01 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: D1 01 00 17 07 00 EF [09:21:05]Write to MH i2c: 01 00 00 18 07 1F [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]OFD Sender: No OFD packet to send [09:21:06]*** Cut start [09:21:06]*** Partial cut [09:21:06]*** CUTSNS_PIN = 1 [09:21:06]*** CUTSNS_PIN = 0 [09:21:06]*** Brake cut motor [09:21:06]Read from MH i2c: 01 [09:21:06]MH_I2C_Read... [09:21:06]*** Stop cut motor [09:21:06]*** Cut end [09:21:06]Read from MH i2c: 01 07 00 [09:21:06]MH_I2C_Read... [09:21:06]Read from MH i2c: 01 07 00 18 07 00 00 00 00 00 FF 0F 34 [09:21:06]process_action close_receipt done [09:21:06]requested_data is exist [09:21:06]produce_requested_data [09:21:06]requested_item fm.sn is exist - process it [09:21:06]wFMCommunicate request_size=4 [09:21:06]MH_SAM_APDU [09:21:06]CAPDU: 80 11 00 00 [09:21:06]Write to MH i2c: E2 08 00 19 07 80 11 00 00 00 00 00 00 9A [09:21:06]Write i2c OK [09:21:06]MH_I2C_Read... [09:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:06]Read from MH i2c: E2 [09:21:06]MH_I2C_Read... [09:21:06]Read from MH i2c: E2 17 00 [09:21:06]MH_I2C_Read... [09:21:06]Read from MH i2c: E2 17 00 19 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 ED [09:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:21:06]wFMCommunicate OK [09:21:06]requested_item fd.num is exist - process it [09:21:06]SAM_PROTO_GetFieldsCounters [09:21:06]wFMCommunicate request_size=4 [09:21:06]MH_SAM_APDU [09:21:06]CAPDU: 80 13 00 00 [09:21:06]Write to MH i2c: E2 08 00 1A 07 80 13 00 00 00 00 00 00 9D [09:21:06]Write i2c OK [09:21:06]MH_I2C_Read... [09:21:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:07]Read from MH i2c: E2 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 62 00 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 62 00 1A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AA 95 01 00 0E 04 04 00 62 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 D0 [09:21:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AA 95 01 00 0E 04 04 00 62 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:21:07]wFMCommunicate OK [09:21:07]SAM_PROTO_GetFieldsCounters done [09:21:07]requested_item shift.num is exist - process it [09:21:07]requested_item shift.opened is exist - process it [09:21:07]req_shift_opened [09:21:07]FM_GetShiftState [09:21:07]SAM_PROTO_GetShiftState [09:21:07]wFMCommunicate request_size=4 [09:21:07]MH_SAM_APDU [09:21:07]CAPDU: 80 13 01 00 [09:21:07]Write to MH i2c: E2 08 00 1B 07 80 13 01 00 00 00 00 00 9F [09:21:07]Write i2c OK [09:21:07]MH_I2C_Read... [09:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:07]Read from MH i2c: E2 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 0E 00 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 0E 00 1B 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EE [09:21:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:21:07]wFMCommunicate OK [09:21:07]SAM_PROTO_GetShiftState done [09:21:07]FM_GetShiftState done [09:21:07]req_shift_opened done [09:21:07]requested_item shift.open_date is exist - process it [09:21:07]req_shift_open_date [09:21:07]req_shift_open_date done [09:21:07]produce_requested_data done [09:21:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103850,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:21:07]process_action_free close_receipt [09:21:07]json_value_free [09:21:07]json_value_free done [09:21:07]process_json_proto returns [09:21:07]Send response to host [09:21:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103850,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:21:07]free response buf [09:21:07]execute_script done [09:21:07]execute_script returns [09:21:07]free content buf [09:21:07]Sock 9.Close socket [09:21:07]Sock 9.Thread stoped [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]accept exits with 7 [09:21:25]New connection [09:21:25]New thread 3067063652 created [09:21:25]Thread 3067207012 joined [09:21:25]Waiting for new connection... [09:21:25] Sock 7.Parse request [09:21:25]Sock 7.Check first char [09:21:25]Sock 7.First char is OK [09:21:25]request: POST /json_proto HTTP/1.0 [09:21:25]Method: POST [09:21:25]URL: /json_proto [09:21:25]Method is POST - this is cgi request [09:21:25]url: /json_proto [09:21:25]query_string will be loaded in cgi processing [09:21:25]execute_cgi json_proto POST (null) [09:21:25]execute_cgi path=json_proto method=POST [09:21:25]POST find Content-Length [09:21:25]Host: 172.17.38.133:8080 [09:21:25]Content-Length: 683 [09:21:25]Content-Type: application/json [09:21:25] [09:21:25]POST finish read [09:21:25]Found Content-Length = 683 [09:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673168", "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" : 73.90, "quantity" : 72.540, "sum" : 5360.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 5360.00, "payments": [ { "type": 0, "sum" : 5360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:25]execute_script... [09:21:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673168", "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" : 73.90, "quantity" : 72.540, "sum" : 5360.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 5360.00, "payments": [ { "type": 0, "sum" : 5360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:25]POST & json_proto [09:21:25]process_json_proto [09:21:25]json parsed OK: [09:21:25]protocol is kg_v1.0 [09:21:25]action value=close_receipt [09:21:25]process_action close_receipt [09:21:25]cmd_close_receipt [09:21:25]MH_GetDate [09:21:25]Write to MH i2c: F0 00 00 1C 07 12 [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: F0 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: F0 09 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: F0 09 00 1C 07 00 96 F4 73 66 BD 8F 7C 64 AA [09:21:25]GetLastDocTimeStamp 1718875264 [09:21:25]current date 1718875286 [09:21:25]FM_GetShiftState [09:21:25]SAM_PROTO_GetShiftState [09:21:25]wFMCommunicate request_size=4 [09:21:25]MH_SAM_APDU [09:21:25]CAPDU: 80 13 01 00 [09:21:25]Write to MH i2c: E2 08 00 1D 07 80 13 01 00 00 00 00 00 A1 [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:25]Read from MH i2c: E2 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 0E 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 0E 00 1D 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F0 [09:21:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:21:25]wFMCommunicate OK [09:21:25]SAM_PROTO_GetShiftState done [09:21:25]FM_GetShiftState done [09:21:25]opened in 1718843124 [09:21:25]opened+sec_in_day 1718929524 [09:21:25]quantity*price = 536070 [09:21:25]sum+1 = 536072 [09:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 5360.00 Внесено: 10000.00 СДАЧА: 4640.00 НСП 1% : 47.44 НДС 12% : 569.28 Наличными: 5360.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 36 20.06.2024 09:21 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103851 ФПД: 77681391016637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092126&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103851&fm=77681391016637&tin=02508201610067®Number=0000000000092785&sum=536000 [09:21:26]StoreToDocumentArchive [09:21:26]shift 354 fd 103851 [09:21:26]save to /storage/0354/doc_00103851 [09:21:26]save last doc name /storage/0354/doc_00103851 to /storage/kkm_last_doc_name [09:21:26]save OK [09:21:26]Clear old archive folders... [09:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:26]tlvbuf is 00823110 [09:21:26]SAM_PROTO_ClearQueue [09:21:26]wFMCommunicate request_size=4 [09:21:26]MH_SAM_APDU [09:21:26]CAPDU: 80 09 00 00 [09:21:26]Write to MH i2c: E2 08 00 2A 07 80 09 00 00 00 00 00 00 A3 [09:21:26]Write i2c OK [09:21:26]MH_I2C_Read... [09:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:26]Read from MH i2c: E2 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 03 00 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [09:21:26]RAPDU: 90 00 [09:21:26]wFMCommunicate OK [09:21:26]SAM_PROTO_ClearQueue done [09:21:26]KKMCreateOFDPacket [09:21:26]OFDProtocolAddRootSTLVToBuf [09:21:26]FM_MakeSignedData [09:21:26]FM_MakeSignedData [09:21:26]SAM_PROTO_SignData [09:21:26]wFMCommunicate request_size=4 [09:21:26]MH_SAM_APDU [09:21:26]CAPDU: 80 0D 01 02 [09:21:26]Write to MH i2c: E2 08 00 2B 07 80 0D 01 02 00 00 00 00 AB [09:21:26]Write i2c OK [09:21:26]MH_I2C_Read... [09:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:26]Read from MH i2c: E2 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 03 00 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 03 00 2B 07 00 90 00 A6 [09:21:26]RAPDU: 90 00 [09:21:26]wFMCommunicate OK [09:21:26]wFMCommunicate request_size=255 [09:21:26]MH_SAM_APDU [09:21:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5C 1B 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 07 2E 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 DE 00 00 00 00 07 04 06 00 C0 2D 08 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 96 F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 95 01 00 35 04 06 00 46 [09:21:26]Write to MH i2c: E2 02 01 2C 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5C 1B 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 07 2E 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 DE 00 00 00 00 07 04 06 00 C0 2D 08 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 96 F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 95 01 00 35 04 06 00 46 00 00 A1 [09:21:26]Write i2c OK [09:21:26]MH_I2C_Read... [09:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:27]Read from MH i2c: E2 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 03 00 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [09:21:27]RAPDU: 90 00 [09:21:27]wFMCommunicate OK [09:21:27]wFMCommunicate request_size=10 [09:21:27]MH_SAM_APDU [09:21:27]CAPDU: 80 0D 02 02 05 A6 9B B7 9A BD [09:21:27]Write to MH i2c: E2 0D 00 2D 07 80 0D 02 02 05 00 A6 9B B7 9A BD 00 00 07 [09:21:27]Write i2c OK [09:21:27]MH_I2C_Read... [09:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:27]Read from MH i2c: E2 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 03 00 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [09:21:27]RAPDU: 90 00 [09:21:27]wFMCommunicate OK [09:21:27]wFMCommunicate request_size=4 [09:21:27]MH_SAM_APDU [09:21:27]CAPDU: 80 0D 03 02 [09:21:27]Write to MH i2c: E2 08 00 2E 07 80 0D 03 02 00 00 00 00 B0 [09:21:27]Write i2c OK [09:21:27]MH_I2C_Read... [09:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:27]Read from MH i2c: E2 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 0B 00 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 0B 00 2E 07 00 F7 64 B3 71 AE 44 5D B5 90 00 34 [09:21:27]RAPDU: F7 64 B3 71 AE 44 5D B5 90 00 [09:21:27]wFMCommunicate OK [09:21:27]SAM_PROTO_SignData done [09:21:27]FM_MakeSignedData done [09:21:27]CreateOFDProtocolMessage [09:21:27]wFMCommunicate request_size=4 [09:21:27]MH_SAM_APDU [09:21:27]CAPDU: 80 11 00 00 [09:21:27]Write to MH i2c: E2 08 00 2F 07 80 11 00 00 00 00 00 00 B0 [09:21:27]Write i2c OK [09:21:27]MH_I2C_Read... [09:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:27]Read from MH i2c: E2 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 17 00 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 17 00 2F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [09:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:21:27]wFMCommunicate OK [09:21:27]CreateOFDProtocolMessage done [09:21:27]OFDSenderStorePacket 103851 [09:21:27]StoreOFDPacket docnum=103851 [09:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 48 4D 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5C 1B 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 07 2E 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 DE 00 00 00 00 07 04 06 00 C0 2D 08 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 96 F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 95 01 00 35 04 06 00 46 A6 9B B7 9A BD F7 64 B3 71 AE 44 5D B5 [09:21:27]CheckFolder [09:21:27]dirname=/storage/ofd_packets [09:21:27]CheckFolder done [09:21:27]ProducePacketName [09:21:27]name=ofd_packets/00103851 [09:21:27]NVStorageSaveData ofd_packets/00103851 [09:21:27]File name is /storage/ofd_packets/00103851 [09:21:27]Write 301 bytes [09:21:27]NVStorageSaveData done [09:21:27]OFDSenderStorePacket done [09:21:27]KKMCreateOFDPacket done [09:21:27]NVStorageSaveData kkm_last_timestamp [09:21:27]File name is /storage/kkm_last_timestamp [09:21:27]Write 4 bytes [09:21:27]NVStorageSaveData done [09:21:27]ExternCall_PrintAddStr [09:21:27]wPrintStart [09:21:27]Write to MH i2c: 01 00 00 30 07 37 [09:21:27]Write i2c OK [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: 01 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: 01 07 00 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: 01 07 00 30 07 00 00 00 00 00 FF 0F 4C [09:21:27]RasterBufferAndPrint [09:21:27]line Счет N : (1)673168 [09:21:27]line ИНН: 02508201610067 [09:21:27]line Контрольно-Кассовый Чек [09:21:27]line ПРОДАЖА [09:21:27]line ТРК (МРК, ГНК) : 41 [09:21:27]line Товар: 2710124500 [09:21:27]line Аи-95-К-5 [09:21:27]line 72.540 * 73.90 [09:21:27]line = 5360.71 [09:21:27]line НДС 12% НСП 1% [09:21:27]line > о реализуемом товаре [09:21:27]line ОКРУГЛЕНИЕ: -0.71 [09:21:27]line ИТОГО: 5360.00 [09:21:27]line Внесено: 10000.00 [09:21:27]line СДАЧА: 4640.00 [09:21:27]line НСП 1% : 47.44 [09:21:27]line НДС 12% : 569.28 [09:21:27]line Наличными: 5360.00 [09:21:27]line Безнал.: 0.00 [09:21:27]line Место: АЗС № 120 "Партнер Нефть" [09:21:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:21:27]line СНО: Общий режим [09:21:27]line Чек 36 20.06.2024 09:21 [09:21:27]line Смена: 354 ФФД: 1.0 [09:21:27]line ЗНМ: 0300000164 [09:21:27]line РНМ: 0000000000092785 [09:21:27]line Версия ККМ: 001 [09:21:27]line ФМ: 0000000000875093 [09:21:27]line ФД: 103851 [09:21:27]line ФПД: 77681391016637 [09:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092126&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103851&fm=77681391016637&tin=02508201610067®Number=0000000000092785&sum=536000 [09:21:27]OFD Sender: Processing packet 103851 [packets to send 17, broken 16] [09:21:27]ProducePacketName [09:21:27]name=ofd_packets/00103851 [09:21:27]OFD Sender: To server: pG, [09:21:27]CommunicateWithHost lk.salyk.kg:30040 [09:21:27]ConnectInit lk.salyk.kg [09:21:27]written 0, free lines is 4095 [09:21:27]Connected sock=10 [09:21:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 48 4D 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 5C 1B 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 07 2E 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 2D 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 DE 00 00 00 00 07 04 06 00 C0 2D 08 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 96 F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 95 01 00 35 04 06 00 46 A6 9B B7 9A BD F7 64 B3 71 AE 44 5D B5 [09:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A7 52 47 00 64 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AB 95 01 00 F4 03 04 00 1C 9B 73 66 B6 04 01 00 00 B7 2C 4F 28 2A EB 1B C9 [09:21:28]CommunicateWithHost err = 0 [09:21:28]CheckOFDResponse [09:21:28]1017 (14) - 77093643461234 [09:21:28]1041 (16) - 0000000000875093 [09:21:28]1040 (4) - 103851 [09:21:28]1012 (4) - 20.06.2024 02:59 [09:21:28]1206 (1) - 0 [09:21:28]OFD Sender: Remove packet 103851 [09:21:28]ProducePacketName [09:21:28]name=ofd_packets/00103851 [09:21:28]NVStorageDeleteData [09:21:28]Write to MH i2c: 01 00 00 5B 07 62 [09:21:28]Write i2c OK [09:21:28]MH_I2C_Read... [09:21:28]Read from MH i2c: 01 [09:21:28]MH_I2C_Read... [09:21:28]Read from MH i2c: 01 07 00 [09:21:28]MH_I2C_Read... [09:21:28]Read from MH i2c: 01 07 00 5B 07 00 00 00 00 00 DF 0C 54 [09:21:28]RasterBufferAndPrint [09:21:28]line [09:21:28]line [09:21:28]line [09:21:28]line [09:21:28]line [09:21:28]written 0, free lines is 3300 [09:21:28]MH_Cut [09:21:28]Write to MH i2c: D1 01 00 62 07 01 3B [09:21:28]Write i2c OK [09:21:28]MH_I2C_Read... [09:21:28]Read from MH i2c: D1 [09:21:28]MH_I2C_Read... [09:21:28]Read from MH i2c: D1 01 00 [09:21:28]MH_I2C_Read... [09:21:28]Read from MH i2c: D1 01 00 62 07 00 3A [09:21:28]Write to MH i2c: 01 00 00 63 07 6A [09:21:28]Write i2c OK [09:21:28]MH_I2C_Read... [09:21:28]OFD Sender: No OFD packet to send [09:21:28]*** Cut start [09:21:28]*** Partial cut [09:21:28]*** CUTSNS_PIN = 1 [09:21:28]*** CUTSNS_PIN = 0 [09:21:29]*** Brake cut motor [09:21:29]Read from MH i2c: 01 [09:21:29]MH_I2C_Read... [09:21:29]*** Stop cut motor [09:21:29]*** Cut end [09:21:29]Read from MH i2c: 01 07 00 [09:21:29]MH_I2C_Read... [09:21:29]Read from MH i2c: 01 07 00 63 07 00 00 00 00 00 FF 0F 7F [09:21:29]process_action close_receipt done [09:21:29]requested_data is exist [09:21:29]produce_requested_data [09:21:29]requested_item fm.sn is exist - process it [09:21:29]wFMCommunicate request_size=4 [09:21:29]MH_SAM_APDU [09:21:29]CAPDU: 80 11 00 00 [09:21:29]Write to MH i2c: E2 08 00 64 07 80 11 00 00 00 00 00 00 E5 [09:21:29]Write i2c OK [09:21:29]MH_I2C_Read... [09:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:29]Read from MH i2c: E2 [09:21:29]MH_I2C_Read... [09:21:29]Read from MH i2c: E2 17 00 [09:21:29]MH_I2C_Read... [09:21:29]Read from MH i2c: E2 17 00 64 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 38 [09:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:21:29]wFMCommunicate OK [09:21:29]requested_item fd.num is exist - process it [09:21:29]SAM_PROTO_GetFieldsCounters [09:21:29]wFMCommunicate request_size=4 [09:21:29]MH_SAM_APDU [09:21:29]CAPDU: 80 13 00 00 [09:21:29]Write to MH i2c: E2 08 00 65 07 80 13 00 00 00 00 00 00 E8 [09:21:29]Write i2c OK [09:21:29]MH_I2C_Read... [09:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:29]Read from MH i2c: E2 [09:21:29]MH_I2C_Read... [09:21:29]Read from MH i2c: E2 62 00 [09:21:29]MH_I2C_Read... [09:21:29]Read from MH i2c: E2 62 00 65 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AB 95 01 00 0E 04 04 00 62 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 1F [09:21:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AB 95 01 00 0E 04 04 00 62 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:21:29]wFMCommunicate OK [09:21:29]SAM_PROTO_GetFieldsCounters done [09:21:29]requested_item shift.num is exist - process it [09:21:29]requested_item shift.opened is exist - process it [09:21:29]req_shift_opened [09:21:29]FM_GetShiftState [09:21:29]SAM_PROTO_GetShiftState [09:21:29]wFMCommunicate request_size=4 [09:21:29]MH_SAM_APDU [09:21:29]CAPDU: 80 13 01 00 [09:21:29]Write to MH i2c: E2 08 00 66 07 80 13 01 00 00 00 00 00 EA [09:21:29]Write i2c OK [09:21:29]MH_I2C_Read... [09:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:29]Read from MH i2c: E2 [09:21:29]MH_I2C_Read... [09:21:29]Read from MH i2c: E2 0E 00 [09:21:29]MH_I2C_Read... [09:21:29]Read from MH i2c: E2 0E 00 66 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 39 [09:21:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:21:29]wFMCommunicate OK [09:21:29]SAM_PROTO_GetShiftState done [09:21:29]FM_GetShiftState done [09:21:29]req_shift_opened done [09:21:29]requested_item shift.open_date is exist - process it [09:21:29]req_shift_open_date [09:21:29]req_shift_open_date done [09:21:29]produce_requested_data done [09:21:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103851,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:21:29]process_action_free close_receipt [09:21:29]json_value_free [09:21:29]json_value_free done [09:21:29]process_json_proto returns [09:21:29]Send response to host [09:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103851,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:21:29]free response buf [09:21:29]execute_script done [09:21:29]execute_script returns [09:21:29]free content buf [09:21:29]Sock 7.Close socket [09:21:29]Sock 7.Thread stoped [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:10]accept exits with 9 [09:23:10]New connection [09:23:10]New thread 3067207012 created [09:23:10]Thread 3067063652 joined [09:23:10]Waiting for new connection... [09:23:10] Sock 9.Parse request [09:23:10]Sock 9.Check first char [09:23:10]Sock 9.First char is OK [09:23:10]request: POST /json_proto HTTP/1.0 [09:23:10]Method: POST [09:23:10]URL: /json_proto [09:23:10]Method is POST - this is cgi request [09:23:10]url: /json_proto [09:23:10]query_string will be loaded in cgi processing [09:23:10]execute_cgi json_proto POST (null) [09:23:10]execute_cgi path=json_proto method=POST [09:23:10]POST find Content-Length [09:23:10]Host: 172.17.38.133:8080 [09:23:10]Content-Length: 687 [09:23:10]Content-Type: application/json [09:23:10] [09:23:10]POST finish read [09:23:10]Found Content-Length = 687 [09:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:23:10]execute_script... [09:23: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)673170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:23:10]POST & json_proto [09:23:10]process_json_proto [09:23:10]json parsed OK: [09:23:10]protocol is kg_v1.0 [09:23:10]action value=close_receipt [09:23:10]process_action close_receipt [09:23:10]cmd_close_receipt [09:23:10]MH_GetDate [09:23:10]Write to MH i2c: F0 00 00 67 07 5D [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: F0 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: F0 09 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: F0 09 00 67 07 00 FF F4 73 66 BD 8F 7C 64 5E [09:23:10]GetLastDocTimeStamp 1718875286 [09:23:10]current date 1718875391 [09:23:10]FM_GetShiftState [09:23:10]SAM_PROTO_GetShiftState [09:23:10]wFMCommunicate request_size=4 [09:23:10]MH_SAM_APDU [09:23:10]CAPDU: 80 13 01 00 [09:23:10]Write to MH i2c: E2 08 00 68 07 80 13 01 00 00 00 00 00 EC [09:23:10]Write i2c OK [09:23:10]MH_I2C_Read... [09:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:10]Read from MH i2c: E2 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 0E 00 [09:23:10]MH_I2C_Read... [09:23:10]Read from MH i2c: E2 0E 00 68 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3B [09:23:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:23:10]wFMCommunicate OK [09:23:10]SAM_PROTO_GetShiftState done [09:23:10]FM_GetShiftState done [09:23:10]opened in 1718843124 [09:23:10]opened+sec_in_day 1718929524 [09:23:10]quantity*price = 100018 [09:23:10]sum+1 = 100020 [09:23:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 37 20.06.2024 09:23 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103852 ФПД: 119562284252102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092311&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103852&fm=119562284252102&tin=02508201610067®Number=0000000000092785&sum=100000 [09:23:11]StoreToDocumentArchive [09:23:11]shift 354 fd 103852 [09:23:11]save to /storage/0354/doc_00103852 [09:23:11]save last doc name /storage/0354/doc_00103852 to /storage/kkm_last_doc_name [09:23:11]save OK [09:23:11]Clear old archive folders... [09:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:23:11]tlvbuf is 00846950 [09:23:11]SAM_PROTO_ClearQueue [09:23:11]wFMCommunicate request_size=4 [09:23:11]MH_SAM_APDU [09:23:11]CAPDU: 80 09 00 00 [09:23:11]Write to MH i2c: E2 08 00 75 07 80 09 00 00 00 00 00 00 EE [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 [09:23:11]MH_I2C_Read... [09:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:11]Read from MH i2c: E2 03 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 03 00 75 07 00 90 00 F0 [09:23:11]RAPDU: 90 00 [09:23:11]wFMCommunicate OK [09:23:11]SAM_PROTO_ClearQueue done [09:23:11]KKMCreateOFDPacket [09:23:11]OFDProtocolAddRootSTLVToBuf [09:23:11]FM_MakeSignedData [09:23:11]FM_MakeSignedData [09:23:11]SAM_PROTO_SignData [09:23:11]wFMCommunicate request_size=4 [09:23:11]MH_SAM_APDU [09:23:11]CAPDU: 80 0D 01 02 [09:23:11]Write to MH i2c: E2 08 00 76 07 80 0D 01 02 00 00 00 00 F6 [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:11]Read from MH i2c: E2 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 03 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 03 00 76 07 00 90 00 F1 [09:23:11]RAPDU: 90 00 [09:23:11]wFMCommunicate OK [09:23:11]wFMCommunicate request_size=255 [09:23:11]MH_SAM_APDU [09:23: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 25 00 00 00 F4 03 04 00 FF F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 95 01 00 35 04 06 00 [09:23:11]Write to MH i2c: E2 02 01 77 07 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 25 00 00 00 F4 03 04 00 FF F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 95 01 00 35 04 06 00 00 00 E0 [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:11]Read from MH i2c: E2 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 03 00 [09:23:11]MH_I2C_Read... [09:23:11]Read from MH i2c: E2 03 00 77 07 00 90 00 F2 [09:23:11]RAPDU: 90 00 [09:23:11]wFMCommunicate OK [09:23:11]wFMCommunicate request_size=11 [09:23:11]MH_SAM_APDU [09:23:11]CAPDU: 80 0D 02 02 06 6C BD C3 7B 3B C6 [09:23:11]Write to MH i2c: E2 0E 00 78 07 80 0D 02 02 06 00 6C BD C3 7B 3B C6 00 00 6D [09:23:11]Write i2c OK [09:23:11]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [09:23:12]RAPDU: 90 00 [09:23:12]wFMCommunicate OK [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 0D 03 02 [09:23:12]Write to MH i2c: E2 08 00 79 07 80 0D 03 02 00 00 00 00 FB [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 0B 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 0B 00 79 07 00 DB 03 AA F6 FE 12 A4 2C 90 00 5A [09:23:12]RAPDU: DB 03 AA F6 FE 12 A4 2C 90 00 [09:23:12]wFMCommunicate OK [09:23:12]SAM_PROTO_SignData done [09:23:12]FM_MakeSignedData done [09:23:12]CreateOFDProtocolMessage [09:23:12]wFMCommunicate request_size=4 [09:23:12]MH_SAM_APDU [09:23:12]CAPDU: 80 11 00 00 [09:23:12]Write to MH i2c: E2 08 00 7A 07 80 11 00 00 00 00 00 00 FB [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:12]Read from MH i2c: E2 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 17 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: E2 17 00 7A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [09:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:23:12]wFMCommunicate OK [09:23:12]CreateOFDProtocolMessage done [09:23:12]OFDSenderStorePacket 103852 [09:23:12]StoreOFDPacket docnum=103852 [09:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 9A E3 08 01 8D A6 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 25 00 00 00 F4 03 04 00 FF F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 95 01 00 35 04 06 00 6C BD C3 7B 3B C6 DB 03 AA F6 FE 12 A4 2C [09:23:12]CheckFolder [09:23:12]dirname=/storage/ofd_packets [09:23:12]CheckFolder done [09:23:12]ProducePacketName [09:23:12]name=ofd_packets/00103852 [09:23:12]NVStorageSaveData ofd_packets/00103852 [09:23:12]File name is /storage/ofd_packets/00103852 [09:23:12]Write 302 bytes [09:23:12]NVStorageSaveData done [09:23:12]OFDSenderStorePacket done [09:23:12]KKMCreateOFDPacket done [09:23:12]NVStorageSaveData kkm_last_timestamp [09:23:12]File name is /storage/kkm_last_timestamp [09:23:12]Write 4 bytes [09:23:12]NVStorageSaveData done [09:23:12]ExternCall_PrintAddStr [09:23:12]wPrintStart [09:23:12]Write to MH i2c: 01 00 00 7B 07 82 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 7B 07 00 00 00 00 00 FF 0F 97 [09:23:12]RasterBufferAndPrint [09:23:12]line Счет N : (1)673170 [09:23:12]line ИНН: 02508201610067 [09:23:12]line Контрольно-Кассовый Чек [09:23:12]line ПРОДАЖА [09:23:12]line ТРК (МРК, ГНК) : 21 [09:23:12]line Товар: 2710194210 [09:23:12]line ДТ(л)-К-5 [09:23:12]line 13.720 * 72.90 [09:23:12]line = 1000.19 [09:23:12]line НДС 12% НСП 1% [09:23:12]line > о реализуемом товаре [09:23:12]line ОКРУГЛЕНИЕ: -0.19 [09:23:12]line ИТОГО: 1000.00 [09:23:12]line Внесено: 1000.00 [09:23:12]line СДАЧА: 0.00 [09:23:12]line НСП 1% : 8.85 [09:23:12]line НДС 12% : 106.21 [09:23:12]line Наличными: 1000.00 [09:23:12]line Безнал.: 0.00 [09:23:12]line Место: АЗС № 120 "Партнер Нефть" [09:23:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:23:12]line СНО: Общий режим [09:23:12]line Чек 37 20.06.2024 09:23 [09:23:12]line Смена: 354 ФФД: 1.0 [09:23:12]line ЗНМ: 0300000164 [09:23:12]line РНМ: 0000000000092785 [09:23:12]line Версия ККМ: 001 [09:23:12]line ФМ: 0000000000875093 [09:23:12]line ФД: 103852 [09:23:12]line ФПД: 119562284252102 [09:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T092311&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103852&fm=119562284252102&tin=02508201610067®Number=0000000000092785&sum=100000 [09:23:12]OFD Sender: Processing packet 103852 [packets to send 17, broken 16] [09:23:12]ProducePacketName [09:23:12]name=ofd_packets/00103852 [09:23:12]OFD Sender: To server: pG, [09:23:12]CommunicateWithHost lk.salyk.kg:30040 [09:23:12]ConnectInit lk.salyk.kg [09:23:12]written 0, free lines is 4095 [09:23:12]Connected sock=10 [09:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 9A E3 08 01 8D A6 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 25 00 00 00 F4 03 04 00 FF F4 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AC 95 01 00 35 04 06 00 6C BD C3 7B 3B C6 DB 03 AA F6 FE 12 A4 2C [09:23:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 73 64 47 00 86 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 35 30 39 33 10 04 04 00 AC 95 01 00 F4 03 04 00 85 9B 73 66 B6 04 01 00 00 6E 34 68 F7 8B 5B 60 43 [09:23:12]CommunicateWithHost err = 0 [09:23:12]CheckOFDResponse [09:23:12]1017 (14) - 77093643461234 [09:23:12]1041 (16) - 0000000000875093 [09:23:12]1040 (4) - 103852 [09:23:12]1012 (4) - 20.06.2024 03:01 [09:23:12]1206 (1) - 0 [09:23:12]OFD Sender: Remove packet 103852 [09:23:12]ProducePacketName [09:23:12]name=ofd_packets/00103852 [09:23:12]NVStorageDeleteData [09:23:12]Write to MH i2c: 01 00 00 A6 07 AD [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 A6 07 00 00 00 00 00 DD 0C 9D [09:23:12]RasterBufferAndPrint [09:23:12]line [09:23:12]line [09:23:12]line [09:23:12]line [09:23:12]line [09:23:12]written 0, free lines is 3299 [09:23:12]MH_Cut [09:23:12]Write to MH i2c: D1 01 00 AD 07 01 86 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: D1 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: D1 01 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: D1 01 00 AD 07 00 85 [09:23:12]Write to MH i2c: 01 00 00 AE 07 B5 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:13]OFD Sender: No OFD packet to send [09:23:13]*** Cut start [09:23:13]*** Partial cut [09:23:13]*** CUTSNS_PIN = 1 [09:23:13]*** CUTSNS_PIN = 0 [09:23:13]*** Brake cut motor [09:23:14]Read from MH i2c: 01 [09:23:14]MH_I2C_Read... [09:23:14]*** Stop cut motor [09:23:14]*** Cut end [09:23:14]Read from MH i2c: 01 07 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 FF 0F CA [09:23:14]process_action close_receipt done [09:23:14]requested_data is exist [09:23:14]produce_requested_data [09:23:14]requested_item fm.sn is exist - process it [09:23:14]wFMCommunicate request_size=4 [09:23:14]MH_SAM_APDU [09:23:14]CAPDU: 80 11 00 00 [09:23:14]Write to MH i2c: E2 08 00 AF 07 80 11 00 00 00 00 00 00 30 [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:14]Read from MH i2c: E2 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 17 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 17 00 AF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 83 [09:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:23:14]wFMCommunicate OK [09:23:14]requested_item fd.num is exist - process it [09:23:14]SAM_PROTO_GetFieldsCounters [09:23:14]wFMCommunicate request_size=4 [09:23:14]MH_SAM_APDU [09:23:14]CAPDU: 80 13 00 00 [09:23:14]Write to MH i2c: E2 08 00 B0 07 80 13 00 00 00 00 00 00 33 [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:14]Read from MH i2c: E2 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 62 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 62 00 B0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 95 01 00 0E 04 04 00 62 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 6E [09:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 95 01 00 0E 04 04 00 62 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:23:14]wFMCommunicate OK [09:23:14]SAM_PROTO_GetFieldsCounters done [09:23:14]requested_item shift.num is exist - process it [09:23:14]requested_item shift.opened is exist - process it [09:23:14]req_shift_opened [09:23:14]FM_GetShiftState [09:23:14]SAM_PROTO_GetShiftState [09:23:14]wFMCommunicate request_size=4 [09:23:14]MH_SAM_APDU [09:23:14]CAPDU: 80 13 01 00 [09:23:14]Write to MH i2c: E2 08 00 B1 07 80 13 01 00 00 00 00 00 35 [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:14]Read from MH i2c: E2 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 0E 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 0E 00 B1 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 84 [09:23:14]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:23:14]wFMCommunicate OK [09:23:14]SAM_PROTO_GetShiftState done [09:23:14]FM_GetShiftState done [09:23:14]req_shift_opened done [09:23:14]requested_item shift.open_date is exist - process it [09:23:14]req_shift_open_date [09:23:14]req_shift_open_date done [09:23:14]produce_requested_data done [09:23:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103852,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:23:14]process_action_free close_receipt [09:23:14]json_value_free [09:23:14]json_value_free done [09:23:14]process_json_proto returns [09:23:14]Send response to host [09:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103852,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:23:14]free response buf [09:23:14]execute_script done [09:23:14]execute_script returns [09:23:14]free content buf [09:23:14]Sock 9.Close socket [09:23:14]Sock 9.Thread stoped [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:20]accept exits with 7 [09:29:20]New connection [09:29:20]New thread 3067063652 created [09:29:20]Thread 3067207012 joined [09:29:20]Waiting for new connection... [09:29:20] Sock 7.Parse request [09:29:20]Sock 7.Check first char [09:29:20]Sock 7.First char is OK [09:29:20]request: POST /json_proto HTTP/1.0 [09:29:20]Method: POST [09:29:20]URL: /json_proto [09:29:20]Method is POST - this is cgi request [09:29:20]url: /json_proto [09:29:20]query_string will be loaded in cgi processing [09:29:20]execute_cgi json_proto POST (null) [09:29:20]execute_cgi path=json_proto method=POST [09:29:20]POST find Content-Length [09:29:20]Host: 172.17.38.133:8080 [09:29:20]Content-Length: 1207 [09:29:20]Content-Type: application/json [09:29:20] [09:29:20]POST finish read [09:29:20]Found Content-Length = 1207 [09:29: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673171\u000A20.06.2024 09:06\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 66.40\u000A\u0418\u0422\u041E\u0413: 1992.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\u000A68886\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:20]execute_script... [09:29: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673171\u000A20.06.2024 09:06\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 66.40\u000A\u0418\u0422\u041E\u0413: 1992.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\u000A68886\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:20]POST & json_proto [09:29:20]process_json_proto [09:29:20]json parsed OK: [09:29:20]protocol is kg_v1.0 [09:29:20]action value=print_text [09:29:20]process_action print_text [09:29:20]cmd_print_text [09:29:20]ExternCall_PrintAddStr [09:29:20]wPrintStart [09:29:20]Write to MH i2c: 01 00 00 B2 07 B9 [09:29:20]Write i2c OK [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: 01 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: 01 07 00 [09:29:20]MH_I2C_Read... [09:29:20]Read from MH i2c: 01 07 00 B2 07 00 00 00 00 00 FF 0F CE [09:29:20]RasterBufferAndPrint [09:29:20]line *****ТОВАРНЫЙ ЧЕК***** [09:29:20]line АЗС 120 [09:29:20]line Партнер нефть [09:29:20]line 02508201610067 [09:29:20]line Кассир : Дуйшенбиев А. [09:29:20]line Счет N : (1)673171 [09:29:20]line 20.06.2024 09:06 [09:29:20]line ПРОДАЖА [09:29:20]line ТРК (МРК, ГНК): 32 [09:29:20]line Вид ГСМ : 2710124130 [09:29:20]line Аи-92-К-5 [09:29:20]line 30.000 x 66.40 [09:29:20]line ИТОГ: 1992.00 [09:29:20]line Тип оплаты: Талоны: Топливная Карта [09:29:20]line 68886 [09:29:20]line ______________________ [09:29:20]line (подпись) [09:29:20]written 0, free lines is 4095 [09:29:21]Write to MH i2c: 01 00 00 C6 07 CD [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: 01 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: 01 07 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: 01 07 00 C6 07 00 00 00 00 00 13 0E F5 [09:29:21]RasterBufferAndPrint [09:29:21]line [09:29:21]line [09:29:21]line [09:29:21]line [09:29:21]line [09:29:21]written 0, free lines is 3605 [09:29:21]MH_Cut [09:29:21]Write to MH i2c: D1 01 00 CD 07 01 A6 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: D1 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: D1 01 00 [09:29:21]MH_I2C_Read... [09:29:21]Read from MH i2c: D1 01 00 CD 07 00 A5 [09:29:21]Write to MH i2c: 01 00 00 CE 07 D5 [09:29:21]Write i2c OK [09:29:21]MH_I2C_Read... [09:29:21]*** Cut start [09:29:21]*** Partial cut [09:29:21]*** CUTSNS_PIN = 1 [09:29:21]*** CUTSNS_PIN = 0 [09:29:21]*** Brake cut motor [09:29:22]Read from MH i2c: 01 [09:29:22]MH_I2C_Read... [09:29:22]*** Stop cut motor [09:29:22]*** Cut end [09:29:22]Read from MH i2c: 01 07 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 FF 0F EA [09:29:22]process_action print_text done [09:29:22]requested_data is exist [09:29:22]produce_requested_data [09:29:22]requested_item fm.sn is exist - process it [09:29:22]wFMCommunicate request_size=4 [09:29:22]MH_SAM_APDU [09:29:22]CAPDU: 80 11 00 00 [09:29:22]Write to MH i2c: E2 08 00 CF 07 80 11 00 00 00 00 00 00 50 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:22]Read from MH i2c: E2 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 17 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 17 00 CF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A3 [09:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:29:22]wFMCommunicate OK [09:29:22]requested_item fd.num is exist - process it [09:29:22]SAM_PROTO_GetFieldsCounters [09:29:22]wFMCommunicate request_size=4 [09:29:22]MH_SAM_APDU [09:29:22]CAPDU: 80 13 00 00 [09:29:22]Write to MH i2c: E2 08 00 D0 07 80 13 00 00 00 00 00 00 53 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:22]Read from MH i2c: E2 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 62 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 62 00 D0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 95 01 00 0E 04 04 00 62 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 8E [09:29:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AC 95 01 00 0E 04 04 00 62 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:29:22]wFMCommunicate OK [09:29:22]SAM_PROTO_GetFieldsCounters done [09:29:22]requested_item shift.num is exist - process it [09:29:22]requested_item shift.opened is exist - process it [09:29:22]req_shift_opened [09:29:22]FM_GetShiftState [09:29:22]SAM_PROTO_GetShiftState [09:29:22]wFMCommunicate request_size=4 [09:29:22]MH_SAM_APDU [09:29:22]CAPDU: 80 13 01 00 [09:29:22]Write to MH i2c: E2 08 00 D1 07 80 13 01 00 00 00 00 00 55 [09:29:22]Write i2c OK [09:29:22]MH_I2C_Read... [09:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:22]Read from MH i2c: E2 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 0E 00 [09:29:22]MH_I2C_Read... [09:29:22]Read from MH i2c: E2 0E 00 D1 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A4 [09:29:22]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:29:22]wFMCommunicate OK [09:29:22]SAM_PROTO_GetShiftState done [09:29:22]FM_GetShiftState done [09:29:22]req_shift_opened done [09:29:22]requested_item shift.open_date is exist - process it [09:29:22]req_shift_open_date [09:29:22]req_shift_open_date done [09:29:22]produce_requested_data done [09:29:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103852,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:29:22]process_action_free print_text [09:29:22]json_value_free [09:29:22]json_value_free done [09:29:22]process_json_proto returns [09:29:22]Send response to host [09:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103852,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:29:22]free response buf [09:29:22]execute_script done [09:29:22]execute_script returns [09:29:22]free content buf [09:29:22]Sock 7.Close socket [09:29:22]Sock 7.Thread stoped [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:37]accept exits with 9 [09:30:37]New connection [09:30:37]New thread 3067207012 created [09:30:37]Thread 3067063652 joined [09:30:37]Waiting for new connection... [09:30:37] Sock 9.Parse request [09:30:37]Sock 9.Check first char [09:30:37]Sock 9.First char is OK [09:30:37]request: POST /json_proto HTTP/1.0 [09:30:37]Method: POST [09:30:37]URL: /json_proto [09:30:37]Method is POST - this is cgi request [09:30:37]url: /json_proto [09:30:37]query_string will be loaded in cgi processing [09:30:37]execute_cgi json_proto POST (null) [09:30:37]execute_cgi path=json_proto method=POST [09:30:37]POST find Content-Length [09:30:37]Host: 172.17.38.133:8080 [09:30:37]Content-Length: 682 [09:30:37]Content-Type: application/json [09:30:37] [09:30:37]POST finish read [09:30:37]Found Content-Length = 682 [09:30:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 67.780, "sum" : 4500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:37]execute_script... [09:30: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)673172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 67.780, "sum" : 4500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:37]POST & json_proto [09:30:37]process_json_proto [09:30:37]json parsed OK: [09:30:37]protocol is kg_v1.0 [09:30:37]action value=close_receipt [09:30:37]process_action close_receipt [09:30:37]cmd_close_receipt [09:30:37]MH_GetDate [09:30:37]Write to MH i2c: F0 00 00 D2 07 C8 [09:30:37]Write i2c OK [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: F0 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: F0 09 00 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: F0 09 00 D2 07 00 BE F6 73 66 BD 8F 7C 64 8A [09:30:37]GetLastDocTimeStamp 1718875391 [09:30:37]current date 1718875838 [09:30:37]FM_GetShiftState [09:30:37]SAM_PROTO_GetShiftState [09:30:37]wFMCommunicate request_size=4 [09:30:37]MH_SAM_APDU [09:30:37]CAPDU: 80 13 01 00 [09:30:37]Write to MH i2c: E2 08 00 D3 07 80 13 01 00 00 00 00 00 57 [09:30:37]Write i2c OK [09:30:37]MH_I2C_Read... [09:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:37]Read from MH i2c: E2 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: E2 0E 00 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: E2 0E 00 D3 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A6 [09:30:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:30:37]wFMCommunicate OK [09:30:37]SAM_PROTO_GetShiftState done [09:30:37]FM_GetShiftState done [09:30:37]opened in 1718843124 [09:30:37]opened+sec_in_day 1718929524 [09:30:37]quantity*price = 450059 [09:30:37]sum+1 = 450060 [09:30:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.94 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 38 20.06.2024 09:30 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103853 ФПД: 223907799356432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093038&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103853&fm=223907799356432&tin=02508201610067®Number=0000000000092785&sum=450000 [09:30:38]StoreToDocumentArchive [09:30:38]shift 354 fd 103853 [09:30:38]save to /storage/0354/doc_00103853 [09:30:38]save last doc name /storage/0354/doc_00103853 to /storage/kkm_last_doc_name [09:30:38]save OK [09:30:38]Clear old archive folders... [09:30:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:38]tlvbuf is 00843360 [09:30:38]SAM_PROTO_ClearQueue [09:30:38]wFMCommunicate request_size=4 [09:30:38]MH_SAM_APDU [09:30:38]CAPDU: 80 09 00 00 [09:30:38]Write to MH i2c: E2 08 00 E0 07 80 09 00 00 00 00 00 00 59 [09:30:38]Write i2c OK [09:30:38]MH_I2C_Read... [09:30:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:38]Read from MH i2c: E2 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 03 00 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 03 00 E0 07 00 90 00 5B [09:30:38]RAPDU: 90 00 [09:30:38]wFMCommunicate OK [09:30:38]SAM_PROTO_ClearQueue done [09:30:38]KKMCreateOFDPacket [09:30:38]OFDProtocolAddRootSTLVToBuf [09:30:38]FM_MakeSignedData [09:30:38]FM_MakeSignedData [09:30:38]SAM_PROTO_SignData [09:30:38]wFMCommunicate request_size=4 [09:30:38]MH_SAM_APDU [09:30:38]CAPDU: 80 0D 01 02 [09:30:38]Write to MH i2c: E2 08 00 E1 07 80 0D 01 02 00 00 00 00 61 [09:30:38]Write i2c OK [09:30:38]MH_I2C_Read... [09:30:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:38]Read from MH i2c: E2 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 03 00 [09:30:38]MH_I2C_Read... [09:30:38]Read from MH i2c: E2 03 00 E1 07 00 90 00 5C [09:30:38]RAPDU: 90 00 [09:30:38]wFMCommunicate OK [09:30:38]wFMCommunicate request_size=255 [09:30:38]MH_SAM_APDU [09:30: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 C4 08 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0B DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 BE F6 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 95 01 00 35 04 06 00 CB [09:30:38]Write to MH i2c: E2 02 01 E2 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 08 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0B DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 BE F6 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 95 01 00 35 04 06 00 CB 00 00 CA [09:30:38]Write i2c OK [09:30:38]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 E2 07 00 90 00 5D [09:30:39]RAPDU: 90 00 [09:30:39]wFMCommunicate OK [09:30:39]wFMCommunicate request_size=10 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 0D 02 02 05 A4 98 D7 D4 10 [09:30:39]Write to MH i2c: E2 0D 00 E3 07 80 0D 02 02 05 00 A4 98 D7 D4 10 00 00 65 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 03 00 E3 07 00 90 00 5E [09:30:39]RAPDU: 90 00 [09:30:39]wFMCommunicate OK [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 0D 03 02 [09:30:39]Write to MH i2c: E2 08 00 E4 07 80 0D 03 02 00 00 00 00 66 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 0B 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 0B 00 E4 07 00 BD 3D 3E 91 87 B6 88 0A 90 00 FF [09:30:39]RAPDU: BD 3D 3E 91 87 B6 88 0A 90 00 [09:30:39]wFMCommunicate OK [09:30:39]SAM_PROTO_SignData done [09:30:39]FM_MakeSignedData done [09:30:39]CreateOFDProtocolMessage [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 11 00 00 [09:30:39]Write to MH i2c: E2 08 00 E5 07 80 11 00 00 00 00 00 00 66 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 17 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 17 00 E5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [09:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:30:39]wFMCommunicate OK [09:30:39]CreateOFDProtocolMessage done [09:30:39]OFDSenderStorePacket 103853 [09:30:39]StoreOFDPacket docnum=103853 [09:30:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E1 E4 07 01 9E 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 C4 08 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0B DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 BE F6 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 95 01 00 35 04 06 00 CB A4 98 D7 D4 10 BD 3D 3E 91 87 B6 88 0A [09:30:39]CheckFolder [09:30:39]dirname=/storage/ofd_packets [09:30:39]CheckFolder done [09:30:39]ProducePacketName [09:30:39]name=ofd_packets/00103853 [09:30:39]NVStorageSaveData ofd_packets/00103853 [09:30:39]File name is /storage/ofd_packets/00103853 [09:30:39]Write 301 bytes [09:30:39]NVStorageSaveData done [09:30:39]OFDSenderStorePacket done [09:30:39]KKMCreateOFDPacket done [09:30:39]NVStorageSaveData kkm_last_timestamp [09:30:39]File name is /storage/kkm_last_timestamp [09:30:39]Write 4 bytes [09:30:39]NVStorageSaveData done [09:30:39]ExternCall_PrintAddStr [09:30:39]wPrintStart [09:30:39]Write to MH i2c: 01 00 00 E6 07 ED [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: 01 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: 01 07 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: 01 07 00 E6 07 00 00 00 00 00 FF 0F 02 [09:30:39]RasterBufferAndPrint [09:30:39]line Счет N : (1)673172 [09:30:39]line ИНН: 02508201610067 [09:30:39]line Контрольно-Кассовый Чек [09:30:39]line ПРОДАЖА [09:30:39]line ТРК (МРК, ГНК) : 42 [09:30:39]line Товар: 2710124130 [09:30:39]line Аи-92-К-5 [09:30:39]line 67.780 * 66.40 [09:30:39]line = 4500.59 [09:30:39]line НДС 12% НСП 1% [09:30:39]line > о реализуемом товаре [09:30:39]line ОКРУГЛЕНИЕ: -0.59 [09:30:39]line ИТОГО: 4500.00 [09:30:39]line Внесено: 4500.00 [09:30:39]line СДАЧА: 0.00 [09:30:39]line НСП 1% : 39.83 [09:30:39]line НДС 12% : 477.94 [09:30:39]line Наличными: 4500.00 [09:30:39]line Безнал.: 0.00 [09:30:39]line Место: АЗС № 120 "Партнер Нефть" [09:30:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:30:39]line СНО: Общий режим [09:30:39]line Чек 38 20.06.2024 09:30 [09:30:39]line Смена: 354 ФФД: 1.0 [09:30:39]line ЗНМ: 0300000164 [09:30:39]line РНМ: 0000000000092785 [09:30:39]line Версия ККМ: 001 [09:30:39]line ФМ: 0000000000875093 [09:30:39]line ФД: 103853 [09:30:39]line ФПД: 223907799356432 [09:30:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093038&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103853&fm=223907799356432&tin=02508201610067®Number=0000000000092785&sum=450000 [09:30:39]OFD Sender: Processing packet 103853 [packets to send 17, broken 16] [09:30:39]ProducePacketName [09:30:39]name=ofd_packets/00103853 [09:30:39]OFD Sender: To server: pG, [09:30:39]CommunicateWithHost lk.salyk.kg:30040 [09:30:39]ConnectInit lk.salyk.kg [09:30:39]written 0, free lines is 4095 [09:30:39]Connected sock=10 [09:30:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E1 E4 07 01 9E 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 C4 08 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0B DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 BE F6 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 95 01 00 35 04 06 00 CB A4 98 D7 D4 10 BD 3D 3E 91 87 B6 88 0A [09:30:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 88 DD 47 00 52 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AD 95 01 00 F4 03 04 00 44 9D 73 66 B6 04 01 00 00 EA 12 28 4D A5 52 92 6D [09:30:40]CommunicateWithHost err = 0 [09:30:40]CheckOFDResponse [09:30:40]1017 (14) - 77093643461234 [09:30:40]1041 (16) - 0000000000875093 [09:30:40]1040 (4) - 103853 [09:30:40]1012 (4) - 20.06.2024 03:08 [09:30:40]1206 (1) - 0 [09:30:40]OFD Sender: Remove packet 103853 [09:30:40]ProducePacketName [09:30:40]name=ofd_packets/00103853 [09:30:40]NVStorageDeleteData [09:30:40]Write to MH i2c: 01 00 00 11 08 19 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 07 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: 01 07 00 11 08 00 00 00 00 00 D5 0C 01 [09:30:40]RasterBufferAndPrint [09:30:40]line [09:30:40]line [09:30:40]line [09:30:40]line [09:30:40]line [09:30:40]written 0, free lines is 3292 [09:30:40]MH_Cut [09:30:40]Write to MH i2c: D1 01 00 18 08 01 F2 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: D1 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: D1 01 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: D1 01 00 18 08 00 F1 [09:30:40]Write to MH i2c: 01 00 00 19 08 21 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]OFD Sender: No OFD packet to send [09:30:40]*** Cut start [09:30:40]*** Partial cut [09:30:40]*** CUTSNS_PIN = 1 [09:30:41]*** CUTSNS_PIN = 0 [09:30:41]*** Brake cut motor [09:30:41]Read from MH i2c: 01 [09:30:41]MH_I2C_Read... [09:30:41]*** Stop cut motor [09:30:41]*** Cut end [09:30:41]Read from MH i2c: 01 07 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 19 08 00 00 00 00 00 FF 0F 36 [09:30:41]process_action close_receipt done [09:30:41]requested_data is exist [09:30:41]produce_requested_data [09:30:41]requested_item fm.sn is exist - process it [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 11 00 00 [09:30:41]Write to MH i2c: E2 08 00 1A 08 80 11 00 00 00 00 00 00 9C [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 17 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 17 00 1A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [09:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:30:41]wFMCommunicate OK [09:30:41]requested_item fd.num is exist - process it [09:30:41]SAM_PROTO_GetFieldsCounters [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 13 00 00 [09:30:41]Write to MH i2c: E2 08 00 1B 08 80 13 00 00 00 00 00 00 9F [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 62 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 62 00 1B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AD 95 01 00 0E 04 04 00 62 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 DE [09:30:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AD 95 01 00 0E 04 04 00 62 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:30:41]wFMCommunicate OK [09:30:41]SAM_PROTO_GetFieldsCounters done [09:30:41]requested_item shift.num is exist - process it [09:30:41]requested_item shift.opened is exist - process it [09:30:41]req_shift_opened [09:30:41]FM_GetShiftState [09:30:41]SAM_PROTO_GetShiftState [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 13 01 00 [09:30:41]Write to MH i2c: E2 08 00 1C 08 80 13 01 00 00 00 00 00 A1 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 0E 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 0E 00 1C 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F0 [09:30:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:30:41]wFMCommunicate OK [09:30:41]SAM_PROTO_GetShiftState done [09:30:41]FM_GetShiftState done [09:30:41]req_shift_opened done [09:30:41]requested_item shift.open_date is exist - process it [09:30:41]req_shift_open_date [09:30:41]req_shift_open_date done [09:30:41]produce_requested_data done [09:30:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103853,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:30:41]process_action_free close_receipt [09:30:41]json_value_free [09:30:41]json_value_free done [09:30:41]process_json_proto returns [09:30:41]Send response to host [09:30:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103853,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:30:41]free response buf [09:30:41]execute_script done [09:30:41]execute_script returns [09:30:41]free content buf [09:30:41]Sock 9.Close socket [09:30:41]Sock 9.Thread stoped [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:54]accept exits with 7 [09:34:54]New connection [09:34:54]New thread 3067063652 created [09:34:54]Thread 3067207012 joined [09:34:54]Waiting for new connection... [09:34:54] Sock 7.Parse request [09:34:54]Sock 7.Check first char [09:34:54]Sock 7.First char is OK [09:34:54]request: POST /json_proto HTTP/1.0 [09:34:54]Method: POST [09:34:54]URL: /json_proto [09:34:54]Method is POST - this is cgi request [09:34:54]url: /json_proto [09:34:54]query_string will be loaded in cgi processing [09:34:54]execute_cgi json_proto POST (null) [09:34:54]execute_cgi path=json_proto method=POST [09:34:54]POST find Content-Length [09:34:54]Host: 172.17.38.133:8080 [09:34:54]Content-Length: 682 [09:34:54]Content-Type: application/json [09:34:54] [09:34:54]POST finish read [09:34:54]Found Content-Length = 682 [09:34:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 27.320, "sum" : 1814.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 1814.00, "payments": [ { "type": 0, "sum" : 1814.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:54]execute_script... [09:34: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)673173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 27.320, "sum" : 1814.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 1814.00, "payments": [ { "type": 0, "sum" : 1814.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:54]POST & json_proto [09:34:54]process_json_proto [09:34:54]json parsed OK: [09:34:54]protocol is kg_v1.0 [09:34:54]action value=close_receipt [09:34:54]process_action close_receipt [09:34:54]cmd_close_receipt [09:34:54]MH_GetDate [09:34:54]Write to MH i2c: F0 00 00 1D 08 14 [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: F0 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: F0 09 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: F0 09 00 1D 08 00 BF F7 73 66 BD 8F 7C 64 D8 [09:34:54]GetLastDocTimeStamp 1718875838 [09:34:54]current date 1718876095 [09:34:54]FM_GetShiftState [09:34:54]SAM_PROTO_GetShiftState [09:34:54]wFMCommunicate request_size=4 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 13 01 00 [09:34:54]Write to MH i2c: E2 08 00 1E 08 80 13 01 00 00 00 00 00 A3 [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 0E 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 0E 00 1E 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F2 [09:34:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:34:54]wFMCommunicate OK [09:34:54]SAM_PROTO_GetShiftState done [09:34:54]FM_GetShiftState done [09:34:54]opened in 1718843124 [09:34:54]opened+sec_in_day 1718929524 [09:34:54]quantity*price = 181404 [09:34:54]sum+1 = 181406 [09:34:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1814.00 Внесено: 6000.00 СДАЧА: 4186.00 НСП 1% : 16.05 НДС 12% : 192.64 Наличными: 1814.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 39 20.06.2024 09:34 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103854 ФПД: 73309752650058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093455&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103854&fm=73309752650058&tin=02508201610067®Number=0000000000092785&sum=181400 [09:34:55]StoreToDocumentArchive [09:34:55]shift 354 fd 103854 [09:34:55]save to /storage/0354/doc_00103854 [09:34:55]save last doc name /storage/0354/doc_00103854 to /storage/kkm_last_doc_name [09:34:55]save OK [09:34:55]Clear old archive folders... [09:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:55]tlvbuf is B6F936D0 [09:34:55]SAM_PROTO_ClearQueue [09:34:55]wFMCommunicate request_size=4 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 09 00 00 [09:34:55]Write to MH i2c: E2 08 00 2B 08 80 09 00 00 00 00 00 00 A5 [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 2B 08 00 90 00 A7 [09:34:55]RAPDU: 90 00 [09:34:55]wFMCommunicate OK [09:34:55]SAM_PROTO_ClearQueue done [09:34:55]KKMCreateOFDPacket [09:34:55]OFDProtocolAddRootSTLVToBuf [09:34:55]FM_MakeSignedData [09:34:55]FM_MakeSignedData [09:34:55]SAM_PROTO_SignData [09:34:55]wFMCommunicate request_size=4 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 0D 01 02 [09:34:55]Write to MH i2c: E2 08 00 2C 08 80 0D 01 02 00 00 00 00 AD [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 2C 08 00 90 00 A8 [09:34:55]RAPDU: 90 00 [09:34:55]wFMCommunicate OK [09:34:55]wFMCommunicate request_size=255 [09:34:55]MH_SAM_APDU [09:34: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 B8 6A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9D C4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 C4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 4B 00 00 00 00 07 04 06 00 98 C4 02 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 BF F7 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 95 01 00 35 04 06 00 42 [09:34:55]Write to MH i2c: E2 02 01 2D 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 6A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9D C4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 C4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 4B 00 00 00 00 07 04 06 00 98 C4 02 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 BF F7 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 95 01 00 35 04 06 00 42 00 00 7C [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 2D 08 00 90 00 A9 [09:34:55]RAPDU: 90 00 [09:34:55]wFMCommunicate OK [09:34:55]wFMCommunicate request_size=10 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 0D 02 02 05 AC C1 C3 E9 4A [09:34:55]Write to MH i2c: E2 0D 00 2E 08 80 0D 02 02 05 00 AC C1 C3 E9 4A 00 00 1D [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]OFD Sender: No OFD packet to send [09:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 03 00 2E 08 00 90 00 AA [09:34:55]RAPDU: 90 00 [09:34:55]wFMCommunicate OK [09:34:55]wFMCommunicate request_size=4 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 0D 03 02 [09:34:55]Write to MH i2c: E2 08 00 2F 08 80 0D 03 02 00 00 00 00 B2 [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 0B 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 0B 00 2F 08 00 92 B1 47 EF 15 0E CA 1F 90 00 38 [09:34:55]RAPDU: 92 B1 47 EF 15 0E CA 1F 90 00 [09:34:55]wFMCommunicate OK [09:34:55]SAM_PROTO_SignData done [09:34:55]FM_MakeSignedData done [09:34:55]CreateOFDProtocolMessage [09:34:55]wFMCommunicate request_size=4 [09:34:55]MH_SAM_APDU [09:34:55]CAPDU: 80 11 00 00 [09:34:55]Write to MH i2c: E2 08 00 30 08 80 11 00 00 00 00 00 00 B2 [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:55]Read from MH i2c: E2 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 17 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: E2 17 00 30 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [09:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:34:55]wFMCommunicate OK [09:34:55]CreateOFDProtocolMessage done [09:34:55]OFDSenderStorePacket 103854 [09:34:55]StoreOFDPacket docnum=103854 [09:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 28 8E 07 01 16 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 6A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9D C4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 C4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 4B 00 00 00 00 07 04 06 00 98 C4 02 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 BF F7 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 95 01 00 35 04 06 00 42 AC C1 C3 E9 4A 92 B1 47 EF 15 0E CA 1F [09:34:55]CheckFolder [09:34:55]dirname=/storage/ofd_packets [09:34:55]CheckFolder done [09:34:55]ProducePacketName [09:34:55]name=ofd_packets/00103854 [09:34:55]NVStorageSaveData ofd_packets/00103854 [09:34:55]File name is /storage/ofd_packets/00103854 [09:34:55]Write 301 bytes [09:34:55]NVStorageSaveData done [09:34:55]OFDSenderStorePacket done [09:34:55]KKMCreateOFDPacket done [09:34:55]NVStorageSaveData kkm_last_timestamp [09:34:55]File name is /storage/kkm_last_timestamp [09:34:55]Write 4 bytes [09:34:55]NVStorageSaveData done [09:34:55]ExternCall_PrintAddStr [09:34:55]wPrintStart [09:34:55]Write to MH i2c: 01 00 00 31 08 39 [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 07 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 07 00 31 08 00 00 00 00 00 FF 0F 4E [09:34:55]RasterBufferAndPrint [09:34:55]line Счет N : (1)673173 [09:34:55]line ИНН: 02508201610067 [09:34:55]line Контрольно-Кассовый Чек [09:34:55]line ПРОДАЖА [09:34:55]line ТРК (МРК, ГНК) : 42 [09:34:55]line Товар: 2710124130 [09:34:55]line Аи-92-К-5 [09:34:55]line 27.320 * 66.40 [09:34:55]line = 1814.05 [09:34:55]line НДС 12% НСП 1% [09:34:55]line > о реализуемом товаре [09:34:55]line ОКРУГЛЕНИЕ: -0.05 [09:34:55]line ИТОГО: 1814.00 [09:34:55]line Внесено: 6000.00 [09:34:55]line СДАЧА: 4186.00 [09:34:55]line НСП 1% : 16.05 [09:34:55]line НДС 12% : 192.64 [09:34:55]line Наличными: 1814.00 [09:34:55]line Безнал.: 0.00 [09:34:55]line Место: АЗС № 120 "Партнер Нефть" [09:34:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:34:56]line СНО: Общий режим [09:34:56]line Чек 39 20.06.2024 09:34 [09:34:56]line Смена: 354 ФФД: 1.0 [09:34:56]line ЗНМ: 0300000164 [09:34:56]line РНМ: 0000000000092785 [09:34:56]line Версия ККМ: 001 [09:34:56]line ФМ: 0000000000875093 [09:34:56]line ФД: 103854 [09:34:56]line ФПД: 73309752650058 [09:34:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093455&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103854&fm=73309752650058&tin=02508201610067®Number=0000000000092785&sum=181400 [09:34:56]OFD Sender: Processing packet 103854 [packets to send 17, broken 16] [09:34:56]ProducePacketName [09:34:56]name=ofd_packets/00103854 [09:34:56]OFD Sender: To server: pG, [09:34:56]CommunicateWithHost lk.salyk.kg:30040 [09:34:56]ConnectInit lk.salyk.kg [09:34:56]written 0, free lines is 4095 [09:34:56]Connected sock=10 [09:34:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 28 8E 07 01 16 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 6A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9D C4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 C4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 4B 00 00 00 00 07 04 06 00 98 C4 02 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 BF F7 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 95 01 00 35 04 06 00 42 AC C1 C3 E9 4A 92 B1 47 EF 15 0E CA 1F [09:34:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4E 8B 47 00 1E 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AE 95 01 00 F4 03 04 00 45 9E 73 66 B6 04 01 00 00 76 8D FF AE 83 4F 7F 58 [09:34:56]CommunicateWithHost err = 0 [09:34:56]CheckOFDResponse [09:34:56]1017 (14) - 77093643461234 [09:34:56]1041 (16) - 0000000000875093 [09:34:56]1040 (4) - 103854 [09:34:56]1012 (4) - 20.06.2024 03:13 [09:34:56]1206 (1) - 0 [09:34:56]OFD Sender: Remove packet 103854 [09:34:56]ProducePacketName [09:34:56]name=ofd_packets/00103854 [09:34:56]NVStorageDeleteData [09:34:56]Write to MH i2c: 01 00 00 5C 08 64 [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: 01 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: 01 07 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: 01 07 00 5C 08 00 00 00 00 00 EC 0C 63 [09:34:56]RasterBufferAndPrint [09:34:56]line [09:34:56]line [09:34:56]line [09:34:56]line [09:34:56]line [09:34:56]written 0, free lines is 3314 [09:34:56]MH_Cut [09:34:56]Write to MH i2c: D1 01 00 63 08 01 3D [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: D1 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: D1 01 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: D1 01 00 63 08 00 3C [09:34:56]Write to MH i2c: 01 00 00 64 08 6C [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:57]OFD Sender: No OFD packet to send [09:34:57]*** Cut start [09:34:57]*** Partial cut [09:34:57]*** CUTSNS_PIN = 1 [09:34:57]*** CUTSNS_PIN = 0 [09:34:57]*** Brake cut motor [09:34:58]Read from MH i2c: 01 [09:34:58]MH_I2C_Read... [09:34:58]*** Stop cut motor [09:34:58]*** Cut end [09:34:58]Read from MH i2c: 01 07 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: 01 07 00 64 08 00 00 00 00 00 FF 0F 81 [09:34:58]process_action close_receipt done [09:34:58]requested_data is exist [09:34:58]produce_requested_data [09:34:58]requested_item fm.sn is exist - process it [09:34:58]wFMCommunicate request_size=4 [09:34:58]MH_SAM_APDU [09:34:58]CAPDU: 80 11 00 00 [09:34:58]Write to MH i2c: E2 08 00 65 08 80 11 00 00 00 00 00 00 E7 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 17 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 17 00 65 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [09:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:34:58]wFMCommunicate OK [09:34:58]requested_item fd.num is exist - process it [09:34:58]SAM_PROTO_GetFieldsCounters [09:34:58]wFMCommunicate request_size=4 [09:34:58]MH_SAM_APDU [09:34:58]CAPDU: 80 13 00 00 [09:34:58]Write to MH i2c: E2 08 00 66 08 80 13 00 00 00 00 00 00 EA [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 62 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 62 00 66 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AE 95 01 00 0E 04 04 00 62 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 2D [09:34:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AE 95 01 00 0E 04 04 00 62 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:34:58]wFMCommunicate OK [09:34:58]SAM_PROTO_GetFieldsCounters done [09:34:58]requested_item shift.num is exist - process it [09:34:58]requested_item shift.opened is exist - process it [09:34:58]req_shift_opened [09:34:58]FM_GetShiftState [09:34:58]SAM_PROTO_GetShiftState [09:34:58]wFMCommunicate request_size=4 [09:34:58]MH_SAM_APDU [09:34:58]CAPDU: 80 13 01 00 [09:34:58]Write to MH i2c: E2 08 00 67 08 80 13 01 00 00 00 00 00 EC [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 0E 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 0E 00 67 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3B [09:34:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:34:58]wFMCommunicate OK [09:34:58]SAM_PROTO_GetShiftState done [09:34:58]FM_GetShiftState done [09:34:58]req_shift_opened done [09:34:58]requested_item shift.open_date is exist - process it [09:34:58]req_shift_open_date [09:34:58]req_shift_open_date done [09:34:58]produce_requested_data done [09:34:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103854,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:34:58]process_action_free close_receipt [09:34:58]json_value_free [09:34:58]json_value_free done [09:34:58]process_json_proto returns [09:34:58]Send response to host [09:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103854,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:34:58]free response buf [09:34:58]execute_script done [09:34:58]execute_script returns [09:34:58]free content buf [09:34:58]Sock 7.Close socket [09:34:58]Sock 7.Thread stoped [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:52]accept exits with 9 [09:37:52]New connection [09:37:52]New thread 3067207012 created [09:37:52]Thread 3067063652 joined [09:37:52]Waiting for new connection... [09:37:52] Sock 9.Parse request [09:37:52]Sock 9.Check first char [09:37:52]Sock 9.First char is OK [09:37:52]request: POST /json_proto HTTP/1.0 [09:37:52]Method: POST [09:37:52]URL: /json_proto [09:37:52]Method is POST - this is cgi request [09:37:52]url: /json_proto [09:37:52]query_string will be loaded in cgi processing [09:37:52]execute_cgi json_proto POST (null) [09:37:52]execute_cgi path=json_proto method=POST [09:37:52]POST find Content-Length [09:37:52]Host: 172.17.38.133:8080 [09:37:52]Content-Length: 1169 [09:37:52]Content-Type: application/json [09:37:52] [09:37:52]POST finish read [09:37:52]Found Content-Length = 1169 [09:37:52]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673174\u000A20.06.2024 09:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 3695.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074068\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:52]execute_script... [09:37:52]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673174\u000A20.06.2024 09:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 50.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 3695.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074068\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:52]POST & json_proto [09:37:52]process_json_proto [09:37:52]json parsed OK: [09:37:52]protocol is kg_v1.0 [09:37:52]action value=print_text [09:37:52]process_action print_text [09:37:52]cmd_print_text [09:37:52]ExternCall_PrintAddStr [09:37:52]wPrintStart [09:37:52]Write to MH i2c: 01 00 00 68 08 70 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 FF 0F 85 [09:37:52]RasterBufferAndPrint [09:37:52]line *****ТОВАРНЫЙ ЧЕК***** [09:37:52]line АЗС 120 [09:37:52]line Партнер нефть [09:37:52]line 02508201610067 [09:37:52]line Кассир : Дуйшенбиев А. [09:37:52]line Счет N : (1)673174 [09:37:52]line 20.06.2024 09:15 [09:37:52]line ПРОДАЖА [09:37:52]line ТРК (МРК, ГНК): 31 [09:37:52]line Вид ГСМ : 2710124500 [09:37:52]line Аи-95-К-5 [09:37:52]line 50.000 x 73.90 [09:37:52]line ИТОГ: 3695.00 [09:37:52]line Тип оплаты: Талоны: ТК ГПНА Online [09:37:52]line 30074068 [09:37:52]line ______________________ [09:37:52]line (подпись) [09:37:52]written 0, free lines is 4095 [09:37:52]Write to MH i2c: 01 00 00 7C 08 84 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: 01 07 00 7C 08 00 00 00 00 00 13 0E AC [09:37:52]RasterBufferAndPrint [09:37:52]line [09:37:52]line [09:37:52]line [09:37:52]line [09:37:52]line [09:37:52]written 0, free lines is 3605 [09:37:52]MH_Cut [09:37:52]Write to MH i2c: D1 01 00 83 08 01 5D [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: D1 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: D1 01 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: D1 01 00 83 08 00 5C [09:37:52]Write to MH i2c: 01 00 00 84 08 8C [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:53]*** Cut start [09:37:53]*** Partial cut [09:37:53]*** CUTSNS_PIN = 1 [09:37:53]*** CUTSNS_PIN = 0 [09:37:53]*** Brake cut motor [09:37:53]Read from MH i2c: 01 [09:37:53]MH_I2C_Read... [09:37:53]*** Stop cut motor [09:37:53]*** Cut end [09:37:53]Read from MH i2c: 01 07 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: 01 07 00 84 08 00 00 00 00 00 FF 0F A1 [09:37:53]process_action print_text done [09:37:53]requested_data is exist [09:37:53]produce_requested_data [09:37:53]requested_item fm.sn is exist - process it [09:37:53]wFMCommunicate request_size=4 [09:37:53]MH_SAM_APDU [09:37:53]CAPDU: 80 11 00 00 [09:37:53]Write to MH i2c: E2 08 00 85 08 80 11 00 00 00 00 00 00 07 [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:53]Read from MH i2c: E2 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 17 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 17 00 85 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [09:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:37:53]wFMCommunicate OK [09:37:53]requested_item fd.num is exist - process it [09:37:53]SAM_PROTO_GetFieldsCounters [09:37:53]wFMCommunicate request_size=4 [09:37:53]MH_SAM_APDU [09:37:53]CAPDU: 80 13 00 00 [09:37:53]Write to MH i2c: E2 08 00 86 08 80 13 00 00 00 00 00 00 0A [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:53]Read from MH i2c: E2 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 62 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 62 00 86 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AE 95 01 00 0E 04 04 00 62 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 4D [09:37:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AE 95 01 00 0E 04 04 00 62 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:37:53]wFMCommunicate OK [09:37:53]SAM_PROTO_GetFieldsCounters done [09:37:53]requested_item shift.num is exist - process it [09:37:53]requested_item shift.opened is exist - process it [09:37:53]req_shift_opened [09:37:53]FM_GetShiftState [09:37:53]SAM_PROTO_GetShiftState [09:37:53]wFMCommunicate request_size=4 [09:37:53]MH_SAM_APDU [09:37:53]CAPDU: 80 13 01 00 [09:37:53]Write to MH i2c: E2 08 00 87 08 80 13 01 00 00 00 00 00 0C [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:53]Read from MH i2c: E2 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 0E 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 0E 00 87 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5B [09:37:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:37:53]wFMCommunicate OK [09:37:53]SAM_PROTO_GetShiftState done [09:37:53]FM_GetShiftState done [09:37:53]req_shift_opened done [09:37:53]requested_item shift.open_date is exist - process it [09:37:53]req_shift_open_date [09:37:53]req_shift_open_date done [09:37:53]produce_requested_data done [09:37:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103854,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:37:53]process_action_free print_text [09:37:53]json_value_free [09:37:53]json_value_free done [09:37:53]process_json_proto returns [09:37:53]Send response to host [09:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103854,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:37:53]free response buf [09:37:53]execute_script done [09:37:53]execute_script returns [09:37:53]free content buf [09:37:53]Sock 9.Close socket [09:37:53]Sock 9.Thread stoped [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [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:54]accept exits with 7 [09:39:54]New connection [09:39:54]New thread 3067063652 created [09:39:54]Thread 3067207012 joined [09:39:54]Waiting for new connection... [09:39:54] Sock 7.Parse request [09:39:54]Sock 7.Check first char [09:39:54]Sock 7.First char is OK [09:39:54]request: POST /json_proto HTTP/1.0 [09:39:54]Method: POST [09:39:54]URL: /json_proto [09:39:54]Method is POST - this is cgi request [09:39:54]url: /json_proto [09:39:54]query_string will be loaded in cgi processing [09:39:54]execute_cgi json_proto POST (null) [09:39:54]execute_cgi path=json_proto method=POST [09:39:54]POST find Content-Length [09:39:54]Host: 172.17.38.133:8080 [09:39:54]Content-Length: 687 [09:39:54]Content-Type: application/json [09:39:54] [09:39:54]POST finish read [09:39:54]Found Content-Length = 687 [09:39:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:39:54]execute_script... [09:39:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:39:54]POST & json_proto [09:39:54]process_json_proto [09:39:54]json parsed OK: [09:39:54]protocol is kg_v1.0 [09:39:54]action value=close_receipt [09:39:54]process_action close_receipt [09:39:54]cmd_close_receipt [09:39:54]MH_GetDate [09:39:54]Write to MH i2c: F0 00 00 88 08 7F [09:39:54]Write i2c OK [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: F0 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: F0 09 00 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: F0 09 00 88 08 00 EB F8 73 66 BD 8F 7C 64 70 [09:39:54]GetLastDocTimeStamp 1718876095 [09:39:54]current date 1718876395 [09:39:54]FM_GetShiftState [09:39:54]SAM_PROTO_GetShiftState [09:39:54]wFMCommunicate request_size=4 [09:39:54]MH_SAM_APDU [09:39:54]CAPDU: 80 13 01 00 [09:39:54]Write to MH i2c: E2 08 00 89 08 80 13 01 00 00 00 00 00 0E [09:39:54]Write i2c OK [09:39:54]MH_I2C_Read... [09:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:54]Read from MH i2c: E2 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: E2 0E 00 [09:39:54]MH_I2C_Read... [09:39:54]Read from MH i2c: E2 0E 00 89 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5D [09:39:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:39:54]wFMCommunicate OK [09:39:54]SAM_PROTO_GetShiftState done [09:39:54]FM_GetShiftState done [09:39:54]opened in 1718843124 [09:39:54]opened+sec_in_day 1718929524 [09:39:54]quantity*price = 100018 [09:39:54]sum+1 = 100020 [09:39:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 40 20.06.2024 09:39 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103855 ФПД: 8495144571558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093955&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103855&fm=8495144571558&tin=02508201610067®Number=0000000000092785&sum=100000 [09:39:55]StoreToDocumentArchive [09:39:55]shift 354 fd 103855 [09:39:55]save to /storage/0354/doc_00103855 [09:39:55]save last doc name /storage/0354/doc_00103855 to /storage/kkm_last_doc_name [09:39:55]save OK [09:39:55]Clear old archive folders... [09:39:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:39:55]tlvbuf is B6EE64D0 [09:39:55]SAM_PROTO_ClearQueue [09:39:55]wFMCommunicate request_size=4 [09:39:55]MH_SAM_APDU [09:39:55]CAPDU: 80 09 00 00 [09:39:55]Write to MH i2c: E2 08 00 96 08 80 09 00 00 00 00 00 00 10 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 [09:39:55]MH_I2C_Read... [09:39:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:55]Read from MH i2c: E2 03 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [09:39:55]RAPDU: 90 00 [09:39:55]wFMCommunicate OK [09:39:55]SAM_PROTO_ClearQueue done [09:39:55]KKMCreateOFDPacket [09:39:55]OFDProtocolAddRootSTLVToBuf [09:39:55]FM_MakeSignedData [09:39:55]FM_MakeSignedData [09:39:55]SAM_PROTO_SignData [09:39:55]wFMCommunicate request_size=4 [09:39:55]MH_SAM_APDU [09:39:55]CAPDU: 80 0D 01 02 [09:39:55]Write to MH i2c: E2 08 00 97 08 80 0D 01 02 00 00 00 00 18 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:55]Read from MH i2c: E2 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 97 08 00 90 00 13 [09:39:55]RAPDU: 90 00 [09:39:55]wFMCommunicate OK [09:39:55]wFMCommunicate request_size=255 [09:39:55]MH_SAM_APDU [09:39:55]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 00 00 00 F4 03 04 00 EB F8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 95 01 00 35 04 06 00 [09:39:55]Write to MH i2c: E2 02 01 98 08 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 00 00 00 F4 03 04 00 EB F8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 95 01 00 35 04 06 00 00 00 F8 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:55]Read from MH i2c: E2 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [09:39:55]RAPDU: 90 00 [09:39:55]wFMCommunicate OK [09:39:55]wFMCommunicate request_size=11 [09:39:55]MH_SAM_APDU [09:39:55]CAPDU: 80 0D 02 02 06 07 B9 EE 13 12 A6 [09:39:55]Write to MH i2c: E2 0E 00 99 08 80 0D 02 02 06 00 07 B9 EE 13 12 A6 00 00 A0 [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:55]Read from MH i2c: E2 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 [09:39:55]MH_I2C_Read... [09:39:55]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [09:39:55]RAPDU: 90 00 [09:39:55]wFMCommunicate OK [09:39:55]wFMCommunicate request_size=4 [09:39:55]MH_SAM_APDU [09:39:55]CAPDU: 80 0D 03 02 [09:39:55]Write to MH i2c: E2 08 00 9A 08 80 0D 03 02 00 00 00 00 1D [09:39:55]Write i2c OK [09:39:55]MH_I2C_Read... [09:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:56]Read from MH i2c: E2 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 0B 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 0B 00 9A 08 00 3F FC FE FC 0A 73 36 82 90 00 88 [09:39:56]RAPDU: 3F FC FE FC 0A 73 36 82 90 00 [09:39:56]wFMCommunicate OK [09:39:56]SAM_PROTO_SignData done [09:39:56]FM_MakeSignedData done [09:39:56]CreateOFDProtocolMessage [09:39:56]wFMCommunicate request_size=4 [09:39:56]MH_SAM_APDU [09:39:56]CAPDU: 80 11 00 00 [09:39:56]Write to MH i2c: E2 08 00 9B 08 80 11 00 00 00 00 00 00 1D [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:56]Read from MH i2c: E2 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 17 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: E2 17 00 9B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [09:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:39:56]wFMCommunicate OK [09:39:56]CreateOFDProtocolMessage done [09:39:56]OFDSenderStorePacket 103855 [09:39:56]StoreOFDPacket docnum=103855 [09:39:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 BA 8E 08 01 9F F3 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 00 00 00 F4 03 04 00 EB F8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 95 01 00 35 04 06 00 07 B9 EE 13 12 A6 3F FC FE FC 0A 73 36 82 [09:39:56]CheckFolder [09:39:56]dirname=/storage/ofd_packets [09:39:56]CheckFolder done [09:39:56]ProducePacketName [09:39:56]name=ofd_packets/00103855 [09:39:56]NVStorageSaveData ofd_packets/00103855 [09:39:56]File name is /storage/ofd_packets/00103855 [09:39:56]Write 302 bytes [09:39:56]NVStorageSaveData done [09:39:56]OFDSenderStorePacket done [09:39:56]KKMCreateOFDPacket done [09:39:56]NVStorageSaveData kkm_last_timestamp [09:39:56]File name is /storage/kkm_last_timestamp [09:39:56]Write 4 bytes [09:39:56]NVStorageSaveData done [09:39:56]ExternCall_PrintAddStr [09:39:56]wPrintStart [09:39:56]Write to MH i2c: 01 00 00 9C 08 A4 [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: 01 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: 01 07 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: 01 07 00 9C 08 00 00 00 00 00 FF 0F B9 [09:39:56]RasterBufferAndPrint [09:39:56]line Счет N : (1)673175 [09:39:56]line ИНН: 02508201610067 [09:39:56]line Контрольно-Кассовый Чек [09:39:56]line ПРОДАЖА [09:39:56]line ТРК (МРК, ГНК) : 21 [09:39:56]line Товар: 2710194210 [09:39:56]line ДТ(л)-К-5 [09:39:56]line 13.720 * 72.90 [09:39:56]line = 1000.19 [09:39:56]line НДС 12% НСП 1% [09:39:56]line > о реализуемом товаре [09:39:56]line ОКРУГЛЕНИЕ: -0.19 [09:39:56]line ИТОГО: 1000.00 [09:39:56]line Внесено: 1000.00 [09:39:56]line СДАЧА: 0.00 [09:39:56]line НСП 1% : 8.85 [09:39:56]line НДС 12% : 106.21 [09:39:56]line Наличными: 1000.00 [09:39:56]line Безнал.: 0.00 [09:39:56]line Место: АЗС № 120 "Партнер Нефть" [09:39:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:39:56]line СНО: Общий режим [09:39:56]line Чек 40 20.06.2024 09:39 [09:39:56]line Смена: 354 ФФД: 1.0 [09:39:56]line ЗНМ: 0300000164 [09:39:56]line РНМ: 0000000000092785 [09:39:56]line Версия ККМ: 001 [09:39:56]line ФМ: 0000000000875093 [09:39:56]line ФД: 103855 [09:39:56]line ФПД: 8495144571558 [09:39:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T093955&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103855&fm=8495144571558&tin=02508201610067®Number=0000000000092785&sum=100000 [09:39:56]OFD Sender: Processing packet 103855 [packets to send 17, broken 16] [09:39:56]ProducePacketName [09:39:56]name=ofd_packets/00103855 [09:39:56]OFD Sender: To server: pG, [09:39:56]CommunicateWithHost lk.salyk.kg:30040 [09:39:56]ConnectInit lk.salyk.kg [09:39:56]written 0, free lines is 4095 [09:39:56]Connected sock=10 [09:39:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 BA 8E 08 01 9F F3 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 28 00 00 00 F4 03 04 00 EB F8 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 AF 95 01 00 35 04 06 00 07 B9 EE 13 12 A6 3F FC FE FC 0A 73 36 82 [09:39:56]Write to MH i2c: 01 00 00 C7 08 CF [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: 01 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: 01 07 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: 01 07 00 C7 08 00 00 00 00 00 E0 0C C2 [09:39:56]RasterBufferAndPrint [09:39:56]line [09:39:56]line [09:39:56]line [09:39:56]line [09:39:56]line [09:39:56]written 0, free lines is 3302 [09:39:56]MH_Cut [09:39:56]Write to MH i2c: D1 01 00 CE 08 01 A8 [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: D1 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: D1 01 00 [09:39:56]MH_I2C_Read... [09:39:56]Read from MH i2c: D1 01 00 CE 08 00 A7 [09:39:56]Write to MH i2c: 01 00 00 CF 08 D7 [09:39:56]Write i2c OK [09:39:56]MH_I2C_Read... [09:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 3D B0 47 00 59 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 35 30 39 33 10 04 04 00 AF 95 01 00 F4 03 04 00 71 9F 73 66 B6 04 01 00 00 07 D6 8D 1F F7 43 15 54 [09:39:56]CommunicateWithHost err = 0 [09:39:56]CheckOFDResponse [09:39:56]1017 (14) - 77093643461234 [09:39:56]1041 (16) - 0000000000875093 [09:39:56]1040 (4) - 103855 [09:39:56]1012 (4) - 20.06.2024 03:18 [09:39:56]1206 (1) - 0 [09:39:56]OFD Sender: Remove packet 103855 [09:39:56]ProducePacketName [09:39:56]name=ofd_packets/00103855 [09:39:56]NVStorageDeleteData [09:39:57]OFD Sender: No OFD packet to send [09:39:57]*** Cut start [09:39:57]*** Partial cut [09:39:57]*** CUTSNS_PIN = 1 [09:39:57]*** CUTSNS_PIN = 0 [09:39:57]*** Brake cut motor [09:39:58]Read from MH i2c: 01 [09:39:58]MH_I2C_Read... [09:39:58]*** Stop cut motor [09:39:58]*** Cut end [09:39:58]Read from MH i2c: 01 07 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 FF 0F EC [09:39:58]process_action close_receipt done [09:39:58]requested_data is exist [09:39:58]produce_requested_data [09:39:58]requested_item fm.sn is exist - process it [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 11 00 00 [09:39:58]Write to MH i2c: E2 08 00 D0 08 80 11 00 00 00 00 00 00 52 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 17 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 17 00 D0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [09:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:39:58]wFMCommunicate OK [09:39:58]requested_item fd.num is exist - process it [09:39:58]SAM_PROTO_GetFieldsCounters [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 13 00 00 [09:39:58]Write to MH i2c: E2 08 00 D1 08 80 13 00 00 00 00 00 00 55 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 62 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 62 00 D1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AF 95 01 00 0E 04 04 00 62 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 9C [09:39:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 AF 95 01 00 0E 04 04 00 62 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:39:58]wFMCommunicate OK [09:39:58]SAM_PROTO_GetFieldsCounters done [09:39:58]requested_item shift.num is exist - process it [09:39:58]requested_item shift.opened is exist - process it [09:39:58]req_shift_opened [09:39:58]FM_GetShiftState [09:39:58]SAM_PROTO_GetShiftState [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 13 01 00 [09:39:58]Write to MH i2c: E2 08 00 D2 08 80 13 01 00 00 00 00 00 57 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 0E 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 0E 00 D2 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A6 [09:39:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:39:58]wFMCommunicate OK [09:39:58]SAM_PROTO_GetShiftState done [09:39:58]FM_GetShiftState done [09:39:58]req_shift_opened done [09:39:58]requested_item shift.open_date is exist - process it [09:39:58]req_shift_open_date [09:39:58]req_shift_open_date done [09:39:58]produce_requested_data done [09:39:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103855,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:39:58]process_action_free close_receipt [09:39:58]json_value_free [09:39:58]json_value_free done [09:39:58]process_json_proto returns [09:39:58]Send response to host [09:39:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103855,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:39:58]free response buf [09:39:58]execute_script done [09:39:58]execute_script returns [09:39:58]free content buf [09:39:58]Sock 7.Close socket [09:39:58]Sock 7.Thread stoped [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:40]accept exits with 9 [09:40:40]New connection [09:40:40]New thread 3067207012 created [09:40:40]Thread 3067063652 joined [09:40:40]Waiting for new connection... [09:40:40] Sock 9.Parse request [09:40:40]Sock 9.Check first char [09:40:40]Sock 9.First char is OK [09:40:40]request: POST /json_proto HTTP/1.0 [09:40:40]Method: POST [09:40:40]URL: /json_proto [09:40:40]Method is POST - this is cgi request [09:40:40]url: /json_proto [09:40:40]query_string will be loaded in cgi processing [09:40:40]execute_cgi json_proto POST (null) [09:40:40]execute_cgi path=json_proto method=POST [09:40:40]POST find Content-Length [09:40:40]Host: 172.17.38.133:8080 [09:40:40]Content-Length: 682 [09:40:40]Content-Type: application/json [09:40:40] [09:40:40]POST finish read [09:40:40]Found Content-Length = 682 [09:40:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "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" ] } } [09:40:40]execute_script... [09:40: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)673176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 45.190, "sum" : 3000.62, "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" ] } } [09:40:40]POST & json_proto [09:40:40]process_json_proto [09:40:40]json parsed OK: [09:40:40]protocol is kg_v1.0 [09:40:40]action value=close_receipt [09:40:40]process_action close_receipt [09:40:40]cmd_close_receipt [09:40:40]MH_GetDate [09:40:40]Write to MH i2c: F0 00 00 D3 08 CA [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: F0 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: F0 09 00 [09:40:40]MH_I2C_Read... [09:40:40]Read from MH i2c: F0 09 00 D3 08 00 1A F9 73 66 BD 8F 7C 64 EB [09:40:40]GetLastDocTimeStamp 1718876395 [09:40:40]current date 1718876442 [09:40:40]FM_GetShiftState [09:40:40]SAM_PROTO_GetShiftState [09:40:40]wFMCommunicate request_size=4 [09:40:40]MH_SAM_APDU [09:40:40]CAPDU: 80 13 01 00 [09:40:40]Write to MH i2c: E2 08 00 D4 08 80 13 01 00 00 00 00 00 59 [09:40:40]Write i2c OK [09:40:40]MH_I2C_Read... [09:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:41]Read from MH i2c: E2 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 0E 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 0E 00 D4 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A8 [09:40:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:40:41]wFMCommunicate OK [09:40:41]SAM_PROTO_GetShiftState done [09:40:41]FM_GetShiftState done [09:40:41]opened in 1718843124 [09:40:41]opened+sec_in_day 1718929524 [09:40:41]quantity*price = 300061 [09:40:41]sum+1 = 300063 [09:40:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 41 20.06.2024 09:40 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103856 ФПД: 81381475270525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094042&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103856&fm=81381475270525&tin=02508201610067®Number=0000000000092785&sum=300000 [09:40:42]StoreToDocumentArchive [09:40:42]shift 354 fd 103856 [09:40:42]save to /storage/0354/doc_00103856 [09:40:42]save last doc name /storage/0354/doc_00103856 to /storage/kkm_last_doc_name [09:40:42]save OK [09:40:42]Clear old archive folders... [09:40:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:42]tlvbuf is 00833950 [09:40:42]SAM_PROTO_ClearQueue [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 09 00 00 [09:40:42]Write to MH i2c: E2 08 00 E1 08 80 09 00 00 00 00 00 00 5B [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]SAM_PROTO_ClearQueue done [09:40:42]KKMCreateOFDPacket [09:40:42]OFDProtocolAddRootSTLVToBuf [09:40:42]FM_MakeSignedData [09:40:42]FM_MakeSignedData [09:40:42]SAM_PROTO_SignData [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 01 02 [09:40:42]Write to MH i2c: E2 08 00 E2 08 80 0D 01 02 00 00 00 00 63 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]wFMCommunicate request_size=255 [09:40:42]MH_SAM_APDU [09:40: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 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 1A F9 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 95 01 00 35 04 06 00 4A [09:40:42]Write to MH i2c: E2 02 01 E3 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 1A F9 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 95 01 00 35 04 06 00 4A 00 00 BC [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]OFD Sender: No OFD packet to send [09:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 E3 08 00 90 00 5F [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]wFMCommunicate request_size=10 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 02 02 05 04 19 EC BF 7D [09:40:42]Write to MH i2c: E2 0D 00 E4 08 80 0D 02 02 05 00 04 19 EC BF 7D 00 00 B5 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 E4 08 00 90 00 60 [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 03 02 [09:40:42]Write to MH i2c: E2 08 00 E5 08 80 0D 03 02 00 00 00 00 68 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 0B 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 0B 00 E5 08 00 B8 92 C6 B7 31 D8 9E 52 90 00 29 [09:40:42]RAPDU: B8 92 C6 B7 31 D8 9E 52 90 00 [09:40:42]wFMCommunicate OK [09:40:42]SAM_PROTO_SignData done [09:40:42]FM_MakeSignedData done [09:40:42]CreateOFDProtocolMessage [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 11 00 00 [09:40:42]Write to MH i2c: E2 08 00 E6 08 80 11 00 00 00 00 00 00 68 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 17 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 17 00 E6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [09:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:40:42]wFMCommunicate OK [09:40:42]CreateOFDProtocolMessage done [09:40:42]OFDSenderStorePacket 103856 [09:40:42]StoreOFDPacket docnum=103856 [09:40:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2E A3 07 01 16 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 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 1A F9 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 95 01 00 35 04 06 00 4A 04 19 EC BF 7D B8 92 C6 B7 31 D8 9E 52 [09:40:42]CheckFolder [09:40:42]dirname=/storage/ofd_packets [09:40:42]CheckFolder done [09:40:42]ProducePacketName [09:40:42]name=ofd_packets/00103856 [09:40:42]NVStorageSaveData ofd_packets/00103856 [09:40:42]File name is /storage/ofd_packets/00103856 [09:40:42]Write 301 bytes [09:40:42]NVStorageSaveData done [09:40:42]OFDSenderStorePacket done [09:40:42]KKMCreateOFDPacket done [09:40:42]NVStorageSaveData kkm_last_timestamp [09:40:42]File name is /storage/kkm_last_timestamp [09:40:42]Write 4 bytes [09:40:42]NVStorageSaveData done [09:40:42]ExternCall_PrintAddStr [09:40:42]wPrintStart [09:40:42]Write to MH i2c: 01 00 00 E7 08 EF [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 07 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: 01 07 00 E7 08 00 00 00 00 00 FF 0F 04 [09:40:42]RasterBufferAndPrint [09:40:42]line Счет N : (1)673176 [09:40:42]line ИНН: 02508201610067 [09:40:42]line Контрольно-Кассовый Чек [09:40:42]line ПРОДАЖА [09:40:42]line ТРК (МРК, ГНК) : 32 [09:40:42]line Товар: 2710124130 [09:40:42]line Аи-92-К-5 [09:40:42]line 45.190 * 66.40 [09:40:42]line = 3000.62 [09:40:42]line НДС 12% НСП 1% [09:40:42]line > о реализуемом товаре [09:40:42]line ОКРУГЛЕНИЕ: -0.62 [09:40:42]line ИТОГО: 3000.00 [09:40:42]line Внесено: 3000.00 [09:40:42]line СДАЧА: 0.00 [09:40:42]line НСП 1% : 26.55 [09:40:42]line НДС 12% : 318.65 [09:40:42]line Наличными: 3000.00 [09:40:42]line Безнал.: 0.00 [09:40:42]line Место: АЗС № 120 "Партнер Нефть" [09:40:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:40:42]line СНО: Общий режим [09:40:42]line Чек 41 20.06.2024 09:40 [09:40:42]line Смена: 354 ФФД: 1.0 [09:40:42]line ЗНМ: 0300000164 [09:40:42]line РНМ: 0000000000092785 [09:40:42]line Версия ККМ: 001 [09:40:42]line ФМ: 0000000000875093 [09:40:42]line ФД: 103856 [09:40:42]line ФПД: 81381475270525 [09:40:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094042&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103856&fm=81381475270525&tin=02508201610067®Number=0000000000092785&sum=300000 [09:40:43]OFD Sender: Processing packet 103856 [packets to send 17, broken 16] [09:40:43]ProducePacketName [09:40:43]name=ofd_packets/00103856 [09:40:43]OFD Sender: To server: pG, [09:40:43]CommunicateWithHost lk.salyk.kg:30040 [09:40:43]ConnectInit lk.salyk.kg [09:40:43]written 0, free lines is 4095 [09:40:43]Connected sock=10 [09:40:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2E A3 07 01 16 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 86 B0 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1E 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 1A F9 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 95 01 00 35 04 06 00 4A 04 19 EC BF 7D B8 92 C6 B7 31 D8 9E 52 [09:40:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B3 57 47 00 46 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B0 95 01 00 F4 03 04 00 A0 9F 73 66 B6 04 01 00 00 32 11 2E 5E 10 46 18 47 [09:40:43]CommunicateWithHost err = 0 [09:40:43]CheckOFDResponse [09:40:43]1017 (14) - 77093643461234 [09:40:43]1041 (16) - 0000000000875093 [09:40:43]1040 (4) - 103856 [09:40:43]1012 (4) - 20.06.2024 03:18 [09:40:43]1206 (1) - 0 [09:40:43]OFD Sender: Remove packet 103856 [09:40:43]ProducePacketName [09:40:43]name=ofd_packets/00103856 [09:40:43]NVStorageDeleteData [09:40:43]Write to MH i2c: 01 00 00 12 09 1B [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 07 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 07 00 12 09 00 00 00 00 00 DD 0C 0B [09:40:43]RasterBufferAndPrint [09:40:43]line [09:40:43]line [09:40:43]line [09:40:43]line [09:40:43]line [09:40:43]written 0, free lines is 3299 [09:40:43]MH_Cut [09:40:43]Write to MH i2c: D1 01 00 19 09 01 F4 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: D1 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: D1 01 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: D1 01 00 19 09 00 F3 [09:40:43]Write to MH i2c: 01 00 00 1A 09 23 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]OFD Sender: No OFD packet to send [09:40:44]*** Cut start [09:40:44]*** Partial cut [09:40:44]*** CUTSNS_PIN = 1 [09:40:44]*** CUTSNS_PIN = 0 [09:40:44]*** Brake cut motor [09:40:44]Read from MH i2c: 01 [09:40:44]MH_I2C_Read... [09:40:44]*** Stop cut motor [09:40:44]*** Cut end [09:40:44]Read from MH i2c: 01 07 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: 01 07 00 1A 09 00 00 00 00 00 FF 0F 38 [09:40:44]process_action close_receipt done [09:40:44]requested_data is exist [09:40:44]produce_requested_data [09:40:44]requested_item fm.sn is exist - process it [09:40:44]wFMCommunicate request_size=4 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 11 00 00 [09:40:44]Write to MH i2c: E2 08 00 1B 09 80 11 00 00 00 00 00 00 9E [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:44]Read from MH i2c: E2 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 17 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 17 00 1B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [09:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:40:44]wFMCommunicate OK [09:40:44]requested_item fd.num is exist - process it [09:40:44]SAM_PROTO_GetFieldsCounters [09:40:44]wFMCommunicate request_size=4 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 13 00 00 [09:40:44]Write to MH i2c: E2 08 00 1C 09 80 13 00 00 00 00 00 00 A1 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 62 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 62 00 1C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B0 95 01 00 0E 04 04 00 62 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 EC [09:40:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B0 95 01 00 0E 04 04 00 62 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:40:45]wFMCommunicate OK [09:40:45]SAM_PROTO_GetFieldsCounters done [09:40:45]requested_item shift.num is exist - process it [09:40:45]requested_item shift.opened is exist - process it [09:40:45]req_shift_opened [09:40:45]FM_GetShiftState [09:40:45]SAM_PROTO_GetShiftState [09:40:45]wFMCommunicate request_size=4 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 13 01 00 [09:40:45]Write to MH i2c: E2 08 00 1D 09 80 13 01 00 00 00 00 00 A3 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 0E 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 0E 00 1D 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F2 [09:40:45]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:40:45]wFMCommunicate OK [09:40:45]SAM_PROTO_GetShiftState done [09:40:45]FM_GetShiftState done [09:40:45]req_shift_opened done [09:40:45]requested_item shift.open_date is exist - process it [09:40:45]req_shift_open_date [09:40:45]req_shift_open_date done [09:40:45]produce_requested_data done [09:40:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103856,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:40:45]process_action_free close_receipt [09:40:45]json_value_free [09:40:45]json_value_free done [09:40:45]process_json_proto returns [09:40:45]Send response to host [09:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103856,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:40:45]free response buf [09:40:45]execute_script done [09:40:45]execute_script returns [09:40:45]free content buf [09:40:45]Sock 9.Close socket [09:40:45]Sock 9.Thread stoped [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:21]accept exits with 7 [09:43:21]New connection [09:43:21]New thread 3067063652 created [09:43:21]Thread 3067207012 joined [09:43:21]Waiting for new connection... [09:43:21] Sock 7.Parse request [09:43:21]Sock 7.Check first char [09:43:21]Sock 7.First char is OK [09:43:21]request: POST /json_proto HTTP/1.0 [09:43:21]Method: POST [09:43:21]URL: /json_proto [09:43:21]Method is POST - this is cgi request [09:43:21]url: /json_proto [09:43:21]query_string will be loaded in cgi processing [09:43:21]execute_cgi json_proto POST (null) [09:43:21]execute_cgi path=json_proto method=POST [09:43:21]POST find Content-Length [09:43:21]Host: 172.17.38.133:8080 [09:43:21]Content-Length: 1169 [09:43:21]Content-Type: application/json [09:43:21] [09:43:21]POST finish read [09:43:21]Found Content-Length = 1169 [09:43: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673177\u000A20.06.2024 09:20\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 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30095600\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:21]execute_script... [09:43: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673177\u000A20.06.2024 09:20\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 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30095600\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:21]POST & json_proto [09:43:21]process_json_proto [09:43:21]json parsed OK: [09:43:21]protocol is kg_v1.0 [09:43:21]action value=print_text [09:43:21]process_action print_text [09:43:21]cmd_print_text [09:43:21]ExternCall_PrintAddStr [09:43:21]wPrintStart [09:43:21]Write to MH i2c: 01 00 00 1E 09 27 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 1E 09 00 00 00 00 00 FF 0F 3C [09:43:21]RasterBufferAndPrint [09:43:21]line *****ТОВАРНЫЙ ЧЕК***** [09:43:21]line АЗС 120 [09:43:21]line Партнер нефть [09:43:21]line 02508201610067 [09:43:21]line Кассир : Дуйшенбиев А. [09:43:21]line Счет N : (1)673177 [09:43:21]line 20.06.2024 09:20 [09:43:21]line ПРОДАЖА [09:43:21]line ТРК (МРК, ГНК): 42 [09:43:21]line Вид ГСМ : 2710124130 [09:43:21]line Аи-92-К-5 [09:43:21]line 30.000 x 66.40 [09:43:21]line ИТОГ: 1992.00 [09:43:21]line Тип оплаты: Талоны: ТК ГПНА Online [09:43:21]line 30095600 [09:43:21]line ______________________ [09:43:21]line (подпись) [09:43:21]written 0, free lines is 4095 [09:43:21]Write to MH i2c: 01 00 00 32 09 3B [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 32 09 00 00 00 00 00 13 0E 63 [09:43:21]RasterBufferAndPrint [09:43:21]line [09:43:21]line [09:43:21]line [09:43:21]line [09:43:21]line [09:43:21]written 0, free lines is 3605 [09:43:21]MH_Cut [09:43:21]Write to MH i2c: D1 01 00 39 09 01 14 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: D1 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: D1 01 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: D1 01 00 39 09 00 13 [09:43:21]Write to MH i2c: 01 00 00 3A 09 43 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** Cut start [09:43:21]*** Partial cut [09:43:21]*** CUTSNS_PIN = 1 [09:43:21]*** CUTSNS_PIN = 0 [09:43:22]*** Brake cut motor [09:43:22]Read from MH i2c: 01 [09:43:22]MH_I2C_Read... [09:43:22]*** Stop cut motor [09:43:22]*** Cut end [09:43:22]Read from MH i2c: 01 07 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: 01 07 00 3A 09 00 00 00 00 00 FF 0F 58 [09:43:22]process_action print_text done [09:43:22]requested_data is exist [09:43:22]produce_requested_data [09:43:22]requested_item fm.sn is exist - process it [09:43:22]wFMCommunicate request_size=4 [09:43:22]MH_SAM_APDU [09:43:22]CAPDU: 80 11 00 00 [09:43:22]Write to MH i2c: E2 08 00 3B 09 80 11 00 00 00 00 00 00 BE [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:22]Read from MH i2c: E2 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 17 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 17 00 3B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [09:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:43:22]wFMCommunicate OK [09:43:22]requested_item fd.num is exist - process it [09:43:22]SAM_PROTO_GetFieldsCounters [09:43:22]wFMCommunicate request_size=4 [09:43:22]MH_SAM_APDU [09:43:22]CAPDU: 80 13 00 00 [09:43:22]Write to MH i2c: E2 08 00 3C 09 80 13 00 00 00 00 00 00 C1 [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:22]Read from MH i2c: E2 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 62 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 62 00 3C 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B0 95 01 00 0E 04 04 00 62 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 0C [09:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B0 95 01 00 0E 04 04 00 62 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:43:22]wFMCommunicate OK [09:43:22]SAM_PROTO_GetFieldsCounters done [09:43:22]requested_item shift.num is exist - process it [09:43:22]requested_item shift.opened is exist - process it [09:43:22]req_shift_opened [09:43:22]FM_GetShiftState [09:43:22]SAM_PROTO_GetShiftState [09:43:22]wFMCommunicate request_size=4 [09:43:22]MH_SAM_APDU [09:43:22]CAPDU: 80 13 01 00 [09:43:22]Write to MH i2c: E2 08 00 3D 09 80 13 01 00 00 00 00 00 C3 [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:22]Read from MH i2c: E2 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 0E 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 0E 00 3D 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 12 [09:43:22]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:43:22]wFMCommunicate OK [09:43:22]SAM_PROTO_GetShiftState done [09:43:22]FM_GetShiftState done [09:43:22]req_shift_opened done [09:43:22]requested_item shift.open_date is exist - process it [09:43:22]req_shift_open_date [09:43:22]req_shift_open_date done [09:43:22]produce_requested_data done [09:43:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103856,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:43:22]process_action_free print_text [09:43:22]json_value_free [09:43:22]json_value_free done [09:43:22]process_json_proto returns [09:43:22]Send response to host [09:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103856,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:43:22]free response buf [09:43:22]execute_script done [09:43:22]execute_script returns [09:43:22]free content buf [09:43:22]Sock 7.Close socket [09:43:22]Sock 7.Thread stoped [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:16]accept exits with 9 [09:45:16]New connection [09:45:16]New thread 3067207012 created [09:45:16]Thread 3067063652 joined [09:45:16]Waiting for new connection... [09:45:16] Sock 9.Parse request [09:45:16]Sock 9.Check first char [09:45:16]Sock 9.First char is OK [09:45:16]request: POST /json_proto HTTP/1.0 [09:45:16]Method: POST [09:45:16]URL: /json_proto [09:45:16]Method is POST - this is cgi request [09:45:16]url: /json_proto [09:45:16]query_string will be loaded in cgi processing [09:45:16]execute_cgi json_proto POST (null) [09:45:16]execute_cgi path=json_proto method=POST [09:45:16]POST find Content-Length [09:45:16]Host: 172.17.38.133:8080 [09:45:16]Content-Length: 682 [09:45:16]Content-Type: application/json [09:45:16] [09:45:16]POST finish read [09:45:16]Found Content-Length = 682 [09:45:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:45:16]execute_script... [09:45: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)673179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:45:16]POST & json_proto [09:45:16]process_json_proto [09:45:16]json parsed OK: [09:45:16]protocol is kg_v1.0 [09:45:16]action value=close_receipt [09:45:16]process_action close_receipt [09:45:16]cmd_close_receipt [09:45:16]MH_GetDate [09:45:16]Write to MH i2c: F0 00 00 3E 09 36 [09:45:16]Write i2c OK [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: F0 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: F0 09 00 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: F0 09 00 3E 09 00 2D FA 73 66 BD 8F 7C 64 6B [09:45:16]GetLastDocTimeStamp 1718876442 [09:45:16]current date 1718876717 [09:45:16]FM_GetShiftState [09:45:16]SAM_PROTO_GetShiftState [09:45:16]wFMCommunicate request_size=4 [09:45:16]MH_SAM_APDU [09:45:16]CAPDU: 80 13 01 00 [09:45:16]Write to MH i2c: E2 08 00 3F 09 80 13 01 00 00 00 00 00 C5 [09:45:16]Write i2c OK [09:45:16]MH_I2C_Read... [09:45:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:16]Read from MH i2c: E2 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: E2 0E 00 [09:45:16]MH_I2C_Read... [09:45:16]Read from MH i2c: E2 0E 00 3F 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 14 [09:45:16]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:45:16]wFMCommunicate OK [09:45:16]SAM_PROTO_GetShiftState done [09:45:16]FM_GetShiftState done [09:45:16]opened in 1718843124 [09:45:16]opened+sec_in_day 1718929524 [09:45:16]quantity*price = 100064 [09:45:16]sum+1 = 100066 [09:45:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 42 20.06.2024 09:45 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103857 ФПД: 116242159382643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094517&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103857&fm=116242159382643&tin=02508201610067®Number=0000000000092785&sum=100000 [09:45:17]StoreToDocumentArchive [09:45:17]shift 354 fd 103857 [09:45:17]save to /storage/0354/doc_00103857 [09:45:17]save last doc name /storage/0354/doc_00103857 to /storage/kkm_last_doc_name [09:45:17]save OK [09:45:17]Clear old archive folders... [09:45:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:17]tlvbuf is 008284B0 [09:45:17]SAM_PROTO_ClearQueue [09:45:17]wFMCommunicate request_size=4 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 09 00 00 [09:45:17]Write to MH i2c: E2 08 00 4C 09 80 09 00 00 00 00 00 00 C7 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 4C 09 00 90 00 C9 [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]SAM_PROTO_ClearQueue done [09:45:17]KKMCreateOFDPacket [09:45:17]OFDProtocolAddRootSTLVToBuf [09:45:17]FM_MakeSignedData [09:45:17]FM_MakeSignedData [09:45:17]SAM_PROTO_SignData [09:45:17]wFMCommunicate request_size=4 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 0D 01 02 [09:45:17]Write to MH i2c: E2 08 00 4D 09 80 0D 01 02 00 00 00 00 CF [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 4D 09 00 90 00 CA [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]wFMCommunicate request_size=255 [09:45:17]MH_SAM_APDU [09:45: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 2D FA 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 95 01 00 35 04 06 00 69 [09:45:17]Write to MH i2c: E2 02 01 4E 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 2D FA 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 95 01 00 35 04 06 00 69 00 00 16 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 4E 09 00 90 00 CB [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]wFMCommunicate request_size=10 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 0D 02 02 05 B8 BC 9E 30 73 [09:45:17]Write to MH i2c: E2 0D 00 4F 09 80 0D 02 02 05 00 B8 BC 9E 30 73 00 00 91 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 03 00 4F 09 00 90 00 CC [09:45:17]RAPDU: 90 00 [09:45:17]wFMCommunicate OK [09:45:17]wFMCommunicate request_size=4 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 0D 03 02 [09:45:17]Write to MH i2c: E2 08 00 50 09 80 0D 03 02 00 00 00 00 D4 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 0B 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 0B 00 50 09 00 D1 C3 A6 CE 39 67 A5 CE 90 00 F0 [09:45:17]RAPDU: D1 C3 A6 CE 39 67 A5 CE 90 00 [09:45:17]wFMCommunicate OK [09:45:17]SAM_PROTO_SignData done [09:45:17]FM_MakeSignedData done [09:45:17]CreateOFDProtocolMessage [09:45:17]wFMCommunicate request_size=4 [09:45:17]MH_SAM_APDU [09:45:17]CAPDU: 80 11 00 00 [09:45:17]Write to MH i2c: E2 08 00 51 09 80 11 00 00 00 00 00 00 D4 [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:17]Read from MH i2c: E2 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 17 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: E2 17 00 51 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 27 [09:45:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:45:17]wFMCommunicate OK [09:45:17]CreateOFDProtocolMessage done [09:45:17]OFDSenderStorePacket 103857 [09:45:17]StoreOFDPacket docnum=103857 [09:45:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 02 C1 07 01 CD BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 2D FA 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 95 01 00 35 04 06 00 69 B8 BC 9E 30 73 D1 C3 A6 CE 39 67 A5 CE [09:45:17]CheckFolder [09:45:17]dirname=/storage/ofd_packets [09:45:17]CheckFolder done [09:45:17]ProducePacketName [09:45:17]name=ofd_packets/00103857 [09:45:17]NVStorageSaveData ofd_packets/00103857 [09:45:17]File name is /storage/ofd_packets/00103857 [09:45:17]Write 301 bytes [09:45:17]NVStorageSaveData done [09:45:17]OFDSenderStorePacket done [09:45:17]KKMCreateOFDPacket done [09:45:17]NVStorageSaveData kkm_last_timestamp [09:45:17]File name is /storage/kkm_last_timestamp [09:45:17]Write 4 bytes [09:45:17]NVStorageSaveData done [09:45:17]ExternCall_PrintAddStr [09:45:17]wPrintStart [09:45:17]Write to MH i2c: 01 00 00 52 09 5B [09:45:17]Write i2c OK [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: 01 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: 01 07 00 [09:45:17]MH_I2C_Read... [09:45:17]Read from MH i2c: 01 07 00 52 09 00 00 00 00 00 FF 0F 70 [09:45:17]RasterBufferAndPrint [09:45:17]line Счет N : (1)673179 [09:45:17]line ИНН: 02508201610067 [09:45:17]line Контрольно-Кассовый Чек [09:45:17]line ПРОДАЖА [09:45:17]line ТРК (МРК, ГНК) : 42 [09:45:17]line Товар: 2710124130 [09:45:17]line Аи-92-К-5 [09:45:17]line 15.070 * 66.40 [09:45:17]line = 1000.65 [09:45:17]line НДС 12% НСП 1% [09:45:17]line > о реализуемом товаре [09:45:17]line ОКРУГЛЕНИЕ: -0.65 [09:45:17]line ИТОГО: 1000.00 [09:45:17]line Внесено: 1000.00 [09:45:17]line СДАЧА: 0.00 [09:45:17]line НСП 1% : 8.85 [09:45:17]line НДС 12% : 106.26 [09:45:17]line Наличными: 1000.00 [09:45:17]line Безнал.: 0.00 [09:45:17]line Место: АЗС № 120 "Партнер Нефть" [09:45:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:45:17]line СНО: Общий режим [09:45:17]line Чек 42 20.06.2024 09:45 [09:45:17]line Смена: 354 ФФД: 1.0 [09:45:17]line ЗНМ: 0300000164 [09:45:17]line РНМ: 0000000000092785 [09:45:17]line Версия ККМ: 001 [09:45:17]line ФМ: 0000000000875093 [09:45:17]line ФД: 103857 [09:45:17]line ФПД: 116242159382643 [09:45:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T094517&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103857&fm=116242159382643&tin=02508201610067®Number=0000000000092785&sum=100000 [09:45:18]OFD Sender: Processing packet 103857 [packets to send 17, broken 16] [09:45:18]ProducePacketName [09:45:18]name=ofd_packets/00103857 [09:45:18]OFD Sender: To server: pG, [09:45:18]CommunicateWithHost lk.salyk.kg:30040 [09:45:18]ConnectInit lk.salyk.kg [09:45:18]written 0, free lines is 4095 [09:45:18]Connected sock=10 [09:45:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 02 C1 07 01 CD BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 2D FA 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 95 01 00 35 04 06 00 69 B8 BC 9E 30 73 D1 C3 A6 CE 39 67 A5 CE [09:45:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D3 51 47 00 55 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B1 95 01 00 F4 03 04 00 B3 A0 73 66 B6 04 01 00 00 B9 85 9B 52 15 16 51 15 [09:45:18]CommunicateWithHost err = 0 [09:45:18]CheckOFDResponse [09:45:18]1017 (14) - 77093643461234 [09:45:18]1041 (16) - 0000000000875093 [09:45:18]1040 (4) - 103857 [09:45:18]1012 (4) - 20.06.2024 03:23 [09:45:18]1206 (1) - 0 [09:45:18]OFD Sender: Remove packet 103857 [09:45:18]ProducePacketName [09:45:18]name=ofd_packets/00103857 [09:45:18]NVStorageDeleteData [09:45:18]Write to MH i2c: 01 00 00 7D 09 86 [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 07 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 07 00 7D 09 00 00 00 00 00 EF 0C 88 [09:45:18]RasterBufferAndPrint [09:45:18]line [09:45:18]line [09:45:18]line [09:45:18]line [09:45:18]line [09:45:18]written 0, free lines is 3317 [09:45:18]MH_Cut [09:45:18]Write to MH i2c: D1 01 00 84 09 01 5F [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: D1 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: D1 01 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: D1 01 00 84 09 00 5E [09:45:18]Write to MH i2c: 01 00 00 85 09 8E [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]OFD Sender: No OFD packet to send [09:45:19]*** Cut start [09:45:19]*** Partial cut [09:45:19]*** CUTSNS_PIN = 1 [09:45:19]*** CUTSNS_PIN = 0 [09:45:19]*** Brake cut motor [09:45:19]Read from MH i2c: 01 [09:45:19]MH_I2C_Read... [09:45:19]*** Stop cut motor [09:45:19]*** Cut end [09:45:19]Read from MH i2c: 01 07 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: 01 07 00 85 09 00 00 00 00 00 FF 0F A3 [09:45:19]process_action close_receipt done [09:45:19]requested_data is exist [09:45:19]produce_requested_data [09:45:19]requested_item fm.sn is exist - process it [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 11 00 00 [09:45:19]Write to MH i2c: E2 08 00 86 09 80 11 00 00 00 00 00 00 09 [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 17 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 17 00 86 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5C [09:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:45:19]wFMCommunicate OK [09:45:19]requested_item fd.num is exist - process it [09:45:19]SAM_PROTO_GetFieldsCounters [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 13 00 00 [09:45:19]Write to MH i2c: E2 08 00 87 09 80 13 00 00 00 00 00 00 0C [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:20]Read from MH i2c: E2 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 62 00 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 62 00 87 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B1 95 01 00 0E 04 04 00 62 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 5B [09:45:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B1 95 01 00 0E 04 04 00 62 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:45:20]wFMCommunicate OK [09:45:20]SAM_PROTO_GetFieldsCounters done [09:45:20]requested_item shift.num is exist - process it [09:45:20]requested_item shift.opened is exist - process it [09:45:20]req_shift_opened [09:45:20]FM_GetShiftState [09:45:20]SAM_PROTO_GetShiftState [09:45:20]wFMCommunicate request_size=4 [09:45:20]MH_SAM_APDU [09:45:20]CAPDU: 80 13 01 00 [09:45:20]Write to MH i2c: E2 08 00 88 09 80 13 01 00 00 00 00 00 0E [09:45:20]Write i2c OK [09:45:20]MH_I2C_Read... [09:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:20]Read from MH i2c: E2 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 0E 00 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 0E 00 88 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5D [09:45:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:45:20]wFMCommunicate OK [09:45:20]SAM_PROTO_GetShiftState done [09:45:20]FM_GetShiftState done [09:45:20]req_shift_opened done [09:45:20]requested_item shift.open_date is exist - process it [09:45:20]req_shift_open_date [09:45:20]req_shift_open_date done [09:45:20]produce_requested_data done [09:45:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103857,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:45:20]process_action_free close_receipt [09:45:20]json_value_free [09:45:20]json_value_free done [09:45:20]process_json_proto returns [09:45:20]Send response to host [09:45:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103857,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:45:20]free response buf [09:45:20]execute_script done [09:45:20]execute_script returns [09:45:20]free content buf [09:45:20]Sock 9.Close socket [09:45:20]Sock 9.Thread stoped [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:35]accept exits with 7 [09:51:35]New connection [09:51:35]New thread 3067063652 created [09:51:35]Thread 3067207012 joined [09:51:35]Waiting for new connection... [09:51:35] Sock 7.Parse request [09:51:35]Sock 7.Check first char [09:51:35]Sock 7.First char is OK [09:51:35]request: POST /json_proto HTTP/1.0 [09:51:35]Method: POST [09:51:35]URL: /json_proto [09:51:35]Method is POST - this is cgi request [09:51:35]url: /json_proto [09:51:35]query_string will be loaded in cgi processing [09:51:35]execute_cgi json_proto POST (null) [09:51:35]execute_cgi path=json_proto method=POST [09:51:35]POST find Content-Length [09:51:35]Host: 172.17.38.133:8080 [09:51:35]Content-Length: 819 [09:51:35]Content-Type: application/json [09:51:35] [09:51:35]POST finish read [09:51:35]Found Content-Length = 819 [09:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673180", "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" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:35]execute_script... [09:51: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)673180", "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" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:35]POST & json_proto [09:51:35]process_json_proto [09:51:35]json parsed OK: [09:51:35]protocol is kg_v1.0 [09:51:35]action value=close_receipt [09:51:35]process_action close_receipt [09:51:35]cmd_close_receipt [09:51:35]MH_GetDate [09:51:35]Write to MH i2c: F0 00 00 89 09 81 [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 09 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 09 00 89 09 00 A8 FB 73 66 BD 8F 7C 64 32 [09:51:35]GetLastDocTimeStamp 1718876717 [09:51:35]current date 1718877096 [09:51:35]FM_GetShiftState [09:51:35]SAM_PROTO_GetShiftState [09:51:35]wFMCommunicate request_size=4 [09:51:35]MH_SAM_APDU [09:51:35]CAPDU: 80 13 01 00 [09:51:35]Write to MH i2c: E2 08 00 8A 09 80 13 01 00 00 00 00 00 10 [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:35]Read from MH i2c: E2 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 8A 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5F [09:51:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:51:35]wFMCommunicate OK [09:51:35]SAM_PROTO_GetShiftState done [09:51:35]FM_GetShiftState done [09:51:35]opened in 1718843124 [09:51:35]opened+sec_in_day 1718929524 [09:51:35]quantity*price = 150017 [09:51:35]sum+1 = 150018 [09:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.17 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 0.00 Безнал.: 1500.17 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 43 20.06.2024 09:51 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103858 ФПД: 236247259341815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095136&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103858&fm=236247259341815&tin=02508201610067®Number=0000000000092785&sum=150017 [09:51:36]StoreToDocumentArchive [09:51:36]shift 354 fd 103858 [09:51:36]save to /storage/0354/doc_00103858 [09:51:36]save last doc name /storage/0354/doc_00103858 to /storage/kkm_last_doc_name [09:51:36]save OK [09:51:36]Clear old archive folders... [09:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:36]tlvbuf is 00828A90 [09:51:36]SAM_PROTO_ClearQueue [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 09 00 00 [09:51:36]Write to MH i2c: E2 08 00 97 09 80 09 00 00 00 00 00 00 12 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 97 09 00 90 00 14 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_ClearQueue done [09:51:36]KKMCreateOFDPacket [09:51:36]OFDProtocolAddRootSTLVToBuf [09:51:36]FM_MakeSignedData [09:51:36]FM_MakeSignedData [09:51:36]SAM_PROTO_SignData [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 01 02 [09:51:36]Write to MH i2c: E2 08 00 98 09 80 0D 01 02 00 00 00 00 1A [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 98 09 00 90 00 15 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=255 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A8 FB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 95 01 00 35 04 06 00 D6 [09:51:36]Write to MH i2c: E2 02 01 99 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A8 FB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 95 01 00 35 04 06 00 D6 00 00 80 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 99 09 00 90 00 16 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=10 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 02 02 05 DD 99 F8 E3 F7 [09:51:36]Write to MH i2c: E2 0D 00 9A 09 80 0D 02 02 05 00 DD 99 F8 E3 F7 00 00 6F [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 9A 09 00 90 00 17 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 03 02 [09:51:36]Write to MH i2c: E2 08 00 9B 09 80 0D 03 02 00 00 00 00 1F [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0B 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0B 00 9B 09 00 CA D8 F9 2C 20 10 3A 6F 90 00 C0 [09:51:36]RAPDU: CA D8 F9 2C 20 10 3A 6F 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_SignData done [09:51:36]FM_MakeSignedData done [09:51:36]CreateOFDProtocolMessage [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 11 00 00 [09:51:36]Write to MH i2c: E2 08 00 9C 09 80 11 00 00 00 00 00 00 1F [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 17 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 17 00 9C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 72 [09:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:51:36]wFMCommunicate OK [09:51:36]CreateOFDProtocolMessage done [09:51:36]OFDSenderStorePacket 103858 [09:51:36]StoreOFDPacket docnum=103858 [09:51:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3E D0 07 01 AC 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A8 FB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 95 01 00 35 04 06 00 D6 DD 99 F8 E3 F7 CA D8 F9 2C 20 10 3A 6F [09:51:36]CheckFolder [09:51:36]dirname=/storage/ofd_packets [09:51:36]CheckFolder done [09:51:36]ProducePacketName [09:51:36]name=ofd_packets/00103858 [09:51:36]NVStorageSaveData ofd_packets/00103858 [09:51:36]File name is /storage/ofd_packets/00103858 [09:51:36]Write 301 bytes [09:51:36]NVStorageSaveData done [09:51:36]OFDSenderStorePacket done [09:51:36]KKMCreateOFDPacket done [09:51:36]NVStorageSaveData kkm_last_timestamp [09:51:36]File name is /storage/kkm_last_timestamp [09:51:36]Write 4 bytes [09:51:36]NVStorageSaveData done [09:51:36]ExternCall_PrintAddStr [09:51:36]wPrintStart [09:51:36]Write to MH i2c: 01 00 00 9D 09 A6 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 07 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: 01 07 00 9D 09 00 00 00 00 00 FF 0F BB [09:51:36]RasterBufferAndPrint [09:51:36]line Счет N : (1)673180 [09:51:36]line ИНН: 02508201610067 [09:51:36]line Контрольно-Кассовый Чек [09:51:36]line ПРОДАЖА [09:51:36]line ТРК (МРК, ГНК) : 41 [09:51:36]line Товар: 2710124500 [09:51:36]line Аи-95-К-5 [09:51:36]line 20.300 * 73.90 [09:51:36]line = 1500.17 [09:51:36]line НДС 12% НСП 1% [09:51:36]line > о реализуемом товаре [09:51:36]line ИТОГО: 1500.17 [09:51:36]line НСП 1% : 13.28 [09:51:36]line НДС 12% : 159.31 [09:51:36]line Наличными: 0.00 [09:51:36]line Безнал.: 1500.17 [09:51:36]line Место: АЗС № 120 "Партнер Нефть" [09:51:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:51:36]line СНО: Общий режим [09:51:36]line Чек 43 20.06.2024 09:51 [09:51:36]line Смена: 354 ФФД: 1.0 [09:51:36]line ЗНМ: 0300000164 [09:51:36]line РНМ: 0000000000092785 [09:51:36]line Версия ККМ: 001 [09:51:36]line Платежная система: Бакай Банк [09:51:36]line ФМ: 0000000000875093 [09:51:36]line ФД: 103858 [09:51:36]line ФПД: 236247259341815 [09:51:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095136&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103858&fm=236247259341815&tin=02508201610067®Number=0000000000092785&sum=150017 [09:51:37]written 0, free lines is 4095 [09:51:37]OFD Sender: Processing packet 103858 [packets to send 17, broken 16] [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00103858 [09:51:37]OFD Sender: To server: pG, [09:51:37]CommunicateWithHost lk.salyk.kg:30040 [09:51:37]ConnectInit lk.salyk.kg [09:51:37]Connected sock=10 [09:51:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3E D0 07 01 AC 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 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 01 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 3B 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 A8 FB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B2 95 01 00 35 04 06 00 D6 DD 99 F8 E3 F7 CA D8 F9 2C 20 10 3A 6F [09:51:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BD D2 47 00 2C 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 35 30 39 33 10 04 04 00 B2 95 01 00 F4 03 04 00 2E A2 73 66 B6 04 01 00 00 4B 77 73 42 B0 55 5A 87 [09:51:37]CommunicateWithHost err = 0 [09:51:37]CheckOFDResponse [09:51:37]1017 (14) - 77093643461234 [09:51:37]1041 (16) - 0000000000875093 [09:51:37]1040 (4) - 103858 [09:51:37]1012 (4) - 20.06.2024 03:29 [09:51:37]1206 (1) - 0 [09:51:37]OFD Sender: Remove packet 103858 [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00103858 [09:51:37]NVStorageDeleteData [09:51:37]Write to MH i2c: 01 00 00 C7 09 D0 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 C7 09 00 00 00 00 00 E4 0C C7 [09:51:37]RasterBufferAndPrint [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]line [09:51:37]written 0, free lines is 3307 [09:51:37]MH_Cut [09:51:37]Write to MH i2c: D1 01 00 CE 09 01 A9 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 01 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: D1 01 00 CE 09 00 A8 [09:51:37]Write to MH i2c: 01 00 00 CF 09 D8 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:38]OFD Sender: No OFD packet to send [09:51:38]*** Cut start [09:51:38]*** Partial cut [09:51:38]*** CUTSNS_PIN = 1 [09:51:38]*** CUTSNS_PIN = 0 [09:51:38]*** Brake cut motor [09:51:38]Read from MH i2c: 01 [09:51:38]MH_I2C_Read... [09:51:38]*** Stop cut motor [09:51:38]*** Cut end [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 CF 09 00 00 00 00 00 FF 0F ED [09:51:38]process_action close_receipt done [09:51:38]requested_data is exist [09:51:38]produce_requested_data [09:51:38]requested_item fm.sn is exist - process it [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 D0 09 80 11 00 00 00 00 00 00 53 [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 D0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [09:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:51:38]wFMCommunicate OK [09:51:38]requested_item fd.num is exist - process it [09:51:38]SAM_PROTO_GetFieldsCounters [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 13 00 00 [09:51:38]Write to MH i2c: E2 08 00 D1 09 80 13 00 00 00 00 00 00 56 [09:51:38]Write i2c OK [09:51:38]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 D1 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B2 95 01 00 0E 04 04 00 62 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 A9 [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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B2 95 01 00 0E 04 04 00 62 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: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 D2 09 80 13 01 00 00 00 00 00 58 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0E 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0E 00 D2 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A7 [09:51:39]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_GetShiftState done [09:51:39]FM_GetShiftState done [09:51:39]req_shift_opened done [09:51:39]requested_item shift.open_date is exist - process it [09:51:39]req_shift_open_date [09:51:39]req_shift_open_date done [09:51:39]produce_requested_data done [09:51:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103858,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:51:39]process_action_free close_receipt [09:51:39]json_value_free [09:51:39]json_value_free done [09:51:39]process_json_proto returns [09:51:39]Send response to host [09:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103858,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:51:39]free response buf [09:51:39]execute_script done [09:51:39]execute_script returns [09:51:39]free content buf [09:51:39]Sock 7.Close socket [09:51:39]Sock 7.Thread stoped [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:55]accept exits with 9 [09:51:55]New connection [09:51:55]New thread 3067207012 created [09:51:55]Thread 3067063652 joined [09:51:55]Waiting for new connection... [09:51:55] Sock 9.Parse request [09:51:55]Sock 9.Check first char [09:51:55]Sock 9.First char is OK [09:51:55]request: POST /json_proto HTTP/1.0 [09:51:55]Method: POST [09:51:55]URL: /json_proto [09:51:55]Method is POST - this is cgi request [09:51:55]url: /json_proto [09:51:55]query_string will be loaded in cgi processing [09:51:55]execute_cgi json_proto POST (null) [09:51:55]execute_cgi path=json_proto method=POST [09:51:55]POST find Content-Length [09:51:55]Host: 172.17.38.133:8080 [09:51:55]Content-Length: 682 [09:51:55]Content-Type: application/json [09:51:55] [09:51:55]POST finish read [09:51:55]Found Content-Length = 682 [09:51:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 33.140, "sum" : 2200.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:55]execute_script... [09:51: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)673181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 33.140, "sum" : 2200.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:55]POST & json_proto [09:51:55]process_json_proto [09:51:55]json parsed OK: [09:51:55]protocol is kg_v1.0 [09:51:55]action value=close_receipt [09:51:55]process_action close_receipt [09:51:55]cmd_close_receipt [09:51:55]MH_GetDate [09:51:55]Write to MH i2c: F0 00 00 D3 09 CB [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: F0 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: F0 09 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: F0 09 00 D3 09 00 BC FB 73 66 BD 8F 7C 64 90 [09:51:55]GetLastDocTimeStamp 1718877096 [09:51:55]current date 1718877116 [09:51:55]FM_GetShiftState [09:51:55]SAM_PROTO_GetShiftState [09:51:55]wFMCommunicate request_size=4 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 13 01 00 [09:51:55]Write to MH i2c: E2 08 00 D4 09 80 13 01 00 00 00 00 00 5A [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 0E 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 0E 00 D4 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A9 [09:51:55]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:51:55]wFMCommunicate OK [09:51:55]SAM_PROTO_GetShiftState done [09:51:55]FM_GetShiftState done [09:51:55]opened in 1718843124 [09:51:55]opened+sec_in_day 1718929524 [09:51:55]quantity*price = 220049 [09:51:55]sum+1 = 220051 [09:51:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.68 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 44 20.06.2024 09:51 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103859 ФПД: 120042056798987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095156&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103859&fm=120042056798987&tin=02508201610067®Number=0000000000092785&sum=220000 [09:51:56]StoreToDocumentArchive [09:51:56]shift 354 fd 103859 [09:51:56]save to /storage/0354/doc_00103859 [09:51:56]save last doc name /storage/0354/doc_00103859 to /storage/kkm_last_doc_name [09:51:56]save OK [09:51:56]Clear old archive folders... [09:51:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:56]tlvbuf is 0083E440 [09:51:56]SAM_PROTO_ClearQueue [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 09 00 00 [09:51:56]Write to MH i2c: E2 08 00 E1 09 80 09 00 00 00 00 00 00 5C [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 E1 09 00 90 00 5E [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]SAM_PROTO_ClearQueue done [09:51:56]KKMCreateOFDPacket [09:51:56]OFDProtocolAddRootSTLVToBuf [09:51:56]FM_MakeSignedData [09:51:56]FM_MakeSignedData [09:51:56]SAM_PROTO_SignData [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 01 02 [09:51:56]Write to MH i2c: E2 08 00 E2 09 80 0D 01 02 00 00 00 00 64 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 E2 09 00 90 00 5F [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]wFMCommunicate request_size=255 [09:51:56]MH_SAM_APDU [09:51: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 74 81 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 BC FB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 95 01 00 35 04 06 00 6D [09:51:56]Write to MH i2c: E2 02 01 E3 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 81 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 BC FB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 95 01 00 35 04 06 00 6D 00 00 F8 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 E3 09 00 90 00 60 [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]wFMCommunicate request_size=10 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 02 02 05 2D 78 27 53 0B [09:51:56]Write to MH i2c: E2 0D 00 E4 09 80 0D 02 02 05 00 2D 78 27 53 0B 00 00 9B [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 E4 09 00 90 00 61 [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 03 02 [09:51:56]Write to MH i2c: E2 08 00 E5 09 80 0D 03 02 00 00 00 00 69 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0B 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0B 00 E5 09 00 B9 4C 85 76 DE 25 EF 84 90 00 E0 [09:51:56]RAPDU: B9 4C 85 76 DE 25 EF 84 90 00 [09:51:56]wFMCommunicate OK [09:51:56]SAM_PROTO_SignData done [09:51:56]FM_MakeSignedData done [09:51:56]CreateOFDProtocolMessage [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 11 00 00 [09:51:56]Write to MH i2c: E2 08 00 E6 09 80 11 00 00 00 00 00 00 69 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 17 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 17 00 E6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BC [09:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:51:56]wFMCommunicate OK [09:51:56]CreateOFDProtocolMessage done [09:51:56]OFDSenderStorePacket 103859 [09:51:56]StoreOFDPacket docnum=103859 [09:51:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7E 0C 07 01 C9 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 81 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 BC FB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 95 01 00 35 04 06 00 6D 2D 78 27 53 0B B9 4C 85 76 DE 25 EF 84 [09:51:56]CheckFolder [09:51:56]dirname=/storage/ofd_packets [09:51:56]CheckFolder done [09:51:56]ProducePacketName [09:51:56]name=ofd_packets/00103859 [09:51:56]NVStorageSaveData ofd_packets/00103859 [09:51:56]File name is /storage/ofd_packets/00103859 [09:51:56]Write 301 bytes [09:51:56]NVStorageSaveData done [09:51:56]OFDSenderStorePacket done [09:51:56]KKMCreateOFDPacket done [09:51:56]NVStorageSaveData kkm_last_timestamp [09:51:56]File name is /storage/kkm_last_timestamp [09:51:56]Write 4 bytes [09:51:56]NVStorageSaveData done [09:51:56]ExternCall_PrintAddStr [09:51:56]wPrintStart [09:51:56]Write to MH i2c: 01 00 00 E7 09 F0 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 E7 09 00 00 00 00 00 FF 0F 05 [09:51:56]RasterBufferAndPrint [09:51:56]line Счет N : (1)673181 [09:51:56]line ИНН: 02508201610067 [09:51:56]line Контрольно-Кассовый Чек [09:51:56]line ПРОДАЖА [09:51:56]line ТРК (МРК, ГНК) : 32 [09:51:56]line Товар: 2710124130 [09:51:56]line Аи-92-К-5 [09:51:56]line 33.140 * 66.40 [09:51:56]line = 2200.50 [09:51:56]line НДС 12% НСП 1% [09:51:56]line > о реализуемом товаре [09:51:56]line ОКРУГЛЕНИЕ: -0.50 [09:51:56]line ИТОГО: 2200.00 [09:51:56]line Внесено: 2200.00 [09:51:56]line СДАЧА: 0.00 [09:51:56]line НСП 1% : 19.47 [09:51:56]line НДС 12% : 233.68 [09:51:56]line Наличными: 2200.00 [09:51:56]line Безнал.: 0.00 [09:51:56]line Место: АЗС № 120 "Партнер Нефть" [09:51:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:51:56]line СНО: Общий режим [09:51:56]line Чек 44 20.06.2024 09:51 [09:51:56]line Смена: 354 ФФД: 1.0 [09:51:56]line ЗНМ: 0300000164 [09:51:56]line РНМ: 0000000000092785 [09:51:56]line Версия ККМ: 001 [09:51:56]line ФМ: 0000000000875093 [09:51:56]line ФД: 103859 [09:51:56]line ФПД: 120042056798987 [09:51:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095156&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103859&fm=120042056798987&tin=02508201610067®Number=0000000000092785&sum=220000 [09:51:57]OFD Sender: Processing packet 103859 [packets to send 17, broken 16] [09:51:57]ProducePacketName [09:51:57]name=ofd_packets/00103859 [09:51:57]OFD Sender: To server: pG, [09:51:57]CommunicateWithHost lk.salyk.kg:30040 [09:51:57]ConnectInit lk.salyk.kg [09:51:57]written 0, free lines is 4095 [09:51:57]Connected sock=10 [09:51:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7E 0C 07 01 C9 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 81 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 BC FB 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 95 01 00 35 04 06 00 6D 2D 78 27 53 0B B9 4C 85 76 DE 25 EF 84 [09:51:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7D 8D 47 00 4A 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B3 95 01 00 F4 03 04 00 42 A2 73 66 B6 04 01 00 00 E9 43 BD BB F3 4C CA 25 [09:51:57]CommunicateWithHost err = 0 [09:51:57]CheckOFDResponse [09:51:57]1017 (14) - 77093643461234 [09:51:57]1041 (16) - 0000000000875093 [09:51:57]1040 (4) - 103859 [09:51:57]1012 (4) - 20.06.2024 03:30 [09:51:57]1206 (1) - 0 [09:51:57]OFD Sender: Remove packet 103859 [09:51:57]ProducePacketName [09:51:57]name=ofd_packets/00103859 [09:51:57]NVStorageDeleteData [09:51:57]Write to MH i2c: 01 00 00 12 0A 1C [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: 01 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: 01 07 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 E2 0C 11 [09:51:57]RasterBufferAndPrint [09:51:57]line [09:51:57]line [09:51:57]line [09:51:57]line [09:51:57]line [09:51:57]written 0, free lines is 3304 [09:51:57]MH_Cut [09:51:57]Write to MH i2c: D1 01 00 19 0A 01 F5 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: D1 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: D1 01 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: D1 01 00 19 0A 00 F4 [09:51:57]Write to MH i2c: 01 00 00 1A 0A 24 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:58]OFD Sender: No OFD packet to send [09:51:58]*** Cut start [09:51:58]*** Partial cut [09:51:58]*** CUTSNS_PIN = 1 [09:51:58]*** CUTSNS_PIN = 0 [09:51:58]*** Brake cut motor [09:51:59]Read from MH i2c: 01 [09:51:59]MH_I2C_Read... [09:51:59]*** Stop cut motor [09:51:59]*** Cut end [09:51:59]Read from MH i2c: 01 07 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: 01 07 00 1A 0A 00 00 00 00 00 FF 0F 39 [09:51:59]process_action close_receipt done [09:51:59]requested_data is exist [09:51:59]produce_requested_data [09:51:59]requested_item fm.sn is exist - process it [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 11 00 00 [09:51:59]Write to MH i2c: E2 08 00 1B 0A 80 11 00 00 00 00 00 00 9F [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 17 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 17 00 1B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F2 [09:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:51:59]wFMCommunicate OK [09:51:59]requested_item fd.num is exist - process it [09:51:59]SAM_PROTO_GetFieldsCounters [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 13 00 00 [09:51:59]Write to MH i2c: E2 08 00 1C 0A 80 13 00 00 00 00 00 00 A2 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 62 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 62 00 1C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B3 95 01 00 0E 04 04 00 62 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 F9 [09:51:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B3 95 01 00 0E 04 04 00 62 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:51:59]wFMCommunicate OK [09:51:59]SAM_PROTO_GetFieldsCounters done [09:51:59]requested_item shift.num is exist - process it [09:51:59]requested_item shift.opened is exist - process it [09:51:59]req_shift_opened [09:51:59]FM_GetShiftState [09:51:59]SAM_PROTO_GetShiftState [09:51:59]wFMCommunicate request_size=4 [09:51:59]MH_SAM_APDU [09:51:59]CAPDU: 80 13 01 00 [09:51:59]Write to MH i2c: E2 08 00 1D 0A 80 13 01 00 00 00 00 00 A4 [09:51:59]Write i2c OK [09:51:59]MH_I2C_Read... [09:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:59]Read from MH i2c: E2 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 0E 00 [09:51:59]MH_I2C_Read... [09:51:59]Read from MH i2c: E2 0E 00 1D 0A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F3 [09:51:59]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:51:59]wFMCommunicate OK [09:51:59]SAM_PROTO_GetShiftState done [09:51:59]FM_GetShiftState done [09:51:59]req_shift_opened done [09:51:59]requested_item shift.open_date is exist - process it [09:51:59]req_shift_open_date [09:51:59]req_shift_open_date done [09:51:59]produce_requested_data done [09:51:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103859,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:51:59]process_action_free close_receipt [09:51:59]json_value_free [09:51:59]json_value_free done [09:51:59]process_json_proto returns [09:51:59]Send response to host [09:51:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103859,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:51:59]free response buf [09:51:59]execute_script done [09:51:59]execute_script returns [09:51:59]free content buf [09:51:59]Sock 9.Close socket [09:51:59]Sock 9.Thread stoped [09:52:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]accept exits with 7 [09:55:43]New connection [09:55:43]New thread 3067063652 created [09:55:43]Thread 3067207012 joined [09:55:43]Waiting for new connection... [09:55:43] Sock 7.Parse request [09:55:43]Sock 7.Check first char [09:55:43]Sock 7.First char is OK [09:55:43]request: POST /json_proto HTTP/1.0 [09:55:43]Method: POST [09:55:43]URL: /json_proto [09:55:43]Method is POST - this is cgi request [09:55:43]url: /json_proto [09:55:43]query_string will be loaded in cgi processing [09:55:43]execute_cgi json_proto POST (null) [09:55:43]execute_cgi path=json_proto method=POST [09:55:43]POST find Content-Length [09:55:43]Host: 172.17.38.133:8080 [09:55:43]Content-Length: 682 [09:55:43]Content-Type: application/json [09:55:43] [09:55:43]POST finish read [09:55:43]Found Content-Length = 682 [09:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [09:55:43]execute_script... [09:55: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)673182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [09:55:43]POST & json_proto [09:55:43]process_json_proto [09:55:43]json parsed OK: [09:55:43]protocol is kg_v1.0 [09:55:43]action value=close_receipt [09:55:43]process_action close_receipt [09:55:43]cmd_close_receipt [09:55:43]MH_GetDate [09:55:43]Write to MH i2c: F0 00 00 1E 0A 17 [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: F0 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: F0 09 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: F0 09 00 1E 0A 00 A0 FC 73 66 BD 8F 7C 64 C1 [09:55:43]GetLastDocTimeStamp 1718877116 [09:55:43]current date 1718877344 [09:55:43]FM_GetShiftState [09:55:43]SAM_PROTO_GetShiftState [09:55:43]wFMCommunicate request_size=4 [09:55:43]MH_SAM_APDU [09:55:43]CAPDU: 80 13 01 00 [09:55:43]Write to MH i2c: E2 08 00 1F 0A 80 13 01 00 00 00 00 00 A6 [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:43]Read from MH i2c: E2 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 0E 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: E2 0E 00 1F 0A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F5 [09:55:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:55:43]wFMCommunicate OK [09:55:43]SAM_PROTO_GetShiftState done [09:55:43]FM_GetShiftState done [09:55:43]opened in 1718843124 [09:55:43]opened+sec_in_day 1718929524 [09:55:43]quantity*price = 150064 [09:55:43]sum+1 = 150065 [09:55:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 45 20.06.2024 09:55 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103860 ФПД: 218159845929583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095544&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103860&fm=218159845929583&tin=02508201610067®Number=0000000000092785&sum=150000 [09:55:44]StoreToDocumentArchive [09:55:44]shift 354 fd 103860 [09:55:44]save to /storage/0354/doc_00103860 [09:55:44]save last doc name /storage/0354/doc_00103860 to /storage/kkm_last_doc_name [09:55:44]save OK [09:55:44]Clear old archive folders... [09:55:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:44]tlvbuf is 007FDDD0 [09:55:44]SAM_PROTO_ClearQueue [09:55:44]wFMCommunicate request_size=4 [09:55:44]MH_SAM_APDU [09:55:44]CAPDU: 80 09 00 00 [09:55:44]Write to MH i2c: E2 08 00 2C 0A 80 09 00 00 00 00 00 00 A8 [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 [09:55:44]MH_I2C_Read... [09:55:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:44]Read from MH i2c: E2 03 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [09:55:44]RAPDU: 90 00 [09:55:44]wFMCommunicate OK [09:55:44]SAM_PROTO_ClearQueue done [09:55:44]KKMCreateOFDPacket [09:55:44]OFDProtocolAddRootSTLVToBuf [09:55:44]FM_MakeSignedData [09:55:44]FM_MakeSignedData [09:55:44]SAM_PROTO_SignData [09:55:44]wFMCommunicate request_size=4 [09:55:44]MH_SAM_APDU [09:55:44]CAPDU: 80 0D 01 02 [09:55:44]Write to MH i2c: E2 08 00 2D 0A 80 0D 01 02 00 00 00 00 B0 [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:44]Read from MH i2c: E2 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 03 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 03 00 2D 0A 00 90 00 AB [09:55:44]RAPDU: 90 00 [09:55:44]wFMCommunicate OK [09:55:44]wFMCommunicate request_size=255 [09:55:44]MH_SAM_APDU [09:55:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 2D 00 00 00 F4 03 04 00 A0 FC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 95 01 00 35 04 06 00 C6 [09:55:44]Write to MH i2c: E2 02 01 2E 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 2D 00 00 00 F4 03 04 00 A0 FC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 95 01 00 35 04 06 00 C6 00 00 23 [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:44]Read from MH i2c: E2 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 03 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 03 00 2E 0A 00 90 00 AC [09:55:44]RAPDU: 90 00 [09:55:44]wFMCommunicate OK [09:55:44]wFMCommunicate request_size=10 [09:55:44]MH_SAM_APDU [09:55:44]CAPDU: 80 0D 02 02 05 6A 4C 1E F2 6F [09:55:44]Write to MH i2c: E2 0D 00 2F 0A 80 0D 02 02 05 00 6A 4C 1E F2 6F 00 00 F2 [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:44]Read from MH i2c: E2 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 03 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 03 00 2F 0A 00 90 00 AD [09:55:44]RAPDU: 90 00 [09:55:44]wFMCommunicate OK [09:55:44]wFMCommunicate request_size=4 [09:55:44]MH_SAM_APDU [09:55:44]CAPDU: 80 0D 03 02 [09:55:44]Write to MH i2c: E2 08 00 30 0A 80 0D 03 02 00 00 00 00 B5 [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:44]Read from MH i2c: E2 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 0B 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 0B 00 30 0A 00 BF 69 F4 7E 3B 9B E0 CB 90 00 D1 [09:55:44]RAPDU: BF 69 F4 7E 3B 9B E0 CB 90 00 [09:55:44]wFMCommunicate OK [09:55:44]SAM_PROTO_SignData done [09:55:44]FM_MakeSignedData done [09:55:44]CreateOFDProtocolMessage [09:55:44]wFMCommunicate request_size=4 [09:55:44]MH_SAM_APDU [09:55:44]CAPDU: 80 11 00 00 [09:55:44]Write to MH i2c: E2 08 00 31 0A 80 11 00 00 00 00 00 00 B5 [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:44]Read from MH i2c: E2 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 17 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: E2 17 00 31 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [09:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:55:44]wFMCommunicate OK [09:55:44]CreateOFDProtocolMessage done [09:55:44]OFDSenderStorePacket 103860 [09:55:44]StoreOFDPacket docnum=103860 [09:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 62 A4 07 01 0E AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 2D 00 00 00 F4 03 04 00 A0 FC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 95 01 00 35 04 06 00 C6 6A 4C 1E F2 6F BF 69 F4 7E 3B 9B E0 CB [09:55:44]CheckFolder [09:55:44]dirname=/storage/ofd_packets [09:55:44]CheckFolder done [09:55:44]ProducePacketName [09:55:44]name=ofd_packets/00103860 [09:55:44]NVStorageSaveData ofd_packets/00103860 [09:55:44]File name is /storage/ofd_packets/00103860 [09:55:44]Write 301 bytes [09:55:44]NVStorageSaveData done [09:55:44]OFDSenderStorePacket done [09:55:44]KKMCreateOFDPacket done [09:55:44]NVStorageSaveData kkm_last_timestamp [09:55:44]File name is /storage/kkm_last_timestamp [09:55:44]Write 4 bytes [09:55:44]NVStorageSaveData done [09:55:44]ExternCall_PrintAddStr [09:55:44]wPrintStart [09:55:44]Write to MH i2c: 01 00 00 32 0A 3C [09:55:44]Write i2c OK [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: 01 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: 01 07 00 [09:55:44]MH_I2C_Read... [09:55:44]Read from MH i2c: 01 07 00 32 0A 00 00 00 00 00 FF 0F 51 [09:55:44]RasterBufferAndPrint [09:55:44]line Счет N : (1)673182 [09:55:44]line ИНН: 02508201610067 [09:55:44]line Контрольно-Кассовый Чек [09:55:44]line ПРОДАЖА [09:55:44]line ТРК (МРК, ГНК) : 42 [09:55:44]line Товар: 2710124130 [09:55:44]line Аи-92-К-5 [09:55:44]line 22.600 * 66.40 [09:55:44]line = 1500.64 [09:55:44]line НДС 12% НСП 1% [09:55:44]line > о реализуемом товаре [09:55:44]line ОКРУГЛЕНИЕ: -0.64 [09:55:44]line ИТОГО: 1500.00 [09:55:44]line Внесено: 1500.00 [09:55:44]line СДАЧА: 0.00 [09:55:44]line НСП 1% : 13.28 [09:55:44]line НДС 12% : 159.36 [09:55:44]line Наличными: 1500.00 [09:55:44]line Безнал.: 0.00 [09:55:44]line Место: АЗС № 120 "Партнер Нефть" [09:55:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [09:55:44]line СНО: Общий режим [09:55:44]line Чек 45 20.06.2024 09:55 [09:55:44]line Смена: 354 ФФД: 1.0 [09:55:44]line ЗНМ: 0300000164 [09:55:44]line РНМ: 0000000000092785 [09:55:44]line Версия ККМ: 001 [09:55:44]line ФМ: 0000000000875093 [09:55:44]line ФД: 103860 [09:55:44]line ФПД: 218159845929583 [09:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T095544&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103860&fm=218159845929583&tin=02508201610067®Number=0000000000092785&sum=150000 [09:55:45]OFD Sender: Processing packet 103860 [packets to send 17, broken 16] [09:55:45]ProducePacketName [09:55:45]name=ofd_packets/00103860 [09:55:45]OFD Sender: To server: pG, [09:55:45]CommunicateWithHost lk.salyk.kg:30040 [09:55:45]ConnectInit lk.salyk.kg [09:55:45]written 0, free lines is 4095 [09:55:45]Connected sock=10 [09:55:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 62 A4 07 01 0E AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 2D 00 00 00 F4 03 04 00 A0 FC 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B4 95 01 00 35 04 06 00 C6 6A 4C 1E F2 6F BF 69 F4 7E 3B 9B E0 CB [09:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 28 F0 47 00 B7 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 35 30 39 33 10 04 04 00 B4 95 01 00 F4 03 04 00 26 A3 73 66 B6 04 01 00 00 04 D9 A6 FF 06 FC F6 0B [09:55:45]CommunicateWithHost err = 0 [09:55:45]CheckOFDResponse [09:55:45]1017 (14) - 77093643461234 [09:55:45]1041 (16) - 0000000000875093 [09:55:45]1040 (4) - 103860 [09:55:45]1012 (4) - 20.06.2024 03:33 [09:55:45]1206 (1) - 0 [09:55:45]OFD Sender: Remove packet 103860 [09:55:45]ProducePacketName [09:55:45]name=ofd_packets/00103860 [09:55:45]NVStorageDeleteData [09:55:45]Write to MH i2c: 01 00 00 5D 0A 67 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 07 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 07 00 5D 0A 00 00 00 00 00 ED 0C 67 [09:55:45]RasterBufferAndPrint [09:55:45]line [09:55:45]line [09:55:45]line [09:55:45]line [09:55:45]line [09:55:45]written 0, free lines is 3315 [09:55:45]MH_Cut [09:55:45]Write to MH i2c: D1 01 00 64 0A 01 40 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: D1 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: D1 01 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: D1 01 00 64 0A 00 3F [09:55:45]Write to MH i2c: 01 00 00 65 0A 6F [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:46]OFD Sender: No OFD packet to send [09:55:46]*** Cut start [09:55:46]*** Partial cut [09:55:46]*** CUTSNS_PIN = 1 [09:55:46]*** CUTSNS_PIN = 0 [09:55:46]*** Brake cut motor [09:55:47]Read from MH i2c: 01 [09:55:47]MH_I2C_Read... [09:55:47]*** Stop cut motor [09:55:47]*** Cut end [09:55:47]Read from MH i2c: 01 07 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: 01 07 00 65 0A 00 00 00 00 00 FF 0F 84 [09:55:47]process_action close_receipt done [09:55:47]requested_data is exist [09:55:47]produce_requested_data [09:55:47]requested_item fm.sn is exist - process it [09:55:47]wFMCommunicate request_size=4 [09:55:47]MH_SAM_APDU [09:55:47]CAPDU: 80 11 00 00 [09:55:47]Write to MH i2c: E2 08 00 66 0A 80 11 00 00 00 00 00 00 EA [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:47]Read from MH i2c: E2 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 17 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 17 00 66 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3D [09:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [09:55:47]wFMCommunicate OK [09:55:47]requested_item fd.num is exist - process it [09:55:47]SAM_PROTO_GetFieldsCounters [09:55:47]wFMCommunicate request_size=4 [09:55:47]MH_SAM_APDU [09:55:47]CAPDU: 80 13 00 00 [09:55:47]Write to MH i2c: E2 08 00 67 0A 80 13 00 00 00 00 00 00 ED [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:47]Read from MH i2c: E2 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 62 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 62 00 67 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B4 95 01 00 0E 04 04 00 62 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 48 [09:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B4 95 01 00 0E 04 04 00 62 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:55:47]wFMCommunicate OK [09:55:47]SAM_PROTO_GetFieldsCounters done [09:55:47]requested_item shift.num is exist - process it [09:55:47]requested_item shift.opened is exist - process it [09:55:47]req_shift_opened [09:55:47]FM_GetShiftState [09:55:47]SAM_PROTO_GetShiftState [09:55:47]wFMCommunicate request_size=4 [09:55:47]MH_SAM_APDU [09:55:47]CAPDU: 80 13 01 00 [09:55:47]Write to MH i2c: E2 08 00 68 0A 80 13 01 00 00 00 00 00 EF [09:55:47]Write i2c OK [09:55:47]MH_I2C_Read... [09:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:47]Read from MH i2c: E2 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 0E 00 [09:55:47]MH_I2C_Read... [09:55:47]Read from MH i2c: E2 0E 00 68 0A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3E [09:55:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [09:55:47]wFMCommunicate OK [09:55:47]SAM_PROTO_GetShiftState done [09:55:47]FM_GetShiftState done [09:55:47]req_shift_opened done [09:55:47]requested_item shift.open_date is exist - process it [09:55:47]req_shift_open_date [09:55:47]req_shift_open_date done [09:55:47]produce_requested_data done [09:55:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103860,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [09:55:47]process_action_free close_receipt [09:55:47]json_value_free [09:55:47]json_value_free done [09:55:47]process_json_proto returns [09:55:47]Send response to host [09:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103860,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [09:55:47]free response buf [09:55:47]execute_script done [09:55:47]execute_script returns [09:55:47]free content buf [09:55:47]Sock 7.Close socket [09:55:47]Sock 7.Thread stoped [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:01]OFD Sender: No OFD packet to send [09:59:06]OFD Sender: No OFD packet to send [09:59:11]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:46]accept exits with 9 [10:02:46]New connection [10:02:46]New thread 3067207012 created [10:02:46]Thread 3067063652 joined [10:02:46]Waiting for new connection... [10:02:46] Sock 9.Parse request [10:02:46]Sock 9.Check first char [10:02:46]Sock 9.First char is OK [10:02:46]request: POST /json_proto HTTP/1.0 [10:02:46]Method: POST [10:02:46]URL: /json_proto [10:02:46]Method is POST - this is cgi request [10:02:46]url: /json_proto [10:02:46]query_string will be loaded in cgi processing [10:02:46]execute_cgi json_proto POST (null) [10:02:46]execute_cgi path=json_proto method=POST [10:02:46]POST find Content-Length [10:02:46]Host: 172.17.38.133:8080 [10:02:46]Content-Length: 1169 [10:02:46]Content-Type: application/json [10:02:46] [10:02:46]POST finish read [10:02:46]Found Content-Length = 1169 [10:02:46]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673183\u000A20.06.2024 09:40\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 19.510 x 66.40\u000A\u0418\u0422\u041E\u0413: 1295.46\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101713\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:46]execute_script... [10:02:46]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673183\u000A20.06.2024 09:40\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 19.510 x 66.40\u000A\u0418\u0422\u041E\u0413: 1295.46\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101713\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:46]POST & json_proto [10:02:46]process_json_proto [10:02:46]json parsed OK: [10:02:46]protocol is kg_v1.0 [10:02:46]action value=print_text [10:02:46]process_action print_text [10:02:46]cmd_print_text [10:02:46]ExternCall_PrintAddStr [10:02:46]wPrintStart [10:02:46]Write to MH i2c: 01 00 00 69 0A 73 [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: 01 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: 01 07 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: 01 07 00 69 0A 00 00 00 00 00 FF 0F 88 [10:02:46]RasterBufferAndPrint [10:02:46]line *****ТОВАРНЫЙ ЧЕК***** [10:02:46]line АЗС 120 [10:02:46]line Партнер нефть [10:02:46]line 02508201610067 [10:02:46]line Кассир : Дуйшенбиев А. [10:02:46]line Счет N : (1)673183 [10:02:46]line 20.06.2024 09:40 [10:02:46]line ПРОДАЖА [10:02:46]line ТРК (МРК, ГНК): 42 [10:02:46]line Вид ГСМ : 2710124130 [10:02:46]line Аи-92-К-5 [10:02:46]line 19.510 x 66.40 [10:02:46]line ИТОГ: 1295.46 [10:02:46]line Тип оплаты: Талоны: ТК ГПНА Online [10:02:46]line 30101713 [10:02:46]line ______________________ [10:02:46]line (подпись) [10:02:46]written 0, free lines is 4095 [10:02:46]Write to MH i2c: 01 00 00 7D 0A 87 [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: 01 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: 01 07 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: 01 07 00 7D 0A 00 00 00 00 00 12 0E AE [10:02:46]RasterBufferAndPrint [10:02:46]line [10:02:46]line [10:02:46]line [10:02:46]line [10:02:46]line [10:02:46]written 0, free lines is 3604 [10:02:46]MH_Cut [10:02:46]Write to MH i2c: D1 01 00 84 0A 01 60 [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: D1 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: D1 01 00 [10:02:46]MH_I2C_Read... [10:02:46]Read from MH i2c: D1 01 00 84 0A 00 5F [10:02:46]Write to MH i2c: 01 00 00 85 0A 8F [10:02:46]Write i2c OK [10:02:46]MH_I2C_Read... [10:02:47]*** Cut start [10:02:47]*** Partial cut [10:02:47]*** CUTSNS_PIN = 1 [10:02:47]*** CUTSNS_PIN = 0 [10:02:47]*** Brake cut motor [10:02:47]Read from MH i2c: 01 [10:02:47]MH_I2C_Read... [10:02:47]*** Stop cut motor [10:02:47]*** Cut end [10:02:47]Read from MH i2c: 01 07 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: 01 07 00 85 0A 00 00 00 00 00 FF 0F A4 [10:02:47]process_action print_text done [10:02:47]requested_data is exist [10:02:47]produce_requested_data [10:02:47]requested_item fm.sn is exist - process it [10:02:47]wFMCommunicate request_size=4 [10:02:47]MH_SAM_APDU [10:02:47]CAPDU: 80 11 00 00 [10:02:47]Write to MH i2c: E2 08 00 86 0A 80 11 00 00 00 00 00 00 0A [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:47]Read from MH i2c: E2 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 17 00 [10:02:47]MH_I2C_Read... [10:02:47]Read from MH i2c: E2 17 00 86 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5D [10:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:02:47]wFMCommunicate OK [10:02:47]requested_item fd.num is exist - process it [10:02:47]SAM_PROTO_GetFieldsCounters [10:02:47]wFMCommunicate request_size=4 [10:02:47]MH_SAM_APDU [10:02:47]CAPDU: 80 13 00 00 [10:02:47]Write to MH i2c: E2 08 00 87 0A 80 13 00 00 00 00 00 00 0D [10:02:47]Write i2c OK [10:02:47]MH_I2C_Read... [10:02:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:48]Read from MH i2c: E2 [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: E2 62 00 [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: E2 62 00 87 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B4 95 01 00 0E 04 04 00 62 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 68 [10:02:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B4 95 01 00 0E 04 04 00 62 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 [10:02:48]wFMCommunicate OK [10:02:48]SAM_PROTO_GetFieldsCounters done [10:02:48]requested_item shift.num is exist - process it [10:02:48]requested_item shift.opened is exist - process it [10:02:48]req_shift_opened [10:02:48]FM_GetShiftState [10:02:48]SAM_PROTO_GetShiftState [10:02:48]wFMCommunicate request_size=4 [10:02:48]MH_SAM_APDU [10:02:48]CAPDU: 80 13 01 00 [10:02:48]Write to MH i2c: E2 08 00 88 0A 80 13 01 00 00 00 00 00 0F [10:02:48]Write i2c OK [10:02:48]MH_I2C_Read... [10:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:48]Read from MH i2c: E2 [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: E2 0E 00 [10:02:48]MH_I2C_Read... [10:02:48]Read from MH i2c: E2 0E 00 88 0A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5E [10:02:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:02:48]wFMCommunicate OK [10:02:48]SAM_PROTO_GetShiftState done [10:02:48]FM_GetShiftState done [10:02:48]req_shift_opened done [10:02:48]requested_item shift.open_date is exist - process it [10:02:48]req_shift_open_date [10:02:48]req_shift_open_date done [10:02:48]produce_requested_data done [10:02:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103860,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:02:48]process_action_free print_text [10:02:48]json_value_free [10:02:48]json_value_free done [10:02:48]process_json_proto returns [10:02:48]Send response to host [10:02:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103860,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:02:48]free response buf [10:02:48]execute_script done [10:02:48]execute_script returns [10:02:48]free content buf [10:02:48]Sock 9.Close socket [10:02:48]Sock 9.Thread stoped [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:52]accept exits with 7 [10:03:52]New connection [10:03:52]New thread 3067063652 created [10:03:52]Thread 3067207012 joined [10:03:52]Waiting for new connection... [10:03:52] Sock 7.Parse request [10:03:52]Sock 7.Check first char [10:03:52]Sock 7.First char is OK [10:03:52]request: POST /json_proto HTTP/1.0 [10:03:52]Method: POST [10:03:52]URL: /json_proto [10:03:52]Method is POST - this is cgi request [10:03:52]url: /json_proto [10:03:52]query_string will be loaded in cgi processing [10:03:52]execute_cgi json_proto POST (null) [10:03:52]execute_cgi path=json_proto method=POST [10:03:52]POST find Content-Length [10:03:52]Host: 172.17.38.133:8080 [10:03:52]Content-Length: 803 [10:03:52]Content-Type: application/json [10:03:52] [10:03:52]POST finish read [10:03:52]Found Content-Length = 803 [10:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673184", "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" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:52]execute_script... [10:03: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)673184", "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" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:52]POST & json_proto [10:03:52]process_json_proto [10:03:52]json parsed OK: [10:03:52]protocol is kg_v1.0 [10:03:52]action value=close_receipt [10:03:52]process_action close_receipt [10:03:52]cmd_close_receipt [10:03:52]MH_GetDate [10:03:52]Write to MH i2c: F0 00 00 89 0A 82 [10:03:52]Write i2c OK [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: F0 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: F0 09 00 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: F0 09 00 89 0A 00 89 FE 73 66 BD 8F 7C 64 17 [10:03:52]GetLastDocTimeStamp 1718877344 [10:03:52]current date 1718877833 [10:03:52]FM_GetShiftState [10:03:52]SAM_PROTO_GetShiftState [10:03:52]wFMCommunicate request_size=4 [10:03:52]MH_SAM_APDU [10:03:52]CAPDU: 80 13 01 00 [10:03:52]Write to MH i2c: E2 08 00 8A 0A 80 13 01 00 00 00 00 00 11 [10:03:52]Write i2c OK [10:03:52]MH_I2C_Read... [10:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:52]Read from MH i2c: E2 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: E2 0E 00 [10:03:52]MH_I2C_Read... [10:03:52]Read from MH i2c: E2 0E 00 8A 0A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 60 [10:03:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:03:52]wFMCommunicate OK [10:03:52]SAM_PROTO_GetShiftState done [10:03:52]FM_GetShiftState done [10:03:52]opened in 1718843124 [10:03:52]opened+sec_in_day 1718929524 [10:03:52]quantity*price = 100060 [10:03:52]sum+1 = 100062 [10:03:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.61 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.61 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 46 20.06.2024 10:03 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103861 ФПД: 27258826745868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T100353&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103861&fm=27258826745868&tin=02508201610067®Number=0000000000092785&sum=100061 [10:03:53]StoreToDocumentArchive [10:03:53]shift 354 fd 103861 [10:03:53]save to /storage/0354/doc_00103861 [10:03:53]save last doc name /storage/0354/doc_00103861 to /storage/kkm_last_doc_name [10:03:53]save OK [10:03:53]Clear old archive folders... [10:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:53]tlvbuf is 00850170 [10:03:53]SAM_PROTO_ClearQueue [10:03:53]wFMCommunicate request_size=4 [10:03:53]MH_SAM_APDU [10:03:53]CAPDU: 80 09 00 00 [10:03:53]Write to MH i2c: E2 08 00 97 0A 80 09 00 00 00 00 00 00 13 [10:03:53]Write i2c OK [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 [10:03:53]MH_I2C_Read... [10:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:53]Read from MH i2c: E2 03 00 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [10:03:53]RAPDU: 90 00 [10:03:53]wFMCommunicate OK [10:03:53]SAM_PROTO_ClearQueue done [10:03:53]KKMCreateOFDPacket [10:03:53]OFDProtocolAddRootSTLVToBuf [10:03:53]FM_MakeSignedData [10:03:53]FM_MakeSignedData [10:03:53]SAM_PROTO_SignData [10:03:53]wFMCommunicate request_size=4 [10:03:53]MH_SAM_APDU [10:03:53]CAPDU: 80 0D 01 02 [10:03:53]Write to MH i2c: E2 08 00 98 0A 80 0D 01 02 00 00 00 00 1B [10:03:53]Write i2c OK [10:03:53]MH_I2C_Read... [10:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:53]Read from MH i2c: E2 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 03 00 [10:03:53]MH_I2C_Read... [10:03:53]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [10:03:53]RAPDU: 90 00 [10:03:53]wFMCommunicate OK [10:03:53]wFMCommunicate request_size=255 [10:03:53]MH_SAM_APDU [10:03: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 89 FE 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 95 01 00 35 04 06 00 18 [10:03:53]Write to MH i2c: E2 02 01 99 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 89 FE 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 95 01 00 35 04 06 00 18 00 00 E4 [10:03:53]Write i2c OK [10:03:53]MH_I2C_Read... [10:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:54]Read from MH i2c: E2 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 03 00 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 03 00 99 0A 00 90 00 17 [10:03:54]RAPDU: 90 00 [10:03:54]wFMCommunicate OK [10:03:54]wFMCommunicate request_size=10 [10:03:54]MH_SAM_APDU [10:03:54]CAPDU: 80 0D 02 02 05 CA B0 AF 68 0C [10:03:54]Write to MH i2c: E2 0D 00 9A 0A 80 0D 02 02 05 00 CA B0 AF 68 0C 00 00 C5 [10:03:54]Write i2c OK [10:03:54]MH_I2C_Read... [10:03:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:54]Read from MH i2c: E2 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 03 00 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [10:03:54]RAPDU: 90 00 [10:03:54]wFMCommunicate OK [10:03:54]wFMCommunicate request_size=4 [10:03:54]MH_SAM_APDU [10:03:54]CAPDU: 80 0D 03 02 [10:03:54]Write to MH i2c: E2 08 00 9B 0A 80 0D 03 02 00 00 00 00 20 [10:03:54]Write i2c OK [10:03:54]MH_I2C_Read... [10:03:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:54]Read from MH i2c: E2 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 0B 00 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 0B 00 9B 0A 00 51 A1 41 60 25 AC 05 21 90 00 AB [10:03:54]RAPDU: 51 A1 41 60 25 AC 05 21 90 00 [10:03:54]wFMCommunicate OK [10:03:54]SAM_PROTO_SignData done [10:03:54]FM_MakeSignedData done [10:03:54]CreateOFDProtocolMessage [10:03:54]wFMCommunicate request_size=4 [10:03:54]MH_SAM_APDU [10:03:54]CAPDU: 80 11 00 00 [10:03:54]Write to MH i2c: E2 08 00 9C 0A 80 11 00 00 00 00 00 00 20 [10:03:54]Write i2c OK [10:03:54]MH_I2C_Read... [10:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:54]Read from MH i2c: E2 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 17 00 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: E2 17 00 9C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 73 [10:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:03:54]wFMCommunicate OK [10:03:54]CreateOFDProtocolMessage done [10:03:54]OFDSenderStorePacket 103861 [10:03:54]StoreOFDPacket docnum=103861 [10:03:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 36 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 89 FE 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 95 01 00 35 04 06 00 18 CA B0 AF 68 0C 51 A1 41 60 25 AC 05 21 [10:03:54]CheckFolder [10:03:54]dirname=/storage/ofd_packets [10:03:54]CheckFolder done [10:03:54]ProducePacketName [10:03:54]name=ofd_packets/00103861 [10:03:54]NVStorageSaveData ofd_packets/00103861 [10:03:54]File name is /storage/ofd_packets/00103861 [10:03:54]Write 301 bytes [10:03:54]NVStorageSaveData done [10:03:54]OFDSenderStorePacket done [10:03:54]KKMCreateOFDPacket done [10:03:54]NVStorageSaveData kkm_last_timestamp [10:03:54]File name is /storage/kkm_last_timestamp [10:03:54]Write 4 bytes [10:03:54]NVStorageSaveData done [10:03:54]ExternCall_PrintAddStr [10:03:54]wPrintStart [10:03:54]Write to MH i2c: 01 00 00 9D 0A A7 [10:03:54]Write i2c OK [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: 01 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: 01 07 00 [10:03:54]MH_I2C_Read... [10:03:54]Read from MH i2c: 01 07 00 9D 0A 00 00 00 00 00 FF 0F BC [10:03:54]RasterBufferAndPrint [10:03:54]line Счет N : (1)673184 [10:03:54]line ИНН: 02508201610067 [10:03:54]line Контрольно-Кассовый Чек [10:03:54]line ПРОДАЖА [10:03:54]line ТРК (МРК, ГНК) : 31 [10:03:54]line Товар: 2710124500 [10:03:54]line Аи-95-К-5 [10:03:54]line 13.540 * 73.90 [10:03:54]line = 1000.61 [10:03:54]line НДС 12% НСП 1% [10:03:54]line > о реализуемом товаре [10:03:54]line ИТОГО: 1000.61 [10:03:54]line НСП 1% : 8.85 [10:03:54]line НДС 12% : 106.26 [10:03:54]line Наличными: 0.00 [10:03:54]line Безнал.: 1000.61 [10:03:54]line Место: АЗС № 120 "Партнер Нефть" [10:03:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:03:54]line СНО: Общий режим [10:03:54]line Чек 46 20.06.2024 10:03 [10:03:54]line Смена: 354 ФФД: 1.0 [10:03:54]line ЗНМ: 0300000164 [10:03:54]line РНМ: 0000000000092785 [10:03:54]line Версия ККМ: 001 [10:03:54]line Платежная система: O! деньги [10:03:54]line ФМ: 0000000000875093 [10:03:54]line ФД: 103861 [10:03:54]line ФПД: 27258826745868 [10:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T100353&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103861&fm=27258826745868&tin=02508201610067®Number=0000000000092785&sum=100061 [10:03:54]written 0, free lines is 4095 [10:03:54]OFD Sender: Processing packet 103861 [packets to send 17, broken 16] [10:03:54]ProducePacketName [10:03:54]name=ofd_packets/00103861 [10:03:54]OFD Sender: To server: pG, [10:03:54]CommunicateWithHost lk.salyk.kg:30040 [10:03:54]ConnectInit lk.salyk.kg [10:03:54]Connected sock=10 [10:03:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E7 36 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 89 FE 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 95 01 00 35 04 06 00 18 CA B0 AF 68 0C 51 A1 41 60 25 AC 05 21 [10:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 99 53 47 00 1C 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B5 95 01 00 F4 03 04 00 0F A5 73 66 B6 04 01 00 00 A9 57 74 E2 3F 87 62 B4 [10:03:54]CommunicateWithHost err = 0 [10:03:54]CheckOFDResponse [10:03:54]1017 (14) - 77093643461234 [10:03:54]1041 (16) - 0000000000875093 [10:03:54]1040 (4) - 103861 [10:03:54]1012 (4) - 20.06.2024 03:42 [10:03:54]1206 (1) - 0 [10:03:54]OFD Sender: Remove packet 103861 [10:03:54]ProducePacketName [10:03:54]name=ofd_packets/00103861 [10:03:54]NVStorageDeleteData [10:03:55]Write to MH i2c: 01 00 00 C7 0A D1 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: 01 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: 01 07 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: 01 07 00 C7 0A 00 00 00 00 00 EE 0C D2 [10:03:55]RasterBufferAndPrint [10:03:55]line [10:03:55]line [10:03:55]line [10:03:55]line [10:03:55]line [10:03:55]written 0, free lines is 3317 [10:03:55]MH_Cut [10:03:55]Write to MH i2c: D1 01 00 CE 0A 01 AA [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: D1 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: D1 01 00 [10:03:55]MH_I2C_Read... [10:03:55]Read from MH i2c: D1 01 00 CE 0A 00 A9 [10:03:55]Write to MH i2c: 01 00 00 CF 0A D9 [10:03:55]Write i2c OK [10:03:55]MH_I2C_Read... [10:03:55]OFD Sender: No OFD packet to send [10:03:55]*** Cut start [10:03:55]*** Partial cut [10:03:55]*** CUTSNS_PIN = 1 [10:03:55]*** CUTSNS_PIN = 0 [10:03:56]*** Brake cut motor [10:03:56]Read from MH i2c: 01 [10:03:56]MH_I2C_Read... [10:03:56]*** Stop cut motor [10:03:56]*** Cut end [10:03:56]Read from MH i2c: 01 07 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: 01 07 00 CF 0A 00 00 00 00 00 FF 0F EE [10:03:56]process_action close_receipt done [10:03:56]requested_data is exist [10:03:56]produce_requested_data [10:03:56]requested_item fm.sn is exist - process it [10:03:56]wFMCommunicate request_size=4 [10:03:56]MH_SAM_APDU [10:03:56]CAPDU: 80 11 00 00 [10:03:56]Write to MH i2c: E2 08 00 D0 0A 80 11 00 00 00 00 00 00 54 [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:56]Read from MH i2c: E2 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 17 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 17 00 D0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A7 [10:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:03:56]wFMCommunicate OK [10:03:56]requested_item fd.num is exist - process it [10:03:56]SAM_PROTO_GetFieldsCounters [10:03:56]wFMCommunicate request_size=4 [10:03:56]MH_SAM_APDU [10:03:56]CAPDU: 80 13 00 00 [10:03:56]Write to MH i2c: E2 08 00 D1 0A 80 13 00 00 00 00 00 00 57 [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:56]Read from MH i2c: E2 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 62 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 62 00 D1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B5 95 01 00 0E 04 04 00 62 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 B6 [10:03:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B5 95 01 00 0E 04 04 00 62 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 [10:03:56]wFMCommunicate OK [10:03:56]SAM_PROTO_GetFieldsCounters done [10:03:56]requested_item shift.num is exist - process it [10:03:56]requested_item shift.opened is exist - process it [10:03:56]req_shift_opened [10:03:56]FM_GetShiftState [10:03:56]SAM_PROTO_GetShiftState [10:03:56]wFMCommunicate request_size=4 [10:03:56]MH_SAM_APDU [10:03:56]CAPDU: 80 13 01 00 [10:03:56]Write to MH i2c: E2 08 00 D2 0A 80 13 01 00 00 00 00 00 59 [10:03:56]Write i2c OK [10:03:56]MH_I2C_Read... [10:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:56]Read from MH i2c: E2 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 0E 00 [10:03:56]MH_I2C_Read... [10:03:56]Read from MH i2c: E2 0E 00 D2 0A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A8 [10:03:56]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:03:56]wFMCommunicate OK [10:03:56]SAM_PROTO_GetShiftState done [10:03:56]FM_GetShiftState done [10:03:56]req_shift_opened done [10:03:56]requested_item shift.open_date is exist - process it [10:03:56]req_shift_open_date [10:03:56]req_shift_open_date done [10:03:56]produce_requested_data done [10:03:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103861,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:03:56]process_action_free close_receipt [10:03:56]json_value_free [10:03:56]json_value_free done [10:03:56]process_json_proto returns [10:03:56]Send response to host [10:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103861,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:03:56]free response buf [10:03:56]execute_script done [10:03:56]execute_script returns [10:03:56]free content buf [10:03:56]Sock 7.Close socket [10:03:56]Sock 7.Thread stoped [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:37]accept exits with 9 [10:08:37]New connection [10:08:37]New thread 3067207012 created [10:08:37]Thread 3067063652 joined [10:08:37]Waiting for new connection... [10:08:37] Sock 9.Parse request [10:08:37]Sock 9.Check first char [10:08:37]Sock 9.First char is OK [10:08:37]request: POST /json_proto HTTP/1.0 [10:08:37]Method: POST [10:08:37]URL: /json_proto [10:08:37]Method is POST - this is cgi request [10:08:37]url: /json_proto [10:08:37]query_string will be loaded in cgi processing [10:08:37]execute_cgi json_proto POST (null) [10:08:37]execute_cgi path=json_proto method=POST [10:08:37]POST find Content-Length [10:08:37]Host: 172.17.38.133:8080 [10:08:37]Content-Length: 682 [10:08:37]Content-Type: application/json [10:08:37] [10:08:37]POST finish read [10:08:37]Found Content-Length = 682 [10:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673186", "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" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "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" ] } } [10:08:37]execute_script... [10:08: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)673186", "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" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "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" ] } } [10:08:37]POST & json_proto [10:08:37]process_json_proto [10:08:37]json parsed OK: [10:08:37]protocol is kg_v1.0 [10:08:37]action value=close_receipt [10:08:37]process_action close_receipt [10:08:37]cmd_close_receipt [10:08:37]MH_GetDate [10:08:37]Write to MH i2c: F0 00 00 D3 0A CC [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: F0 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: F0 09 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: F0 09 00 D3 0A 00 A6 FF 73 66 BD 8F 7C 64 7F [10:08:37]GetLastDocTimeStamp 1718877833 [10:08:37]current date 1718878118 [10:08:37]FM_GetShiftState [10:08:37]SAM_PROTO_GetShiftState [10:08:37]wFMCommunicate request_size=4 [10:08:37]MH_SAM_APDU [10:08:37]CAPDU: 80 13 01 00 [10:08:37]Write to MH i2c: E2 08 00 D4 0A 80 13 01 00 00 00 00 00 5B [10:08:37]Write i2c OK [10:08:37]MH_I2C_Read... [10:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:37]Read from MH i2c: E2 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 0E 00 [10:08:37]MH_I2C_Read... [10:08:37]Read from MH i2c: E2 0E 00 D4 0A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AA [10:08:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:08:37]wFMCommunicate OK [10:08:37]SAM_PROTO_GetShiftState done [10:08:37]FM_GetShiftState done [10:08:37]opened in 1718843124 [10:08:37]opened+sec_in_day 1718929524 [10:08:37]quantity*price = 300034 [10:08:37]sum+1 = 300035 [10:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 47 20.06.2024 10:08 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103862 ФПД: 163763992896471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T100838&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103862&fm=163763992896471&tin=02508201610067®Number=0000000000092785&sum=300000 [10:08:38]StoreToDocumentArchive [10:08:38]shift 354 fd 103862 [10:08:38]save to /storage/0354/doc_00103862 [10:08:38]save last doc name /storage/0354/doc_00103862 to /storage/kkm_last_doc_name [10:08:38]save OK [10:08:38]Clear old archive folders... [10:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:38]tlvbuf is 0083ABD0 [10:08:38]SAM_PROTO_ClearQueue [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 09 00 00 [10:08:38]Write to MH i2c: E2 08 00 E1 0A 80 09 00 00 00 00 00 00 5D [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [10:08:38]RAPDU: 90 00 [10:08:38]wFMCommunicate OK [10:08:38]SAM_PROTO_ClearQueue done [10:08:38]KKMCreateOFDPacket [10:08:38]OFDProtocolAddRootSTLVToBuf [10:08:38]FM_MakeSignedData [10:08:38]FM_MakeSignedData [10:08:38]SAM_PROTO_SignData [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 0D 01 02 [10:08:38]Write to MH i2c: E2 08 00 E2 0A 80 0D 01 02 00 00 00 00 65 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [10:08:38]RAPDU: 90 00 [10:08:38]wFMCommunicate OK [10:08:38]wFMCommunicate request_size=255 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 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 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A6 FF 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 95 01 00 35 04 06 00 94 [10:08:38]Write to MH i2c: E2 02 01 E3 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 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 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A6 FF 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 95 01 00 35 04 06 00 94 00 00 7C [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [10:08:38]RAPDU: 90 00 [10:08:38]wFMCommunicate OK [10:08:38]wFMCommunicate request_size=10 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 0D 02 02 05 F1 46 9F A3 D7 [10:08:38]Write to MH i2c: E2 0D 00 E4 0A 80 0D 02 02 05 00 F1 46 9F A3 D7 00 00 C2 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 03 00 E4 0A 00 90 00 62 [10:08:38]RAPDU: 90 00 [10:08:38]wFMCommunicate OK [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 0D 03 02 [10:08:38]Write to MH i2c: E2 08 00 E5 0A 80 0D 03 02 00 00 00 00 6A [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 0B 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 0B 00 E5 0A 00 DA 30 52 8B 34 19 6D BB 90 00 C7 [10:08:38]RAPDU: DA 30 52 8B 34 19 6D BB 90 00 [10:08:38]wFMCommunicate OK [10:08:38]SAM_PROTO_SignData done [10:08:38]FM_MakeSignedData done [10:08:38]CreateOFDProtocolMessage [10:08:38]wFMCommunicate request_size=4 [10:08:38]MH_SAM_APDU [10:08:38]CAPDU: 80 11 00 00 [10:08:38]Write to MH i2c: E2 08 00 E6 0A 80 11 00 00 00 00 00 00 6A [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:38]Read from MH i2c: E2 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 17 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: E2 17 00 E6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BD [10:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:08:38]wFMCommunicate OK [10:08:38]CreateOFDProtocolMessage done [10:08:38]OFDSenderStorePacket 103862 [10:08:38]StoreOFDPacket docnum=103862 [10:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D4 09 07 01 11 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 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 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 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A6 FF 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 95 01 00 35 04 06 00 94 F1 46 9F A3 D7 DA 30 52 8B 34 19 6D BB [10:08:38]CheckFolder [10:08:38]dirname=/storage/ofd_packets [10:08:38]CheckFolder done [10:08:38]ProducePacketName [10:08:38]name=ofd_packets/00103862 [10:08:38]NVStorageSaveData ofd_packets/00103862 [10:08:38]File name is /storage/ofd_packets/00103862 [10:08:38]Write 301 bytes [10:08:38]NVStorageSaveData done [10:08:38]OFDSenderStorePacket done [10:08:38]KKMCreateOFDPacket done [10:08:38]NVStorageSaveData kkm_last_timestamp [10:08:38]File name is /storage/kkm_last_timestamp [10:08:38]Write 4 bytes [10:08:38]NVStorageSaveData done [10:08:38]ExternCall_PrintAddStr [10:08:38]wPrintStart [10:08:38]Write to MH i2c: 01 00 00 E7 0A F1 [10:08:38]Write i2c OK [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 07 00 [10:08:38]MH_I2C_Read... [10:08:38]Read from MH i2c: 01 07 00 E7 0A 00 00 00 00 00 FF 0F 06 [10:08:38]RasterBufferAndPrint [10:08:38]line Счет N : (1)673186 [10:08:38]line ИНН: 02508201610067 [10:08:38]line Контрольно-Кассовый Чек [10:08:38]line ПРОДАЖА [10:08:38]line ТРК (МРК, ГНК) : 41 [10:08:38]line Товар: 2710124500 [10:08:38]line Аи-95-К-5 [10:08:38]line 40.600 * 73.90 [10:08:38]line = 3000.34 [10:08:38]line НДС 12% НСП 1% [10:08:38]line > о реализуемом товаре [10:08:38]line ОКРУГЛЕНИЕ: -0.34 [10:08:38]line ИТОГО: 3000.00 [10:08:38]line Внесено: 3000.00 [10:08:38]line СДАЧА: 0.00 [10:08:38]line НСП 1% : 26.55 [10:08:38]line НДС 12% : 318.62 [10:08:38]line Наличными: 3000.00 [10:08:38]line Безнал.: 0.00 [10:08:38]line Место: АЗС № 120 "Партнер Нефть" [10:08:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:08:38]line СНО: Общий режим [10:08:38]line Чек 47 20.06.2024 10:08 [10:08:38]line Смена: 354 ФФД: 1.0 [10:08:38]line ЗНМ: 0300000164 [10:08:38]line РНМ: 0000000000092785 [10:08:38]line Версия ККМ: 001 [10:08:38]line ФМ: 0000000000875093 [10:08:38]line ФД: 103862 [10:08:38]line ФПД: 163763992896471 [10:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T100838&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103862&fm=163763992896471&tin=02508201610067®Number=0000000000092785&sum=300000 [10:08:39]OFD Sender: Processing packet 103862 [packets to send 17, broken 16] [10:08:39]ProducePacketName [10:08:39]name=ofd_packets/00103862 [10:08:39]OFD Sender: To server: pG, [10:08:39]CommunicateWithHost lk.salyk.kg:30040 [10:08:39]ConnectInit lk.salyk.kg [10:08:39]written 0, free lines is 4095 [10:08:39]Connected sock=10 [10:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D4 09 07 01 11 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 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 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 76 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A6 FF 73 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 95 01 00 35 04 06 00 94 F1 46 9F A3 D7 DA 30 52 8B 34 19 6D BB [10:08:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 96 59 47 00 F9 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B6 95 01 00 F4 03 04 00 2C A6 73 66 B6 04 01 00 00 C0 03 15 6A 64 09 95 ED [10:08:39]CommunicateWithHost err = 0 [10:08:39]CheckOFDResponse [10:08:39]1017 (14) - 77093643461234 [10:08:39]1041 (16) - 0000000000875093 [10:08:39]1040 (4) - 103862 [10:08:39]1012 (4) - 20.06.2024 03:46 [10:08:39]1206 (1) - 0 [10:08:39]OFD Sender: Remove packet 103862 [10:08:39]ProducePacketName [10:08:39]name=ofd_packets/00103862 [10:08:39]NVStorageDeleteData [10:08:39]Write to MH i2c: 01 00 00 12 0B 1D [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: 01 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: 01 07 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: 01 07 00 12 0B 00 00 00 00 00 DD 0C 0D [10:08:39]RasterBufferAndPrint [10:08:39]line [10:08:39]line [10:08:39]line [10:08:39]line [10:08:39]line [10:08:39]written 0, free lines is 3300 [10:08:39]MH_Cut [10:08:39]Write to MH i2c: D1 01 00 19 0B 01 F6 [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: D1 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: D1 01 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: D1 01 00 19 0B 00 F5 [10:08:39]Write to MH i2c: 01 00 00 1A 0B 25 [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:40]OFD Sender: No OFD packet to send [10:08:40]*** Cut start [10:08:40]*** Partial cut [10:08:40]*** CUTSNS_PIN = 1 [10:08:40]*** CUTSNS_PIN = 0 [10:08:40]*** Brake cut motor [10:08:40]Read from MH i2c: 01 [10:08:40]MH_I2C_Read... [10:08:40]*** Stop cut motor [10:08:40]*** Cut end [10:08:40]Read from MH i2c: 01 07 00 [10:08:40]MH_I2C_Read... [10:08:40]Read from MH i2c: 01 07 00 1A 0B 00 00 00 00 00 FF 0F 3A [10:08:40]process_action close_receipt done [10:08:40]requested_data is exist [10:08:40]produce_requested_data [10:08:40]requested_item fm.sn is exist - process it [10:08:40]wFMCommunicate request_size=4 [10:08:40]MH_SAM_APDU [10:08:40]CAPDU: 80 11 00 00 [10:08:40]Write to MH i2c: E2 08 00 1B 0B 80 11 00 00 00 00 00 00 A0 [10:08:40]Write i2c OK [10:08:40]MH_I2C_Read... [10:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:40]Read from MH i2c: E2 [10:08:40]MH_I2C_Read... [10:08:40]Read from MH i2c: E2 17 00 [10:08:40]MH_I2C_Read... [10:08:40]Read from MH i2c: E2 17 00 1B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F3 [10:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:08:41]wFMCommunicate OK [10:08:41]requested_item fd.num is exist - process it [10:08:41]SAM_PROTO_GetFieldsCounters [10:08:41]wFMCommunicate request_size=4 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 13 00 00 [10:08:41]Write to MH i2c: E2 08 00 1C 0B 80 13 00 00 00 00 00 00 A3 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 62 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 62 00 1C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 95 01 00 0E 04 04 00 62 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 06 [10:08:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 95 01 00 0E 04 04 00 62 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:08:41]wFMCommunicate OK [10:08:41]SAM_PROTO_GetFieldsCounters done [10:08:41]requested_item shift.num is exist - process it [10:08:41]requested_item shift.opened is exist - process it [10:08:41]req_shift_opened [10:08:41]FM_GetShiftState [10:08:41]SAM_PROTO_GetShiftState [10:08:41]wFMCommunicate request_size=4 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 13 01 00 [10:08:41]Write to MH i2c: E2 08 00 1D 0B 80 13 01 00 00 00 00 00 A5 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 0E 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 0E 00 1D 0B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F4 [10:08:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:08:41]wFMCommunicate OK [10:08:41]SAM_PROTO_GetShiftState done [10:08:41]FM_GetShiftState done [10:08:41]req_shift_opened done [10:08:41]requested_item shift.open_date is exist - process it [10:08:41]req_shift_open_date [10:08:41]req_shift_open_date done [10:08:41]produce_requested_data done [10:08:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103862,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:08:41]process_action_free close_receipt [10:08:41]json_value_free [10:08:41]json_value_free done [10:08:41]process_json_proto returns [10:08:41]Send response to host [10:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103862,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:08:41]free response buf [10:08:41]execute_script done [10:08:41]execute_script returns [10:08:41]free content buf [10:08:41]Sock 9.Close socket [10:08:41]Sock 9.Thread stoped [10:08:41]accept exits with 7 [10:08:41]New connection [10:08:41]New thread 3067063652 created [10:08:41]Thread 3067207012 joined [10:08:41]Waiting for new connection... [10:08:41] Sock 7.Parse request [10:08:41]Sock 7.Check first char [10:08:41]Sock 7.First char is OK [10:08:41]request: POST /json_proto HTTP/1.0 [10:08:41]Method: POST [10:08:41]URL: /json_proto [10:08:41]Method is POST - this is cgi request [10:08:41]url: /json_proto [10:08:41]query_string will be loaded in cgi processing [10:08:41]execute_cgi json_proto POST (null) [10:08:41]execute_cgi path=json_proto method=POST [10:08:41]POST find Content-Length [10:08:41]Host: 172.17.38.133:8080 [10:08:41]Content-Length: 1174 [10:08:41]Content-Type: application/json [10:08:41] [10:08:41]POST finish read [10:08:41]Found Content-Length = 1174 [10:08: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673185\u000A20.06.2024 09:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30129599\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:41]execute_script... [10:08: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673185\u000A20.06.2024 09:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30129599\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:41]POST & json_proto [10:08:41]process_json_proto [10:08:41]json parsed OK: [10:08:41]protocol is kg_v1.0 [10:08:41]action value=print_text [10:08:41]process_action print_text [10:08:41]cmd_print_text [10:08:41]ExternCall_PrintAddStr [10:08:41]wPrintStart [10:08:41]Write to MH i2c: 01 00 00 1E 0B 29 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 07 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 07 00 1E 0B 00 00 00 00 00 FF 0F 3E [10:08:41]RasterBufferAndPrint [10:08:41]line *****ТОВАРНЫЙ ЧЕК***** [10:08:41]line АЗС 120 [10:08:41]line Партнер нефть [10:08:41]line 02508201610067 [10:08:41]line Кассир : Дуйшенбиев А. [10:08:41]line Счет N : (1)673185 [10:08:41]line 20.06.2024 09:45 [10:08:41]line ПРОДАЖА [10:08:41]line ТРК (МРК, ГНК): 11 [10:08:41]line Вид ГСМ : 2710194210 [10:08:41]line ДТ(л)-К-5 [10:08:41]line 50.000 x 72.90 [10:08:41]line ИТОГ: 3645.00 [10:08:41]line Тип оплаты: Талоны: ТК ГПНА Online [10:08:41]line 30129599 [10:08:41]line ______________________ [10:08:41]line (подпись) [10:08:41]written 0, free lines is 4095 [10:08:41]Write to MH i2c: 01 00 00 32 0B 3D [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 07 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 11 0E 63 [10:08:41]RasterBufferAndPrint [10:08:41]line [10:08:41]line [10:08:41]line [10:08:41]line [10:08:41]line [10:08:41]written 0, free lines is 3604 [10:08:41]MH_Cut [10:08:41]Write to MH i2c: D1 01 00 39 0B 01 16 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: D1 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: D1 01 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: D1 01 00 39 0B 00 15 [10:08:41]Write to MH i2c: 01 00 00 3A 0B 45 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:42]*** Cut start [10:08:42]*** Partial cut [10:08:42]*** CUTSNS_PIN = 1 [10:08:42]*** CUTSNS_PIN = 0 [10:08:42]*** Brake cut motor [10:08:42]Read from MH i2c: 01 [10:08:42]MH_I2C_Read... [10:08:42]*** Stop cut motor [10:08:42]*** Cut end [10:08:42]Read from MH i2c: 01 07 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: 01 07 00 3A 0B 00 00 00 00 00 FF 0F 5A [10:08:42]process_action print_text done [10:08:42]requested_data is exist [10:08:42]produce_requested_data [10:08:42]requested_item fm.sn is exist - process it [10:08:42]wFMCommunicate request_size=4 [10:08:42]MH_SAM_APDU [10:08:42]CAPDU: 80 11 00 00 [10:08:42]Write to MH i2c: E2 08 00 3B 0B 80 11 00 00 00 00 00 00 C0 [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:42]Read from MH i2c: E2 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 17 00 [10:08:42]MH_I2C_Read... [10:08:42]Read from MH i2c: E2 17 00 3B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 13 [10:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:08:42]wFMCommunicate OK [10:08:42]requested_item fd.num is exist - process it [10:08:42]SAM_PROTO_GetFieldsCounters [10:08:42]wFMCommunicate request_size=4 [10:08:42]MH_SAM_APDU [10:08:42]CAPDU: 80 13 00 00 [10:08:42]Write to MH i2c: E2 08 00 3C 0B 80 13 00 00 00 00 00 00 C3 [10:08:42]Write i2c OK [10:08:42]MH_I2C_Read... [10:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:43]Read from MH i2c: E2 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 62 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 62 00 3C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 95 01 00 0E 04 04 00 62 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 26 [10:08:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 95 01 00 0E 04 04 00 62 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:08:43]wFMCommunicate OK [10:08:43]SAM_PROTO_GetFieldsCounters done [10:08:43]requested_item shift.num is exist - process it [10:08:43]requested_item shift.opened is exist - process it [10:08:43]req_shift_opened [10:08:43]FM_GetShiftState [10:08:43]SAM_PROTO_GetShiftState [10:08:43]wFMCommunicate request_size=4 [10:08:43]MH_SAM_APDU [10:08:43]CAPDU: 80 13 01 00 [10:08:43]Write to MH i2c: E2 08 00 3D 0B 80 13 01 00 00 00 00 00 C5 [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 [10:08:43]MH_I2C_Read... [10:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:43]Read from MH i2c: E2 0E 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 0E 00 3D 0B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 14 [10:08:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:08:43]wFMCommunicate OK [10:08:43]SAM_PROTO_GetShiftState done [10:08:43]FM_GetShiftState done [10:08:43]req_shift_opened done [10:08:43]requested_item shift.open_date is exist - process it [10:08:43]req_shift_open_date [10:08:43]req_shift_open_date done [10:08:43]produce_requested_data done [10:08:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103862,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:08:43]process_action_free print_text [10:08:43]json_value_free [10:08:43]json_value_free done [10:08:43]process_json_proto returns [10:08:43]Send response to host [10:08:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103862,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:08:43]free response buf [10:08:43]execute_script done [10:08:43]execute_script returns [10:08:43]free content buf [10:08:43]Sock 7.Close socket [10:08:43]Sock 7.Thread stoped [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:25]accept exits with 9 [10:11:25]New connection [10:11:25]New thread 3067207012 created [10:11:25]Thread 3067063652 joined [10:11:25]Waiting for new connection... [10:11:25] Sock 9.Parse request [10:11:25]Sock 9.Check first char [10:11:25]Sock 9.First char is OK [10:11:25]request: POST /json_proto HTTP/1.0 [10:11:25]Method: POST [10:11:25]URL: /json_proto [10:11:25]Method is POST - this is cgi request [10:11:25]url: /json_proto [10:11:25]query_string will be loaded in cgi processing [10:11:25]execute_cgi json_proto POST (null) [10:11:25]execute_cgi path=json_proto method=POST [10:11:25]POST find Content-Length [10:11:25]Host: 172.17.38.133:8080 [10:11:25]Content-Length: 1169 [10:11:25]Content-Type: application/json [10:11:25] [10:11:25]POST finish read [10:11:25]Found Content-Length = 1169 [10:11:25]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673187\u000A20.06.2024 09:48\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 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101572\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:25]execute_script... [10:11:25]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673187\u000A20.06.2024 09:48\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 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101572\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:25]POST & json_proto [10:11:25]process_json_proto [10:11:25]json parsed OK: [10:11:25]protocol is kg_v1.0 [10:11:25]action value=print_text [10:11:25]process_action print_text [10:11:25]cmd_print_text [10:11:25]ExternCall_PrintAddStr [10:11:25]wPrintStart [10:11:25]Write to MH i2c: 01 00 00 3E 0B 49 [10:11:25]Write i2c OK [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: 01 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: 01 07 00 [10:11:25]MH_I2C_Read... [10:11:25]Read from MH i2c: 01 07 00 3E 0B 00 00 00 00 00 FF 0F 5E [10:11:25]RasterBufferAndPrint [10:11:25]line *****ТОВАРНЫЙ ЧЕК***** [10:11:25]line АЗС 120 [10:11:25]line Партнер нефть [10:11:25]line 02508201610067 [10:11:25]line Кассир : Дуйшенбиев А. [10:11:25]line Счет N : (1)673187 [10:11:25]line 20.06.2024 09:48 [10:11:25]line ПРОДАЖА [10:11:25]line ТРК (МРК, ГНК): 42 [10:11:25]line Вид ГСМ : 2710124130 [10:11:25]line Аи-92-К-5 [10:11:25]line 30.000 x 66.40 [10:11:25]line ИТОГ: 1992.00 [10:11:25]line Тип оплаты: Талоны: ТК ГПНА Online [10:11:25]line 30101572 [10:11:25]line ______________________ [10:11:25]line (подпись) [10:11:25]written 0, free lines is 4095 [10:11:26]Write to MH i2c: 01 00 00 52 0B 5D [10:11:26]Write i2c OK [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: 01 [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: 01 07 00 [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: 01 07 00 52 0B 00 00 00 00 00 11 0E 83 [10:11:26]RasterBufferAndPrint [10:11:26]line [10:11:26]line [10:11:26]line [10:11:26]line [10:11:26]line [10:11:26]written 0, free lines is 3603 [10:11:26]MH_Cut [10:11:26]Write to MH i2c: D1 01 00 59 0B 01 36 [10:11:26]Write i2c OK [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: D1 [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: D1 01 00 [10:11:26]MH_I2C_Read... [10:11:26]Read from MH i2c: D1 01 00 59 0B 00 35 [10:11:26]Write to MH i2c: 01 00 00 5A 0B 65 [10:11:26]Write i2c OK [10:11:26]MH_I2C_Read... [10:11:26]*** Cut start [10:11:26]*** Partial cut [10:11:26]*** CUTSNS_PIN = 1 [10:11:26]*** CUTSNS_PIN = 0 [10:11:26]*** Brake cut motor [10:11:27]Read from MH i2c: 01 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: 01 07 00 [10:11:27]MH_I2C_Read... [10:11:27]*** Stop cut motor [10:11:27]*** Cut end [10:11:27]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 FF 0F 7A [10:11:27]process_action print_text done [10:11:27]requested_data is exist [10:11:27]produce_requested_data [10:11:27]requested_item fm.sn is exist - process it [10:11:27]wFMCommunicate request_size=4 [10:11:27]MH_SAM_APDU [10:11:27]CAPDU: 80 11 00 00 [10:11:27]Write to MH i2c: E2 08 00 5B 0B 80 11 00 00 00 00 00 00 E0 [10:11:27]Write i2c OK [10:11:27]MH_I2C_Read... [10:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:27]Read from MH i2c: E2 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 17 00 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 17 00 5B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [10:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:11:27]wFMCommunicate OK [10:11:27]requested_item fd.num is exist - process it [10:11:27]SAM_PROTO_GetFieldsCounters [10:11:27]wFMCommunicate request_size=4 [10:11:27]MH_SAM_APDU [10:11:27]CAPDU: 80 13 00 00 [10:11:27]Write to MH i2c: E2 08 00 5C 0B 80 13 00 00 00 00 00 00 E3 [10:11:27]Write i2c OK [10:11:27]MH_I2C_Read... [10:11:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:27]Read from MH i2c: E2 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 62 00 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 62 00 5C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 95 01 00 0E 04 04 00 62 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 46 [10:11:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B6 95 01 00 0E 04 04 00 62 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:11:27]wFMCommunicate OK [10:11:27]SAM_PROTO_GetFieldsCounters done [10:11:27]requested_item shift.num is exist - process it [10:11:27]requested_item shift.opened is exist - process it [10:11:27]req_shift_opened [10:11:27]FM_GetShiftState [10:11:27]SAM_PROTO_GetShiftState [10:11:27]wFMCommunicate request_size=4 [10:11:27]MH_SAM_APDU [10:11:27]CAPDU: 80 13 01 00 [10:11:27]Write to MH i2c: E2 08 00 5D 0B 80 13 01 00 00 00 00 00 E5 [10:11:27]Write i2c OK [10:11:27]MH_I2C_Read... [10:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:27]Read from MH i2c: E2 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 0E 00 [10:11:27]MH_I2C_Read... [10:11:27]Read from MH i2c: E2 0E 00 5D 0B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 34 [10:11:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:11:27]wFMCommunicate OK [10:11:27]SAM_PROTO_GetShiftState done [10:11:27]FM_GetShiftState done [10:11:27]req_shift_opened done [10:11:27]requested_item shift.open_date is exist - process it [10:11:27]req_shift_open_date [10:11:27]req_shift_open_date done [10:11:27]produce_requested_data done [10:11:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103862,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:11:27]process_action_free print_text [10:11:27]json_value_free [10:11:27]json_value_free done [10:11:27]process_json_proto returns [10:11:27]Send response to host [10:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103862,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:11:27]free response buf [10:11:27]execute_script done [10:11:27]execute_script returns [10:11:27]free content buf [10:11:27]Sock 9.Close socket [10:11:27]Sock 9.Thread stoped [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:17]accept exits with 7 [10:12:17]New connection [10:12:17]New thread 3067063652 created [10:12:17]Thread 3067207012 joined [10:12:17]Waiting for new connection... [10:12:17] Sock 7.Parse request [10:12:17]Sock 7.Check first char [10:12:17]Sock 7.First char is OK [10:12:17]request: POST /json_proto HTTP/1.0 [10:12:17]Method: POST [10:12:17]URL: /json_proto [10:12:17]Method is POST - this is cgi request [10:12:17]url: /json_proto [10:12:17]query_string will be loaded in cgi processing [10:12:17]execute_cgi json_proto POST (null) [10:12:17]execute_cgi path=json_proto method=POST [10:12:17]POST find Content-Length [10:12:17]Host: 172.17.38.133:8080 [10:12:17]Content-Length: 682 [10:12:17]Content-Type: application/json [10:12:17] [10:12:17]POST finish read [10:12:17]Found Content-Length = 682 [10:12:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:12:17]execute_script... [10:12: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)673188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:12:17]POST & json_proto [10:12:17]process_json_proto [10:12:17]json parsed OK: [10:12:17]protocol is kg_v1.0 [10:12:17]action value=close_receipt [10:12:17]process_action close_receipt [10:12:17]cmd_close_receipt [10:12:17]MH_GetDate [10:12:17]Write to MH i2c: F0 00 00 5E 0B 58 [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: F0 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: F0 09 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: F0 09 00 5E 0B 00 82 00 74 66 BD 8F 7C 64 E9 [10:12:17]GetLastDocTimeStamp 1718878118 [10:12:17]current date 1718878338 [10:12:17]FM_GetShiftState [10:12:17]SAM_PROTO_GetShiftState [10:12:17]wFMCommunicate request_size=4 [10:12:17]MH_SAM_APDU [10:12:17]CAPDU: 80 13 01 00 [10:12:17]Write to MH i2c: E2 08 00 5F 0B 80 13 01 00 00 00 00 00 E7 [10:12:17]Write i2c OK [10:12:17]MH_I2C_Read... [10:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:17]Read from MH i2c: E2 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 0E 00 [10:12:17]MH_I2C_Read... [10:12:17]Read from MH i2c: E2 0E 00 5F 0B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 36 [10:12:17]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:12:17]wFMCommunicate OK [10:12:17]SAM_PROTO_GetShiftState done [10:12:17]FM_GetShiftState done [10:12:17]opened in 1718843124 [10:12:17]opened+sec_in_day 1718929524 [10:12:17]quantity*price = 100064 [10:12:17]sum+1 = 100066 [10:12:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 48 20.06.2024 10:12 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103863 ФПД: 280475072257745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101218&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103863&fm=280475072257745&tin=02508201610067®Number=0000000000092785&sum=100000 [10:12:18]StoreToDocumentArchive [10:12:18]shift 354 fd 103863 [10:12:18]save to /storage/0354/doc_00103863 [10:12:18]save last doc name /storage/0354/doc_00103863 to /storage/kkm_last_doc_name [10:12:18]save OK [10:12:18]Clear old archive folders... [10:12:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:18]tlvbuf is 00819B40 [10:12:18]SAM_PROTO_ClearQueue [10:12:18]wFMCommunicate request_size=4 [10:12:18]MH_SAM_APDU [10:12:18]CAPDU: 80 09 00 00 [10:12:18]Write to MH i2c: E2 08 00 6C 0B 80 09 00 00 00 00 00 00 E9 [10:12:18]Write i2c OK [10:12:18]MH_I2C_Read... [10:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:18]Read from MH i2c: E2 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: E2 03 00 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: E2 03 00 6C 0B 00 90 00 EB [10:12:18]RAPDU: 90 00 [10:12:18]wFMCommunicate OK [10:12:18]SAM_PROTO_ClearQueue done [10:12:18]KKMCreateOFDPacket [10:12:18]OFDProtocolAddRootSTLVToBuf [10:12:18]FM_MakeSignedData [10:12:18]FM_MakeSignedData [10:12:18]SAM_PROTO_SignData [10:12:18]wFMCommunicate request_size=4 [10:12:18]MH_SAM_APDU [10:12:18]CAPDU: 80 0D 01 02 [10:12:18]Write to MH i2c: E2 08 00 6D 0B 80 0D 01 02 00 00 00 00 F1 [10:12:18]Write i2c OK [10:12:18]MH_I2C_Read... [10:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:18]Read from MH i2c: E2 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: E2 03 00 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: E2 03 00 6D 0B 00 90 00 EC [10:12:18]RAPDU: 90 00 [10:12:18]wFMCommunicate OK [10:12:18]wFMCommunicate request_size=255 [10:12:18]MH_SAM_APDU [10:12:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 82 00 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 95 01 00 35 04 06 00 FF [10:12:18]Write to MH i2c: E2 02 01 6E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 82 00 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 95 01 00 35 04 06 00 FF 00 00 36 [10:12:18]Write i2c OK [10:12:18]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:19]Read from MH i2c: E2 03 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [10:12:19]RAPDU: 90 00 [10:12:19]wFMCommunicate OK [10:12:19]wFMCommunicate request_size=10 [10:12:19]MH_SAM_APDU [10:12:19]CAPDU: 80 0D 02 02 05 17 31 0C DE D1 [10:12:19]Write to MH i2c: E2 0D 00 6F 0B 80 0D 02 02 05 00 17 31 0C DE D1 00 00 01 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:19]Read from MH i2c: E2 03 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 03 00 6F 0B 00 90 00 EE [10:12:19]RAPDU: 90 00 [10:12:19]wFMCommunicate OK [10:12:19]wFMCommunicate request_size=4 [10:12:19]MH_SAM_APDU [10:12:19]CAPDU: 80 0D 03 02 [10:12:19]Write to MH i2c: E2 08 00 70 0B 80 0D 03 02 00 00 00 00 F6 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 0B 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 0B 00 70 0B 00 CD D1 FE 8C 09 82 AC 14 90 00 6A [10:12:19]RAPDU: CD D1 FE 8C 09 82 AC 14 90 00 [10:12:19]wFMCommunicate OK [10:12:19]SAM_PROTO_SignData done [10:12:19]FM_MakeSignedData done [10:12:19]CreateOFDProtocolMessage [10:12:19]wFMCommunicate request_size=4 [10:12:19]MH_SAM_APDU [10:12:19]CAPDU: 80 11 00 00 [10:12:19]Write to MH i2c: E2 08 00 71 0B 80 11 00 00 00 00 00 00 F6 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 17 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 17 00 71 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 49 [10:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:12:19]wFMCommunicate OK [10:12:19]CreateOFDProtocolMessage done [10:12:19]OFDSenderStorePacket 103863 [10:12:19]StoreOFDPacket docnum=103863 [10:12:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2F 38 07 01 4C 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 82 00 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 95 01 00 35 04 06 00 FF 17 31 0C DE D1 CD D1 FE 8C 09 82 AC 14 [10:12:19]CheckFolder [10:12:19]dirname=/storage/ofd_packets [10:12:19]CheckFolder done [10:12:19]ProducePacketName [10:12:19]name=ofd_packets/00103863 [10:12:19]NVStorageSaveData ofd_packets/00103863 [10:12:19]File name is /storage/ofd_packets/00103863 [10:12:19]Write 301 bytes [10:12:19]NVStorageSaveData done [10:12:19]OFDSenderStorePacket done [10:12:19]KKMCreateOFDPacket done [10:12:19]NVStorageSaveData kkm_last_timestamp [10:12:19]File name is /storage/kkm_last_timestamp [10:12:19]Write 4 bytes [10:12:19]NVStorageSaveData done [10:12:19]ExternCall_PrintAddStr [10:12:19]wPrintStart [10:12:19]Write to MH i2c: 01 00 00 72 0B 7D [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: 01 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: 01 07 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: 01 07 00 72 0B 00 00 00 00 00 FF 0F 92 [10:12:19]RasterBufferAndPrint [10:12:19]line Счет N : (1)673188 [10:12:19]line ИНН: 02508201610067 [10:12:19]line Контрольно-Кассовый Чек [10:12:19]line ПРОДАЖА [10:12:19]line ТРК (МРК, ГНК) : 32 [10:12:19]line Товар: 2710124130 [10:12:19]line Аи-92-К-5 [10:12:19]line 15.070 * 66.40 [10:12:19]line = 1000.65 [10:12:19]line НДС 12% НСП 1% [10:12:19]line > о реализуемом товаре [10:12:19]line ОКРУГЛЕНИЕ: -0.65 [10:12:19]line ИТОГО: 1000.00 [10:12:19]line Внесено: 1000.00 [10:12:19]line СДАЧА: 0.00 [10:12:19]line НСП 1% : 8.85 [10:12:19]line НДС 12% : 106.26 [10:12:19]line Наличными: 1000.00 [10:12:19]line Безнал.: 0.00 [10:12:19]line Место: АЗС № 120 "Партнер Нефть" [10:12:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:12:19]line СНО: Общий режим [10:12:19]line Чек 48 20.06.2024 10:12 [10:12:19]line Смена: 354 ФФД: 1.0 [10:12:19]line ЗНМ: 0300000164 [10:12:19]line РНМ: 0000000000092785 [10:12:19]line Версия ККМ: 001 [10:12:19]line ФМ: 0000000000875093 [10:12:19]line ФД: 103863 [10:12:19]line ФПД: 280475072257745 [10:12:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101218&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103863&fm=280475072257745&tin=02508201610067®Number=0000000000092785&sum=100000 [10:12:19]OFD Sender: Processing packet 103863 [packets to send 17, broken 16] [10:12:19]ProducePacketName [10:12:19]name=ofd_packets/00103863 [10:12:19]OFD Sender: To server: pG, [10:12:19]CommunicateWithHost lk.salyk.kg:30040 [10:12:19]ConnectInit lk.salyk.kg [10:12:19]written 0, free lines is 4095 [10:12:19]Connected sock=10 [10:12:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2F 38 07 01 4C 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 82 00 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 95 01 00 35 04 06 00 FF 17 31 0C DE D1 CD D1 FE 8C 09 82 AC 14 [10:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7D 95 47 00 7C 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B7 95 01 00 F4 03 04 00 08 A7 73 66 B6 04 01 00 00 A9 15 CC FB 4B CA E2 52 [10:12:19]CommunicateWithHost err = 0 [10:12:19]CheckOFDResponse [10:12:19]1017 (14) - 77093643461234 [10:12:19]1041 (16) - 0000000000875093 [10:12:19]1040 (4) - 103863 [10:12:19]1012 (4) - 20.06.2024 03:50 [10:12:19]1206 (1) - 0 [10:12:19]OFD Sender: Remove packet 103863 [10:12:19]ProducePacketName [10:12:19]name=ofd_packets/00103863 [10:12:19]NVStorageDeleteData [10:12:20]Write to MH i2c: 01 00 00 9D 0B A8 [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: 01 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: 01 07 00 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: 01 07 00 9D 0B 00 00 00 00 00 DD 0C 98 [10:12:20]RasterBufferAndPrint [10:12:20]line [10:12:20]line [10:12:20]line [10:12:20]line [10:12:20]line [10:12:20]written 0, free lines is 3299 [10:12:20]MH_Cut [10:12:20]Write to MH i2c: D1 01 00 A4 0B 01 81 [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: D1 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: D1 01 00 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: D1 01 00 A4 0B 00 80 [10:12:20]Write to MH i2c: 01 00 00 A5 0B B0 [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:20]OFD Sender: No OFD packet to send [10:12:20]*** Cut start [10:12:20]*** Partial cut [10:12:20]*** CUTSNS_PIN = 1 [10:12:20]*** CUTSNS_PIN = 0 [10:12:21]*** Brake cut motor [10:12:21]Read from MH i2c: 01 [10:12:21]MH_I2C_Read... [10:12:21]*** Stop cut motor [10:12:21]*** Cut end [10:12:21]Read from MH i2c: 01 07 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: 01 07 00 A5 0B 00 00 00 00 00 FF 0F C5 [10:12:21]process_action close_receipt done [10:12:21]requested_data is exist [10:12:21]produce_requested_data [10:12:21]requested_item fm.sn is exist - process it [10:12:21]wFMCommunicate request_size=4 [10:12:21]MH_SAM_APDU [10:12:21]CAPDU: 80 11 00 00 [10:12:21]Write to MH i2c: E2 08 00 A6 0B 80 11 00 00 00 00 00 00 2B [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:21]Read from MH i2c: E2 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 17 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 17 00 A6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [10:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:12:21]wFMCommunicate OK [10:12:21]requested_item fd.num is exist - process it [10:12:21]SAM_PROTO_GetFieldsCounters [10:12:21]wFMCommunicate request_size=4 [10:12:21]MH_SAM_APDU [10:12:21]CAPDU: 80 13 00 00 [10:12:21]Write to MH i2c: E2 08 00 A7 0B 80 13 00 00 00 00 00 00 2E [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:21]Read from MH i2c: E2 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 62 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 62 00 A7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B7 95 01 00 0E 04 04 00 62 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 95 [10:12:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B7 95 01 00 0E 04 04 00 62 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:12:21]wFMCommunicate OK [10:12:21]SAM_PROTO_GetFieldsCounters done [10:12:21]requested_item shift.num is exist - process it [10:12:21]requested_item shift.opened is exist - process it [10:12:21]req_shift_opened [10:12:21]FM_GetShiftState [10:12:21]SAM_PROTO_GetShiftState [10:12:21]wFMCommunicate request_size=4 [10:12:21]MH_SAM_APDU [10:12:21]CAPDU: 80 13 01 00 [10:12:21]Write to MH i2c: E2 08 00 A8 0B 80 13 01 00 00 00 00 00 30 [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:21]Read from MH i2c: E2 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 0E 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: E2 0E 00 A8 0B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 7F [10:12:21]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:12:21]wFMCommunicate OK [10:12:21]SAM_PROTO_GetShiftState done [10:12:21]FM_GetShiftState done [10:12:21]req_shift_opened done [10:12:21]requested_item shift.open_date is exist - process it [10:12:21]req_shift_open_date [10:12:21]req_shift_open_date done [10:12:21]produce_requested_data done [10:12:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103863,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:12:21]process_action_free close_receipt [10:12:21]json_value_free [10:12:21]json_value_free done [10:12:21]process_json_proto returns [10:12:21]Send response to host [10:12:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103863,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:12:21]free response buf [10:12:21]execute_script done [10:12:21]execute_script returns [10:12:21]free content buf [10:12:21]Sock 7.Close socket [10:12:21]Sock 7.Thread stoped [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:48]accept exits with 9 [10:12:48]New connection [10:12:48]New thread 3067207012 created [10:12:48]Thread 3067063652 joined [10:12:48]Waiting for new connection... [10:12:48] Sock 9.Parse request [10:12:48]Sock 9.Check first char [10:12:48]Sock 9.First char is OK [10:12:48]request: POST /json_proto HTTP/1.0 [10:12:48]Method: POST [10:12:48]URL: /json_proto [10:12:48]Method is POST - this is cgi request [10:12:48]url: /json_proto [10:12:48]query_string will be loaded in cgi processing [10:12:48]execute_cgi json_proto POST (null) [10:12:48]execute_cgi path=json_proto method=POST [10:12:48]POST find Content-Length [10:12:48]Host: 172.17.38.133:8080 [10:12:48]Content-Length: 677 [10:12:48]Content-Type: application/json [10:12:48] [10:12:48]POST finish read [10:12:48]Found Content-Length = 677 [10:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:48]execute_script... [10:12:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:48]POST & json_proto [10:12:48]process_json_proto [10:12:48]json parsed OK: [10:12:48]protocol is kg_v1.0 [10:12:48]action value=close_receipt [10:12:48]process_action close_receipt [10:12:48]cmd_close_receipt [10:12:48]MH_GetDate [10:12:48]Write to MH i2c: F0 00 00 A9 0B A3 [10:12:48]Write i2c OK [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: F0 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: F0 09 00 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: F0 09 00 A9 0B 00 A1 00 74 66 BD 8F 7C 64 53 [10:12:48]GetLastDocTimeStamp 1718878338 [10:12:48]current date 1718878369 [10:12:48]FM_GetShiftState [10:12:48]SAM_PROTO_GetShiftState [10:12:48]wFMCommunicate request_size=4 [10:12:48]MH_SAM_APDU [10:12:48]CAPDU: 80 13 01 00 [10:12:48]Write to MH i2c: E2 08 00 AA 0B 80 13 01 00 00 00 00 00 32 [10:12:48]Write i2c OK [10:12:48]MH_I2C_Read... [10:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:48]Read from MH i2c: E2 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: E2 0E 00 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: E2 0E 00 AA 0B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 81 [10:12:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:12:48]wFMCommunicate OK [10:12:48]SAM_PROTO_GetShiftState done [10:12:48]FM_GetShiftState done [10:12:48]opened in 1718843124 [10:12:48]opened+sec_in_day 1718929524 [10:12:48]quantity*price = 45019 [10:12:48]sum+1 = 45020 [10:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 49 20.06.2024 10:12 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103864 ФПД: 191652804851579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101249&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103864&fm=191652804851579&tin=02508201610067®Number=0000000000092785&sum=45000 [10:12:49]StoreToDocumentArchive [10:12:49]shift 354 fd 103864 [10:12:49]save to /storage/0354/doc_00103864 [10:12:49]save last doc name /storage/0354/doc_00103864 to /storage/kkm_last_doc_name [10:12:49]save OK [10:12:49]Clear old archive folders... [10:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:49]tlvbuf is 0083DF10 [10:12:49]SAM_PROTO_ClearQueue [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 09 00 00 [10:12:49]Write to MH i2c: E2 08 00 B7 0B 80 09 00 00 00 00 00 00 34 [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:49]Read from MH i2c: E2 03 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 B7 0B 00 90 00 36 [10:12:49]RAPDU: 90 00 [10:12:49]wFMCommunicate OK [10:12:49]SAM_PROTO_ClearQueue done [10:12:49]KKMCreateOFDPacket [10:12:49]OFDProtocolAddRootSTLVToBuf [10:12:49]FM_MakeSignedData [10:12:49]FM_MakeSignedData [10:12:49]SAM_PROTO_SignData [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 0D 01 02 [10:12:49]Write to MH i2c: E2 08 00 B8 0B 80 0D 01 02 00 00 00 00 3C [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 B8 0B 00 90 00 37 [10:12:49]RAPDU: 90 00 [10:12:49]wFMCommunicate OK [10:12:49]wFMCommunicate request_size=255 [10:12:49]MH_SAM_APDU [10:12: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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A1 00 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 95 01 00 35 04 06 00 AE [10:12:49]Write to MH i2c: E2 02 01 B9 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A1 00 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 95 01 00 35 04 06 00 AE 00 00 BC [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:50]Read from MH i2c: E2 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 03 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 03 00 B9 0B 00 90 00 38 [10:12:50]RAPDU: 90 00 [10:12:50]wFMCommunicate OK [10:12:50]wFMCommunicate request_size=10 [10:12:50]MH_SAM_APDU [10:12:50]CAPDU: 80 0D 02 02 05 4E A5 5A 77 7B [10:12:50]Write to MH i2c: E2 0D 00 BA 0B 80 0D 02 02 05 00 4E A5 5A 77 7B 00 00 88 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:50]Read from MH i2c: E2 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 03 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 03 00 BA 0B 00 90 00 39 [10:12:50]RAPDU: 90 00 [10:12:50]wFMCommunicate OK [10:12:50]wFMCommunicate request_size=4 [10:12:50]MH_SAM_APDU [10:12:50]CAPDU: 80 0D 03 02 [10:12:50]Write to MH i2c: E2 08 00 BB 0B 80 0D 03 02 00 00 00 00 41 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:50]Read from MH i2c: E2 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 0B 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 0B 00 BB 0B 00 99 5A E8 DB 64 D5 FE 20 90 00 4F [10:12:50]RAPDU: 99 5A E8 DB 64 D5 FE 20 90 00 [10:12:50]wFMCommunicate OK [10:12:50]SAM_PROTO_SignData done [10:12:50]FM_MakeSignedData done [10:12:50]CreateOFDProtocolMessage [10:12:50]wFMCommunicate request_size=4 [10:12:50]MH_SAM_APDU [10:12:50]CAPDU: 80 11 00 00 [10:12:50]Write to MH i2c: E2 08 00 BC 0B 80 11 00 00 00 00 00 00 41 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:50]Read from MH i2c: E2 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 17 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 17 00 BC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 94 [10:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:12:50]wFMCommunicate OK [10:12:50]CreateOFDProtocolMessage done [10:12:50]OFDSenderStorePacket 103864 [10:12:50]StoreOFDPacket docnum=103864 [10:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 88 CC 07 01 90 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A1 00 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 95 01 00 35 04 06 00 AE 4E A5 5A 77 7B 99 5A E8 DB 64 D5 FE 20 [10:12:50]CheckFolder [10:12:50]dirname=/storage/ofd_packets [10:12:50]CheckFolder done [10:12:50]ProducePacketName [10:12:50]name=ofd_packets/00103864 [10:12:50]NVStorageSaveData ofd_packets/00103864 [10:12:50]File name is /storage/ofd_packets/00103864 [10:12:50]Write 301 bytes [10:12:50]NVStorageSaveData done [10:12:50]OFDSenderStorePacket done [10:12:50]KKMCreateOFDPacket done [10:12:50]NVStorageSaveData kkm_last_timestamp [10:12:50]File name is /storage/kkm_last_timestamp [10:12:50]Write 4 bytes [10:12:50]NVStorageSaveData done [10:12:50]ExternCall_PrintAddStr [10:12:50]wPrintStart [10:12:50]Write to MH i2c: 01 00 00 BD 0B C8 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 07 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 07 00 BD 0B 00 00 00 00 00 FF 0F DD [10:12:50]RasterBufferAndPrint [10:12:50]line Счет N : (1)673189 [10:12:50]line ИНН: 02508201610067 [10:12:50]line Контрольно-Кассовый Чек [10:12:50]line ПРОДАЖА [10:12:50]line ТРК (МРК, ГНК) : 42 [10:12:50]line Товар: 2710124130 [10:12:50]line Аи-92-К-5 [10:12:50]line 6.780 * 66.40 [10:12:50]line = 450.19 [10:12:50]line НДС 12% НСП 1% [10:12:50]line > о реализуемом товаре [10:12:50]line ОКРУГЛЕНИЕ: -0.19 [10:12:50]line ИТОГО: 450.00 [10:12:50]line Внесено: 450.00 [10:12:50]line СДАЧА: 0.00 [10:12:50]line НСП 1% : 3.98 [10:12:50]line НДС 12% : 47.81 [10:12:50]line Наличными: 450.00 [10:12:50]line Безнал.: 0.00 [10:12:50]line Место: АЗС № 120 "Партнер Нефть" [10:12:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:12:50]line СНО: Общий режим [10:12:50]line Чек 49 20.06.2024 10:12 [10:12:50]line Смена: 354 ФФД: 1.0 [10:12:50]line ЗНМ: 0300000164 [10:12:50]line РНМ: 0000000000092785 [10:12:50]line Версия ККМ: 001 [10:12:50]line ФМ: 0000000000875093 [10:12:50]line ФД: 103864 [10:12:50]line ФПД: 191652804851579 [10:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101249&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103864&fm=191652804851579&tin=02508201610067®Number=0000000000092785&sum=45000 [10:12:50]OFD Sender: Processing packet 103864 [packets to send 17, broken 16] [10:12:50]ProducePacketName [10:12:50]name=ofd_packets/00103864 [10:12:50]OFD Sender: To server: pG, [10:12:50]CommunicateWithHost lk.salyk.kg:30040 [10:12:50]ConnectInit lk.salyk.kg [10:12:50]written 0, free lines is 4095 [10:12:50]Connected sock=10 [10:12:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 88 CC 07 01 90 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A1 00 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 95 01 00 35 04 06 00 AE 4E A5 5A 77 7B 99 5A E8 DB 64 D5 FE 20 [10:12:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BC E3 47 00 70 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B8 95 01 00 F4 03 04 00 27 A7 73 66 B6 04 01 00 00 64 93 57 1E 8D 32 A3 A5 [10:12:51]CommunicateWithHost err = 0 [10:12:51]CheckOFDResponse [10:12:51]1017 (14) - 77093643461234 [10:12:51]1041 (16) - 0000000000875093 [10:12:51]1040 (4) - 103864 [10:12:51]1012 (4) - 20.06.2024 03:51 [10:12:51]1206 (1) - 0 [10:12:51]OFD Sender: Remove packet 103864 [10:12:51]ProducePacketName [10:12:51]name=ofd_packets/00103864 [10:12:51]NVStorageDeleteData [10:12:51]Write to MH i2c: 01 00 00 E8 0B F3 [10:12:51]Write i2c OK [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: 01 [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: 01 07 00 [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: 01 07 00 E8 0B 00 00 00 00 00 E1 0C E7 [10:12:51]RasterBufferAndPrint [10:12:51]line [10:12:51]line [10:12:51]line [10:12:51]line [10:12:51]line [10:12:51]written 0, free lines is 3303 [10:12:51]MH_Cut [10:12:51]Write to MH i2c: D1 01 00 EF 0B 01 CC [10:12:51]Write i2c OK [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: D1 [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: D1 01 00 [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: D1 01 00 EF 0B 00 CB [10:12:51]Write to MH i2c: 01 00 00 F0 0B FB [10:12:51]Write i2c OK [10:12:51]MH_I2C_Read... [10:12:51]OFD Sender: No OFD packet to send [10:12:51]*** Cut start [10:12:51]*** Partial cut [10:12:51]*** CUTSNS_PIN = 1 [10:12:51]*** CUTSNS_PIN = 0 [10:12:52]*** Brake cut motor [10:12:52]Read from MH i2c: 01 [10:12:52]MH_I2C_Read... [10:12:52]*** Stop cut motor [10:12:52]*** Cut end [10:12:52]Read from MH i2c: 01 07 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: 01 07 00 F0 0B 00 00 00 00 00 FF 0F 10 [10:12:52]process_action close_receipt done [10:12:52]requested_data is exist [10:12:52]produce_requested_data [10:12:52]requested_item fm.sn is exist - process it [10:12:52]wFMCommunicate request_size=4 [10:12:52]MH_SAM_APDU [10:12:52]CAPDU: 80 11 00 00 [10:12:52]Write to MH i2c: E2 08 00 F1 0B 80 11 00 00 00 00 00 00 76 [10:12:52]Write i2c OK [10:12:52]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 17 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 17 00 F1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C9 [10:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:12:52]wFMCommunicate OK [10:12:52]requested_item fd.num is exist - process it [10:12:52]SAM_PROTO_GetFieldsCounters [10:12:52]wFMCommunicate request_size=4 [10:12:52]MH_SAM_APDU [10:12:52]CAPDU: 80 13 00 00 [10:12:52]Write to MH i2c: E2 08 00 F2 0B 80 13 00 00 00 00 00 00 79 [10:12:52]Write i2c OK [10:12:52]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 62 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 62 00 F2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B8 95 01 00 0E 04 04 00 62 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 E4 [10:12:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B8 95 01 00 0E 04 04 00 62 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:12:52]wFMCommunicate OK [10:12:52]SAM_PROTO_GetFieldsCounters done [10:12:52]requested_item shift.num is exist - process it [10:12:52]requested_item shift.opened is exist - process it [10:12:52]req_shift_opened [10:12:52]FM_GetShiftState [10:12:52]SAM_PROTO_GetShiftState [10:12:52]wFMCommunicate request_size=4 [10:12:52]MH_SAM_APDU [10:12:52]CAPDU: 80 13 01 00 [10:12:52]Write to MH i2c: E2 08 00 F3 0B 80 13 01 00 00 00 00 00 7B [10:12:52]Write i2c OK [10:12:52]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 0E 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 0E 00 F3 0B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CA [10:12:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:12:52]wFMCommunicate OK [10:12:52]SAM_PROTO_GetShiftState done [10:12:52]FM_GetShiftState done [10:12:52]req_shift_opened done [10:12:52]requested_item shift.open_date is exist - process it [10:12:52]req_shift_open_date [10:12:52]req_shift_open_date done [10:12:52]produce_requested_data done [10:12:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103864,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:12:52]process_action_free close_receipt [10:12:52]json_value_free [10:12:52]json_value_free done [10:12:52]process_json_proto returns [10:12:52]Send response to host [10:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103864,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:12:52]free response buf [10:12:52]execute_script done [10:12:52]execute_script returns [10:12:52]free content buf [10:12:52]Sock 9.Close socket [10:12:52]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:42]accept exits with 7 [10:15:42]New connection [10:15:42]New thread 3067063652 created [10:15:42]Thread 3067207012 joined [10:15:42]Waiting for new connection... [10:15:42] Sock 7.Parse request [10:15:42]Sock 7.Check first char [10:15:42]Sock 7.First char is OK [10:15:42]request: POST /json_proto HTTP/1.0 [10:15:42]Method: POST [10:15:42]URL: /json_proto [10:15:42]Method is POST - this is cgi request [10:15:42]url: /json_proto [10:15:42]query_string will be loaded in cgi processing [10:15:42]execute_cgi json_proto POST (null) [10:15:42]execute_cgi path=json_proto method=POST [10:15:42]POST find Content-Length [10:15:42]Host: 172.17.38.133:8080 [10:15:42]Content-Length: 682 [10:15:42]Content-Type: application/json [10:15:42] [10:15:42]POST finish read [10:15:42]Found Content-Length = 682 [10:15:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:42]execute_script... [10:15: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)673191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:42]POST & json_proto [10:15:42]process_json_proto [10:15:42]json parsed OK: [10:15:42]protocol is kg_v1.0 [10:15:42]action value=close_receipt [10:15:42]process_action close_receipt [10:15:42]cmd_close_receipt [10:15:42]MH_GetDate [10:15:42]Write to MH i2c: F0 00 00 F4 0B EE [10:15:42]Write i2c OK [10:15:42]MH_I2C_Read... [10:15:42]Read from MH i2c: F0 [10:15:42]MH_I2C_Read... [10:15:42]Read from MH i2c: F0 09 00 [10:15:42]MH_I2C_Read... [10:15:42]Read from MH i2c: F0 09 00 F4 0B 00 4F 01 74 66 BD 8F 7C 64 4D [10:15:42]GetLastDocTimeStamp 1718878369 [10:15:42]current date 1718878543 [10:15:42]FM_GetShiftState [10:15:42]SAM_PROTO_GetShiftState [10:15:42]wFMCommunicate request_size=4 [10:15:42]MH_SAM_APDU [10:15:42]CAPDU: 80 13 01 00 [10:15:42]Write to MH i2c: E2 08 00 F5 0B 80 13 01 00 00 00 00 00 7D [10:15:42]Write i2c OK [10:15:42]MH_I2C_Read... [10:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:42]Read from MH i2c: E2 [10:15:42]MH_I2C_Read... [10:15:42]Read from MH i2c: E2 0E 00 [10:15:42]MH_I2C_Read... [10:15:42]Read from MH i2c: E2 0E 00 F5 0B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CC [10:15:42]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:15:42]wFMCommunicate OK [10:15:42]SAM_PROTO_GetShiftState done [10:15:42]FM_GetShiftState done [10:15:42]opened in 1718843124 [10:15:42]opened+sec_in_day 1718929524 [10:15:42]quantity*price = 30034 [10:15:42]sum+1 = 30036 [10:15:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 50 20.06.2024 10:15 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103865 ФПД: 91002032940944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101544&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103865&fm=91002032940944&tin=02508201610067®Number=0000000000092785&sum=30000 [10:15:43]StoreToDocumentArchive [10:15:43]shift 354 fd 103865 [10:15:43]save to /storage/0354/doc_00103865 [10:15:43]save last doc name /storage/0354/doc_00103865 to /storage/kkm_last_doc_name [10:15:43]save OK [10:15:43]Clear old archive folders... [10:15:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:15:43]tlvbuf is 007FCDB0 [10:15:43]SAM_PROTO_ClearQueue [10:15:43]wFMCommunicate request_size=4 [10:15:43]MH_SAM_APDU [10:15:43]CAPDU: 80 09 00 00 [10:15:43]Write to MH i2c: E2 08 00 02 0C 80 09 00 00 00 00 00 00 80 [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:43]Read from MH i2c: E2 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 03 00 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 03 00 02 0C 00 90 00 82 [10:15:43]RAPDU: 90 00 [10:15:43]wFMCommunicate OK [10:15:43]SAM_PROTO_ClearQueue done [10:15:43]KKMCreateOFDPacket [10:15:43]OFDProtocolAddRootSTLVToBuf [10:15:43]FM_MakeSignedData [10:15:43]FM_MakeSignedData [10:15:43]SAM_PROTO_SignData [10:15:43]wFMCommunicate request_size=4 [10:15:43]MH_SAM_APDU [10:15:43]CAPDU: 80 0D 01 02 [10:15:43]Write to MH i2c: E2 08 00 03 0C 80 0D 01 02 00 00 00 00 88 [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:43]Read from MH i2c: E2 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 03 00 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 03 00 03 0C 00 90 00 83 [10:15:43]RAPDU: 90 00 [10:15:43]wFMCommunicate OK [10:15:43]wFMCommunicate request_size=255 [10:15:43]MH_SAM_APDU [10:15:43]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 50 01 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 95 01 00 35 04 06 00 [10:15:43]Write to MH i2c: E2 02 01 04 0C 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 50 01 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 95 01 00 35 04 06 00 00 00 3F [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:44]Read from MH i2c: E2 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: E2 03 00 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: E2 03 00 04 0C 00 90 00 84 [10:15:44]RAPDU: 90 00 [10:15:44]wFMCommunicate OK [10:15:44]wFMCommunicate request_size=11 [10:15:44]MH_SAM_APDU [10:15:44]CAPDU: 80 0D 02 02 06 52 C4 0F D8 E7 90 [10:15:44]Write to MH i2c: E2 0E 00 05 0C 80 0D 02 02 06 00 52 C4 0F D8 E7 90 00 00 0B [10:15:44]Write i2c OK [10:15:44]MH_I2C_Read... [10:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:44]Read from MH i2c: E2 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: E2 03 00 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: E2 03 00 05 0C 00 90 00 85 [10:15:44]RAPDU: 90 00 [10:15:44]wFMCommunicate OK [10:15:44]wFMCommunicate request_size=4 [10:15:44]MH_SAM_APDU [10:15:44]CAPDU: 80 0D 03 02 [10:15:44]Write to MH i2c: E2 08 00 06 0C 80 0D 03 02 00 00 00 00 8D [10:15:44]Write i2c OK [10:15:44]MH_I2C_Read... [10:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:44]Read from MH i2c: E2 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: E2 0B 00 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: E2 0B 00 06 0C 00 9D 05 E4 79 0B B3 28 23 90 00 96 [10:15:44]RAPDU: 9D 05 E4 79 0B B3 28 23 90 00 [10:15:44]wFMCommunicate OK [10:15:44]SAM_PROTO_SignData done [10:15:44]FM_MakeSignedData done [10:15:44]CreateOFDProtocolMessage [10:15:44]wFMCommunicate request_size=4 [10:15:44]MH_SAM_APDU [10:15:44]CAPDU: 80 11 00 00 [10:15:44]Write to MH i2c: E2 08 00 07 0C 80 11 00 00 00 00 00 00 8D [10:15:44]Write i2c OK [10:15:44]MH_I2C_Read... [10:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:44]Read from MH i2c: E2 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: E2 17 00 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: E2 17 00 07 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E0 [10:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:15:44]wFMCommunicate OK [10:15:44]CreateOFDProtocolMessage done [10:15:44]OFDSenderStorePacket 103865 [10:15:44]StoreOFDPacket docnum=103865 [10:15:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 66 BC 08 01 5B 84 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 50 01 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 95 01 00 35 04 06 00 52 C4 0F D8 E7 90 9D 05 E4 79 0B B3 28 23 [10:15:44]CheckFolder [10:15:44]dirname=/storage/ofd_packets [10:15:44]CheckFolder done [10:15:44]ProducePacketName [10:15:44]name=ofd_packets/00103865 [10:15:44]NVStorageSaveData ofd_packets/00103865 [10:15:44]File name is /storage/ofd_packets/00103865 [10:15:44]Write 302 bytes [10:15:44]NVStorageSaveData done [10:15:44]OFDSenderStorePacket done [10:15:44]KKMCreateOFDPacket done [10:15:44]NVStorageSaveData kkm_last_timestamp [10:15:44]File name is /storage/kkm_last_timestamp [10:15:44]Write 4 bytes [10:15:44]NVStorageSaveData done [10:15:44]OFD Sender: Processing packet 103865 [packets to send 17, broken 16] [10:15:44]ProducePacketName [10:15:44]name=ofd_packets/00103865 [10:15:44]OFD Sender: To server: pG, [10:15:44]CommunicateWithHost lk.salyk.kg:30040 [10:15:44]ConnectInit lk.salyk.kg [10:15:44]ExternCall_PrintAddStr [10:15:44]wPrintStart [10:15:44]Write to MH i2c: 01 00 00 08 0C 14 [10:15:44]Write i2c OK [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: 01 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: 01 07 00 [10:15:44]MH_I2C_Read... [10:15:44]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 FF 0F 29 [10:15:44]RasterBufferAndPrint [10:15:44]line Счет N : (1)673191 [10:15:44]line ИНН: 02508201610067 [10:15:44]line Контрольно-Кассовый Чек [10:15:44]line ПРОДАЖА [10:15:44]line ТРК (МРК, ГНК) : 11 [10:15:44]line Товар: 2710194210 [10:15:44]line ДТ(л)-К-5 [10:15:44]line 4.120 * 72.90 [10:15:44]line = 300.35 [10:15:44]line НДС 12% НСП 1% [10:15:44]line > о реализуемом товаре [10:15:44]line ОКРУГЛЕНИЕ: -0.35 [10:15:44]line ИТОГО: 300.00 [10:15:44]line Внесено: 300.00 [10:15:44]line СДАЧА: 0.00 [10:15:44]line НСП 1% : 2.66 [10:15:44]line НДС 12% : 31.90 [10:15:44]line Наличными: 300.00 [10:15:44]line Безнал.: 0.00 [10:15:44]line Место: АЗС № 120 "Партнер Нефть" [10:15:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:15:44]line СНО: Общий режим [10:15:44]line Чек 50 20.06.2024 10:15 [10:15:44]line Смена: 354 ФФД: 1.0 [10:15:44]line ЗНМ: 0300000164 [10:15:44]line РНМ: 0000000000092785 [10:15:44]line Версия ККМ: 001 [10:15:44]line ФМ: 0000000000875093 [10:15:44]line ФД: 103865 [10:15:44]line ФПД: 91002032940944 [10:15:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101544&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103865&fm=91002032940944&tin=02508201610067®Number=0000000000092785&sum=30000 [10:15:44]Connected sock=11 [10:15:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 66 BC 08 01 5B 84 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 50 01 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 95 01 00 35 04 06 00 52 C4 0F D8 E7 90 9D 05 E4 79 0B B3 28 23 [10:15:44]written 0, free lines is 4095 [10:15:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F8 5B 47 00 D0 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 B9 95 01 00 F4 03 04 00 D5 A7 73 66 B6 04 01 00 00 AB 69 88 11 66 A0 72 01 [10:15:44]CommunicateWithHost err = 0 [10:15:44]CheckOFDResponse [10:15:44]1017 (14) - 77093643461234 [10:15:44]1041 (16) - 0000000000875093 [10:15:44]1040 (4) - 103865 [10:15:44]1012 (4) - 20.06.2024 03:53 [10:15:44]1206 (1) - 0 [10:15:44]OFD Sender: Remove packet 103865 [10:15:44]ProducePacketName [10:15:44]name=ofd_packets/00103865 [10:15:44]NVStorageDeleteData [10:15:45]Write to MH i2c: 01 00 00 33 0C 3F [10:15:45]Write i2c OK [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: 01 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: 01 07 00 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: 01 07 00 33 0C 00 00 00 00 00 CD 0C 1F [10:15:45]RasterBufferAndPrint [10:15:45]line [10:15:45]line [10:15:45]line [10:15:45]line [10:15:45]line [10:15:45]written 0, free lines is 3283 [10:15:45]MH_Cut [10:15:45]Write to MH i2c: D1 01 00 3A 0C 01 18 [10:15:45]Write i2c OK [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: D1 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: D1 01 00 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: D1 01 00 3A 0C 00 17 [10:15:45]Write to MH i2c: 01 00 00 3B 0C 47 [10:15:45]Write i2c OK [10:15:45]MH_I2C_Read... [10:15:45]OFD Sender: No OFD packet to send [10:15:45]*** Cut start [10:15:45]*** Partial cut [10:15:45]*** CUTSNS_PIN = 1 [10:15:46]*** CUTSNS_PIN = 0 [10:15:46]*** Brake cut motor [10:15:46]Read from MH i2c: 01 [10:15:46]MH_I2C_Read... [10:15:46]*** Stop cut motor [10:15:46]*** Cut end [10:15:46]Read from MH i2c: 01 07 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: 01 07 00 3B 0C 00 00 00 00 00 FF 0F 5C [10:15:46]process_action close_receipt done [10:15:46]requested_data is exist [10:15:46]produce_requested_data [10:15:46]requested_item fm.sn is exist - process it [10:15:46]wFMCommunicate request_size=4 [10:15:46]MH_SAM_APDU [10:15:46]CAPDU: 80 11 00 00 [10:15:46]Write to MH i2c: E2 08 00 3C 0C 80 11 00 00 00 00 00 00 C2 [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:46]Read from MH i2c: E2 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 17 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 17 00 3C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [10:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:15:46]wFMCommunicate OK [10:15:46]requested_item fd.num is exist - process it [10:15:46]SAM_PROTO_GetFieldsCounters [10:15:46]wFMCommunicate request_size=4 [10:15:46]MH_SAM_APDU [10:15:46]CAPDU: 80 13 00 00 [10:15:46]Write to MH i2c: E2 08 00 3D 0C 80 13 00 00 00 00 00 00 C5 [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:46]Read from MH i2c: E2 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 62 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 62 00 3D 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B9 95 01 00 0E 04 04 00 62 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 34 [10:15:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 B9 95 01 00 0E 04 04 00 62 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:15:46]wFMCommunicate OK [10:15:46]SAM_PROTO_GetFieldsCounters done [10:15:46]requested_item shift.num is exist - process it [10:15:46]requested_item shift.opened is exist - process it [10:15:46]req_shift_opened [10:15:46]FM_GetShiftState [10:15:46]SAM_PROTO_GetShiftState [10:15:46]wFMCommunicate request_size=4 [10:15:46]MH_SAM_APDU [10:15:46]CAPDU: 80 13 01 00 [10:15:46]Write to MH i2c: E2 08 00 3E 0C 80 13 01 00 00 00 00 00 C7 [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:46]Read from MH i2c: E2 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 0E 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: E2 0E 00 3E 0C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 16 [10:15:46]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:15:46]wFMCommunicate OK [10:15:46]SAM_PROTO_GetShiftState done [10:15:46]FM_GetShiftState done [10:15:46]req_shift_opened done [10:15:46]requested_item shift.open_date is exist - process it [10:15:46]req_shift_open_date [10:15:46]req_shift_open_date done [10:15:46]produce_requested_data done [10:15:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103865,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:15:46]process_action_free close_receipt [10:15:46]json_value_free [10:15:46]json_value_free done [10:15:46]process_json_proto returns [10:15:46]Send response to host [10:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103865,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:15:46]free response buf [10:15:46]execute_script done [10:15:46]execute_script returns [10:15:46]free content buf [10:15:46]Sock 7.Close socket [10:15:46]Sock 7.Thread stoped [10:15:47]accept exits with 9 [10:15:47]New connection [10:15:47]New thread 3067207012 created [10:15:47]Thread 3067063652 joined [10:15:47]Waiting for new connection... [10:15:47] Sock 9.Parse request [10:15:47]Sock 9.Check first char [10:15:47]Sock 9.First char is OK [10:15:47]request: POST /json_proto HTTP/1.0 [10:15:47]Method: POST [10:15:47]URL: /json_proto [10:15:47]Method is POST - this is cgi request [10:15:47]url: /json_proto [10:15:47]query_string will be loaded in cgi processing [10:15:47]execute_cgi json_proto POST (null) [10:15:47]execute_cgi path=json_proto method=POST [10:15:47]POST find Content-Length [10:15:47]Host: 172.17.38.133:8080 [10:15:47]Content-Length: 819 [10:15:47]Content-Type: application/json [10:15:47] [10:15:47]POST finish read [10:15:47]Found Content-Length = 819 [10:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673190", "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" : 73.90, "quantity" : 30.230, "sum" : 2234.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" : 2234.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:47]execute_script... [10:15: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)673190", "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" : 73.90, "quantity" : 30.230, "sum" : 2234.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" : 2234.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:47]POST & json_proto [10:15:47]process_json_proto [10:15:47]json parsed OK: [10:15:47]protocol is kg_v1.0 [10:15:47]action value=close_receipt [10:15:47]process_action close_receipt [10:15:47]cmd_close_receipt [10:15:47]MH_GetDate [10:15:47]Write to MH i2c: F0 00 00 3F 0C 3A [10:15:47]Write i2c OK [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: F0 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: F0 09 00 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: F0 09 00 3F 0C 00 55 01 74 66 BD 8F 7C 64 9F [10:15:47]GetLastDocTimeStamp 1718878544 [10:15:47]current date 1718878549 [10:15:47]FM_GetShiftState [10:15:47]SAM_PROTO_GetShiftState [10:15:47]wFMCommunicate request_size=4 [10:15:47]MH_SAM_APDU [10:15:47]CAPDU: 80 13 01 00 [10:15:47]Write to MH i2c: E2 08 00 40 0C 80 13 01 00 00 00 00 00 C9 [10:15:47]Write i2c OK [10:15:47]MH_I2C_Read... [10:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:47]Read from MH i2c: E2 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: E2 0E 00 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: E2 0E 00 40 0C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 18 [10:15:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:15:47]wFMCommunicate OK [10:15:47]SAM_PROTO_GetShiftState done [10:15:47]FM_GetShiftState done [10:15:47]opened in 1718843124 [10:15:47]opened+sec_in_day 1718929524 [10:15:47]quantity*price = 223399 [10:15:47]sum+1 = 223401 [10:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2234.00 НСП 1% : 19.77 НДС 12% : 237.24 Наличными: 0.00 Безнал.: 2234.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 51 20.06.2024 10:15 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103866 ФПД: 233359351856563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101549&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103866&fm=233359351856563&tin=02508201610067®Number=0000000000092785&sum=223400 [10:15:49]StoreToDocumentArchive [10:15:49]shift 354 fd 103866 [10:15:49]save to /storage/0354/doc_00103866 [10:15:49]save last doc name /storage/0354/doc_00103866 to /storage/kkm_last_doc_name [10:15:49]save OK [10:15:49]Clear old archive folders... [10:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:49]tlvbuf is 0081F970 [10:15:49]SAM_PROTO_ClearQueue [10:15:49]wFMCommunicate request_size=4 [10:15:49]MH_SAM_APDU [10:15:49]CAPDU: 80 09 00 00 [10:15:49]Write to MH i2c: E2 08 00 4D 0C 80 09 00 00 00 00 00 00 CB [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:49]Read from MH i2c: E2 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 03 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 03 00 4D 0C 00 90 00 CD [10:15:49]RAPDU: 90 00 [10:15:49]wFMCommunicate OK [10:15:49]SAM_PROTO_ClearQueue done [10:15:49]KKMCreateOFDPacket [10:15:49]OFDProtocolAddRootSTLVToBuf [10:15:49]FM_MakeSignedData [10:15:49]FM_MakeSignedData [10:15:49]SAM_PROTO_SignData [10:15:49]wFMCommunicate request_size=4 [10:15:49]MH_SAM_APDU [10:15:49]CAPDU: 80 0D 01 02 [10:15:49]Write to MH i2c: E2 08 00 4E 0C 80 0D 01 02 00 00 00 00 D3 [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:49]Read from MH i2c: E2 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 03 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 03 00 4E 0C 00 90 00 CE [10:15:49]RAPDU: 90 00 [10:15:49]wFMCommunicate OK [10:15:49]wFMCommunicate request_size=255 [10:15:49]MH_SAM_APDU [10:15:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 76 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A8 68 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 68 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 5C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 68 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 55 01 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 95 01 00 35 04 06 00 D4 [10:15:49]Write to MH i2c: E2 02 01 4F 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 76 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A8 68 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 68 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 5C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 68 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 55 01 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 95 01 00 35 04 06 00 D4 00 00 58 [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:49]Read from MH i2c: E2 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 03 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 03 00 4F 0C 00 90 00 CF [10:15:49]RAPDU: 90 00 [10:15:49]wFMCommunicate OK [10:15:49]wFMCommunicate request_size=10 [10:15:49]MH_SAM_APDU [10:15:49]CAPDU: 80 0D 02 02 05 3D 35 45 BD B3 [10:15:49]Write to MH i2c: E2 0D 00 50 0C 80 0D 02 02 05 00 3D 35 45 BD B3 00 00 07 [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:49]Read from MH i2c: E2 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 03 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 03 00 50 0C 00 90 00 D0 [10:15:49]RAPDU: 90 00 [10:15:49]wFMCommunicate OK [10:15:49]wFMCommunicate request_size=4 [10:15:49]MH_SAM_APDU [10:15:49]CAPDU: 80 0D 03 02 [10:15:49]Write to MH i2c: E2 08 00 51 0C 80 0D 03 02 00 00 00 00 D8 [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:49]Read from MH i2c: E2 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 0B 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 0B 00 51 0C 00 F7 7B CF D8 AA A8 BE B0 90 00 B2 [10:15:49]RAPDU: F7 7B CF D8 AA A8 BE B0 90 00 [10:15:49]wFMCommunicate OK [10:15:49]SAM_PROTO_SignData done [10:15:49]FM_MakeSignedData done [10:15:49]CreateOFDProtocolMessage [10:15:49]wFMCommunicate request_size=4 [10:15:49]MH_SAM_APDU [10:15:49]CAPDU: 80 11 00 00 [10:15:49]Write to MH i2c: E2 08 00 52 0C 80 11 00 00 00 00 00 00 D8 [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:50]Read from MH i2c: E2 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 17 00 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 17 00 52 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [10:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:15:50]wFMCommunicate OK [10:15:50]CreateOFDProtocolMessage done [10:15:50]OFDSenderStorePacket 103866 [10:15:50]StoreOFDPacket docnum=103866 [10:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C7 70 07 01 38 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 76 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A8 68 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 68 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 5C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 68 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 55 01 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 95 01 00 35 04 06 00 D4 3D 35 45 BD B3 F7 7B CF D8 AA A8 BE B0 [10:15:50]CheckFolder [10:15:50]dirname=/storage/ofd_packets [10:15:50]CheckFolder done [10:15:50]ProducePacketName [10:15:50]name=ofd_packets/00103866 [10:15:50]NVStorageSaveData ofd_packets/00103866 [10:15:50]File name is /storage/ofd_packets/00103866 [10:15:50]Write 301 bytes [10:15:50]NVStorageSaveData done [10:15:50]OFDSenderStorePacket done [10:15:50]KKMCreateOFDPacket done [10:15:50]NVStorageSaveData kkm_last_timestamp [10:15:50]File name is /storage/kkm_last_timestamp [10:15:50]Write 4 bytes [10:15:50]NVStorageSaveData done [10:15:50]ExternCall_PrintAddStr [10:15:50]wPrintStart [10:15:50]Write to MH i2c: 01 00 00 53 0C 5F [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: 01 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: 01 07 00 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: 01 07 00 53 0C 00 00 00 00 00 FF 0F 74 [10:15:50]RasterBufferAndPrint [10:15:50]line Счет N : (1)673190 [10:15:50]line ИНН: 02508201610067 [10:15:50]line Контрольно-Кассовый Чек [10:15:50]line ПРОДАЖА [10:15:50]line ТРК (МРК, ГНК) : 31 [10:15:50]line Товар: 2710124500 [10:15:50]line Аи-95-К-5 [10:15:50]line 30.230 * 73.90 [10:15:50]line = 2234.00 [10:15:50]line НДС 12% НСП 1% [10:15:50]line > о реализуемом товаре [10:15:50]line ИТОГО: 2234.00 [10:15:50]line НСП 1% : 19.77 [10:15:50]line НДС 12% : 237.24 [10:15:50]line Наличными: 0.00 [10:15:50]line Безнал.: 2234.00 [10:15:50]line Место: АЗС № 120 "Партнер Нефть" [10:15:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:15:50]line СНО: Общий режим [10:15:50]line Чек 51 20.06.2024 10:15 [10:15:50]line Смена: 354 ФФД: 1.0 [10:15:50]line ЗНМ: 0300000164 [10:15:50]line РНМ: 0000000000092785 [10:15:50]line Версия ККМ: 001 [10:15:50]line Платежная система: Бакай Банк [10:15:50]line ФМ: 0000000000875093 [10:15:50]line ФД: 103866 [10:15:50]line ФПД: 233359351856563 [10:15:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101549&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103866&fm=233359351856563&tin=02508201610067®Number=0000000000092785&sum=223400 [10:15:50]written 0, free lines is 4095 [10:15:50]OFD Sender: Processing packet 103866 [packets to send 17, broken 16] [10:15:50]ProducePacketName [10:15:50]name=ofd_packets/00103866 [10:15:50]OFD Sender: To server: pG, [10:15:50]CommunicateWithHost lk.salyk.kg:30040 [10:15:50]ConnectInit lk.salyk.kg [10:15:50]Connected sock=10 [10:15:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C7 70 07 01 38 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 76 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A8 68 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 68 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 5C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 68 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 55 01 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 95 01 00 35 04 06 00 D4 3D 35 45 BD B3 F7 7B CF D8 AA A8 BE B0 [10:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E8 7E 47 00 35 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BA 95 01 00 F4 03 04 00 DB A7 73 66 B6 04 01 00 00 BE 3B 4A 11 39 1B D2 0F [10:15:50]CommunicateWithHost err = 0 [10:15:50]CheckOFDResponse [10:15:50]1017 (14) - 77093643461234 [10:15:50]1041 (16) - 0000000000875093 [10:15:50]1040 (4) - 103866 [10:15:50]1012 (4) - 20.06.2024 03:54 [10:15:50]1206 (1) - 0 [10:15:50]OFD Sender: Remove packet 103866 [10:15:50]ProducePacketName [10:15:50]name=ofd_packets/00103866 [10:15:50]NVStorageDeleteData [10:15:50]Write to MH i2c: 01 00 00 7D 0C 89 [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: 01 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: 01 07 00 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: 01 07 00 7D 0C 00 00 00 00 00 00 0D 9D [10:15:50]RasterBufferAndPrint [10:15:50]line [10:15:50]line [10:15:50]line [10:15:50]line [10:15:50]line [10:15:50]written 0, free lines is 3340 [10:15:50]MH_Cut [10:15:50]Write to MH i2c: D1 01 00 84 0C 01 62 [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: D1 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: D1 01 00 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: D1 01 00 84 0C 00 61 [10:15:50]Write to MH i2c: 01 00 00 85 0C 91 [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:51]OFD Sender: No OFD packet to send [10:15:51]*** Cut start [10:15:51]*** Partial cut [10:15:51]*** CUTSNS_PIN = 1 [10:15:51]*** CUTSNS_PIN = 0 [10:15:51]*** Brake cut motor [10:15:51]Read from MH i2c: 01 [10:15:51]MH_I2C_Read... [10:15:51]*** Stop cut motor [10:15:51]*** Cut end [10:15:51]Read from MH i2c: 01 07 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 07 00 85 0C 00 00 00 00 00 FF 0F A6 [10:15:51]process_action close_receipt done [10:15:51]requested_data is exist [10:15:51]produce_requested_data [10:15:51]requested_item fm.sn is exist - process it [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 11 00 00 [10:15:51]Write to MH i2c: E2 08 00 86 0C 80 11 00 00 00 00 00 00 0C [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 17 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 17 00 86 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5F [10:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:15:51]wFMCommunicate OK [10:15:51]requested_item fd.num is exist - process it [10:15:51]SAM_PROTO_GetFieldsCounters [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 13 00 00 [10:15:51]Write to MH i2c: E2 08 00 87 0C 80 13 00 00 00 00 00 00 0F [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 62 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 62 00 87 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 95 01 00 0E 04 04 00 62 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 82 [10:15:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BA 95 01 00 0E 04 04 00 62 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:15:52]wFMCommunicate OK [10:15:52]SAM_PROTO_GetFieldsCounters done [10:15:52]requested_item shift.num is exist - process it [10:15:52]requested_item shift.opened is exist - process it [10:15:52]req_shift_opened [10:15:52]FM_GetShiftState [10:15:52]SAM_PROTO_GetShiftState [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 13 01 00 [10:15:52]Write to MH i2c: E2 08 00 88 0C 80 13 01 00 00 00 00 00 11 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 0E 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 0E 00 88 0C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 60 [10:15:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:15:52]wFMCommunicate OK [10:15:52]SAM_PROTO_GetShiftState done [10:15:52]FM_GetShiftState done [10:15:52]req_shift_opened done [10:15:52]requested_item shift.open_date is exist - process it [10:15:52]req_shift_open_date [10:15:52]req_shift_open_date done [10:15:52]produce_requested_data done [10:15:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103866,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:15:52]process_action_free close_receipt [10:15:52]json_value_free [10:15:52]json_value_free done [10:15:52]process_json_proto returns [10:15:52]Send response to host [10:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103866,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:15:52]free response buf [10:15:52]execute_script done [10:15:52]execute_script returns [10:15:52]free content buf [10:15:52]Sock 9.Close socket [10:15:52]Sock 9.Thread stoped [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]accept exits with 7 [10:19:01]New connection [10:19:01]New thread 3067063652 created [10:19:01]Thread 3067207012 joined [10:19:01]Waiting for new connection... [10:19:01] Sock 7.Parse request [10:19:01]Sock 7.Check first char [10:19:01]Sock 7.First char is OK [10:19:01]request: POST /json_proto HTTP/1.0 [10:19:01]Method: POST [10:19:01]URL: /json_proto [10:19:01]Method is POST - this is cgi request [10:19:01]url: /json_proto [10:19:01]query_string will be loaded in cgi processing [10:19:01]execute_cgi json_proto POST (null) [10:19:01]execute_cgi path=json_proto method=POST [10:19:01]POST find Content-Length [10:19:01]Host: 172.17.38.133:8080 [10:19:01]Content-Length: 678 [10:19:01]Content-Type: application/json [10:19:01] [10:19:01]POST finish read [10:19:01]Found Content-Length = 678 [10:19:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:01]execute_script... [10:19: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)673193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:01]POST & json_proto [10:19:01]process_json_proto [10:19:01]json parsed OK: [10:19:01]protocol is kg_v1.0 [10:19:01]action value=close_receipt [10:19:01]process_action close_receipt [10:19:01]cmd_close_receipt [10:19:01]MH_GetDate [10:19:01]Write to MH i2c: F0 00 00 89 0C 84 [10:19:01]Write i2c OK [10:19:01]MH_I2C_Read... [10:19:01]Read from MH i2c: F0 [10:19:01]MH_I2C_Read... [10:19:01]Read from MH i2c: F0 09 00 [10:19:01]MH_I2C_Read... [10:19:01]Read from MH i2c: F0 09 00 89 0C 00 16 02 74 66 BD 8F 7C 64 AB [10:19:01]GetLastDocTimeStamp 1718878549 [10:19:01]current date 1718878742 [10:19:01]FM_GetShiftState [10:19:01]SAM_PROTO_GetShiftState [10:19:01]wFMCommunicate request_size=4 [10:19:01]MH_SAM_APDU [10:19:01]CAPDU: 80 13 01 00 [10:19:01]Write to MH i2c: E2 08 00 8A 0C 80 13 01 00 00 00 00 00 13 [10:19:01]Write i2c OK [10:19:01]MH_I2C_Read... [10:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:01]Read from MH i2c: E2 [10:19:01]MH_I2C_Read... [10:19:01]Read from MH i2c: E2 0E 00 [10:19:01]MH_I2C_Read... [10:19:01]Read from MH i2c: E2 0E 00 8A 0C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 62 [10:19:01]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:19:01]wFMCommunicate OK [10:19:01]SAM_PROTO_GetShiftState done [10:19:01]FM_GetShiftState done [10:19:01]opened in 1718843124 [10:19:01]opened+sec_in_day 1718929524 [10:19:01]quantity*price = 67064 [10:19:01]sum+1 = 67065 [10:19:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.22 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 52 20.06.2024 10:19 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103867 ФПД: 126267096490710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101902&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103867&fm=126267096490710&tin=02508201610067®Number=0000000000092785&sum=67000 [10:19:02]StoreToDocumentArchive [10:19:02]shift 354 fd 103867 [10:19:02]save to /storage/0354/doc_00103867 [10:19:02]save last doc name /storage/0354/doc_00103867 to /storage/kkm_last_doc_name [10:19:02]save OK [10:19:02]Clear old archive folders... [10:19:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:02]tlvbuf is 0083E020 [10:19:02]SAM_PROTO_ClearQueue [10:19:02]wFMCommunicate request_size=4 [10:19:02]MH_SAM_APDU [10:19:02]CAPDU: 80 09 00 00 [10:19:02]Write to MH i2c: E2 08 00 97 0C 80 09 00 00 00 00 00 00 15 [10:19:02]Write i2c OK [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 [10:19:02]MH_I2C_Read... [10:19:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:02]Read from MH i2c: E2 03 00 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 03 00 97 0C 00 90 00 17 [10:19:02]RAPDU: 90 00 [10:19:02]wFMCommunicate OK [10:19:02]SAM_PROTO_ClearQueue done [10:19:02]KKMCreateOFDPacket [10:19:02]OFDProtocolAddRootSTLVToBuf [10:19:02]FM_MakeSignedData [10:19:02]FM_MakeSignedData [10:19:02]SAM_PROTO_SignData [10:19:02]wFMCommunicate request_size=4 [10:19:02]MH_SAM_APDU [10:19:02]CAPDU: 80 0D 01 02 [10:19:02]Write to MH i2c: E2 08 00 98 0C 80 0D 01 02 00 00 00 00 1D [10:19:02]Write i2c OK [10:19:02]MH_I2C_Read... [10:19:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:02]Read from MH i2c: E2 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 03 00 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 03 00 98 0C 00 90 00 18 [10:19:02]RAPDU: 90 00 [10:19:02]wFMCommunicate OK [10:19:02]wFMCommunicate request_size=255 [10:19:02]MH_SAM_APDU [10:19: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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 16 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 95 01 00 35 04 06 00 72 [10:19:02]Write to MH i2c: E2 02 01 99 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 16 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 95 01 00 35 04 06 00 72 00 00 D7 [10:19:02]Write i2c OK [10:19:02]MH_I2C_Read... [10:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:02]Read from MH i2c: E2 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 03 00 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 03 00 99 0C 00 90 00 19 [10:19:02]RAPDU: 90 00 [10:19:02]wFMCommunicate OK [10:19:02]wFMCommunicate request_size=10 [10:19:02]MH_SAM_APDU [10:19:02]CAPDU: 80 0D 02 02 05 D6 D9 6E E2 D6 [10:19:02]Write to MH i2c: E2 0D 00 9A 0C 80 0D 02 02 05 00 D6 D9 6E E2 D6 00 00 FF [10:19:02]Write i2c OK [10:19:02]MH_I2C_Read... [10:19:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:02]Read from MH i2c: E2 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 03 00 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 03 00 9A 0C 00 90 00 1A [10:19:02]RAPDU: 90 00 [10:19:02]wFMCommunicate OK [10:19:02]wFMCommunicate request_size=4 [10:19:02]MH_SAM_APDU [10:19:02]CAPDU: 80 0D 03 02 [10:19:02]Write to MH i2c: E2 08 00 9B 0C 80 0D 03 02 00 00 00 00 22 [10:19:02]Write i2c OK [10:19:02]MH_I2C_Read... [10:19:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:02]Read from MH i2c: E2 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 0B 00 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 0B 00 9B 0C 00 56 02 C8 78 D8 3F B9 BC 90 00 47 [10:19:02]RAPDU: 56 02 C8 78 D8 3F B9 BC 90 00 [10:19:02]wFMCommunicate OK [10:19:02]SAM_PROTO_SignData done [10:19:02]FM_MakeSignedData done [10:19:02]CreateOFDProtocolMessage [10:19:02]wFMCommunicate request_size=4 [10:19:02]MH_SAM_APDU [10:19:02]CAPDU: 80 11 00 00 [10:19:02]Write to MH i2c: E2 08 00 9C 0C 80 11 00 00 00 00 00 00 22 [10:19:02]Write i2c OK [10:19:02]MH_I2C_Read... [10:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:02]Read from MH i2c: E2 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 17 00 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: E2 17 00 9C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 75 [10:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:19:02]wFMCommunicate OK [10:19:02]CreateOFDProtocolMessage done [10:19:02]OFDSenderStorePacket 103867 [10:19:02]StoreOFDPacket docnum=103867 [10:19:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 23 54 07 01 2E F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 16 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 95 01 00 35 04 06 00 72 D6 D9 6E E2 D6 56 02 C8 78 D8 3F B9 BC [10:19:02]CheckFolder [10:19:02]dirname=/storage/ofd_packets [10:19:02]CheckFolder done [10:19:02]ProducePacketName [10:19:02]name=ofd_packets/00103867 [10:19:02]NVStorageSaveData ofd_packets/00103867 [10:19:02]File name is /storage/ofd_packets/00103867 [10:19:02]Write 301 bytes [10:19:02]NVStorageSaveData done [10:19:02]OFDSenderStorePacket done [10:19:02]KKMCreateOFDPacket done [10:19:02]NVStorageSaveData kkm_last_timestamp [10:19:02]File name is /storage/kkm_last_timestamp [10:19:02]Write 4 bytes [10:19:02]NVStorageSaveData done [10:19:02]ExternCall_PrintAddStr [10:19:02]wPrintStart [10:19:02]Write to MH i2c: 01 00 00 9D 0C A9 [10:19:02]Write i2c OK [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: 01 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: 01 07 00 [10:19:02]MH_I2C_Read... [10:19:02]Read from MH i2c: 01 07 00 9D 0C 00 00 00 00 00 FF 0F BE [10:19:02]RasterBufferAndPrint [10:19:02]line Счет N : (1)673193 [10:19:02]line ИНН: 02508201610067 [10:19:02]line Контрольно-Кассовый Чек [10:19:02]line ПРОДАЖА [10:19:02]line ТРК (МРК, ГНК) : 32 [10:19:02]line Товар: 2710124130 [10:19:02]line Аи-92-К-5 [10:19:02]line 10.100 * 66.40 [10:19:02]line = 670.64 [10:19:02]line НДС 12% НСП 1% [10:19:02]line > о реализуемом товаре [10:19:02]line ОКРУГЛЕНИЕ: -0.64 [10:19:02]line ИТОГО: 670.00 [10:19:02]line Внесено: 670.00 [10:19:02]line СДАЧА: 0.00 [10:19:02]line НСП 1% : 5.93 [10:19:02]line НДС 12% : 71.22 [10:19:02]line Наличными: 670.00 [10:19:02]line Безнал.: 0.00 [10:19:02]line Место: АЗС № 120 "Партнер Нефть" [10:19:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:19:02]line СНО: Общий режим [10:19:02]line Чек 52 20.06.2024 10:19 [10:19:02]line Смена: 354 ФФД: 1.0 [10:19:02]line ЗНМ: 0300000164 [10:19:02]line РНМ: 0000000000092785 [10:19:02]line Версия ККМ: 001 [10:19:02]line ФМ: 0000000000875093 [10:19:02]line ФД: 103867 [10:19:02]line ФПД: 126267096490710 [10:19:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T101902&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103867&fm=126267096490710&tin=02508201610067®Number=0000000000092785&sum=67000 [10:19:03]OFD Sender: Processing packet 103867 [packets to send 17, broken 16] [10:19:03]ProducePacketName [10:19:03]name=ofd_packets/00103867 [10:19:03]OFD Sender: To server: pG, [10:19:03]CommunicateWithHost lk.salyk.kg:30040 [10:19:03]ConnectInit lk.salyk.kg [10:19:03]written 0, free lines is 4095 [10:19:03]Connected sock=10 [10:19:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 23 54 07 01 2E F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 16 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 95 01 00 35 04 06 00 72 D6 D9 6E E2 D6 56 02 C8 78 D8 3F B9 BC [10:19:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 93 3C 47 00 F2 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BB 95 01 00 F4 03 04 00 9C A8 73 66 B6 04 01 00 00 3E FD C2 DB 89 98 EE 82 [10:19:03]CommunicateWithHost err = 0 [10:19:03]CheckOFDResponse [10:19:03]1017 (14) - 77093643461234 [10:19:03]1041 (16) - 0000000000875093 [10:19:03]1040 (4) - 103867 [10:19:03]1012 (4) - 20.06.2024 03:57 [10:19:03]1206 (1) - 0 [10:19:03]OFD Sender: Remove packet 103867 [10:19:03]ProducePacketName [10:19:03]name=ofd_packets/00103867 [10:19:03]NVStorageDeleteData [10:19:03]Write to MH i2c: 01 00 00 C8 0C D4 [10:19:03]Write i2c OK [10:19:03]MH_I2C_Read... [10:19:03]Read from MH i2c: 01 [10:19:03]MH_I2C_Read... [10:19:03]Read from MH i2c: 01 07 00 [10:19:03]MH_I2C_Read... [10:19:03]Read from MH i2c: 01 07 00 C8 0C 00 00 00 00 00 E0 0C C7 [10:19:03]RasterBufferAndPrint [10:19:03]line [10:19:03]line [10:19:03]line [10:19:03]line [10:19:03]line [10:19:03]written 0, free lines is 3304 [10:19:03]MH_Cut [10:19:03]Write to MH i2c: D1 01 00 CF 0C 01 AD [10:19:03]Write i2c OK [10:19:03]MH_I2C_Read... [10:19:03]Read from MH i2c: D1 [10:19:03]MH_I2C_Read... [10:19:03]Read from MH i2c: D1 01 00 [10:19:03]MH_I2C_Read... [10:19:03]Read from MH i2c: D1 01 00 CF 0C 00 AC [10:19:03]Write to MH i2c: 01 00 00 D0 0C DC [10:19:03]Write i2c OK [10:19:03]MH_I2C_Read... [10:19:04]OFD Sender: No OFD packet to send [10:19:04]*** Cut start [10:19:04]*** Partial cut [10:19:04]*** CUTSNS_PIN = 1 [10:19:04]*** CUTSNS_PIN = 0 [10:19:04]*** Brake cut motor [10:19:04]Read from MH i2c: 01 [10:19:04]MH_I2C_Read... [10:19:04]*** Stop cut motor [10:19:04]*** Cut end [10:19:04]Read from MH i2c: 01 07 00 [10:19:04]MH_I2C_Read... [10:19:04]Read from MH i2c: 01 07 00 D0 0C 00 00 00 00 00 FF 0F F1 [10:19:04]process_action close_receipt done [10:19:04]requested_data is exist [10:19:04]produce_requested_data [10:19:04]requested_item fm.sn is exist - process it [10:19:04]wFMCommunicate request_size=4 [10:19:04]MH_SAM_APDU [10:19:04]CAPDU: 80 11 00 00 [10:19:04]Write to MH i2c: E2 08 00 D1 0C 80 11 00 00 00 00 00 00 57 [10:19:04]Write i2c OK [10:19:04]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 17 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 17 00 D1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AA [10:19:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:19:05]wFMCommunicate OK [10:19:05]requested_item fd.num is exist - process it [10:19:05]SAM_PROTO_GetFieldsCounters [10:19:05]wFMCommunicate request_size=4 [10:19:05]MH_SAM_APDU [10:19:05]CAPDU: 80 13 00 00 [10:19:05]Write to MH i2c: E2 08 00 D2 0C 80 13 00 00 00 00 00 00 5A [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 62 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 62 00 D2 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BB 95 01 00 0E 04 04 00 62 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 D1 [10:19:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BB 95 01 00 0E 04 04 00 62 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:19:05]wFMCommunicate OK [10:19:05]SAM_PROTO_GetFieldsCounters done [10:19:05]requested_item shift.num is exist - process it [10:19:05]requested_item shift.opened is exist - process it [10:19:05]req_shift_opened [10:19:05]FM_GetShiftState [10:19:05]SAM_PROTO_GetShiftState [10:19:05]wFMCommunicate request_size=4 [10:19:05]MH_SAM_APDU [10:19:05]CAPDU: 80 13 01 00 [10:19:05]Write to MH i2c: E2 08 00 D3 0C 80 13 01 00 00 00 00 00 5C [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 0E 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 0E 00 D3 0C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AB [10:19:05]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:19:05]wFMCommunicate OK [10:19:05]SAM_PROTO_GetShiftState done [10:19:05]FM_GetShiftState done [10:19:05]req_shift_opened done [10:19:05]requested_item shift.open_date is exist - process it [10:19:05]req_shift_open_date [10:19:05]req_shift_open_date done [10:19:05]produce_requested_data done [10:19:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103867,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:19:05]process_action_free close_receipt [10:19:05]json_value_free [10:19:05]json_value_free done [10:19:05]process_json_proto returns [10:19:05]Send response to host [10:19:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103867,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:19:05]free response buf [10:19:05]execute_script done [10:19:05]execute_script returns [10:19:05]free content buf [10:19:05]Sock 7.Close socket [10:19:05]Sock 7.Thread stoped [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20: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: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:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:38]accept exits with 9 [10:22:38]New connection [10:22:38]New thread 3067207012 created [10:22:38]Thread 3067063652 joined [10:22:38]Waiting for new connection... [10:22:38] Sock 9.Parse request [10:22:38]Sock 9.Check first char [10:22:38]Sock 9.First char is OK [10:22:38]request: POST /json_proto HTTP/1.0 [10:22:38]Method: POST [10:22:38]URL: /json_proto [10:22:38]Method is POST - this is cgi request [10:22:38]url: /json_proto [10:22:38]query_string will be loaded in cgi processing [10:22:38]execute_cgi json_proto POST (null) [10:22:38]execute_cgi path=json_proto method=POST [10:22:38]POST find Content-Length [10:22:38]Host: 172.17.38.133:8080 [10:22:38]Content-Length: 687 [10:22:38]Content-Type: application/json [10:22:38] [10:22:38]POST finish read [10:22:38]Found Content-Length = 687 [10:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:38]execute_script... [10: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)673194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:38]POST & json_proto [10:22:38]process_json_proto [10:22:38]json parsed OK: [10:22:38]protocol is kg_v1.0 [10:22:38]action value=close_receipt [10:22:38]process_action close_receipt [10:22:38]cmd_close_receipt [10:22:38]MH_GetDate [10:22:38]Write to MH i2c: F0 00 00 D4 0C CF [10:22:38]Write i2c OK [10:22:38]MH_I2C_Read... [10:22:38]Read from MH i2c: F0 [10:22:38]MH_I2C_Read... [10:22:38]Read from MH i2c: F0 09 00 [10:22:38]MH_I2C_Read... [10:22:38]Read from MH i2c: F0 09 00 D4 0C 00 EF 02 74 66 BD 8F 7C 64 CF [10:22:38]GetLastDocTimeStamp 1718878742 [10:22:38]current date 1718878959 [10:22:38]FM_GetShiftState [10:22:38]SAM_PROTO_GetShiftState [10:22:38]wFMCommunicate request_size=4 [10:22:38]MH_SAM_APDU [10:22:38]CAPDU: 80 13 01 00 [10:22:38]Write to MH i2c: E2 08 00 D5 0C 80 13 01 00 00 00 00 00 5E [10:22:38]Write i2c OK [10:22:38]MH_I2C_Read... [10:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:38]Read from MH i2c: E2 [10:22:38]MH_I2C_Read... [10:22:38]Read from MH i2c: E2 0E 00 [10:22:38]MH_I2C_Read... [10:22:38]Read from MH i2c: E2 0E 00 D5 0C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AD [10:22:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:22:38]wFMCommunicate OK [10:22:38]SAM_PROTO_GetShiftState done [10:22:38]FM_GetShiftState done [10:22:38]opened in 1718843124 [10:22:38]opened+sec_in_day 1718929524 [10:22:38]quantity*price = 200037 [10:22:38]sum+1 = 200039 [10:22:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 53 20.06.2024 10:22 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103868 ФПД: 182205462398418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102239&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103868&fm=182205462398418&tin=02508201610067®Number=0000000000092785&sum=200000 [10:22:39]StoreToDocumentArchive [10:22:39]shift 354 fd 103868 [10:22:39]save to /storage/0354/doc_00103868 [10:22:39]save last doc name /storage/0354/doc_00103868 to /storage/kkm_last_doc_name [10:22:39]save OK [10:22:39]Clear old archive folders... [10:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:22:39]tlvbuf is 0083A900 [10:22:39]SAM_PROTO_ClearQueue [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 09 00 00 [10:22:39]Write to MH i2c: E2 08 00 E2 0C 80 09 00 00 00 00 00 00 60 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 03 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 03 00 E2 0C 00 90 00 62 [10:22:39]RAPDU: 90 00 [10:22:39]wFMCommunicate OK [10:22:39]SAM_PROTO_ClearQueue done [10:22:39]KKMCreateOFDPacket [10:22:39]OFDProtocolAddRootSTLVToBuf [10:22:39]FM_MakeSignedData [10:22:39]FM_MakeSignedData [10:22:39]SAM_PROTO_SignData [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 0D 01 02 [10:22:39]Write to MH i2c: E2 08 00 E3 0C 80 0D 01 02 00 00 00 00 68 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]OFD Sender: No OFD packet to send [10:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 03 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 03 00 E3 0C 00 90 00 63 [10:22:39]RAPDU: 90 00 [10:22:39]wFMCommunicate OK [10:22:39]wFMCommunicate request_size=255 [10:22:39]MH_SAM_APDU [10:22: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 EF 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 95 01 00 35 04 06 00 [10:22:39]Write to MH i2c: E2 02 01 E4 0C 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 EF 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 95 01 00 35 04 06 00 00 00 EC [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 03 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 03 00 E4 0C 00 90 00 64 [10:22:39]RAPDU: 90 00 [10:22:39]wFMCommunicate OK [10:22:39]wFMCommunicate request_size=11 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 0D 02 02 06 A5 B7 03 DC C5 D2 [10:22:39]Write to MH i2c: E2 0E 00 E5 0C 80 0D 02 02 06 00 A5 B7 03 DC C5 D2 00 00 49 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 03 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 03 00 E5 0C 00 90 00 65 [10:22:39]RAPDU: 90 00 [10:22:39]wFMCommunicate OK [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 0D 03 02 [10:22:39]Write to MH i2c: E2 08 00 E6 0C 80 0D 03 02 00 00 00 00 6D [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 0B 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 0B 00 E6 0C 00 4B 68 47 0A F2 E0 B5 1F 90 00 18 [10:22:39]RAPDU: 4B 68 47 0A F2 E0 B5 1F 90 00 [10:22:39]wFMCommunicate OK [10:22:39]SAM_PROTO_SignData done [10:22:39]FM_MakeSignedData done [10:22:39]CreateOFDProtocolMessage [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 11 00 00 [10:22:39]Write to MH i2c: E2 08 00 E7 0C 80 11 00 00 00 00 00 00 6D [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 17 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 17 00 E7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C0 [10:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:22:39]wFMCommunicate OK [10:22:39]CreateOFDProtocolMessage done [10:22:39]OFDSenderStorePacket 103868 [10:22:39]StoreOFDPacket docnum=103868 [10:22:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 83 05 08 01 75 56 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 EF 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 95 01 00 35 04 06 00 A5 B7 03 DC C5 D2 4B 68 47 0A F2 E0 B5 1F [10:22:39]CheckFolder [10:22:39]dirname=/storage/ofd_packets [10:22:39]CheckFolder done [10:22:39]ProducePacketName [10:22:39]name=ofd_packets/00103868 [10:22:39]NVStorageSaveData ofd_packets/00103868 [10:22:39]File name is /storage/ofd_packets/00103868 [10:22:39]Write 302 bytes [10:22:39]NVStorageSaveData done [10:22:39]OFDSenderStorePacket done [10:22:39]KKMCreateOFDPacket done [10:22:39]NVStorageSaveData kkm_last_timestamp [10:22:39]File name is /storage/kkm_last_timestamp [10:22:39]Write 4 bytes [10:22:39]NVStorageSaveData done [10:22:39]ExternCall_PrintAddStr [10:22:39]wPrintStart [10:22:39]Write to MH i2c: 01 00 00 E8 0C F4 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: 01 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: 01 07 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: 01 07 00 E8 0C 00 00 00 00 00 FF 0F 09 [10:22:39]RasterBufferAndPrint [10:22:39]line Счет N : (1)673194 [10:22:39]line ИНН: 02508201610067 [10:22:39]line Контрольно-Кассовый Чек [10:22:39]line ПРОДАЖА [10:22:39]line ТРК (МРК, ГНК) : 21 [10:22:39]line Товар: 2710194210 [10:22:39]line ДТ(л)-К-5 [10:22:39]line 27.440 * 72.90 [10:22:39]line = 2000.38 [10:22:39]line НДС 12% НСП 1% [10:22:39]line > о реализуемом товаре [10:22:39]line ОКРУГЛЕНИЕ: -0.38 [10:22:39]line ИТОГО: 2000.00 [10:22:39]line Внесено: 2000.00 [10:22:39]line СДАЧА: 0.00 [10:22:39]line НСП 1% : 17.70 [10:22:39]line НДС 12% : 212.43 [10:22:39]line Наличными: 2000.00 [10:22:39]line Безнал.: 0.00 [10:22:39]line Место: АЗС № 120 "Партнер Нефть" [10:22:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:22:39]line СНО: Общий режим [10:22:39]line Чек 53 20.06.2024 10:22 [10:22:39]line Смена: 354 ФФД: 1.0 [10:22:39]line ЗНМ: 0300000164 [10:22:39]line РНМ: 0000000000092785 [10:22:39]line Версия ККМ: 001 [10:22:39]line ФМ: 0000000000875093 [10:22:39]line ФД: 103868 [10:22:39]line ФПД: 182205462398418 [10:22:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102239&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103868&fm=182205462398418&tin=02508201610067®Number=0000000000092785&sum=200000 [10:22:40]OFD Sender: Processing packet 103868 [packets to send 17, broken 16] [10:22:40]ProducePacketName [10:22:40]name=ofd_packets/00103868 [10:22:40]OFD Sender: To server: pG, [10:22:40]CommunicateWithHost lk.salyk.kg:30040 [10:22:40]ConnectInit lk.salyk.kg [10:22:40]written 0, free lines is 4095 [10:22:40]Connected sock=7 [10: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 35 30 39 33 10 01 00 00 83 05 08 01 75 56 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 EF 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 95 01 00 35 04 06 00 A5 B7 03 DC C5 D2 4B 68 47 0A F2 E0 B5 1F [10:22:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 20 FD 47 00 A7 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BC 95 01 00 F4 03 04 00 75 A9 73 66 B6 04 01 00 00 D6 B7 55 92 B5 D0 69 46 [10:22:40]CommunicateWithHost err = 0 [10:22:40]CheckOFDResponse [10:22:40]1017 (14) - 77093643461234 [10:22:40]1041 (16) - 0000000000875093 [10:22:40]1040 (4) - 103868 [10:22:40]1012 (4) - 20.06.2024 04:00 [10:22:40]1206 (1) - 0 [10:22:40]OFD Sender: Remove packet 103868 [10:22:40]ProducePacketName [10:22:40]name=ofd_packets/00103868 [10:22:40]NVStorageDeleteData [10:22:40]Write to MH i2c: 01 00 00 13 0D 20 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: 01 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: 01 07 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: 01 07 00 13 0D 00 00 00 00 00 D4 0C 07 [10:22:40]RasterBufferAndPrint [10:22:40]line [10:22:40]line [10:22:40]line [10:22:40]line [10:22:40]line [10:22:40]written 0, free lines is 3293 [10:22:40]MH_Cut [10:22:40]Write to MH i2c: D1 01 00 1A 0D 01 F9 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: D1 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: D1 01 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: D1 01 00 1A 0D 00 F8 [10:22:40]Write to MH i2c: 01 00 00 1B 0D 28 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]OFD Sender: No OFD packet to send [10:22:41]*** Cut start [10:22:41]*** Partial cut [10:22:41]*** CUTSNS_PIN = 1 [10:22:41]*** CUTSNS_PIN = 0 [10:22:41]*** Brake cut motor [10:22:41]Read from MH i2c: 01 [10:22:41]MH_I2C_Read... [10:22:41]*** Stop cut motor [10:22:41]*** Cut end [10:22:41]Read from MH i2c: 01 07 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 1B 0D 00 00 00 00 00 FF 0F 3D [10:22:41]process_action close_receipt done [10:22:41]requested_data is exist [10:22:41]produce_requested_data [10:22:41]requested_item fm.sn is exist - process it [10:22:41]wFMCommunicate request_size=4 [10:22:41]MH_SAM_APDU [10:22:41]CAPDU: 80 11 00 00 [10:22:41]Write to MH i2c: E2 08 00 1C 0D 80 11 00 00 00 00 00 00 A3 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:41]Read from MH i2c: E2 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 17 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: E2 17 00 1C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F6 [10:22:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:22:41]wFMCommunicate OK [10:22:41]requested_item fd.num is exist - process it [10:22:41]SAM_PROTO_GetFieldsCounters [10:22:41]wFMCommunicate request_size=4 [10:22:41]MH_SAM_APDU [10:22:41]CAPDU: 80 13 00 00 [10:22:41]Write to MH i2c: E2 08 00 1D 0D 80 13 00 00 00 00 00 00 A6 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:42]Read from MH i2c: E2 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: E2 62 00 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: E2 62 00 1D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BC 95 01 00 0E 04 04 00 62 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 21 [10:22:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BC 95 01 00 0E 04 04 00 62 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:22:42]wFMCommunicate OK [10:22:42]SAM_PROTO_GetFieldsCounters done [10:22:42]requested_item shift.num is exist - process it [10:22:42]requested_item shift.opened is exist - process it [10:22:42]req_shift_opened [10:22:42]FM_GetShiftState [10:22:42]SAM_PROTO_GetShiftState [10:22:42]wFMCommunicate request_size=4 [10:22:42]MH_SAM_APDU [10:22:42]CAPDU: 80 13 01 00 [10:22:42]Write to MH i2c: E2 08 00 1E 0D 80 13 01 00 00 00 00 00 A8 [10:22:42]Write i2c OK [10:22:42]MH_I2C_Read... [10:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:42]Read from MH i2c: E2 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: E2 0E 00 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: E2 0E 00 1E 0D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F7 [10:22:42]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:22:42]wFMCommunicate OK [10:22:42]SAM_PROTO_GetShiftState done [10:22:42]FM_GetShiftState done [10:22:42]req_shift_opened done [10:22:42]requested_item shift.open_date is exist - process it [10:22:42]req_shift_open_date [10:22:42]req_shift_open_date done [10:22:42]produce_requested_data done [10:22:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103868,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:22:42]process_action_free close_receipt [10:22:42]json_value_free [10:22:42]json_value_free done [10:22:42]process_json_proto returns [10:22:42]Send response to host [10:22:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103868,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:22:42]free response buf [10:22:42]execute_script done [10:22:42]execute_script returns [10:22:42]free content buf [10:22:42]Sock 9.Close socket [10:22:42]Sock 9.Thread stoped [10:22:42]accept exits with 10 [10:22:42]New connection [10:22:42]New thread 3067063652 created [10:22:42]Thread 3067207012 joined [10:22:42]Waiting for new connection... [10:22:42] Sock 10.Parse request [10:22:42]Sock 10.Check first char [10:22:42]Sock 10.First char is OK [10:22:42]request: POST /json_proto HTTP/1.0 [10:22:42]Method: POST [10:22:42]URL: /json_proto [10:22:42]Method is POST - this is cgi request [10:22:42]url: /json_proto [10:22:42]query_string will be loaded in cgi processing [10:22:42]execute_cgi json_proto POST (null) [10:22:42]execute_cgi path=json_proto method=POST [10:22:42]POST find Content-Length [10:22:42]Host: 172.17.38.133:8080 [10:22:42]Content-Length: 682 [10:22:42]Content-Type: application/json [10:22:42] [10:22:42]POST finish read [10:22:42]Found Content-Length = 682 [10:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.100, "sum" : 1600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:42]execute_script... [10:22: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)673195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.100, "sum" : 1600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:42]POST & json_proto [10:22:42]process_json_proto [10:22:42]json parsed OK: [10:22:42]protocol is kg_v1.0 [10:22:42]action value=close_receipt [10:22:42]process_action close_receipt [10:22:42]cmd_close_receipt [10:22:42]MH_GetDate [10:22:42]Write to MH i2c: F0 00 00 1F 0D 1B [10:22:42]Write i2c OK [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: F0 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: F0 09 00 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: F0 09 00 1F 0D 00 F3 02 74 66 BD 8F 7C 64 1F [10:22:42]GetLastDocTimeStamp 1718878959 [10:22:42]current date 1718878963 [10:22:42]FM_GetShiftState [10:22:42]SAM_PROTO_GetShiftState [10:22:42]wFMCommunicate request_size=4 [10:22:42]MH_SAM_APDU [10:22:42]CAPDU: 80 13 01 00 [10:22:42]Write to MH i2c: E2 08 00 20 0D 80 13 01 00 00 00 00 00 AA [10:22:42]Write i2c OK [10:22:42]MH_I2C_Read... [10:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:42]Read from MH i2c: E2 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: E2 0E 00 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: E2 0E 00 20 0D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F9 [10:22:42]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:22:42]wFMCommunicate OK [10:22:42]SAM_PROTO_GetShiftState done [10:22:42]FM_GetShiftState done [10:22:42]opened in 1718843124 [10:22:42]opened+sec_in_day 1718929524 [10:22:42]quantity*price = 160024 [10:22:42]sum+1 = 160025 [10:22:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 54 20.06.2024 10:22 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103869 ФПД: 205048821996242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102243&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103869&fm=205048821996242&tin=02508201610067®Number=0000000000092785&sum=160000 [10:22:43]StoreToDocumentArchive [10:22:43]shift 354 fd 103869 [10:22:43]save to /storage/0354/doc_00103869 [10:22:43]save last doc name /storage/0354/doc_00103869 to /storage/kkm_last_doc_name [10:22:43]save OK [10:22:43]Clear old archive folders... [10:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:43]tlvbuf is 00842DB0 [10:22:43]SAM_PROTO_ClearQueue [10:22:43]wFMCommunicate request_size=4 [10:22:43]MH_SAM_APDU [10:22:43]CAPDU: 80 09 00 00 [10:22:43]Write to MH i2c: E2 08 00 2D 0D 80 09 00 00 00 00 00 00 AC [10:22:43]Write i2c OK [10:22:43]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 2D 0D 00 90 00 AE [10:22:44]RAPDU: 90 00 [10:22:44]wFMCommunicate OK [10:22:44]SAM_PROTO_ClearQueue done [10:22:44]KKMCreateOFDPacket [10:22:44]OFDProtocolAddRootSTLVToBuf [10:22:44]FM_MakeSignedData [10:22:44]FM_MakeSignedData [10:22:44]SAM_PROTO_SignData [10:22:44]wFMCommunicate request_size=4 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 0D 01 02 [10:22:44]Write to MH i2c: E2 08 00 2E 0D 80 0D 01 02 00 00 00 00 B4 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 2E 0D 00 90 00 AF [10:22:44]RAPDU: 90 00 [10:22:44]wFMCommunicate OK [10:22:44]wFMCommunicate request_size=255 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 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 F3 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 95 01 00 35 04 06 00 BA [10:22:44]Write to MH i2c: E2 02 01 2F 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 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 F3 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 95 01 00 35 04 06 00 BA 00 00 66 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 2F 0D 00 90 00 B0 [10:22:44]RAPDU: 90 00 [10:22:44]wFMCommunicate OK [10:22:44]wFMCommunicate request_size=10 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 0D 02 02 05 7D A6 32 5A D2 [10:22:44]Write to MH i2c: E2 0D 00 30 0D 80 0D 02 02 05 00 7D A6 32 5A D2 00 00 42 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 03 00 30 0D 00 90 00 B1 [10:22:44]RAPDU: 90 00 [10:22:44]wFMCommunicate OK [10:22:44]wFMCommunicate request_size=4 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 0D 03 02 [10:22:44]Write to MH i2c: E2 08 00 31 0D 80 0D 03 02 00 00 00 00 B9 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 0B 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 0B 00 31 0D 00 94 D3 55 51 03 3C 2B 32 90 00 63 [10:22:44]RAPDU: 94 D3 55 51 03 3C 2B 32 90 00 [10:22:44]wFMCommunicate OK [10:22:44]SAM_PROTO_SignData done [10:22:44]FM_MakeSignedData done [10:22:44]CreateOFDProtocolMessage [10:22:44]wFMCommunicate request_size=4 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 11 00 00 [10:22:44]Write to MH i2c: E2 08 00 32 0D 80 11 00 00 00 00 00 00 B9 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 17 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 17 00 32 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0C [10:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:22:44]wFMCommunicate OK [10:22:44]CreateOFDProtocolMessage done [10:22:44]OFDSenderStorePacket 103869 [10:22:44]StoreOFDPacket docnum=103869 [10:22:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4B F3 07 01 86 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 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 F3 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 95 01 00 35 04 06 00 BA 7D A6 32 5A D2 94 D3 55 51 03 3C 2B 32 [10:22:44]CheckFolder [10:22:44]dirname=/storage/ofd_packets [10:22:44]CheckFolder done [10:22:44]ProducePacketName [10:22:44]name=ofd_packets/00103869 [10:22:44]NVStorageSaveData ofd_packets/00103869 [10:22:44]File name is /storage/ofd_packets/00103869 [10:22:44]Write 301 bytes [10:22:44]NVStorageSaveData done [10:22:44]OFDSenderStorePacket done [10:22:44]KKMCreateOFDPacket done [10:22:44]NVStorageSaveData kkm_last_timestamp [10:22:44]File name is /storage/kkm_last_timestamp [10:22:44]Write 4 bytes [10:22:44]NVStorageSaveData done [10:22:44]ExternCall_PrintAddStr [10:22:44]wPrintStart [10:22:44]Write to MH i2c: 01 00 00 33 0D 40 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 07 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: 01 07 00 33 0D 00 00 00 00 00 FF 0F 55 [10:22:44]RasterBufferAndPrint [10:22:44]line Счет N : (1)673195 [10:22:44]line ИНН: 02508201610067 [10:22:44]line Контрольно-Кассовый Чек [10:22:44]line ПРОДАЖА [10:22:44]line ТРК (МРК, ГНК) : 32 [10:22:44]line Товар: 2710124130 [10:22:44]line Аи-92-К-5 [10:22:44]line 24.100 * 66.40 [10:22:44]line = 1600.24 [10:22:44]line НДС 12% НСП 1% [10:22:44]line > о реализуемом товаре [10:22:44]line ОКРУГЛЕНИЕ: -0.24 [10:22:44]line ИТОГО: 1600.00 [10:22:44]line Внесено: 1600.00 [10:22:44]line СДАЧА: 0.00 [10:22:44]line НСП 1% : 14.16 [10:22:44]line НДС 12% : 169.94 [10:22:44]line Наличными: 1600.00 [10:22:44]line Безнал.: 0.00 [10:22:44]line Место: АЗС № 120 "Партнер Нефть" [10:22:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:22:44]line СНО: Общий режим [10:22:44]line Чек 54 20.06.2024 10:22 [10:22:44]line Смена: 354 ФФД: 1.0 [10:22:44]line ЗНМ: 0300000164 [10:22:44]line РНМ: 0000000000092785 [10:22:44]line Версия ККМ: 001 [10:22:44]line ФМ: 0000000000875093 [10:22:44]line ФД: 103869 [10:22:44]line ФПД: 205048821996242 [10:22:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102243&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103869&fm=205048821996242&tin=02508201610067®Number=0000000000092785&sum=160000 [10:22:44]OFD Sender: Processing packet 103869 [packets to send 17, broken 16] [10:22:44]ProducePacketName [10:22:44]name=ofd_packets/00103869 [10:22:44]OFD Sender: To server: pG, [10:22:44]CommunicateWithHost lk.salyk.kg:30040 [10:22:44]ConnectInit lk.salyk.kg [10:22:44]written 0, free lines is 4095 [10:22:45]Connected sock=9 [10:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4B F3 07 01 86 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 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 F3 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 95 01 00 35 04 06 00 BA 7D A6 32 5A D2 94 D3 55 51 03 3C 2B 32 [10:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 31 89 47 00 80 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BD 95 01 00 F4 03 04 00 7A A9 73 66 B6 04 01 00 00 14 07 9F E1 DE C0 12 25 [10:22:45]CommunicateWithHost err = 0 [10:22:45]CheckOFDResponse [10:22:45]1017 (14) - 77093643461234 [10:22:45]1041 (16) - 0000000000875093 [10:22:45]1040 (4) - 103869 [10:22:45]1012 (4) - 20.06.2024 04:00 [10:22:45]1206 (1) - 0 [10:22:45]OFD Sender: Remove packet 103869 [10:22:45]ProducePacketName [10:22:45]name=ofd_packets/00103869 [10:22:45]NVStorageDeleteData [10:22:45]Write to MH i2c: 01 00 00 5E 0D 6B [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: 01 07 00 5E 0D 00 00 00 00 00 F5 0C 73 [10:22:45]RasterBufferAndPrint [10:22:45]line [10:22:45]line [10:22:45]line [10:22:45]line [10:22:45]line [10:22:45]written 0, free lines is 3332 [10:22:45]MH_Cut [10:22:45]Write to MH i2c: D1 01 00 65 0D 01 44 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: D1 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: D1 01 00 [10:22:45]MH_I2C_Read... [10:22:45]Read from MH i2c: D1 01 00 65 0D 00 43 [10:22:45]Write to MH i2c: 01 00 00 66 0D 73 [10:22:45]Write i2c OK [10:22:45]MH_I2C_Read... [10:22:45]OFD Sender: No OFD packet to send [10:22:46]*** Cut start [10:22:46]*** Partial cut [10:22:46]*** CUTSNS_PIN = 1 [10:22:46]*** CUTSNS_PIN = 0 [10:22:46]*** Brake cut motor [10:22:46]Read from MH i2c: 01 [10:22:46]MH_I2C_Read... [10:22:46]*** Stop cut motor [10:22:46]*** Cut end [10:22:46]Read from MH i2c: 01 07 00 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: 01 07 00 66 0D 00 00 00 00 00 FF 0F 88 [10:22:46]process_action close_receipt done [10:22:46]requested_data is exist [10:22:46]produce_requested_data [10:22:46]requested_item fm.sn is exist - process it [10:22:46]wFMCommunicate request_size=4 [10:22:46]MH_SAM_APDU [10:22:46]CAPDU: 80 11 00 00 [10:22:46]Write to MH i2c: E2 08 00 67 0D 80 11 00 00 00 00 00 00 EE [10:22:46]Write i2c OK [10:22:46]MH_I2C_Read... [10:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:46]Read from MH i2c: E2 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: E2 17 00 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: E2 17 00 67 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 41 [10:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:22:46]wFMCommunicate OK [10:22:46]requested_item fd.num is exist - process it [10:22:46]SAM_PROTO_GetFieldsCounters [10:22:46]wFMCommunicate request_size=4 [10:22:46]MH_SAM_APDU [10:22:46]CAPDU: 80 13 00 00 [10:22:46]Write to MH i2c: E2 08 00 68 0D 80 13 00 00 00 00 00 00 F1 [10:22:46]Write i2c OK [10:22:46]MH_I2C_Read... [10:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:46]Read from MH i2c: E2 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: E2 62 00 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: E2 62 00 68 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BD 95 01 00 0E 04 04 00 62 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 70 [10:22:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BD 95 01 00 0E 04 04 00 62 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:22:47]wFMCommunicate OK [10:22:47]SAM_PROTO_GetFieldsCounters done [10:22:47]requested_item shift.num is exist - process it [10:22:47]requested_item shift.opened is exist - process it [10:22:47]req_shift_opened [10:22:47]FM_GetShiftState [10:22:47]SAM_PROTO_GetShiftState [10:22:47]wFMCommunicate request_size=4 [10:22:47]MH_SAM_APDU [10:22:47]CAPDU: 80 13 01 00 [10:22:47]Write to MH i2c: E2 08 00 69 0D 80 13 01 00 00 00 00 00 F3 [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:47]Read from MH i2c: E2 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 0E 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 0E 00 69 0D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 42 [10:22:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:22:47]wFMCommunicate OK [10:22:47]SAM_PROTO_GetShiftState done [10:22:47]FM_GetShiftState done [10:22:47]req_shift_opened done [10:22:47]requested_item shift.open_date is exist - process it [10:22:47]req_shift_open_date [10:22:47]req_shift_open_date done [10:22:47]produce_requested_data done [10:22:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103869,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:22:47]process_action_free close_receipt [10:22:47]json_value_free [10:22:47]json_value_free done [10:22:47]process_json_proto returns [10:22:47]Send response to host [10:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103869,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:22:47]free response buf [10:22:47]execute_script done [10:22:47]execute_script returns [10:22:47]free content buf [10:22:47]Sock 10.Close socket [10:22:47]Sock 10.Thread stoped [10:22:47]accept exits with 7 [10:22:47]New connection [10:22:47]New thread 3067207012 created [10:22:47]Thread 3067063652 joined [10:22:47]Waiting for new connection... [10:22:47] Sock 7.Parse request [10:22:47]Sock 7.Check first char [10:22:47]Sock 7.First char is OK [10:22:47]request: POST /json_proto HTTP/1.0 [10:22:47]Method: POST [10:22:47]URL: /json_proto [10:22:47]Method is POST - this is cgi request [10:22:47]url: /json_proto [10:22:47]query_string will be loaded in cgi processing [10:22:47]execute_cgi json_proto POST (null) [10:22:47]execute_cgi path=json_proto method=POST [10:22:47]POST find Content-Length [10:22:47]Host: 172.17.38.133:8080 [10:22:47]Content-Length: 682 [10:22:47]Content-Type: application/json [10:22:47] [10:22:47]POST finish read [10:22:47]Found Content-Length = 682 [10:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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:22:47]execute_script... [10:22: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)673196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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:22:47]POST & json_proto [10:22:47]process_json_proto [10:22:47]json parsed OK: [10:22:47]protocol is kg_v1.0 [10:22:47]action value=close_receipt [10:22:47]process_action close_receipt [10:22:47]cmd_close_receipt [10:22:47]MH_GetDate [10:22:47]Write to MH i2c: F0 00 00 6A 0D 66 [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: F0 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: F0 09 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: F0 09 00 6A 0D 00 F8 02 74 66 BD 8F 7C 64 6F [10:22:47]GetLastDocTimeStamp 1718878963 [10:22:47]current date 1718878968 [10:22:47]FM_GetShiftState [10:22:47]SAM_PROTO_GetShiftState [10:22:47]wFMCommunicate request_size=4 [10:22:47]MH_SAM_APDU [10:22:47]CAPDU: 80 13 01 00 [10:22:47]Write to MH i2c: E2 08 00 6B 0D 80 13 01 00 00 00 00 00 F5 [10:22:47]Write i2c OK [10:22:47]MH_I2C_Read... [10:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:47]Read from MH i2c: E2 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 0E 00 [10:22:47]MH_I2C_Read... [10:22:47]Read from MH i2c: E2 0E 00 6B 0D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 44 [10:22:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:22:47]wFMCommunicate OK [10:22:47]SAM_PROTO_GetShiftState done [10:22:47]FM_GetShiftState done [10:22:47]opened in 1718843124 [10:22:47]opened+sec_in_day 1718929524 [10:22:47]quantity*price = 150064 [10:22:47]sum+1 = 150065 [10:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 55 20.06.2024 10:22 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103870 ФПД: 158916843762884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102248&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103870&fm=158916843762884&tin=02508201610067®Number=0000000000092785&sum=150000 [10:22:48]StoreToDocumentArchive [10:22:48]shift 354 fd 103870 [10:22:48]save to /storage/0354/doc_00103870 [10:22:48]save last doc name /storage/0354/doc_00103870 to /storage/kkm_last_doc_name [10:22:48]save OK [10:22:48]Clear old archive folders... [10:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:48]tlvbuf is 008A8820 [10:22:48]SAM_PROTO_ClearQueue [10:22:48]wFMCommunicate request_size=4 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 09 00 00 [10:22:48]Write to MH i2c: E2 08 00 78 0D 80 09 00 00 00 00 00 00 F7 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:48]Read from MH i2c: E2 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 78 0D 00 90 00 F9 [10:22:48]RAPDU: 90 00 [10:22:48]wFMCommunicate OK [10:22:48]SAM_PROTO_ClearQueue done [10:22:48]KKMCreateOFDPacket [10:22:48]OFDProtocolAddRootSTLVToBuf [10:22:48]FM_MakeSignedData [10:22:48]FM_MakeSignedData [10:22:48]SAM_PROTO_SignData [10:22:48]wFMCommunicate request_size=4 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 0D 01 02 [10:22:48]Write to MH i2c: E2 08 00 79 0D 80 0D 01 02 00 00 00 00 FF [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:48]Read from MH i2c: E2 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 79 0D 00 90 00 FA [10:22:48]RAPDU: 90 00 [10:22:48]wFMCommunicate OK [10:22:48]wFMCommunicate request_size=255 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 37 00 00 00 F4 03 04 00 F8 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 95 01 00 35 04 06 00 90 [10:22:48]Write to MH i2c: E2 02 01 7A 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 37 00 00 00 F4 03 04 00 F8 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 95 01 00 35 04 06 00 90 00 00 AF [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 03 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 03 00 7A 0D 00 90 00 FB [10:22:49]RAPDU: 90 00 [10:22:49]wFMCommunicate OK [10:22:49]wFMCommunicate request_size=10 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 0D 02 02 05 88 B6 05 74 C4 [10:22:49]Write to MH i2c: E2 0D 00 7B 0D 80 0D 02 02 05 00 88 B6 05 74 C4 00 00 87 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 03 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 03 00 7B 0D 00 90 00 FC [10:22:49]RAPDU: 90 00 [10:22:49]wFMCommunicate OK [10:22:49]wFMCommunicate request_size=4 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 0D 03 02 [10:22:49]Write to MH i2c: E2 08 00 7C 0D 80 0D 03 02 00 00 00 00 04 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0B 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0B 00 7C 0D 00 53 C4 39 FC 9F BB 99 31 90 00 75 [10:22:49]RAPDU: 53 C4 39 FC 9F BB 99 31 90 00 [10:22:49]wFMCommunicate OK [10:22:49]SAM_PROTO_SignData done [10:22:49]FM_MakeSignedData done [10:22:49]CreateOFDProtocolMessage [10:22:49]wFMCommunicate request_size=4 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 11 00 00 [10:22:49]Write to MH i2c: E2 08 00 7D 0D 80 11 00 00 00 00 00 00 04 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 17 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 17 00 7D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 57 [10:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:22:49]wFMCommunicate OK [10:22:49]CreateOFDProtocolMessage done [10:22:49]OFDSenderStorePacket 103870 [10:22:49]StoreOFDPacket docnum=103870 [10:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6A F3 07 01 4F 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 37 00 00 00 F4 03 04 00 F8 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 95 01 00 35 04 06 00 90 88 B6 05 74 C4 53 C4 39 FC 9F BB 99 31 [10:22:49]CheckFolder [10:22:49]dirname=/storage/ofd_packets [10:22:49]CheckFolder done [10:22:49]ProducePacketName [10:22:49]name=ofd_packets/00103870 [10:22:49]NVStorageSaveData ofd_packets/00103870 [10:22:49]File name is /storage/ofd_packets/00103870 [10:22:49]Write 301 bytes [10:22:49]NVStorageSaveData done [10:22:49]OFDSenderStorePacket done [10:22:49]KKMCreateOFDPacket done [10:22:49]NVStorageSaveData kkm_last_timestamp [10:22:49]File name is /storage/kkm_last_timestamp [10:22:49]Write 4 bytes [10:22:49]NVStorageSaveData done [10:22:49]ExternCall_PrintAddStr [10:22:49]wPrintStart [10:22:49]Write to MH i2c: 01 00 00 7E 0D 8B [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 7E 0D 00 00 00 00 00 FF 0F A0 [10:22:49]RasterBufferAndPrint [10:22:49]line Счет N : (1)673196 [10:22:49]line ИНН: 02508201610067 [10:22:49]line Контрольно-Кассовый Чек [10:22:49]line ПРОДАЖА [10:22:49]line ТРК (МРК, ГНК) : 42 [10:22:49]line Товар: 2710124130 [10:22:49]line Аи-92-К-5 [10:22:49]line 22.600 * 66.40 [10:22:49]line = 1500.64 [10:22:49]line НДС 12% НСП 1% [10:22:49]line > о реализуемом товаре [10:22:49]line ОКРУГЛЕНИЕ: -0.64 [10:22:49]line ИТОГО: 1500.00 [10:22:49]line Внесено: 1500.00 [10:22:49]line СДАЧА: 0.00 [10:22:49]line НСП 1% : 13.28 [10:22:49]line НДС 12% : 159.36 [10:22:49]line Наличными: 1500.00 [10:22:49]line Безнал.: 0.00 [10:22:49]line Место: АЗС № 120 "Партнер Нефть" [10:22:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:22:49]line СНО: Общий режим [10:22:49]line Чек 55 20.06.2024 10:22 [10:22:49]line Смена: 354 ФФД: 1.0 [10:22:49]line ЗНМ: 0300000164 [10:22:49]line РНМ: 0000000000092785 [10:22:49]line Версия ККМ: 001 [10:22:49]line ФМ: 0000000000875093 [10:22:49]line ФД: 103870 [10:22:49]line ФПД: 158916843762884 [10:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T102248&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103870&fm=158916843762884&tin=02508201610067®Number=0000000000092785&sum=150000 [10:22:49]written 0, free lines is 4095 [10:22:49]OFD Sender: Processing packet 103870 [packets to send 17, broken 16] [10:22:49]ProducePacketName [10:22:49]name=ofd_packets/00103870 [10:22:49]OFD Sender: To server: pG, [10:22:49]CommunicateWithHost lk.salyk.kg:30040 [10:22:49]ConnectInit lk.salyk.kg [10:22:49]Connected sock=10 [10:22:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6A F3 07 01 4F 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 37 00 00 00 F4 03 04 00 F8 02 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 95 01 00 35 04 06 00 90 88 B6 05 74 C4 53 C4 39 FC 9F BB 99 31 [10:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9E 34 47 00 54 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BE 95 01 00 F4 03 04 00 7E A9 73 66 B6 04 01 00 00 D6 91 9C AE 46 C8 71 A8 [10:22:50]CommunicateWithHost err = 0 [10:22:50]CheckOFDResponse [10:22:50]1017 (14) - 77093643461234 [10:22:50]1041 (16) - 0000000000875093 [10:22:50]1040 (4) - 103870 [10:22:50]1012 (4) - 20.06.2024 04:01 [10:22:50]1206 (1) - 0 [10:22:50]OFD Sender: Remove packet 103870 [10:22:50]ProducePacketName [10:22:50]name=ofd_packets/00103870 [10:22:50]NVStorageDeleteData [10:22:50]Write to MH i2c: 01 00 00 A9 0D B6 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 07 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 07 00 A9 0D 00 00 00 00 00 4D 0D 17 [10:22:50]RasterBufferAndPrint [10:22:50]line [10:22:50]line [10:22:50]line [10:22:50]line [10:22:50]line [10:22:50]written 0, free lines is 3425 [10:22:50]MH_Cut [10:22:50]Write to MH i2c: D1 01 00 B0 0D 01 8F [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: D1 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: D1 01 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: D1 01 00 B0 0D 00 8E [10:22:50]Write to MH i2c: 01 00 00 B1 0D BE [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]OFD Sender: No OFD packet to send [10:22:50]*** Cut start [10:22:50]*** Partial cut [10:22:50]*** CUTSNS_PIN = 1 [10:22:50]*** CUTSNS_PIN = 0 [10:22:51]*** Brake cut motor [10:22:51]Read from MH i2c: 01 [10:22:51]MH_I2C_Read... [10:22:51]*** Stop cut motor [10:22:51]*** Cut end [10:22:51]Read from MH i2c: 01 07 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 07 00 B1 0D 00 00 00 00 00 FF 0F D3 [10:22:51]process_action close_receipt done [10:22:51]requested_data is exist [10:22:51]produce_requested_data [10:22:51]requested_item fm.sn is exist - process it [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 11 00 00 [10:22:51]Write to MH i2c: E2 08 00 B2 0D 80 11 00 00 00 00 00 00 39 [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 17 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 17 00 B2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8C [10:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:22:51]wFMCommunicate OK [10:22:51]requested_item fd.num is exist - process it [10:22:51]SAM_PROTO_GetFieldsCounters [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 13 00 00 [10:22:51]Write to MH i2c: E2 08 00 B3 0D 80 13 00 00 00 00 00 00 3C [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 62 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 62 00 B3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 95 01 00 0E 04 04 00 62 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 BF [10:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 95 01 00 0E 04 04 00 62 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:22:51]wFMCommunicate OK [10:22:51]SAM_PROTO_GetFieldsCounters done [10:22:51]requested_item shift.num is exist - process it [10:22:51]requested_item shift.opened is exist - process it [10:22:51]req_shift_opened [10:22:51]FM_GetShiftState [10:22:51]SAM_PROTO_GetShiftState [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 13 01 00 [10:22:51]Write to MH i2c: E2 08 00 B4 0D 80 13 01 00 00 00 00 00 3E [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 0E 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 0E 00 B4 0D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8D [10:22:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:22:51]wFMCommunicate OK [10:22:51]SAM_PROTO_GetShiftState done [10:22:51]FM_GetShiftState done [10:22:51]req_shift_opened done [10:22:51]requested_item shift.open_date is exist - process it [10:22:51]req_shift_open_date [10:22:51]req_shift_open_date done [10:22:51]produce_requested_data done [10:22:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103870,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:22:51]process_action_free close_receipt [10:22:51]json_value_free [10:22:51]json_value_free done [10:22:51]process_json_proto returns [10:22:51]Send response to host [10:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103870,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:22:51]free response buf [10:22:51]execute_script done [10:22:51]execute_script returns [10:22:51]free content buf [10:22:51]Sock 7.Close socket [10:22:51]Sock 7.Thread stoped [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:43]accept exits with 9 [10:29:43]New connection [10:29:43]New thread 3067063652 created [10:29:43]Thread 3067207012 joined [10:29:43]Waiting for new connection... [10:29:43] Sock 9.Parse request [10:29:43]Sock 9.Check first char [10:29:43]Sock 9.First char is OK [10:29:43]request: POST /json_proto HTTP/1.0 [10:29:43]Method: POST [10:29:43]URL: /json_proto [10:29:43]Method is POST - this is cgi request [10:29:43]url: /json_proto [10:29:43]query_string will be loaded in cgi processing [10:29:43]execute_cgi json_proto POST (null) [10:29:43]execute_cgi path=json_proto method=POST [10:29:43]POST find Content-Length [10:29:43]Host: 172.17.38.133:8080 [10:29:43]Content-Length: 1207 [10:29:43]Content-Type: application/json [10:29:43] [10:29:43]POST finish read [10:29:43]Found Content-Length = 1207 [10:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673198\u000A20.06.2024 10:06\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.130 x 66.40\u000A\u0418\u0422\u041E\u0413: 2000.63\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\u000A76495\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:43]execute_script... [10:29:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673198\u000A20.06.2024 10:06\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.130 x 66.40\u000A\u0418\u0422\u041E\u0413: 2000.63\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\u000A76495\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:43]POST & json_proto [10:29:43]process_json_proto [10:29:43]json parsed OK: [10:29:43]protocol is kg_v1.0 [10:29:43]action value=print_text [10:29:43]process_action print_text [10:29:43]cmd_print_text [10:29:43]ExternCall_PrintAddStr [10:29:43]wPrintStart [10:29:43]Write to MH i2c: 01 00 00 B5 0D C2 [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 07 00 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 07 00 B5 0D 00 00 00 00 00 FF 0F D7 [10:29:43]RasterBufferAndPrint [10:29:43]line *****ТОВАРНЫЙ ЧЕК***** [10:29:43]line АЗС 120 [10:29:43]line Партнер нефть [10:29:43]line 02508201610067 [10:29:43]line Кассир : Дуйшенбиев А. [10:29:43]line Счет N : (1)673198 [10:29:43]line 20.06.2024 10:06 [10:29:43]line ПРОДАЖА [10:29:43]line ТРК (МРК, ГНК): 32 [10:29:43]line Вид ГСМ : 2710124130 [10:29:43]line Аи-92-К-5 [10:29:43]line 30.130 x 66.40 [10:29:43]line ИТОГ: 2000.63 [10:29:43]line Тип оплаты: Талоны: Топливная Карта [10:29:43]line 76495 [10:29:43]line ______________________ [10:29:43]line (подпись) [10:29:43]written 0, free lines is 4095 [10:29:43]Write to MH i2c: 01 00 00 C9 0D D6 [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 07 00 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: 01 07 00 C9 0D 00 00 00 00 00 12 0E FD [10:29:43]RasterBufferAndPrint [10:29:43]line [10:29:43]line [10:29:43]line [10:29:43]line [10:29:43]line [10:29:43]written 0, free lines is 3604 [10:29:43]MH_Cut [10:29:43]Write to MH i2c: D1 01 00 D0 0D 01 AF [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: D1 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: D1 01 00 [10:29:43]MH_I2C_Read... [10:29:43]Read from MH i2c: D1 01 00 D0 0D 00 AE [10:29:43]Write to MH i2c: 01 00 00 D1 0D DE [10:29:43]Write i2c OK [10:29:43]MH_I2C_Read... [10:29:43]*** Cut start [10:29:43]*** Partial cut [10:29:43]*** CUTSNS_PIN = 1 [10:29:44]*** CUTSNS_PIN = 0 [10:29:44]*** Brake cut motor [10:29:44]Read from MH i2c: 01 [10:29:44]MH_I2C_Read... [10:29:44]*** Stop cut motor [10:29:44]*** Cut end [10:29:44]Read from MH i2c: 01 07 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: 01 07 00 D1 0D 00 00 00 00 00 FF 0F F3 [10:29:44]process_action print_text done [10:29:44]requested_data is exist [10:29:44]produce_requested_data [10:29:44]requested_item fm.sn is exist - process it [10:29:44]wFMCommunicate request_size=4 [10:29:44]MH_SAM_APDU [10:29:44]CAPDU: 80 11 00 00 [10:29:44]Write to MH i2c: E2 08 00 D2 0D 80 11 00 00 00 00 00 00 59 [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:44]Read from MH i2c: E2 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 17 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 17 00 D2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AC [10:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:29:44]wFMCommunicate OK [10:29:44]requested_item fd.num is exist - process it [10:29:44]SAM_PROTO_GetFieldsCounters [10:29:44]wFMCommunicate request_size=4 [10:29:44]MH_SAM_APDU [10:29:44]CAPDU: 80 13 00 00 [10:29:44]Write to MH i2c: E2 08 00 D3 0D 80 13 00 00 00 00 00 00 5C [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:44]Read from MH i2c: E2 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 62 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 62 00 D3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 95 01 00 0E 04 04 00 62 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 DF [10:29:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 95 01 00 0E 04 04 00 62 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:29:44]wFMCommunicate OK [10:29:44]SAM_PROTO_GetFieldsCounters done [10:29:44]requested_item shift.num is exist - process it [10:29:44]requested_item shift.opened is exist - process it [10:29:44]req_shift_opened [10:29:44]FM_GetShiftState [10:29:44]SAM_PROTO_GetShiftState [10:29:44]wFMCommunicate request_size=4 [10:29:44]MH_SAM_APDU [10:29:44]CAPDU: 80 13 01 00 [10:29:44]Write to MH i2c: E2 08 00 D4 0D 80 13 01 00 00 00 00 00 5E [10:29:44]Write i2c OK [10:29:44]MH_I2C_Read... [10:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:44]Read from MH i2c: E2 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 0E 00 [10:29:44]MH_I2C_Read... [10:29:44]Read from MH i2c: E2 0E 00 D4 0D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AD [10:29:44]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:29:44]wFMCommunicate OK [10:29:44]SAM_PROTO_GetShiftState done [10:29:44]FM_GetShiftState done [10:29:44]req_shift_opened done [10:29:44]requested_item shift.open_date is exist - process it [10:29:44]req_shift_open_date [10:29:44]req_shift_open_date done [10:29:44]produce_requested_data done [10:29:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103870,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:29:44]process_action_free print_text [10:29:44]json_value_free [10:29:44]json_value_free done [10:29:44]process_json_proto returns [10:29:44]Send response to host [10:29:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103870,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:29:44]free response buf [10:29:44]execute_script done [10:29:44]execute_script returns [10:29:44]free content buf [10:29:44]Sock 9.Close socket [10:29:44]Sock 9.Thread stoped [10:29:45]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:18]accept exits with 7 [10:35:18]New connection [10:35:18]New thread 3067207012 created [10:35:18]Thread 3067063652 joined [10:35:18]Waiting for new connection... [10:35:18] Sock 7.Parse request [10:35:18]Sock 7.Check first char [10:35:18]Sock 7.First char is OK [10:35:18]request: POST /json_proto HTTP/1.0 [10:35:18]Method: POST [10:35:18]URL: /json_proto [10:35:18]Method is POST - this is cgi request [10:35:18]url: /json_proto [10:35:18]query_string will be loaded in cgi processing [10:35:18]execute_cgi json_proto POST (null) [10:35:18]execute_cgi path=json_proto method=POST [10:35:18]POST find Content-Length [10:35:18]Host: 172.17.38.133:8080 [10:35:18]Content-Length: 1207 [10:35:18]Content-Type: application/json [10:35:18] [10:35:18]POST finish read [10:35:18]Found Content-Length = 1207 [10:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673199\u000A20.06.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.600 x 73.90\u000A\u0418\u0422\u041E\u0413: 3000.34\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\u000A76495\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:18]execute_script... [10:35:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673199\u000A20.06.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 40.600 x 73.90\u000A\u0418\u0422\u041E\u0413: 3000.34\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\u000A76495\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:18]POST & json_proto [10:35:18]process_json_proto [10:35:18]json parsed OK: [10:35:18]protocol is kg_v1.0 [10:35:18]action value=print_text [10:35:18]process_action print_text [10:35:18]cmd_print_text [10:35:18]ExternCall_PrintAddStr [10:35:18]wPrintStart [10:35:18]Write to MH i2c: 01 00 00 D5 0D E2 [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: 01 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: 01 07 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: 01 07 00 D5 0D 00 00 00 00 00 FF 0F F7 [10:35:18]RasterBufferAndPrint [10:35:18]line *****ТОВАРНЫЙ ЧЕК***** [10:35:18]line АЗС 120 [10:35:18]line Партнер нефть [10:35:18]line 02508201610067 [10:35:18]line Кассир : Дуйшенбиев А. [10:35:18]line Счет N : (1)673199 [10:35:18]line 20.06.2024 10:12 [10:35:18]line ПРОДАЖА [10:35:18]line ТРК (МРК, ГНК): 41 [10:35:18]line Вид ГСМ : 2710124500 [10:35:18]line Аи-95-К-5 [10:35:18]line 40.600 x 73.90 [10:35:18]line ИТОГ: 3000.34 [10:35:18]line Тип оплаты: Талоны: Топливная Карта [10:35:18]line 76495 [10:35:18]line ______________________ [10:35:18]line (подпись) [10:35:18]written 0, free lines is 4095 [10:35:18]Write to MH i2c: 01 00 00 E9 0D F6 [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: 01 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: 01 07 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: 01 07 00 E9 0D 00 00 00 00 00 11 0E 1C [10:35:18]RasterBufferAndPrint [10:35:18]line [10:35:18]line [10:35:18]line [10:35:18]line [10:35:18]line [10:35:18]written 0, free lines is 3603 [10:35:18]MH_Cut [10:35:18]Write to MH i2c: D1 01 00 F0 0D 01 CF [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: D1 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: D1 01 00 [10:35:18]MH_I2C_Read... [10:35:18]Read from MH i2c: D1 01 00 F0 0D 00 CE [10:35:18]Write to MH i2c: 01 00 00 F1 0D FE [10:35:18]Write i2c OK [10:35:18]MH_I2C_Read... [10:35:19]*** Cut start [10:35:19]*** Partial cut [10:35:19]*** CUTSNS_PIN = 1 [10:35:19]*** CUTSNS_PIN = 0 [10:35:19]*** Brake cut motor [10:35:20]Read from MH i2c: 01 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: 01 07 00 [10:35:20]MH_I2C_Read... [10:35:20]*** Stop cut motor [10:35:20]*** Cut end [10:35:20]Read from MH i2c: 01 07 00 F1 0D 00 00 00 00 00 FF 0F 13 [10:35:20]process_action print_text done [10:35:20]requested_data is exist [10:35:20]produce_requested_data [10:35:20]requested_item fm.sn is exist - process it [10:35:20]wFMCommunicate request_size=4 [10:35:20]MH_SAM_APDU [10:35:20]CAPDU: 80 11 00 00 [10:35:20]Write to MH i2c: E2 08 00 F2 0D 80 11 00 00 00 00 00 00 79 [10:35:20]Write i2c OK [10:35:20]MH_I2C_Read... [10:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:20]Read from MH i2c: E2 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: E2 17 00 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: E2 17 00 F2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CC [10:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:35:20]wFMCommunicate OK [10:35:20]requested_item fd.num is exist - process it [10:35:20]SAM_PROTO_GetFieldsCounters [10:35:20]wFMCommunicate request_size=4 [10:35:20]MH_SAM_APDU [10:35:20]CAPDU: 80 13 00 00 [10:35:20]Write to MH i2c: E2 08 00 F3 0D 80 13 00 00 00 00 00 00 7C [10:35:20]Write i2c OK [10:35:20]MH_I2C_Read... [10:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:20]Read from MH i2c: E2 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: E2 62 00 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: E2 62 00 F3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 95 01 00 0E 04 04 00 62 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 FF [10:35:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BE 95 01 00 0E 04 04 00 62 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:35:20]wFMCommunicate OK [10:35:20]SAM_PROTO_GetFieldsCounters done [10:35:20]requested_item shift.num is exist - process it [10:35:20]requested_item shift.opened is exist - process it [10:35:20]req_shift_opened [10:35:20]FM_GetShiftState [10:35:20]SAM_PROTO_GetShiftState [10:35:20]wFMCommunicate request_size=4 [10:35:20]MH_SAM_APDU [10:35:20]CAPDU: 80 13 01 00 [10:35:20]Write to MH i2c: E2 08 00 F4 0D 80 13 01 00 00 00 00 00 7E [10:35:20]Write i2c OK [10:35:20]MH_I2C_Read... [10:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:20]Read from MH i2c: E2 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: E2 0E 00 [10:35:20]MH_I2C_Read... [10:35:20]Read from MH i2c: E2 0E 00 F4 0D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CD [10:35:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:35:20]wFMCommunicate OK [10:35:20]SAM_PROTO_GetShiftState done [10:35:20]FM_GetShiftState done [10:35:20]req_shift_opened done [10:35:20]requested_item shift.open_date is exist - process it [10:35:20]req_shift_open_date [10:35:20]req_shift_open_date done [10:35:20]produce_requested_data done [10:35:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103870,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:35:20]process_action_free print_text [10:35:20]json_value_free [10:35:20]json_value_free done [10:35:20]process_json_proto returns [10:35:20]Send response to host [10:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103870,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:35:20]free response buf [10:35:20]execute_script done [10:35:20]execute_script returns [10:35:20]free content buf [10:35:20]Sock 7.Close socket [10:35:20]Sock 7.Thread stoped [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:36:58]accept exits with 9 [10:36:58]New connection [10:36:58]New thread 3067063652 created [10:36:58]Thread 3067207012 joined [10:36:58]Waiting for new connection... [10:36:58] Sock 9.Parse request [10:36:58]Sock 9.Check first char [10:36:58]Sock 9.First char is OK [10:36:58]request: POST /json_proto HTTP/1.0 [10:36:58]Method: POST [10:36:58]URL: /json_proto [10:36:58]Method is POST - this is cgi request [10:36:58]url: /json_proto [10:36:58]query_string will be loaded in cgi processing [10:36:58]execute_cgi json_proto POST (null) [10:36:58]execute_cgi path=json_proto method=POST [10:36:58]POST find Content-Length [10:36:58]Host: 172.17.38.133:8080 [10:36:58]Content-Length: 687 [10:36:58]Content-Type: application/json [10:36:58] [10:36:58]POST finish read [10:36:58]Found Content-Length = 687 [10:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 32.720, "sum" : 2385.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 2385.00, "payments": [ { "type": 0, "sum" : 2385.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:58]execute_script... [10:36:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 32.720, "sum" : 2385.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 2385.00, "payments": [ { "type": 0, "sum" : 2385.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:58]POST & json_proto [10:36:58]process_json_proto [10:36:58]json parsed OK: [10:36:58]protocol is kg_v1.0 [10:36:58]action value=close_receipt [10:36:58]process_action close_receipt [10:36:58]cmd_close_receipt [10:36:58]MH_GetDate [10:36:58]Write to MH i2c: F0 00 00 F5 0D F1 [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: F0 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: F0 09 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: F0 09 00 F5 0D 00 4B 06 74 66 BD 8F 7C 64 51 [10:36:58]GetLastDocTimeStamp 1718878968 [10:36:58]current date 1718879819 [10:36:58]FM_GetShiftState [10:36:58]SAM_PROTO_GetShiftState [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 13 01 00 [10:36:58]Write to MH i2c: E2 08 00 F6 0D 80 13 01 00 00 00 00 00 80 [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 0E 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 0E 00 F6 0D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CF [10:36:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:36:58]wFMCommunicate OK [10:36:58]SAM_PROTO_GetShiftState done [10:36:58]FM_GetShiftState done [10:36:58]opened in 1718843124 [10:36:58]opened+sec_in_day 1718929524 [10:36:58]quantity*price = 238528 [10:36:58]sum+1 = 238530 [10:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 2385.00 Внесено: 9000.00 СДАЧА: 6615.00 НСП 1% : 21.11 НДС 12% : 253.30 Наличными: 2385.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 56 20.06.2024 10:36 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103871 ФПД: 206430923151189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103871&fm=206430923151189&tin=02508201610067®Number=0000000000092785&sum=238500 [10:36:59]StoreToDocumentArchive [10:36:59]shift 354 fd 103871 [10:36:59]save to /storage/0354/doc_00103871 [10:36:59]save last doc name /storage/0354/doc_00103871 to /storage/kkm_last_doc_name [10:36:59]save OK [10:36:59]Clear old archive folders... [10:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:36:59]tlvbuf is 0081C100 [10:36:59]SAM_PROTO_ClearQueue [10:36:59]wFMCommunicate request_size=4 [10:36:59]MH_SAM_APDU [10:36:59]CAPDU: 80 09 00 00 [10:36:59]Write to MH i2c: E2 08 00 03 0E 80 09 00 00 00 00 00 00 83 [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:59]Read from MH i2c: E2 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 03 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 03 00 03 0E 00 90 00 85 [10:36:59]RAPDU: 90 00 [10:36:59]wFMCommunicate OK [10:36:59]SAM_PROTO_ClearQueue done [10:36:59]KKMCreateOFDPacket [10:36:59]OFDProtocolAddRootSTLVToBuf [10:36:59]FM_MakeSignedData [10:36:59]FM_MakeSignedData [10:36:59]SAM_PROTO_SignData [10:36:59]wFMCommunicate request_size=4 [10:36:59]MH_SAM_APDU [10:36:59]CAPDU: 80 0D 01 02 [10:36:59]Write to MH i2c: E2 08 00 04 0E 80 0D 01 02 00 00 00 00 8B [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:59]Read from MH i2c: E2 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 03 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 03 00 04 0E 00 90 00 86 [10:36:59]RAPDU: 90 00 [10:36:59]wFMCommunicate OK [10:36:59]wFMCommunicate request_size=255 [10:36:59]MH_SAM_APDU [10:36:59]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 7F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C1 A3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 A3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 62 00 00 00 00 07 04 06 00 A4 A3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 95 01 00 35 04 06 00 [10:36:59]Write to MH i2c: E2 02 01 05 0E 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 7F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C1 A3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 A3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 62 00 00 00 00 07 04 06 00 A4 A3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 95 01 00 35 04 06 00 00 00 6C [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:59]Read from MH i2c: E2 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 03 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [10:36:59]RAPDU: 90 00 [10:36:59]wFMCommunicate OK [10:36:59]wFMCommunicate request_size=11 [10:36:59]MH_SAM_APDU [10:36:59]CAPDU: 80 0D 02 02 06 BB BF 71 D8 57 55 [10:36:59]Write to MH i2c: E2 0E 00 06 0E 80 0D 02 02 06 00 BB BF 71 D8 57 55 00 00 09 [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:59]Read from MH i2c: E2 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 03 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 03 00 06 0E 00 90 00 88 [10:36:59]RAPDU: 90 00 [10:36:59]wFMCommunicate OK [10:36:59]wFMCommunicate request_size=4 [10:36:59]MH_SAM_APDU [10:36:59]CAPDU: 80 0D 03 02 [10:36:59]Write to MH i2c: E2 08 00 07 0E 80 0D 03 02 00 00 00 00 90 [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:59]Read from MH i2c: E2 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 0B 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 0B 00 07 0E 00 E3 08 17 8A FB E8 AD 6D 90 00 1A [10:36:59]RAPDU: E3 08 17 8A FB E8 AD 6D 90 00 [10:36:59]wFMCommunicate OK [10:36:59]SAM_PROTO_SignData done [10:36:59]FM_MakeSignedData done [10:36:59]CreateOFDProtocolMessage [10:36:59]wFMCommunicate request_size=4 [10:36:59]MH_SAM_APDU [10:36:59]CAPDU: 80 11 00 00 [10:36:59]Write to MH i2c: E2 08 00 08 0E 80 11 00 00 00 00 00 00 90 [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:59]Read from MH i2c: E2 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 17 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 17 00 08 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [10:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:36:59]wFMCommunicate OK [10:36:59]CreateOFDProtocolMessage done [10:36:59]OFDSenderStorePacket 103871 [10:36:59]StoreOFDPacket docnum=103871 [10:36:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 76 59 08 01 A5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 7F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C1 A3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 A3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 62 00 00 00 00 07 04 06 00 A4 A3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 95 01 00 35 04 06 00 BB BF 71 D8 57 55 E3 08 17 8A FB E8 AD 6D [10:36:59]CheckFolder [10:36:59]dirname=/storage/ofd_packets [10:36:59]CheckFolder done [10:36:59]ProducePacketName [10:36:59]name=ofd_packets/00103871 [10:36:59]NVStorageSaveData ofd_packets/00103871 [10:36:59]File name is /storage/ofd_packets/00103871 [10:36:59]Write 302 bytes [10:36:59]NVStorageSaveData done [10:36:59]OFDSenderStorePacket done [10:36:59]KKMCreateOFDPacket done [10:36:59]NVStorageSaveData kkm_last_timestamp [10:36:59]File name is /storage/kkm_last_timestamp [10:36:59]Write 4 bytes [10:36:59]NVStorageSaveData done [10:36:59]ExternCall_PrintAddStr [10:36:59]wPrintStart [10:36:59]Write to MH i2c: 01 00 00 09 0E 17 [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: 01 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: 01 07 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: 01 07 00 09 0E 00 00 00 00 00 FF 0F 2C [10:36:59]RasterBufferAndPrint [10:36:59]line Счет N : (1)673201 [10:36:59]line ИНН: 02508201610067 [10:36:59]line Контрольно-Кассовый Чек [10:36:59]line ПРОДАЖА [10:36:59]line ТРК (МРК, ГНК) : 11 [10:36:59]line Товар: 2710194210 [10:36:59]line ДТ(л)-К-5 [10:36:59]line 32.720 * 72.90 [10:36:59]line = 2385.29 [10:36:59]line НДС 12% НСП 1% [10:36:59]line > о реализуемом товаре [10:36:59]line ОКРУГЛЕНИЕ: -0.29 [10:36:59]line ИТОГО: 2385.00 [10:36:59]line Внесено: 9000.00 [10:36:59]line СДАЧА: 6615.00 [10:36:59]line НСП 1% : 21.11 [10:36:59]line НДС 12% : 253.30 [10:36:59]line Наличными: 2385.00 [10:36:59]line Безнал.: 0.00 [10:36:59]line Место: АЗС № 120 "Партнер Нефть" [10:36:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:36:59]line СНО: Общий режим [10:36:59]line Чек 56 20.06.2024 10:36 [10:36:59]line Смена: 354 ФФД: 1.0 [10:36:59]line ЗНМ: 0300000164 [10:36:59]line РНМ: 0000000000092785 [10:36:59]line Версия ККМ: 001 [10:36:59]line ФМ: 0000000000875093 [10:36:59]line ФД: 103871 [10:36:59]line ФПД: 206430923151189 [10:36:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103871&fm=206430923151189&tin=02508201610067®Number=0000000000092785&sum=238500 [10:37:00]OFD Sender: Processing packet 103871 [packets to send 17, broken 16] [10:37:00]ProducePacketName [10:37:00]name=ofd_packets/00103871 [10:37:00]OFD Sender: To server: pG, [10:37:00]CommunicateWithHost lk.salyk.kg:30040 [10:37:00]ConnectInit lk.salyk.kg [10:37:00]written 0, free lines is 4095 [10:37:00]Connected sock=10 [10:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 76 59 08 01 A5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 7F 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C1 A3 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 A3 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 62 00 00 00 00 07 04 06 00 A4 A3 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 BF 95 01 00 35 04 06 00 BB BF 71 D8 57 55 E3 08 17 8A FB E8 AD 6D [10:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 3C A9 47 00 7C 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 35 30 39 33 10 04 04 00 BF 95 01 00 F4 03 04 00 D1 AC 73 66 B6 04 01 00 00 42 6C D5 3D BC AA 43 8E [10:37:00]CommunicateWithHost err = 0 [10:37:00]CheckOFDResponse [10:37:00]1017 (14) - 77093643461234 [10:37:00]1041 (16) - 0000000000875093 [10:37:00]1040 (4) - 103871 [10:37:00]1012 (4) - 20.06.2024 04:15 [10:37:00]1206 (1) - 0 [10:37:00]OFD Sender: Remove packet 103871 [10:37:00]ProducePacketName [10:37:00]name=ofd_packets/00103871 [10:37:00]NVStorageDeleteData [10:37:00]Write to MH i2c: 01 00 00 34 0E 42 [10:37:00]Write i2c OK [10:37:00]MH_I2C_Read... [10:37:00]Read from MH i2c: 01 [10:37:00]MH_I2C_Read... [10:37:00]Read from MH i2c: 01 07 00 [10:37:00]MH_I2C_Read... [10:37:00]Read from MH i2c: 01 07 00 34 0E 00 00 00 00 00 E2 0C 37 [10:37:00]RasterBufferAndPrint [10:37:00]line [10:37:00]line [10:37:00]line [10:37:00]line [10:37:00]line [10:37:00]written 0, free lines is 3304 [10:37:00]MH_Cut [10:37:00]Write to MH i2c: D1 01 00 3B 0E 01 1B [10:37:00]Write i2c OK [10:37:00]MH_I2C_Read... [10:37:00]Read from MH i2c: D1 [10:37:00]MH_I2C_Read... [10:37:00]Read from MH i2c: D1 01 00 [10:37:00]MH_I2C_Read... [10:37:00]Read from MH i2c: D1 01 00 3B 0E 00 1A [10:37:00]Write to MH i2c: 01 00 00 3C 0E 4A [10:37:00]Write i2c OK [10:37:00]MH_I2C_Read... [10:37:01]OFD Sender: No OFD packet to send [10:37:01]*** Cut start [10:37:01]*** Partial cut [10:37:01]*** CUTSNS_PIN = 1 [10:37:01]*** CUTSNS_PIN = 0 [10:37:01]*** Brake cut motor [10:37:01]Read from MH i2c: 01 [10:37:01]MH_I2C_Read... [10:37:01]*** Stop cut motor [10:37:01]*** Cut end [10:37:01]Read from MH i2c: 01 07 00 [10:37:01]MH_I2C_Read... [10:37:01]Read from MH i2c: 01 07 00 3C 0E 00 00 00 00 00 FF 0F 5F [10:37:01]process_action close_receipt done [10:37:01]requested_data is exist [10:37:01]produce_requested_data [10:37:01]requested_item fm.sn is exist - process it [10:37:01]wFMCommunicate request_size=4 [10:37:01]MH_SAM_APDU [10:37:01]CAPDU: 80 11 00 00 [10:37:01]Write to MH i2c: E2 08 00 3D 0E 80 11 00 00 00 00 00 00 C5 [10:37:01]Write i2c OK [10:37:01]MH_I2C_Read... [10:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:02]Read from MH i2c: E2 [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: E2 17 00 [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: E2 17 00 3D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 18 [10:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:37:02]wFMCommunicate OK [10:37:02]requested_item fd.num is exist - process it [10:37:02]SAM_PROTO_GetFieldsCounters [10:37:02]wFMCommunicate request_size=4 [10:37:02]MH_SAM_APDU [10:37:02]CAPDU: 80 13 00 00 [10:37:02]Write to MH i2c: E2 08 00 3E 0E 80 13 00 00 00 00 00 00 C8 [10:37:02]Write i2c OK [10:37:02]MH_I2C_Read... [10:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:02]Read from MH i2c: E2 [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: E2 62 00 [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: E2 62 00 3E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BF 95 01 00 0E 04 04 00 62 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 4F [10:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 BF 95 01 00 0E 04 04 00 62 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:37:02]wFMCommunicate OK [10:37:02]SAM_PROTO_GetFieldsCounters done [10:37:02]requested_item shift.num is exist - process it [10:37:02]requested_item shift.opened is exist - process it [10:37:02]req_shift_opened [10:37:02]FM_GetShiftState [10:37:02]SAM_PROTO_GetShiftState [10:37:02]wFMCommunicate request_size=4 [10:37:02]MH_SAM_APDU [10:37:02]CAPDU: 80 13 01 00 [10:37:02]Write to MH i2c: E2 08 00 3F 0E 80 13 01 00 00 00 00 00 CA [10:37:02]Write i2c OK [10:37:02]MH_I2C_Read... [10:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:02]Read from MH i2c: E2 [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: E2 0E 00 [10:37:02]MH_I2C_Read... [10:37:02]Read from MH i2c: E2 0E 00 3F 0E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 19 [10:37:02]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:37:02]wFMCommunicate OK [10:37:02]SAM_PROTO_GetShiftState done [10:37:02]FM_GetShiftState done [10:37:02]req_shift_opened done [10:37:02]requested_item shift.open_date is exist - process it [10:37:02]req_shift_open_date [10:37:02]req_shift_open_date done [10:37:02]produce_requested_data done [10:37:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103871,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:37:02]process_action_free close_receipt [10:37:02]json_value_free [10:37:02]json_value_free done [10:37:02]process_json_proto returns [10:37:02]Send response to host [10:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103871,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:37:02]free response buf [10:37:02]execute_script done [10:37:02]execute_script returns [10:37:02]free content buf [10:37:02]Sock 9.Close socket [10:37:02]Sock 9.Thread stoped [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:16]accept exits with 7 [10:37:16]New connection [10:37:16]New thread 3067207012 created [10:37:16]Thread 3067063652 joined [10:37:16]Waiting for new connection... [10:37:16] Sock 7.Parse request [10:37:16]Sock 7.Check first char [10:37:16]Sock 7.First char is OK [10:37:16]request: POST /json_proto HTTP/1.0 [10:37:16]Method: POST [10:37:16]URL: /json_proto [10:37:16]Method is POST - this is cgi request [10:37:16]url: /json_proto [10:37:16]query_string will be loaded in cgi processing [10:37:16]execute_cgi json_proto POST (null) [10:37:16]execute_cgi path=json_proto method=POST [10:37:16]POST find Content-Length [10:37:16]Host: 172.17.38.133:8080 [10:37:16]Content-Length: 687 [10:37:16]Content-Type: application/json [10:37:16] [10:37:16]POST finish read [10:37:16]Found Content-Length = 687 [10:37:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 39.580, "sum" : 2885.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2885.00, "total" : 2885.00, "payments": [ { "type": 0, "sum" : 2885.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:16]execute_script... [10:37: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)673202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 39.580, "sum" : 2885.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2885.00, "total" : 2885.00, "payments": [ { "type": 0, "sum" : 2885.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:16]POST & json_proto [10:37:16]process_json_proto [10:37:16]json parsed OK: [10:37:16]protocol is kg_v1.0 [10:37:16]action value=close_receipt [10:37:16]process_action close_receipt [10:37:16]cmd_close_receipt [10:37:16]MH_GetDate [10:37:16]Write to MH i2c: F0 00 00 40 0E 3D [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: F0 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: F0 09 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: F0 09 00 40 0E 00 5D 06 74 66 BD 8F 7C 64 AF [10:37:16]GetLastDocTimeStamp 1718879819 [10:37:16]current date 1718879837 [10:37:16]FM_GetShiftState [10:37:16]SAM_PROTO_GetShiftState [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 13 01 00 [10:37:16]Write to MH i2c: E2 08 00 41 0E 80 13 01 00 00 00 00 00 CC [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0E 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0E 00 41 0E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [10:37:16]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_GetShiftState done [10:37:16]FM_GetShiftState done [10:37:16]opened in 1718843124 [10:37:16]opened+sec_in_day 1718929524 [10:37:16]quantity*price = 288538 [10:37:16]sum+1 = 288539 [10:37:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2885.00 Внесено: 2885.00 СДАЧА: 0.00 НСП 1% : 25.53 НДС 12% : 306.41 Наличными: 2885.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 57 20.06.2024 10:37 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103872 ФПД: 144982570938158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103717&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103872&fm=144982570938158&tin=02508201610067®Number=0000000000092785&sum=288500 [10:37:17]StoreToDocumentArchive [10:37:17]shift 354 fd 103872 [10:37:17]save to /storage/0354/doc_00103872 [10:37:17]save last doc name /storage/0354/doc_00103872 to /storage/kkm_last_doc_name [10:37:17]save OK [10:37:17]Clear old archive folders... [10:37:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:37:17]tlvbuf is 00872890 [10:37:17]SAM_PROTO_ClearQueue [10:37:17]wFMCommunicate request_size=4 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 09 00 00 [10:37:17]Write to MH i2c: E2 08 00 4E 0E 80 09 00 00 00 00 00 00 CE [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 4E 0E 00 90 00 D0 [10:37:17]RAPDU: 90 00 [10:37:17]wFMCommunicate OK [10:37:17]SAM_PROTO_ClearQueue done [10:37:17]KKMCreateOFDPacket [10:37:17]OFDProtocolAddRootSTLVToBuf [10:37:17]FM_MakeSignedData [10:37:17]FM_MakeSignedData [10:37:17]SAM_PROTO_SignData [10:37:17]wFMCommunicate request_size=4 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 0D 01 02 [10:37:17]Write to MH i2c: E2 08 00 4F 0E 80 0D 01 02 00 00 00 00 D6 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 4F 0E 00 90 00 D1 [10:37:17]RAPDU: 90 00 [10:37:17]wFMCommunicate OK [10:37:17]wFMCommunicate request_size=255 [10:37:17]MH_SAM_APDU [10:37:17]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A 67 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 66 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 77 00 00 00 00 07 04 06 00 F4 66 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5D 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 95 01 00 35 04 06 00 [10:37:17]Write to MH i2c: E2 02 01 50 0E 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A 67 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 66 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 77 00 00 00 00 07 04 06 00 F4 66 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5D 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 95 01 00 35 04 06 00 00 00 87 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 50 0E 00 90 00 D2 [10:37:17]RAPDU: 90 00 [10:37:17]wFMCommunicate OK [10:37:17]wFMCommunicate request_size=11 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 0D 02 02 06 83 DC 62 A3 AF 2E [10:37:17]Write to MH i2c: E2 0E 00 51 0E 80 0D 02 02 06 00 83 DC 62 A3 AF 2E 00 00 26 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 03 00 51 0E 00 90 00 D3 [10:37:17]RAPDU: 90 00 [10:37:17]wFMCommunicate OK [10:37:17]wFMCommunicate request_size=4 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 0D 03 02 [10:37:17]Write to MH i2c: E2 08 00 52 0E 80 0D 03 02 00 00 00 00 DB [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 0B 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 0B 00 52 0E 00 2C AF F7 4A 5F 64 CC 31 90 00 B8 [10:37:17]RAPDU: 2C AF F7 4A 5F 64 CC 31 90 00 [10:37:17]wFMCommunicate OK [10:37:17]SAM_PROTO_SignData done [10:37:17]FM_MakeSignedData done [10:37:17]CreateOFDProtocolMessage [10:37:17]wFMCommunicate request_size=4 [10:37:17]MH_SAM_APDU [10:37:17]CAPDU: 80 11 00 00 [10:37:17]Write to MH i2c: E2 08 00 53 0E 80 11 00 00 00 00 00 00 DB [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:17]Read from MH i2c: E2 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 17 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: E2 17 00 53 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [10:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:37:17]wFMCommunicate OK [10:37:17]CreateOFDProtocolMessage done [10:37:17]OFDSenderStorePacket 103872 [10:37:17]StoreOFDPacket docnum=103872 [10:37:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1C 55 08 01 19 D4 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A 67 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 66 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 77 00 00 00 00 07 04 06 00 F4 66 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5D 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 95 01 00 35 04 06 00 83 DC 62 A3 AF 2E 2C AF F7 4A 5F 64 CC 31 [10:37:17]CheckFolder [10:37:17]dirname=/storage/ofd_packets [10:37:17]CheckFolder done [10:37:17]ProducePacketName [10:37:17]name=ofd_packets/00103872 [10:37:17]NVStorageSaveData ofd_packets/00103872 [10:37:17]File name is /storage/ofd_packets/00103872 [10:37:17]Write 302 bytes [10:37:17]NVStorageSaveData done [10:37:17]OFDSenderStorePacket done [10:37:17]KKMCreateOFDPacket done [10:37:17]NVStorageSaveData kkm_last_timestamp [10:37:17]File name is /storage/kkm_last_timestamp [10:37:17]Write 4 bytes [10:37:17]NVStorageSaveData done [10:37:17]ExternCall_PrintAddStr [10:37:17]wPrintStart [10:37:17]Write to MH i2c: 01 00 00 54 0E 62 [10:37:17]Write i2c OK [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 07 00 [10:37:17]MH_I2C_Read... [10:37:17]Read from MH i2c: 01 07 00 54 0E 00 00 00 00 00 FF 0F 77 [10:37:17]RasterBufferAndPrint [10:37:17]line Счет N : (1)673202 [10:37:17]line ИНН: 02508201610067 [10:37:17]line Контрольно-Кассовый Чек [10:37:17]line ПРОДАЖА [10:37:17]line ТРК (МРК, ГНК) : 11 [10:37:17]line Товар: 2710194210 [10:37:17]line ДТ(л)-К-5 [10:37:17]line 39.580 * 72.90 [10:37:17]line = 2885.38 [10:37:17]line НДС 12% НСП 1% [10:37:17]line > о реализуемом товаре [10:37:17]line ОКРУГЛЕНИЕ: -0.38 [10:37:17]line ИТОГО: 2885.00 [10:37:17]line Внесено: 2885.00 [10:37:17]line СДАЧА: 0.00 [10:37:17]line НСП 1% : 25.53 [10:37:17]line НДС 12% : 306.41 [10:37:17]line Наличными: 2885.00 [10:37:17]line Безнал.: 0.00 [10:37:17]line Место: АЗС № 120 "Партнер Нефть" [10:37:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:37:17]line СНО: Общий режим [10:37:17]line Чек 57 20.06.2024 10:37 [10:37:17]line Смена: 354 ФФД: 1.0 [10:37:17]line ЗНМ: 0300000164 [10:37:17]line РНМ: 0000000000092785 [10:37:17]line Версия ККМ: 001 [10:37:17]line ФМ: 0000000000875093 [10:37:17]line ФД: 103872 [10:37:17]line ФПД: 144982570938158 [10:37:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103717&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103872&fm=144982570938158&tin=02508201610067®Number=0000000000092785&sum=288500 [10:37:18]OFD Sender: Processing packet 103872 [packets to send 17, broken 16] [10:37:18]ProducePacketName [10:37:18]name=ofd_packets/00103872 [10:37:18]OFD Sender: To server: pG, [10:37:18]CommunicateWithHost lk.salyk.kg:30040 [10:37:18]ConnectInit lk.salyk.kg [10:37:18]written 0, free lines is 4095 [10:37:18]Connected sock=10 [10:37:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1C 55 08 01 19 D4 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A 67 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 66 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 77 00 00 00 00 07 04 06 00 F4 66 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5D 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 95 01 00 35 04 06 00 83 DC 62 A3 AF 2E 2C AF F7 4A 5F 64 CC 31 [10:37:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D8 AA 47 00 B0 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C0 95 01 00 F4 03 04 00 E3 AC 73 66 B6 04 01 00 00 B0 0F DC 6F 52 C7 37 09 [10:37:18]CommunicateWithHost err = 0 [10:37:18]CheckOFDResponse [10:37:18]1017 (14) - 77093643461234 [10:37:18]1041 (16) - 0000000000875093 [10:37:18]1040 (4) - 103872 [10:37:18]1012 (4) - 20.06.2024 04:15 [10:37:18]1206 (1) - 0 [10:37:18]OFD Sender: Remove packet 103872 [10:37:18]ProducePacketName [10:37:18]name=ofd_packets/00103872 [10:37:18]NVStorageDeleteData [10:37:18]Write to MH i2c: 01 00 00 7F 0E 8D [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: 01 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: 01 07 00 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: 01 07 00 7F 0E 00 00 00 00 00 E1 0C 81 [10:37:18]RasterBufferAndPrint [10:37:18]line [10:37:18]line [10:37:18]line [10:37:18]line [10:37:18]line [10:37:18]written 0, free lines is 3302 [10:37:18]MH_Cut [10:37:18]Write to MH i2c: D1 01 00 86 0E 01 66 [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: D1 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: D1 01 00 [10:37:18]MH_I2C_Read... [10:37:18]Read from MH i2c: D1 01 00 86 0E 00 65 [10:37:18]Write to MH i2c: 01 00 00 87 0E 95 [10:37:18]Write i2c OK [10:37:18]MH_I2C_Read... [10:37:19]OFD Sender: No OFD packet to send [10:37:19]*** Cut start [10:37:19]*** Partial cut [10:37:19]*** CUTSNS_PIN = 1 [10:37:19]*** CUTSNS_PIN = 0 [10:37:19]*** Brake cut motor [10:37:19]Read from MH i2c: 01 [10:37:19]MH_I2C_Read... [10:37:20]*** Stop cut motor [10:37:20]*** Cut end [10:37:20]Read from MH i2c: 01 07 00 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: 01 07 00 87 0E 00 00 00 00 00 FF 0F AA [10:37:20]process_action close_receipt done [10:37:20]requested_data is exist [10:37:20]produce_requested_data [10:37:20]requested_item fm.sn is exist - process it [10:37:20]wFMCommunicate request_size=4 [10:37:20]MH_SAM_APDU [10:37:20]CAPDU: 80 11 00 00 [10:37:20]Write to MH i2c: E2 08 00 88 0E 80 11 00 00 00 00 00 00 10 [10:37:20]Write i2c OK [10:37:20]MH_I2C_Read... [10:37:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:20]Read from MH i2c: E2 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: E2 17 00 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: E2 17 00 88 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [10:37:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:37:20]wFMCommunicate OK [10:37:20]requested_item fd.num is exist - process it [10:37:20]SAM_PROTO_GetFieldsCounters [10:37:20]wFMCommunicate request_size=4 [10:37:20]MH_SAM_APDU [10:37:20]CAPDU: 80 13 00 00 [10:37:20]Write to MH i2c: E2 08 00 89 0E 80 13 00 00 00 00 00 00 13 [10:37:20]Write i2c OK [10:37:20]MH_I2C_Read... [10:37:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:20]Read from MH i2c: E2 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: E2 62 00 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: E2 62 00 89 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C0 95 01 00 0E 04 04 00 62 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 9E [10:37:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C0 95 01 00 0E 04 04 00 62 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:37:20]wFMCommunicate OK [10:37:20]SAM_PROTO_GetFieldsCounters done [10:37:20]requested_item shift.num is exist - process it [10:37:20]requested_item shift.opened is exist - process it [10:37:20]req_shift_opened [10:37:20]FM_GetShiftState [10:37:20]SAM_PROTO_GetShiftState [10:37:20]wFMCommunicate request_size=4 [10:37:20]MH_SAM_APDU [10:37:20]CAPDU: 80 13 01 00 [10:37:20]Write to MH i2c: E2 08 00 8A 0E 80 13 01 00 00 00 00 00 15 [10:37:20]Write i2c OK [10:37:20]MH_I2C_Read... [10:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:20]Read from MH i2c: E2 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: E2 0E 00 [10:37:20]MH_I2C_Read... [10:37:20]Read from MH i2c: E2 0E 00 8A 0E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 64 [10:37:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:37:20]wFMCommunicate OK [10:37:20]SAM_PROTO_GetShiftState done [10:37:20]FM_GetShiftState done [10:37:20]req_shift_opened done [10:37:20]requested_item shift.open_date is exist - process it [10:37:20]req_shift_open_date [10:37:20]req_shift_open_date done [10:37:20]produce_requested_data done [10:37:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103872,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:37:20]process_action_free close_receipt [10:37:20]json_value_free [10:37:20]json_value_free done [10:37:20]process_json_proto returns [10:37:20]Send response to host [10:37:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103872,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:37:20]free response buf [10:37:20]execute_script done [10:37:20]execute_script returns [10:37:20]free content buf [10:37:20]Sock 7.Close socket [10:37:20]Sock 7.Thread stoped [10:37:24]OFD Sender: No OFD packet to send [10:37:24]accept exits with 9 [10:37:24]New connection [10:37:24]New thread 3067063652 created [10:37:24]Thread 3067207012 joined [10:37:24]Waiting for new connection... [10:37:24] Sock 9.Parse request [10:37:24]Sock 9.Check first char [10:37:24]Sock 9.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.38.133:8080 [10:37:24]Content-Length: 744 [10:37:24]Content-Type: application/json [10:37:24] [10:37:24]POST finish read [10:37:24]Found Content-Length = 744 [10:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103872, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 39.580, "sum" : 2885.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2885.00, "total" : 2885.00, "payments": [ { "type": 0, "sum" : 2885.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_refund", "base_FD": 103872, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 39.580, "sum" : 2885.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2885.00, "total" : 2885.00, "payments": [ { "type": 0, "sum" : 2885.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 8B 0E 88 [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 09 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: F0 09 00 8B 0E 00 65 06 74 66 BD 8F 7C 64 02 [10:37:24]GetLastDocTimeStamp 1718879837 [10:37:24]current date 1718879845 [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 8C 0E 80 13 01 00 00 00 00 00 17 [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]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 8C 0E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 66 [10:37:24]RAPDU: 09 00 01 F4 76 73 66 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 1718843124 [10:37:24]opened+sec_in_day 1718929524 [10:37:24]quantity*price = 288538 [10:37:24]sum+1 = 288539 [10:37:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2885.00 НСП 1% : 25.53 НДС 12% : 306.41 Наличными: 2885.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 58 20.06.2024 10:37 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 103872 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 103873 ФПД: 186387017361743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103725&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103873&fm=186387017361743&tin=02508201610067®Number=0000000000092785&sum=288500 [10:37:25]StoreToDocumentArchive [10:37:25]shift 354 fd 103873 [10:37:25]save to /storage/0354/doc_00103873 [10:37:25]save last doc name /storage/0354/doc_00103873 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=280 [10:37:25]tlvbuf is 0085B6F0 [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 9B 0E 80 09 00 00 00 00 00 00 1B [10:37:25]Write i2c OK [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 [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 9B 0E 00 90 00 1D [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 9C 0E 80 0D 01 02 00 00 00 00 23 [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 9C 0E 00 90 00 1E [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 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A 67 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 66 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 77 00 00 00 00 07 04 06 00 F4 66 04 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 65 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 C0 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 [10:37:25]Write to MH i2c: E2 02 01 9D 0E 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A 67 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 66 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 77 00 00 00 00 07 04 06 00 F4 66 04 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 65 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 C0 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 00 00 0F [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 03 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 03 00 9D 0E 00 90 00 1F [10:37:26]RAPDU: 90 00 [10:37:26]wFMCommunicate OK [10:37:26]wFMCommunicate request_size=39 [10:37:26]MH_SAM_APDU [10:37:26]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 95 01 00 35 04 06 00 A9 84 9B F5 E9 4F [10:37:26]Write to MH i2c: E2 2A 00 9E 0E 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 95 01 00 35 04 06 00 A9 84 9B F5 E9 4F 00 00 2D [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 03 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 03 00 9E 0E 00 90 00 20 [10:37:26]RAPDU: 90 00 [10:37:26]wFMCommunicate OK [10:37:26]wFMCommunicate request_size=4 [10:37:26]MH_SAM_APDU [10:37:26]CAPDU: 80 0D 03 02 [10:37:26]Write to MH i2c: E2 08 00 9F 0E 80 0D 03 02 00 00 00 00 28 [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 0B 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 0B 00 9F 0E 00 DF 03 9F 12 BC 49 27 28 90 00 10 [10:37:26]RAPDU: DF 03 9F 12 BC 49 27 28 90 00 [10:37:26]wFMCommunicate OK [10:37:26]SAM_PROTO_SignData done [10:37:26]FM_MakeSignedData done [10:37:26]CreateOFDProtocolMessage [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 A0 0E 80 11 00 00 00 00 00 00 28 [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 A0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7B [10:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:37:26]wFMCommunicate OK [10:37:26]CreateOFDProtocolMessage done [10:37:26]OFDSenderStorePacket 103873 [10:37:26]StoreOFDPacket docnum=103873 [10:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2C 01 00 00 60 E9 24 01 0D 5B 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A 67 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 66 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 77 00 00 00 00 07 04 06 00 F4 66 04 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 65 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 C0 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 95 01 00 35 04 06 00 A9 84 9B F5 E9 4F DF 03 9F 12 BC 49 27 28 [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/00103873 [10:37:26]NVStorageSaveData ofd_packets/00103873 [10:37:26]File name is /storage/ofd_packets/00103873 [10:37:26]Write 330 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 A1 0E AF [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 A1 0E 00 00 00 00 00 FF 0F C4 [10:37:26]RasterBufferAndPrint [10:37:26]line Счет N : (1)673202 [10:37:26]line ИНН: 02508201610067 [10:37:26]line Контрольно-Кассовый Чек [10:37:26]line ВОЗВРАТ ПРОДАЖИ [10:37:26]line ТРК (МРК, ГНК) : 11 [10:37:26]line Товар: 2710194210 [10:37:26]line ДТ(л)-К-5 [10:37:26]line 39.580 * 72.90 [10:37:26]line = 2885.38 [10:37:26]line НДС 12% НСП 1% [10:37:26]line > о реализуемом товаре [10:37:26]line ОКРУГЛЕНИЕ: -0.38 [10:37:26]line ИТОГО: 2885.00 [10:37:26]line НСП 1% : 25.53 [10:37:26]line НДС 12% : 306.41 [10:37:26]line Наличными: 2885.00 [10:37:26]line Безнал.: 0.00 [10:37:26]line Место: АЗС № 120 "Партнер Нефть" [10:37:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:37:26]line СНО: Общий режим [10:37:26]line Чек 58 20.06.2024 10:37 [10:37:26]line Смена: 354 ФФД: 1.0 [10:37:26]line ЗНМ: 0300000164 [10:37:26]line РНМ: 0000000000092785 [10:37:26]line Версия ККМ: 001 [10:37:26]line ФД осн.: 103872 [10:37:26]line ФМ осн.: 0000000000875093 [10:37:26]line ФМ: 0000000000875093 [10:37:26]line ФД: 103873 [10:37:26]line ФПД: 186387017361743 [10:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T103725&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103873&fm=186387017361743&tin=02508201610067®Number=0000000000092785&sum=288500 [10:37:26]OFD Sender: Processing packet 103873 [packets to send 17, broken 16] [10:37:26]ProducePacketName [10:37:26]name=ofd_packets/00103873 [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]written 0, free lines is 4095 [10:37:26]Connected sock=7 [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 35 30 39 33 2C 01 00 00 60 E9 24 01 0D 5B 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9C 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1A 67 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 66 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 77 00 00 00 00 07 04 06 00 F4 66 04 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 65 06 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 C0 95 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 95 01 00 35 04 06 00 A9 84 9B F5 E9 4F DF 03 9F 12 BC 49 27 28 [10:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F6 C9 47 00 25 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C1 95 01 00 F4 03 04 00 EB AC 73 66 B6 04 01 00 00 E2 80 09 23 0F 87 5A 1B [10:37:27]CommunicateWithHost err = 0 [10:37:27]CheckOFDResponse [10:37:27]1017 (14) - 77093643461234 [10:37:27]1041 (16) - 0000000000875093 [10:37:27]1040 (4) - 103873 [10:37:27]1012 (4) - 20.06.2024 04:15 [10:37:27]1206 (1) - 0 [10:37:27]OFD Sender: Remove packet 103873 [10:37:27]ProducePacketName [10:37:27]name=ofd_packets/00103873 [10:37:27]NVStorageDeleteData [10:37:27]Write to MH i2c: 01 00 00 CC 0E DA [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: 01 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: 01 07 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: 01 07 00 CC 0E 00 00 00 00 00 0C 0D FA [10:37:27]RasterBufferAndPrint [10:37:27]line [10:37:27]line [10:37:27]line [10:37:27]line [10:37:27]line [10:37:27]written 0, free lines is 3350 [10:37:27]MH_Cut [10:37:27]Write to MH i2c: D1 01 00 D3 0E 01 B3 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: D1 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: D1 01 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: D1 01 00 D3 0E 00 B2 [10:37:27]Write to MH i2c: 01 00 00 D4 0E E2 [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]OFD Sender: No OFD packet to send [10:37:27]*** Cut start [10:37:27]*** Partial cut [10:37:27]*** CUTSNS_PIN = 1 [10:37:27]*** CUTSNS_PIN = 0 [10:37:28]*** Brake cut motor [10:37:28]Read from MH i2c: 01 [10:37:28]MH_I2C_Read... [10:37:28]*** Stop cut motor [10:37:28]*** Cut end [10:37:28]Read from MH i2c: 01 07 00 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: 01 07 00 D4 0E 00 00 00 00 00 FF 0F F7 [10:37:28]process_action close_receipt done [10:37:28]requested_data is exist [10:37:28]produce_requested_data [10:37:28]requested_item fm.sn is exist - process it [10:37:28]wFMCommunicate request_size=4 [10:37:28]MH_SAM_APDU [10:37:28]CAPDU: 80 11 00 00 [10:37:28]Write to MH i2c: E2 08 00 D5 0E 80 11 00 00 00 00 00 00 5D [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:28]Read from MH i2c: E2 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 17 00 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 17 00 D5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [10:37:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:37:28]wFMCommunicate OK [10:37:28]requested_item fd.num is exist - process it [10:37:28]SAM_PROTO_GetFieldsCounters [10:37:28]wFMCommunicate request_size=4 [10:37:28]MH_SAM_APDU [10:37:28]CAPDU: 80 13 00 00 [10:37:28]Write to MH i2c: E2 08 00 D6 0E 80 13 00 00 00 00 00 00 60 [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:28]Read from MH i2c: E2 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 62 00 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 62 00 D6 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 95 01 00 0E 04 04 00 62 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 EF [10:37:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 95 01 00 0E 04 04 00 62 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:37:28]wFMCommunicate OK [10:37:28]SAM_PROTO_GetFieldsCounters done [10:37:28]requested_item shift.num is exist - process it [10:37:28]requested_item shift.opened is exist - process it [10:37:28]req_shift_opened [10:37:28]FM_GetShiftState [10:37:28]SAM_PROTO_GetShiftState [10:37:28]wFMCommunicate request_size=4 [10:37:28]MH_SAM_APDU [10:37:28]CAPDU: 80 13 01 00 [10:37:28]Write to MH i2c: E2 08 00 D7 0E 80 13 01 00 00 00 00 00 62 [10:37:28]Write i2c OK [10:37:28]MH_I2C_Read... [10:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:28]Read from MH i2c: E2 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 0E 00 [10:37:28]MH_I2C_Read... [10:37:28]Read from MH i2c: E2 0E 00 D7 0E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B1 [10:37:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:37:28]wFMCommunicate OK [10:37:28]SAM_PROTO_GetShiftState done [10:37:28]FM_GetShiftState done [10:37:28]req_shift_opened done [10:37:28]requested_item shift.open_date is exist - process it [10:37:28]req_shift_open_date [10:37:28]req_shift_open_date done [10:37:28]produce_requested_data done [10:37:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103873,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:37:28]process_action_free close_receipt [10:37:28]json_value_free [10:37:28]json_value_free done [10:37:28]process_json_proto returns [10:37:28]Send response to host [10:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103873,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:37:28]free response buf [10:37:28]execute_script done [10:37:28]execute_script returns [10:37:28]free content buf [10:37:28]Sock 9.Close socket [10:37:28]Sock 9.Thread stoped [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:18]accept exits with 10 [10:38:18]New connection [10:38:18]New thread 3067207012 created [10:38:18]Thread 3067063652 joined [10:38:18]Waiting for new connection... [10:38:18] Sock 10.Parse request [10:38:18]Sock 10.Check first char [10:38:18]Sock 10.First char is OK [10:38:18]request: POST /json_proto HTTP/1.0 [10:38:18]Method: POST [10:38:18]URL: /json_proto [10:38:18]Method is POST - this is cgi request [10:38:18]url: /json_proto [10:38:18]query_string will be loaded in cgi processing [10:38:18]execute_cgi json_proto POST (null) [10:38:18]execute_cgi path=json_proto method=POST [10:38:18]POST find Content-Length [10:38:18]Host: 172.17.38.133:8080 [10:38:18]Content-Length: 1212 [10:38:18]Content-Type: application/json [10:38:18] [10:38:18]POST finish read [10:38:18]Found Content-Length = 1212 [10:38:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673200\u000A20.06.2024 10:15\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 70.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5103.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\u000A81645\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:18]execute_script... [10:38:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673200\u000A20.06.2024 10:15\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 70.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 5103.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\u000A81645\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:18]POST & json_proto [10:38:18]process_json_proto [10:38:18]json parsed OK: [10:38:18]protocol is kg_v1.0 [10:38:18]action value=print_text [10:38:18]process_action print_text [10:38:18]cmd_print_text [10:38:18]ExternCall_PrintAddStr [10:38:18]wPrintStart [10:38:18]Write to MH i2c: 01 00 00 D8 0E E6 [10:38:18]Write i2c OK [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: 01 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: 01 07 00 [10:38:18]MH_I2C_Read... [10:38:18]Read from MH i2c: 01 07 00 D8 0E 00 00 00 00 00 FF 0F FB [10:38:18]RasterBufferAndPrint [10:38:18]line *****ТОВАРНЫЙ ЧЕК***** [10:38:18]line АЗС 120 [10:38:18]line Партнер нефть [10:38:18]line 02508201610067 [10:38:18]line Кассир : Дуйшенбиев А. [10:38:18]line Счет N : (1)673200 [10:38:18]line 20.06.2024 10:15 [10:38:18]line ПРОДАЖА [10:38:18]line ТРК (МРК, ГНК): 21 [10:38:18]line Вид ГСМ : 2710194210 [10:38:18]line ДТ(л)-К-5 [10:38:18]line 70.000 x 72.90 [10:38:18]line ИТОГ: 5103.00 [10:38:18]line Тип оплаты: Талоны: Топливная Карта [10:38:18]line 81645 [10:38:18]line ______________________ [10:38:18]line (подпись) [10:38:18]written 0, free lines is 4095 [10:38:19]Write to MH i2c: 01 00 00 EC 0E FA [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: 01 07 00 EC 0E 00 00 00 00 00 10 0E 1F [10:38:19]RasterBufferAndPrint [10:38:19]line [10:38:19]line [10:38:19]line [10:38:19]line [10:38:19]line [10:38:19]written 0, free lines is 3601 [10:38:19]MH_Cut [10:38:19]Write to MH i2c: D1 01 00 F3 0E 01 D3 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D1 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D1 01 00 [10:38:19]MH_I2C_Read... [10:38:19]Read from MH i2c: D1 01 00 F3 0E 00 D2 [10:38:19]Write to MH i2c: 01 00 00 F4 0E 02 [10:38:19]Write i2c OK [10:38:19]MH_I2C_Read... [10:38:19]*** Cut start [10:38:19]*** Partial cut [10:38:19]*** CUTSNS_PIN = 1 [10:38:19]*** CUTSNS_PIN = 0 [10:38:19]*** Brake cut motor [10:38:20]Read from MH i2c: 01 [10:38:20]MH_I2C_Read... [10:38:20]*** Stop cut motor [10:38:20]*** Cut end [10:38:20]Read from MH i2c: 01 07 00 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: 01 07 00 F4 0E 00 00 00 00 00 FF 0F 17 [10:38:20]process_action print_text done [10:38:20]requested_data is exist [10:38:20]produce_requested_data [10:38:20]requested_item fm.sn is exist - process it [10:38:20]wFMCommunicate request_size=4 [10:38:20]MH_SAM_APDU [10:38:20]CAPDU: 80 11 00 00 [10:38:20]Write to MH i2c: E2 08 00 F5 0E 80 11 00 00 00 00 00 00 7D [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:20]Read from MH i2c: E2 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: E2 17 00 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: E2 17 00 F5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [10:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:38:20]wFMCommunicate OK [10:38:20]requested_item fd.num is exist - process it [10:38:20]SAM_PROTO_GetFieldsCounters [10:38:20]wFMCommunicate request_size=4 [10:38:20]MH_SAM_APDU [10:38:20]CAPDU: 80 13 00 00 [10:38:20]Write to MH i2c: E2 08 00 F6 0E 80 13 00 00 00 00 00 00 80 [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: E2 [10:38:20]MH_I2C_Read... [10:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:20]Read from MH i2c: E2 62 00 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: E2 62 00 F6 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 95 01 00 0E 04 04 00 62 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 0F [10:38:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 95 01 00 0E 04 04 00 62 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:38:20]wFMCommunicate OK [10:38:20]SAM_PROTO_GetFieldsCounters done [10:38:20]requested_item shift.num is exist - process it [10:38:20]requested_item shift.opened is exist - process it [10:38:20]req_shift_opened [10:38:20]FM_GetShiftState [10:38:20]SAM_PROTO_GetShiftState [10:38:20]wFMCommunicate request_size=4 [10:38:20]MH_SAM_APDU [10:38:20]CAPDU: 80 13 01 00 [10:38:20]Write to MH i2c: E2 08 00 F7 0E 80 13 01 00 00 00 00 00 82 [10:38:20]Write i2c OK [10:38:20]MH_I2C_Read... [10:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:20]Read from MH i2c: E2 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: E2 0E 00 [10:38:20]MH_I2C_Read... [10:38:20]Read from MH i2c: E2 0E 00 F7 0E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D1 [10:38:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:38:20]wFMCommunicate OK [10:38:20]SAM_PROTO_GetShiftState done [10:38:20]FM_GetShiftState done [10:38:20]req_shift_opened done [10:38:20]requested_item shift.open_date is exist - process it [10:38:20]req_shift_open_date [10:38:20]req_shift_open_date done [10:38:20]produce_requested_data done [10:38:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103873,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:38:20]process_action_free print_text [10:38:20]json_value_free [10:38:20]json_value_free done [10:38:20]process_json_proto returns [10:38:20]Send response to host [10:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103873,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:38:20]free response buf [10:38:20]execute_script done [10:38:20]execute_script returns [10:38:20]free content buf [10:38:20]Sock 10.Close socket [10:38:20]Sock 10.Thread stoped [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:06]accept exits with 7 [10:42:06]New connection [10:42:06]New thread 3067063652 created [10:42:06]Thread 3067207012 joined [10:42:06]Waiting for new connection... [10:42:06] Sock 7.Parse request [10:42:06]Sock 7.Check first char [10:42:06]Sock 7.First char is OK [10:42:06]request: POST /json_proto HTTP/1.0 [10:42:06]Method: POST [10:42:06]URL: /json_proto [10:42:06]Method is POST - this is cgi request [10:42:06]url: /json_proto [10:42:06]query_string will be loaded in cgi processing [10:42:06]execute_cgi json_proto POST (null) [10:42:06]execute_cgi path=json_proto method=POST [10:42:06]POST find Content-Length [10:42:06]Host: 172.17.38.133:8080 [10:42:06]Content-Length: 1205 [10:42:06]Content-Type: application/json [10:42:06] [10:42:06]POST finish read [10:42:06]Found Content-Length = 1205 [10:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673203\u000A20.06.2024 10:19\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 5.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 332.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\u000A53182\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:06]execute_script... [10:42:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673203\u000A20.06.2024 10:19\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 5.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 332.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\u000A53182\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:06]POST & json_proto [10:42:06]process_json_proto [10:42:06]json parsed OK: [10:42:06]protocol is kg_v1.0 [10:42:06]action value=print_text [10:42:06]process_action print_text [10:42:06]cmd_print_text [10:42:06]ExternCall_PrintAddStr [10:42:06]wPrintStart [10:42:06]Write to MH i2c: 01 00 00 F8 0E 06 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 07 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 FF 0F 1B [10:42:06]RasterBufferAndPrint [10:42:06]line *****ТОВАРНЫЙ ЧЕК***** [10:42:06]line АЗС 120 [10:42:06]line Партнер нефть [10:42:06]line 02508201610067 [10:42:06]line Кассир : Дуйшенбиев А. [10:42:06]line Счет N : (1)673203 [10:42:06]line 20.06.2024 10:19 [10:42:06]line ПРОДАЖА [10:42:06]line ТРК (МРК, ГНК): 42 [10:42:06]line Вид ГСМ : 2710124130 [10:42:06]line Аи-92-К-5 [10:42:06]line 5.000 x 66.40 [10:42:06]line ИТОГ: 332.00 [10:42:06]line Тип оплаты: Талоны: Топливная Карта [10:42:06]line 53182 [10:42:06]line ______________________ [10:42:06]line (подпись) [10:42:06]written 0, free lines is 4095 [10:42:06]Write to MH i2c: 01 00 00 0C 0F 1B [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 07 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 10 0E 40 [10:42:06]RasterBufferAndPrint [10:42:06]line [10:42:06]line [10:42:06]line [10:42:06]line [10:42:06]line [10:42:06]written 0, free lines is 3602 [10:42:06]MH_Cut [10:42:06]Write to MH i2c: D1 01 00 13 0F 01 F4 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: D1 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: D1 01 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: D1 01 00 13 0F 00 F3 [10:42:06]Write to MH i2c: 01 00 00 14 0F 23 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]*** Cut start [10:42:06]*** Partial cut [10:42:06]*** CUTSNS_PIN = 1 [10:42:06]*** CUTSNS_PIN = 0 [10:42:07]*** Brake cut motor [10:42:07]Read from MH i2c: 01 [10:42:07]MH_I2C_Read... [10:42:07]*** Stop cut motor [10:42:07]*** Cut end [10:42:07]Read from MH i2c: 01 07 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: 01 07 00 14 0F 00 00 00 00 00 FF 0F 38 [10:42:07]process_action print_text done [10:42:07]requested_data is exist [10:42:07]produce_requested_data [10:42:07]requested_item fm.sn is exist - process it [10:42:07]wFMCommunicate request_size=4 [10:42:07]MH_SAM_APDU [10:42:07]CAPDU: 80 11 00 00 [10:42:07]Write to MH i2c: E2 08 00 15 0F 80 11 00 00 00 00 00 00 9E [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:07]Read from MH i2c: E2 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 17 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 17 00 15 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [10:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:42:07]wFMCommunicate OK [10:42:07]requested_item fd.num is exist - process it [10:42:07]SAM_PROTO_GetFieldsCounters [10:42:07]wFMCommunicate request_size=4 [10:42:07]MH_SAM_APDU [10:42:07]CAPDU: 80 13 00 00 [10:42:07]Write to MH i2c: E2 08 00 16 0F 80 13 00 00 00 00 00 00 A1 [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:07]Read from MH i2c: E2 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 62 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 62 00 16 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 95 01 00 0E 04 04 00 62 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 30 [10:42:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 95 01 00 0E 04 04 00 62 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:42:07]wFMCommunicate OK [10:42:07]SAM_PROTO_GetFieldsCounters done [10:42:07]requested_item shift.num is exist - process it [10:42:07]requested_item shift.opened is exist - process it [10:42:07]req_shift_opened [10:42:07]FM_GetShiftState [10:42:07]SAM_PROTO_GetShiftState [10:42:07]wFMCommunicate request_size=4 [10:42:07]MH_SAM_APDU [10:42:07]CAPDU: 80 13 01 00 [10:42:07]Write to MH i2c: E2 08 00 17 0F 80 13 01 00 00 00 00 00 A3 [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:07]Read from MH i2c: E2 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 0E 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 0E 00 17 0F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F2 [10:42:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:42:07]wFMCommunicate OK [10:42:07]SAM_PROTO_GetShiftState done [10:42:07]FM_GetShiftState done [10:42:07]req_shift_opened done [10:42:07]requested_item shift.open_date is exist - process it [10:42:07]req_shift_open_date [10:42:07]req_shift_open_date done [10:42:07]produce_requested_data done [10:42:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103873,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:42:07]process_action_free print_text [10:42:07]json_value_free [10:42:07]json_value_free done [10:42:07]process_json_proto returns [10:42:07]Send response to host [10:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103873,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:42:07]free response buf [10:42:07]execute_script done [10:42:07]execute_script returns [10:42:07]free content buf [10:42:07]Sock 7.Close socket [10:42:07]Sock 7.Thread stoped [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:13]accept exits with 9 [10:44:13]New connection [10:44:13]New thread 3067207012 created [10:44:13]Thread 3067063652 joined [10:44:13]Waiting for new connection... [10:44:13] Sock 9.Parse request [10:44:13]Sock 9.Check first char [10:44:13]Sock 9.First char is OK [10:44:13]request: POST /json_proto HTTP/1.0 [10:44:13]Method: POST [10:44:13]URL: /json_proto [10:44:13]Method is POST - this is cgi request [10:44:13]url: /json_proto [10:44:13]query_string will be loaded in cgi processing [10:44:13]execute_cgi json_proto POST (null) [10:44:13]execute_cgi path=json_proto method=POST [10:44:13]POST find Content-Length [10:44:13]Host: 172.17.38.133:8080 [10:44:13]Content-Length: 1168 [10:44:13]Content-Type: application/json [10:44:13] [10:44:13]POST finish read [10:44:13]Found Content-Length = 1168 [10:44: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673204\u000A20.06.2024 10:21\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 12.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 796.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30094512\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:13]execute_script... [10:44: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673204\u000A20.06.2024 10:21\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 12.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 796.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30094512\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:13]POST & json_proto [10:44:13]process_json_proto [10:44:13]json parsed OK: [10:44:13]protocol is kg_v1.0 [10:44:13]action value=print_text [10:44:13]process_action print_text [10:44:13]cmd_print_text [10:44:13]ExternCall_PrintAddStr [10:44:13]wPrintStart [10:44:13]Write to MH i2c: 01 00 00 18 0F 27 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 07 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 07 00 18 0F 00 00 00 00 00 FF 0F 3C [10:44:13]RasterBufferAndPrint [10:44:13]line *****ТОВАРНЫЙ ЧЕК***** [10:44:13]line АЗС 120 [10:44:13]line Партнер нефть [10:44:13]line 02508201610067 [10:44:13]line Кассир : Дуйшенбиев А. [10:44:13]line Счет N : (1)673204 [10:44:13]line 20.06.2024 10:21 [10:44:13]line ПРОДАЖА [10:44:13]line ТРК (МРК, ГНК): 32 [10:44:13]line Вид ГСМ : 2710124130 [10:44:13]line Аи-92-К-5 [10:44:13]line 12.000 x 66.40 [10:44:13]line ИТОГ: 796.80 [10:44:13]line Тип оплаты: Талоны: ТК ГПНА Online [10:44:13]line 30094512 [10:44:13]line ______________________ [10:44:13]line (подпись) [10:44:13]written 0, free lines is 4095 [10:44:13]Write to MH i2c: 01 00 00 2C 0F 3B [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 07 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: 01 07 00 2C 0F 00 00 00 00 00 11 0E 61 [10:44:13]RasterBufferAndPrint [10:44:13]line [10:44:13]line [10:44:13]line [10:44:13]line [10:44:13]line [10:44:13]written 0, free lines is 3602 [10:44:13]MH_Cut [10:44:13]Write to MH i2c: D1 01 00 33 0F 01 14 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: D1 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: D1 01 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: D1 01 00 33 0F 00 13 [10:44:13]Write to MH i2c: 01 00 00 34 0F 43 [10:44:13]Write i2c OK [10:44:13]MH_I2C_Read... [10:44:14]*** Cut start [10:44:14]*** Partial cut [10:44:14]*** CUTSNS_PIN = 1 [10:44:14]*** CUTSNS_PIN = 0 [10:44:14]*** Brake cut motor [10:44:14]Read from MH i2c: 01 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: 01 07 00 [10:44:14]MH_I2C_Read... [10:44:14]*** Stop cut motor [10:44:14]*** Cut end [10:44:14]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 FF 0F 58 [10:44:14]process_action print_text done [10:44:14]requested_data is exist [10:44:14]produce_requested_data [10:44:14]requested_item fm.sn is exist - process it [10:44:14]wFMCommunicate request_size=4 [10:44:14]MH_SAM_APDU [10:44:14]CAPDU: 80 11 00 00 [10:44:14]Write to MH i2c: E2 08 00 35 0F 80 11 00 00 00 00 00 00 BE [10:44:14]Write i2c OK [10:44:14]MH_I2C_Read... [10:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:14]Read from MH i2c: E2 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 17 00 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 17 00 35 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 11 [10:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:44:14]wFMCommunicate OK [10:44:14]requested_item fd.num is exist - process it [10:44:14]SAM_PROTO_GetFieldsCounters [10:44:14]wFMCommunicate request_size=4 [10:44:14]MH_SAM_APDU [10:44:14]CAPDU: 80 13 00 00 [10:44:14]Write to MH i2c: E2 08 00 36 0F 80 13 00 00 00 00 00 00 C1 [10:44:14]Write i2c OK [10:44:14]MH_I2C_Read... [10:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:14]Read from MH i2c: E2 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 62 00 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 62 00 36 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 95 01 00 0E 04 04 00 62 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 50 [10:44:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C1 95 01 00 0E 04 04 00 62 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:44:14]wFMCommunicate OK [10:44:14]SAM_PROTO_GetFieldsCounters done [10:44:14]requested_item shift.num is exist - process it [10:44:14]requested_item shift.opened is exist - process it [10:44:14]req_shift_opened [10:44:14]FM_GetShiftState [10:44:14]SAM_PROTO_GetShiftState [10:44:14]wFMCommunicate request_size=4 [10:44:14]MH_SAM_APDU [10:44:14]CAPDU: 80 13 01 00 [10:44:14]Write to MH i2c: E2 08 00 37 0F 80 13 01 00 00 00 00 00 C3 [10:44:14]Write i2c OK [10:44:14]MH_I2C_Read... [10:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:14]Read from MH i2c: E2 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 0E 00 [10:44:14]MH_I2C_Read... [10:44:14]Read from MH i2c: E2 0E 00 37 0F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 12 [10:44:14]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:44:14]wFMCommunicate OK [10:44:14]SAM_PROTO_GetShiftState done [10:44:14]FM_GetShiftState done [10:44:14]req_shift_opened done [10:44:14]requested_item shift.open_date is exist - process it [10:44:14]req_shift_open_date [10:44:14]req_shift_open_date done [10:44:14]produce_requested_data done [10:44:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103873,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:44:14]process_action_free print_text [10:44:14]json_value_free [10:44:14]json_value_free done [10:44:14]process_json_proto returns [10:44:14]Send response to host [10:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103873,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:44:14]free response buf [10:44:14]execute_script done [10:44:14]execute_script returns [10:44:14]free content buf [10:44:14]Sock 9.Close socket [10:44:14]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [10:44:45]accept exits with 7 [10:44:45]New connection [10:44:45]New thread 3067063652 created [10:44:45]Thread 3067207012 joined [10:44:45]Waiting for new connection... [10:44:45] Sock 7.Parse request [10:44:45]Sock 7.Check first char [10:44:45]Sock 7.First char is OK [10:44:45]request: POST /json_proto HTTP/1.0 [10:44:45]Method: POST [10:44:45]URL: /json_proto [10:44:45]Method is POST - this is cgi request [10:44:45]url: /json_proto [10:44:45]query_string will be loaded in cgi processing [10:44:45]execute_cgi json_proto POST (null) [10:44:45]execute_cgi path=json_proto method=POST [10:44:45]POST find Content-Length [10:44:45]Host: 172.17.38.133:8080 [10:44:45]Content-Length: 678 [10:44:45]Content-Type: application/json [10:44:45] [10:44:45]POST finish read [10:44:45]Found Content-Length = 678 [10:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:45]execute_script... [10:44:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:45]POST & json_proto [10:44:45]process_json_proto [10:44:45]json parsed OK: [10:44:45]protocol is kg_v1.0 [10:44:45]action value=close_receipt [10:44:45]process_action close_receipt [10:44:45]cmd_close_receipt [10:44:45]MH_GetDate [10:44:45]Write to MH i2c: F0 00 00 38 0F 36 [10:44:45]Write i2c OK [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: F0 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: F0 09 00 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: F0 09 00 38 0F 00 1E 08 74 66 BD 8F 7C 64 6B [10:44:45]GetLastDocTimeStamp 1718879845 [10:44:45]current date 1718880286 [10:44:45]FM_GetShiftState [10:44:45]SAM_PROTO_GetShiftState [10:44:45]wFMCommunicate request_size=4 [10:44:45]MH_SAM_APDU [10:44:45]CAPDU: 80 13 01 00 [10:44:45]Write to MH i2c: E2 08 00 39 0F 80 13 01 00 00 00 00 00 C5 [10:44:45]Write i2c OK [10:44:45]MH_I2C_Read... [10:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:45]Read from MH i2c: E2 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 0E 00 [10:44:45]MH_I2C_Read... [10:44:45]Read from MH i2c: E2 0E 00 39 0F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 14 [10:44:45]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:44:45]wFMCommunicate OK [10:44:45]SAM_PROTO_GetShiftState done [10:44:45]FM_GetShiftState done [10:44:45]opened in 1718843124 [10:44:45]opened+sec_in_day 1718929524 [10:44:45]quantity*price = 80012 [10:44:45]sum+1 = 80013 [10:44:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 59 20.06.2024 10:44 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103874 ФПД: 254281025631030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104446&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103874&fm=254281025631030&tin=02508201610067®Number=0000000000092785&sum=80000 [10:44:46]StoreToDocumentArchive [10:44:46]shift 354 fd 103874 [10:44:46]save to /storage/0354/doc_00103874 [10:44:46]save last doc name /storage/0354/doc_00103874 to /storage/kkm_last_doc_name [10:44:46]save OK [10:44:46]Clear old archive folders... [10:44:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:46]tlvbuf is 0084FB10 [10:44:46]SAM_PROTO_ClearQueue [10:44:46]wFMCommunicate request_size=4 [10:44:46]MH_SAM_APDU [10:44:46]CAPDU: 80 09 00 00 [10:44:46]Write to MH i2c: E2 08 00 46 0F 80 09 00 00 00 00 00 00 C7 [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:46]Read from MH i2c: E2 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 03 00 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 03 00 46 0F 00 90 00 C9 [10:44:46]RAPDU: 90 00 [10:44:46]wFMCommunicate OK [10:44:46]SAM_PROTO_ClearQueue done [10:44:46]KKMCreateOFDPacket [10:44:46]OFDProtocolAddRootSTLVToBuf [10:44:46]FM_MakeSignedData [10:44:46]FM_MakeSignedData [10:44:46]SAM_PROTO_SignData [10:44:46]wFMCommunicate request_size=4 [10:44:46]MH_SAM_APDU [10:44:46]CAPDU: 80 0D 01 02 [10:44:46]Write to MH i2c: E2 08 00 47 0F 80 0D 01 02 00 00 00 00 CF [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:46]Read from MH i2c: E2 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 03 00 [10:44:46]MH_I2C_Read... [10:44:46]Read from MH i2c: E2 03 00 47 0F 00 90 00 CA [10:44:46]RAPDU: 90 00 [10:44:46]wFMCommunicate OK [10:44:46]wFMCommunicate request_size=255 [10:44:46]MH_SAM_APDU [10:44:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1E 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 95 01 00 35 04 06 00 E7 [10:44:46]Write to MH i2c: E2 02 01 48 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1E 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 95 01 00 35 04 06 00 E7 00 00 55 [10:44:46]Write i2c OK [10:44:46]MH_I2C_Read... [10:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:47]Read from MH i2c: E2 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 03 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 03 00 48 0F 00 90 00 CB [10:44:47]RAPDU: 90 00 [10:44:47]wFMCommunicate OK [10:44:47]wFMCommunicate request_size=10 [10:44:47]MH_SAM_APDU [10:44:47]CAPDU: 80 0D 02 02 05 44 6A 34 B3 36 [10:44:47]Write to MH i2c: E2 0D 00 49 0F 80 0D 02 02 05 00 44 6A 34 B3 36 00 00 A7 [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:47]Read from MH i2c: E2 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 03 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 03 00 49 0F 00 90 00 CC [10:44:47]RAPDU: 90 00 [10:44:47]wFMCommunicate OK [10:44:47]wFMCommunicate request_size=4 [10:44:47]MH_SAM_APDU [10:44:47]CAPDU: 80 0D 03 02 [10:44:47]Write to MH i2c: E2 08 00 4A 0F 80 0D 03 02 00 00 00 00 D4 [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:47]Read from MH i2c: E2 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 0B 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 0B 00 4A 0F 00 14 9B C5 C4 1C A7 77 70 90 00 B7 [10:44:47]RAPDU: 14 9B C5 C4 1C A7 77 70 90 00 [10:44:47]wFMCommunicate OK [10:44:47]SAM_PROTO_SignData done [10:44:47]FM_MakeSignedData done [10:44:47]CreateOFDProtocolMessage [10:44:47]wFMCommunicate request_size=4 [10:44:47]MH_SAM_APDU [10:44:47]CAPDU: 80 11 00 00 [10:44:47]Write to MH i2c: E2 08 00 4B 0F 80 11 00 00 00 00 00 00 D4 [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:47]Read from MH i2c: E2 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 17 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 17 00 4B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 27 [10:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:44:47]wFMCommunicate OK [10:44:47]CreateOFDProtocolMessage done [10:44:47]OFDSenderStorePacket 103874 [10:44:47]StoreOFDPacket docnum=103874 [10:44:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7F F4 07 01 C2 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1E 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 95 01 00 35 04 06 00 E7 44 6A 34 B3 36 14 9B C5 C4 1C A7 77 70 [10:44:47]CheckFolder [10:44:47]dirname=/storage/ofd_packets [10:44:47]CheckFolder done [10:44:47]ProducePacketName [10:44:47]name=ofd_packets/00103874 [10:44:47]NVStorageSaveData ofd_packets/00103874 [10:44:47]File name is /storage/ofd_packets/00103874 [10:44:47]Write 301 bytes [10:44:47]NVStorageSaveData done [10:44:47]OFDSenderStorePacket done [10:44:47]KKMCreateOFDPacket done [10:44:47]NVStorageSaveData kkm_last_timestamp [10:44:47]File name is /storage/kkm_last_timestamp [10:44:47]Write 4 bytes [10:44:47]NVStorageSaveData done [10:44:47]ExternCall_PrintAddStr [10:44:47]wPrintStart [10:44:47]Write to MH i2c: 01 00 00 4C 0F 5B [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 4C 0F 00 00 00 00 00 FF 0F 70 [10:44:47]RasterBufferAndPrint [10:44:47]line Счет N : (1)673205 [10:44:47]line ИНН: 02508201610067 [10:44:47]line Контрольно-Кассовый Чек [10:44:47]line ПРОДАЖА [10:44:47]line ТРК (МРК, ГНК) : 42 [10:44:47]line Товар: 2710124130 [10:44:47]line Аи-92-К-5 [10:44:47]line 12.050 * 66.40 [10:44:47]line = 800.12 [10:44:47]line НДС 12% НСП 1% [10:44:47]line > о реализуемом товаре [10:44:47]line ОКРУГЛЕНИЕ: -0.12 [10:44:47]line ИТОГО: 800.00 [10:44:47]line Внесено: 800.00 [10:44:47]line СДАЧА: 0.00 [10:44:47]line НСП 1% : 7.08 [10:44:47]line НДС 12% : 84.97 [10:44:47]line Наличными: 800.00 [10:44:47]line Безнал.: 0.00 [10:44:47]line Место: АЗС № 120 "Партнер Нефть" [10:44:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:44:47]line СНО: Общий режим [10:44:47]line Чек 59 20.06.2024 10:44 [10:44:47]line Смена: 354 ФФД: 1.0 [10:44:47]line ЗНМ: 0300000164 [10:44:47]line РНМ: 0000000000092785 [10:44:47]line Версия ККМ: 001 [10:44:47]line ФМ: 0000000000875093 [10:44:47]line ФД: 103874 [10:44:47]line ФПД: 254281025631030 [10:44:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104446&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103874&fm=254281025631030&tin=02508201610067®Number=0000000000092785&sum=80000 [10:44:47]OFD Sender: Processing packet 103874 [packets to send 17, broken 16] [10:44:47]ProducePacketName [10:44:47]name=ofd_packets/00103874 [10:44:47]OFD Sender: To server: pG, [10:44:47]CommunicateWithHost lk.salyk.kg:30040 [10:44:47]ConnectInit lk.salyk.kg [10:44:47]written 0, free lines is 4095 [10:44:47]Connected sock=11 [10:44:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7F F4 07 01 C2 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 1E 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 95 01 00 35 04 06 00 E7 44 6A 34 B3 36 14 9B C5 C4 1C A7 77 70 [10:44:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6E 49 47 00 A0 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C2 95 01 00 F4 03 04 00 A4 AE 73 66 B6 04 01 00 00 D8 C5 79 64 01 29 F6 2D [10:44:47]CommunicateWithHost err = 0 [10:44:47]CheckOFDResponse [10:44:47]1017 (14) - 77093643461234 [10:44:47]1041 (16) - 0000000000875093 [10:44:47]1040 (4) - 103874 [10:44:47]1012 (4) - 20.06.2024 04:23 [10:44:47]1206 (1) - 0 [10:44:47]OFD Sender: Remove packet 103874 [10:44:47]ProducePacketName [10:44:47]name=ofd_packets/00103874 [10:44:47]NVStorageDeleteData [10:44:48]Write to MH i2c: 01 00 00 77 0F 86 [10:44:48]Write i2c OK [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: 01 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: 01 07 00 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: 01 07 00 77 0F 00 00 00 00 00 D8 0C 71 [10:44:48]RasterBufferAndPrint [10:44:48]line [10:44:48]line [10:44:48]line [10:44:48]line [10:44:48]line [10:44:48]written 0, free lines is 3296 [10:44:48]MH_Cut [10:44:48]Write to MH i2c: D1 01 00 7E 0F 01 5F [10:44:48]Write i2c OK [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: D1 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: D1 01 00 [10:44:48]MH_I2C_Read... [10:44:48]Read from MH i2c: D1 01 00 7E 0F 00 5E [10:44:48]Write to MH i2c: 01 00 00 7F 0F 8E [10:44:48]Write i2c OK [10:44:48]MH_I2C_Read... [10:44:48]OFD Sender: No OFD packet to send [10:44:48]*** Cut start [10:44:48]*** Partial cut [10:44:48]*** CUTSNS_PIN = 1 [10:44:48]*** CUTSNS_PIN = 0 [10:44:49]*** Brake cut motor [10:44:49]Read from MH i2c: 01 [10:44:49]MH_I2C_Read... [10:44:49]*** Stop cut motor [10:44:49]*** Cut end [10:44:49]Read from MH i2c: 01 07 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: 01 07 00 7F 0F 00 00 00 00 00 FF 0F A3 [10:44:49]process_action close_receipt done [10:44:49]requested_data is exist [10:44:49]produce_requested_data [10:44:49]requested_item fm.sn is exist - process it [10:44:49]wFMCommunicate request_size=4 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 11 00 00 [10:44:49]Write to MH i2c: E2 08 00 80 0F 80 11 00 00 00 00 00 00 09 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 17 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 17 00 80 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5C [10:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:44:49]wFMCommunicate OK [10:44:49]requested_item fd.num is exist - process it [10:44:49]SAM_PROTO_GetFieldsCounters [10:44:49]wFMCommunicate request_size=4 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 13 00 00 [10:44:49]Write to MH i2c: E2 08 00 81 0F 80 13 00 00 00 00 00 00 0C [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 62 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 62 00 81 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C2 95 01 00 0E 04 04 00 62 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 9F [10:44:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C2 95 01 00 0E 04 04 00 62 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:44:49]wFMCommunicate OK [10:44:49]SAM_PROTO_GetFieldsCounters done [10:44:49]requested_item shift.num is exist - process it [10:44:49]requested_item shift.opened is exist - process it [10:44:49]req_shift_opened [10:44:49]FM_GetShiftState [10:44:49]SAM_PROTO_GetShiftState [10:44:49]wFMCommunicate request_size=4 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 13 01 00 [10:44:49]Write to MH i2c: E2 08 00 82 0F 80 13 01 00 00 00 00 00 0E [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 0E 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 0E 00 82 0F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5D [10:44:49]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:44:49]wFMCommunicate OK [10:44:49]SAM_PROTO_GetShiftState done [10:44:49]FM_GetShiftState done [10:44:49]req_shift_opened done [10:44:49]requested_item shift.open_date is exist - process it [10:44:49]req_shift_open_date [10:44:49]req_shift_open_date done [10:44:49]produce_requested_data done [10:44:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103874,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:44:49]process_action_free close_receipt [10:44:49]json_value_free [10:44:49]json_value_free done [10:44:49]process_json_proto returns [10:44:49]Send response to host [10:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103874,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:44:49]free response buf [10:44:49]execute_script done [10:44:49]execute_script returns [10:44:49]free content buf [10:44:49]Sock 7.Close socket [10:44:49]Sock 7.Thread stoped [10:44:53]OFD Sender: No OFD packet to send [10:44:54]accept exits with 9 [10:44:54]New connection [10:44:54]New thread 3067207012 created [10:44:54]Thread 3067063652 joined [10:44:54]Waiting for new connection... [10:44:54] Sock 9.Parse request [10:44:54]Sock 9.Check first char [10:44:54]Sock 9.First char is OK [10:44:54]request: POST /json_proto HTTP/1.0 [10:44:54]Method: POST [10:44:54]URL: /json_proto [10:44:54]Method is POST - this is cgi request [10:44:54]url: /json_proto [10:44:54]query_string will be loaded in cgi processing [10:44:54]execute_cgi json_proto POST (null) [10:44:54]execute_cgi path=json_proto method=POST [10:44:54]POST find Content-Length [10:44:54]Host: 172.17.38.133:8080 [10:44:54]Content-Length: 687 [10:44:54]Content-Type: application/json [10:44:54] [10:44:54]POST finish read [10:44:54]Found Content-Length = 687 [10:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:44:54]execute_script... [10:44: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)673206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:44:54]POST & json_proto [10:44:54]process_json_proto [10:44:54]json parsed OK: [10:44:54]protocol is kg_v1.0 [10:44:54]action value=close_receipt [10:44:54]process_action close_receipt [10:44:54]cmd_close_receipt [10:44:54]MH_GetDate [10:44:54]Write to MH i2c: F0 00 00 83 0F 81 [10:44:54]Write i2c OK [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: F0 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: F0 09 00 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: F0 09 00 83 0F 00 28 08 74 66 BD 8F 7C 64 C0 [10:44:54]GetLastDocTimeStamp 1718880286 [10:44:54]current date 1718880296 [10:44:54]FM_GetShiftState [10:44:54]SAM_PROTO_GetShiftState [10:44:54]wFMCommunicate request_size=4 [10:44:54]MH_SAM_APDU [10:44:54]CAPDU: 80 13 01 00 [10:44:54]Write to MH i2c: E2 08 00 84 0F 80 13 01 00 00 00 00 00 10 [10:44:54]Write i2c OK [10:44:54]MH_I2C_Read... [10:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:54]Read from MH i2c: E2 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 0E 00 [10:44:54]MH_I2C_Read... [10:44:54]Read from MH i2c: E2 0E 00 84 0F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5F [10:44:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:44:54]wFMCommunicate OK [10:44:54]SAM_PROTO_GetShiftState done [10:44:54]FM_GetShiftState done [10:44:54]opened in 1718843124 [10:44:54]opened+sec_in_day 1718929524 [10:44:54]quantity*price = 100018 [10:44:54]sum+1 = 100020 [10:44:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 60 20.06.2024 10:44 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103875 ФПД: 115245055879108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104456&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103875&fm=115245055879108&tin=02508201610067®Number=0000000000092785&sum=100000 [10:44:55]StoreToDocumentArchive [10:44:55]shift 354 fd 103875 [10:44:55]save to /storage/0354/doc_00103875 [10:44:55]save last doc name /storage/0354/doc_00103875 to /storage/kkm_last_doc_name [10:44:55]save OK [10:44:55]Clear old archive folders... [10:44:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:44:55]tlvbuf is 0085BA70 [10:44:55]SAM_PROTO_ClearQueue [10:44:55]wFMCommunicate request_size=4 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 09 00 00 [10:44:55]Write to MH i2c: E2 08 00 91 0F 80 09 00 00 00 00 00 00 12 [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:55]Read from MH i2c: E2 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 [10:44:55]MH_I2C_Read... [10:44:55]Read from MH i2c: E2 03 00 91 0F 00 90 00 14 [10:44:55]RAPDU: 90 00 [10:44:55]wFMCommunicate OK [10:44:55]SAM_PROTO_ClearQueue done [10:44:55]KKMCreateOFDPacket [10:44:55]OFDProtocolAddRootSTLVToBuf [10:44:55]FM_MakeSignedData [10:44:55]FM_MakeSignedData [10:44:55]SAM_PROTO_SignData [10:44:55]wFMCommunicate request_size=4 [10:44:55]MH_SAM_APDU [10:44:55]CAPDU: 80 0D 01 02 [10:44:55]Write to MH i2c: E2 08 00 92 0F 80 0D 01 02 00 00 00 00 1A [10:44:55]Write i2c OK [10:44:55]MH_I2C_Read... [10:44:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:56]Read from MH i2c: E2 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: E2 03 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: E2 03 00 92 0F 00 90 00 15 [10:44:56]RAPDU: 90 00 [10:44:56]wFMCommunicate OK [10:44:56]wFMCommunicate request_size=255 [10:44:56]MH_SAM_APDU [10:44:56]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 28 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 95 01 00 35 04 06 00 [10:44:56]Write to MH i2c: E2 02 01 93 0F 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 28 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 95 01 00 35 04 06 00 00 00 70 [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:56]Read from MH i2c: E2 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: E2 03 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: E2 03 00 93 0F 00 90 00 16 [10:44:56]RAPDU: 90 00 [10:44:56]wFMCommunicate OK [10:44:56]wFMCommunicate request_size=11 [10:44:56]MH_SAM_APDU [10:44:56]CAPDU: 80 0D 02 02 06 68 D0 94 9E 27 C4 [10:44:56]Write to MH i2c: E2 0E 00 94 0F 80 0D 02 02 06 00 68 D0 94 9E 27 C4 00 00 7E [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:56]Read from MH i2c: E2 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: E2 03 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: E2 03 00 94 0F 00 90 00 17 [10:44:56]RAPDU: 90 00 [10:44:56]wFMCommunicate OK [10:44:56]wFMCommunicate request_size=4 [10:44:56]MH_SAM_APDU [10:44:56]CAPDU: 80 0D 03 02 [10:44:56]Write to MH i2c: E2 08 00 95 0F 80 0D 03 02 00 00 00 00 1F [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:56]Read from MH i2c: E2 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: E2 0B 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: E2 0B 00 95 0F 00 AB E8 CA 7C 23 31 7F A5 90 00 71 [10:44:56]RAPDU: AB E8 CA 7C 23 31 7F A5 90 00 [10:44:56]wFMCommunicate OK [10:44:56]SAM_PROTO_SignData done [10:44:56]FM_MakeSignedData done [10:44:56]CreateOFDProtocolMessage [10:44:56]wFMCommunicate request_size=4 [10:44:56]MH_SAM_APDU [10:44:56]CAPDU: 80 11 00 00 [10:44:56]Write to MH i2c: E2 08 00 96 0F 80 11 00 00 00 00 00 00 1F [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:56]Read from MH i2c: E2 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: E2 17 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: E2 17 00 96 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 72 [10:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:44:56]wFMCommunicate OK [10:44:56]CreateOFDProtocolMessage done [10:44:56]OFDSenderStorePacket 103875 [10:44:56]StoreOFDPacket docnum=103875 [10:44:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 92 56 08 01 3C F3 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 28 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 95 01 00 35 04 06 00 68 D0 94 9E 27 C4 AB E8 CA 7C 23 31 7F A5 [10:44:56]CheckFolder [10:44:56]dirname=/storage/ofd_packets [10:44:56]CheckFolder done [10:44:56]ProducePacketName [10:44:56]name=ofd_packets/00103875 [10:44:56]NVStorageSaveData ofd_packets/00103875 [10:44:56]File name is /storage/ofd_packets/00103875 [10:44:56]Write 302 bytes [10:44:56]NVStorageSaveData done [10:44:56]OFDSenderStorePacket done [10:44:56]KKMCreateOFDPacket done [10:44:56]NVStorageSaveData kkm_last_timestamp [10:44:56]File name is /storage/kkm_last_timestamp [10:44:56]Write 4 bytes [10:44:56]NVStorageSaveData done [10:44:56]ExternCall_PrintAddStr [10:44:56]wPrintStart [10:44:56]Write to MH i2c: 01 00 00 97 0F A6 [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 07 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 07 00 97 0F 00 00 00 00 00 FF 0F BB [10:44:56]RasterBufferAndPrint [10:44:56]line Счет N : (1)673206 [10:44:56]line ИНН: 02508201610067 [10:44:56]line Контрольно-Кассовый Чек [10:44:56]line ПРОДАЖА [10:44:56]line ТРК (МРК, ГНК) : 11 [10:44:56]line Товар: 2710194210 [10:44:56]line ДТ(л)-К-5 [10:44:56]line 13.720 * 72.90 [10:44:56]line = 1000.19 [10:44:56]line НДС 12% НСП 1% [10:44:56]line > о реализуемом товаре [10:44:56]line ОКРУГЛЕНИЕ: -0.19 [10:44:56]line ИТОГО: 1000.00 [10:44:56]line Внесено: 1000.00 [10:44:56]line СДАЧА: 0.00 [10:44:56]line НСП 1% : 8.85 [10:44:56]line НДС 12% : 106.21 [10:44:56]line Наличными: 1000.00 [10:44:56]line Безнал.: 0.00 [10:44:56]line Место: АЗС № 120 "Партнер Нефть" [10:44:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:44:56]line СНО: Общий режим [10:44:56]line Чек 60 20.06.2024 10:44 [10:44:56]line Смена: 354 ФФД: 1.0 [10:44:56]line ЗНМ: 0300000164 [10:44:56]line РНМ: 0000000000092785 [10:44:56]line Версия ККМ: 001 [10:44:56]line ФМ: 0000000000875093 [10:44:56]line ФД: 103875 [10:44:56]line ФПД: 115245055879108 [10:44:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104456&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103875&fm=115245055879108&tin=02508201610067®Number=0000000000092785&sum=100000 [10:44:56]written 0, free lines is 4095 [10:44:56]OFD Sender: Processing packet 103875 [packets to send 17, broken 16] [10:44:56]ProducePacketName [10:44:56]name=ofd_packets/00103875 [10:44:56]OFD Sender: To server: pG, [10:44:56]CommunicateWithHost lk.salyk.kg:30040 [10:44:56]ConnectInit lk.salyk.kg [10:44:56]Connected sock=10 [10:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 92 56 08 01 3C F3 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3C 00 00 00 F4 03 04 00 28 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 95 01 00 35 04 06 00 68 D0 94 9E 27 C4 AB E8 CA 7C 23 31 7F A5 [10:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8A EF 47 00 18 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C3 95 01 00 F4 03 04 00 AD AE 73 66 B6 04 01 00 00 1D 85 33 1C 30 85 DA AA [10:44:56]CommunicateWithHost err = 0 [10:44:56]CheckOFDResponse [10:44:56]1017 (14) - 77093643461234 [10:44:56]1041 (16) - 0000000000875093 [10:44:56]1040 (4) - 103875 [10:44:56]1012 (4) - 20.06.2024 04:23 [10:44:56]1206 (1) - 0 [10:44:56]OFD Sender: Remove packet 103875 [10:44:56]ProducePacketName [10:44:56]name=ofd_packets/00103875 [10:44:56]NVStorageDeleteData [10:44:56]Write to MH i2c: 01 00 00 C2 0F D1 [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 07 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: 01 07 00 C2 0F 00 00 00 00 00 DA 0C BE [10:44:56]RasterBufferAndPrint [10:44:56]line [10:44:56]line [10:44:56]line [10:44:56]line [10:44:56]line [10:44:56]written 0, free lines is 3300 [10:44:56]MH_Cut [10:44:56]Write to MH i2c: D1 01 00 C9 0F 01 AA [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: D1 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: D1 01 00 [10:44:56]MH_I2C_Read... [10:44:56]Read from MH i2c: D1 01 00 C9 0F 00 A9 [10:44:56]Write to MH i2c: 01 00 00 CA 0F D9 [10:44:56]Write i2c OK [10:44:56]MH_I2C_Read... [10:44:57]OFD Sender: No OFD packet to send [10:44:57]*** Cut start [10:44:57]*** Partial cut [10:44:57]*** CUTSNS_PIN = 1 [10:44:57]*** CUTSNS_PIN = 0 [10:44:57]*** Brake cut motor [10:44:58]Read from MH i2c: 01 [10:44:58]MH_I2C_Read... [10:44:58]*** Stop cut motor [10:44:58]*** Cut end [10:44:58]Read from MH i2c: 01 07 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: 01 07 00 CA 0F 00 00 00 00 00 FF 0F EE [10:44:58]process_action close_receipt done [10:44:58]requested_data is exist [10:44:58]produce_requested_data [10:44:58]requested_item fm.sn is exist - process it [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 11 00 00 [10:44:58]Write to MH i2c: E2 08 00 CB 0F 80 11 00 00 00 00 00 00 54 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 17 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 17 00 CB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A7 [10:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:44:58]wFMCommunicate OK [10:44:58]requested_item fd.num is exist - process it [10:44:58]SAM_PROTO_GetFieldsCounters [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 13 00 00 [10:44:58]Write to MH i2c: E2 08 00 CC 0F 80 13 00 00 00 00 00 00 57 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 62 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 62 00 CC 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C3 95 01 00 0E 04 04 00 62 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 EE [10:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C3 95 01 00 0E 04 04 00 62 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:44:58]wFMCommunicate OK [10:44:58]SAM_PROTO_GetFieldsCounters done [10:44:58]requested_item shift.num is exist - process it [10:44:58]requested_item shift.opened is exist - process it [10:44:58]req_shift_opened [10:44:58]FM_GetShiftState [10:44:58]SAM_PROTO_GetShiftState [10:44:58]wFMCommunicate request_size=4 [10:44:58]MH_SAM_APDU [10:44:58]CAPDU: 80 13 01 00 [10:44:58]Write to MH i2c: E2 08 00 CD 0F 80 13 01 00 00 00 00 00 59 [10:44:58]Write i2c OK [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 [10:44:58]MH_I2C_Read... [10:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:58]Read from MH i2c: E2 0E 00 [10:44:58]MH_I2C_Read... [10:44:58]Read from MH i2c: E2 0E 00 CD 0F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A8 [10:44:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:44:58]wFMCommunicate OK [10:44:58]SAM_PROTO_GetShiftState done [10:44:58]FM_GetShiftState done [10:44:58]req_shift_opened done [10:44:58]requested_item shift.open_date is exist - process it [10:44:58]req_shift_open_date [10:44:58]req_shift_open_date done [10:44:58]produce_requested_data done [10:44:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103875,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:44:58]process_action_free close_receipt [10:44:58]json_value_free [10:44:58]json_value_free done [10:44:58]process_json_proto returns [10:44:58]Send response to host [10:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103875,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:44:58]free response buf [10:44:58]execute_script done [10:44:58]execute_script returns [10:44:58]free content buf [10:44:58]Sock 9.Close socket [10:44:58]Sock 9.Thread stoped [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:54]accept exits with 7 [10:45:54]New connection [10:45:55]New thread 3067063652 created [10:45:55]Thread 3067207012 joined [10:45:55]Waiting for new connection... [10:45:55] Sock 7.Parse request [10:45:55]Sock 7.Check first char [10:45:55]Sock 7.First char is OK [10:45:55]request: POST /json_proto HTTP/1.0 [10:45:55]Method: POST [10:45:55]URL: /json_proto [10:45:55]Method is POST - this is cgi request [10:45:55]url: /json_proto [10:45:55]query_string will be loaded in cgi processing [10:45:55]execute_cgi json_proto POST (null) [10:45:55]execute_cgi path=json_proto method=POST [10:45:55]POST find Content-Length [10:45:55]Host: 172.17.38.133:8080 [10:45:55]Content-Length: 677 [10:45:55]Content-Type: application/json [10:45:55] [10:45:55]POST finish read [10:45:55]Found Content-Length = 677 [10:45:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "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" ] } } [10:45:55]execute_script... [10:45: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)673207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "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" ] } } [10:45:55]POST & json_proto [10:45:55]process_json_proto [10:45:55]json parsed OK: [10:45:55]protocol is kg_v1.0 [10:45:55]action value=close_receipt [10:45:55]process_action close_receipt [10:45:55]cmd_close_receipt [10:45:55]MH_GetDate [10:45:55]Write to MH i2c: F0 00 00 CE 0F CC [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 09 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 09 00 CE 0F 00 64 08 74 66 BD 8F 7C 64 47 [10:45:55]GetLastDocTimeStamp 1718880296 [10:45:55]current date 1718880356 [10:45:55]FM_GetShiftState [10:45:55]SAM_PROTO_GetShiftState [10:45:55]wFMCommunicate request_size=4 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 13 01 00 [10:45:55]Write to MH i2c: E2 08 00 CF 0F 80 13 01 00 00 00 00 00 5B [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0E 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0E 00 CF 0F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AA [10:45:55]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:45:55]wFMCommunicate OK [10:45:55]SAM_PROTO_GetShiftState done [10:45:55]FM_GetShiftState done [10:45:55]opened in 1718843124 [10:45:55]opened+sec_in_day 1718929524 [10:45:55]quantity*price = 65005 [10:45:55]sum+1 = 65007 [10:45:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 61 20.06.2024 10:45 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103876 ФПД: 49959566787345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104556&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103876&fm=49959566787345&tin=02508201610067®Number=0000000000092785&sum=65000 [10:45:56]StoreToDocumentArchive [10:45:56]shift 354 fd 103876 [10:45:56]save to /storage/0354/doc_00103876 [10:45:56]save last doc name /storage/0354/doc_00103876 to /storage/kkm_last_doc_name [10:45:56]save OK [10:45:56]Clear old archive folders... [10:45:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:56]tlvbuf is 0081F170 [10:45:56]SAM_PROTO_ClearQueue [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 09 00 00 [10:45:56]Write to MH i2c: E2 08 00 DC 0F 80 09 00 00 00 00 00 00 5D [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 DC 0F 00 90 00 5F [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]SAM_PROTO_ClearQueue done [10:45:56]KKMCreateOFDPacket [10:45:56]OFDProtocolAddRootSTLVToBuf [10:45:56]FM_MakeSignedData [10:45:56]FM_MakeSignedData [10:45:56]SAM_PROTO_SignData [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 0D 01 02 [10:45:56]Write to MH i2c: E2 08 00 DD 0F 80 0D 01 02 00 00 00 00 65 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 DD 0F 00 90 00 60 [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]wFMCommunicate request_size=255 [10:45:56]MH_SAM_APDU [10:45: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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 3D 00 00 00 F4 03 04 00 64 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 95 01 00 35 04 06 00 2D [10:45:56]Write to MH i2c: E2 02 01 DE 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 3D 00 00 00 F4 03 04 00 64 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 95 01 00 35 04 06 00 2D 00 00 56 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]wFMCommunicate request_size=10 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 0D 02 02 05 70 1E 3B 43 11 [10:45:56]Write to MH i2c: E2 0D 00 DF 0F 80 0D 02 02 05 00 70 1E 3B 43 11 00 00 8F [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 0D 03 02 [10:45:56]Write to MH i2c: E2 08 00 E0 0F 80 0D 03 02 00 00 00 00 6A [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 0B 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 0B 00 E0 0F 00 E9 7C 07 FF 9D 3B 1E 4F 90 00 1B [10:45:56]RAPDU: E9 7C 07 FF 9D 3B 1E 4F 90 00 [10:45:56]wFMCommunicate OK [10:45:56]SAM_PROTO_SignData done [10:45:56]FM_MakeSignedData done [10:45:56]CreateOFDProtocolMessage [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 11 00 00 [10:45:56]Write to MH i2c: E2 08 00 E1 0F 80 11 00 00 00 00 00 00 6A [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 17 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 17 00 E1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BD [10:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:45:56]wFMCommunicate OK [10:45:56]CreateOFDProtocolMessage done [10:45:56]OFDSenderStorePacket 103876 [10:45:56]StoreOFDPacket docnum=103876 [10:45:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5A 60 07 01 18 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 3D 00 00 00 F4 03 04 00 64 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 95 01 00 35 04 06 00 2D 70 1E 3B 43 11 E9 7C 07 FF 9D 3B 1E 4F [10:45:56]CheckFolder [10:45:56]dirname=/storage/ofd_packets [10:45:56]CheckFolder done [10:45:56]ProducePacketName [10:45:56]name=ofd_packets/00103876 [10:45:56]NVStorageSaveData ofd_packets/00103876 [10:45:56]File name is /storage/ofd_packets/00103876 [10:45:56]Write 301 bytes [10:45:56]NVStorageSaveData done [10:45:56]OFDSenderStorePacket done [10:45:56]KKMCreateOFDPacket done [10:45:56]NVStorageSaveData kkm_last_timestamp [10:45:56]File name is /storage/kkm_last_timestamp [10:45:56]Write 4 bytes [10:45:56]NVStorageSaveData done [10:45:56]ExternCall_PrintAddStr [10:45:56]wPrintStart [10:45:56]Write to MH i2c: 01 00 00 E2 0F F1 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 E2 0F 00 00 00 00 00 FF 0F 06 [10:45:56]RasterBufferAndPrint [10:45:56]line Счет N : (1)673207 [10:45:56]line ИНН: 02508201610067 [10:45:56]line Контрольно-Кассовый Чек [10:45:56]line ПРОДАЖА [10:45:56]line ТРК (МРК, ГНК) : 32 [10:45:56]line Товар: 2710124130 [10:45:56]line Аи-92-К-5 [10:45:56]line 9.790 * 66.40 [10:45:56]line = 650.06 [10:45:56]line НДС 12% НСП 1% [10:45:56]line > о реализуемом товаре [10:45:56]line ОКРУГЛЕНИЕ: -0.06 [10:45:56]line ИТОГО: 650.00 [10:45:56]line Внесено: 650.00 [10:45:56]line СДАЧА: 0.00 [10:45:56]line НСП 1% : 5.75 [10:45:56]line НДС 12% : 69.03 [10:45:56]line Наличными: 650.00 [10:45:56]line Безнал.: 0.00 [10:45:56]line Место: АЗС № 120 "Партнер Нефть" [10:45:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:45:56]line СНО: Общий режим [10:45:56]line Чек 61 20.06.2024 10:45 [10:45:56]line Смена: 354 ФФД: 1.0 [10:45:56]line ЗНМ: 0300000164 [10:45:56]line РНМ: 0000000000092785 [10:45:56]line Версия ККМ: 001 [10:45:56]line ФМ: 0000000000875093 [10:45:56]line ФД: 103876 [10:45:56]line ФПД: 49959566787345 [10:45:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104556&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103876&fm=49959566787345&tin=02508201610067®Number=0000000000092785&sum=65000 [10:45:57]written 0, free lines is 4095 [10:45:57]OFD Sender: Processing packet 103876 [packets to send 17, broken 16] [10:45:57]ProducePacketName [10:45:57]name=ofd_packets/00103876 [10:45:57]OFD Sender: To server: pG, [10:45:57]CommunicateWithHost lk.salyk.kg:30040 [10:45:57]ConnectInit lk.salyk.kg [10:45:57]Connected sock=11 [10:45:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5A 60 07 01 18 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 3D 00 00 00 F4 03 04 00 64 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 95 01 00 35 04 06 00 2D 70 1E 3B 43 11 E9 7C 07 FF 9D 3B 1E 4F [10:45:57]Write to MH i2c: 01 00 00 0D 10 1D [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 07 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 07 00 0D 10 00 00 00 00 00 D6 0C 06 [10:45:57]RasterBufferAndPrint [10:45:57]line [10:45:57]line [10:45:57]line [10:45:57]line [10:45:57]line [10:45:57]written 0, free lines is 3289 [10:45:57]MH_Cut [10:45:57]Write to MH i2c: D1 01 00 14 10 01 F6 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: D1 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: D1 01 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: D1 01 00 14 10 00 F5 [10:45:57]Write to MH i2c: 01 00 00 15 10 25 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1E AC 47 00 2D D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C4 95 01 00 F4 03 04 00 EA AE 73 66 B6 04 01 00 00 CD 7A 03 0A 35 5B C2 3C [10:45:57]CommunicateWithHost err = 0 [10:45:57]CheckOFDResponse [10:45:57]1017 (14) - 77093643461234 [10:45:57]1041 (16) - 0000000000875093 [10:45:57]1040 (4) - 103876 [10:45:57]1012 (4) - 20.06.2024 04:24 [10:45:57]1206 (1) - 0 [10:45:57]OFD Sender: Remove packet 103876 [10:45:57]ProducePacketName [10:45:57]name=ofd_packets/00103876 [10:45:57]NVStorageDeleteData [10:45:58]OFD Sender: No OFD packet to send [10:45:58]*** Cut start [10:45:58]*** Partial cut [10:45:58]*** CUTSNS_PIN = 1 [10:45:58]*** CUTSNS_PIN = 0 [10:45:58]*** Brake cut motor [10:45:58]Read from MH i2c: 01 [10:45:58]MH_I2C_Read... [10:45:58]*** Stop cut motor [10:45:58]*** Cut end [10:45:58]Read from MH i2c: 01 07 00 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: 01 07 00 15 10 00 00 00 00 00 FF 0F 3A [10:45:58]process_action close_receipt done [10:45:58]requested_data is exist [10:45:58]produce_requested_data [10:45:58]requested_item fm.sn is exist - process it [10:45:58]wFMCommunicate request_size=4 [10:45:58]MH_SAM_APDU [10:45:58]CAPDU: 80 11 00 00 [10:45:58]Write to MH i2c: E2 08 00 16 10 80 11 00 00 00 00 00 00 A0 [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:58]Read from MH i2c: E2 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: E2 17 00 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: E2 17 00 16 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F3 [10:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:45:58]wFMCommunicate OK [10:45:58]requested_item fd.num is exist - process it [10:45:58]SAM_PROTO_GetFieldsCounters [10:45:58]wFMCommunicate request_size=4 [10:45:58]MH_SAM_APDU [10:45:58]CAPDU: 80 13 00 00 [10:45:58]Write to MH i2c: E2 08 00 17 10 80 13 00 00 00 00 00 00 A3 [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 62 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 62 00 17 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C4 95 01 00 0E 04 04 00 62 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 3E [10:45:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C4 95 01 00 0E 04 04 00 62 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:45:59]wFMCommunicate OK [10:45:59]SAM_PROTO_GetFieldsCounters done [10:45:59]requested_item shift.num is exist - process it [10:45:59]requested_item shift.opened is exist - process it [10:45:59]req_shift_opened [10:45:59]FM_GetShiftState [10:45:59]SAM_PROTO_GetShiftState [10:45:59]wFMCommunicate request_size=4 [10:45:59]MH_SAM_APDU [10:45:59]CAPDU: 80 13 01 00 [10:45:59]Write to MH i2c: E2 08 00 18 10 80 13 01 00 00 00 00 00 A5 [10:45:59]Write i2c OK [10:45:59]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 0E 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 0E 00 18 10 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F4 [10:45:59]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:45:59]wFMCommunicate OK [10:45:59]SAM_PROTO_GetShiftState done [10:45:59]FM_GetShiftState done [10:45:59]req_shift_opened done [10:45:59]requested_item shift.open_date is exist - process it [10:45:59]req_shift_open_date [10:45:59]req_shift_open_date done [10:45:59]produce_requested_data done [10:45:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103876,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:45:59]process_action_free close_receipt [10:45:59]json_value_free [10:45:59]json_value_free done [10:45:59]process_json_proto returns [10:45:59]Send response to host [10:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103876,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:45:59]free response buf [10:45:59]execute_script done [10:45:59]execute_script returns [10:45:59]free content buf [10:45:59]Sock 7.Close socket [10:45:59]Sock 7.Thread stoped [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:32]accept exits with 9 [10:46:32]New connection [10:46:32]New thread 3067207012 created [10:46:32]Thread 3067063652 joined [10:46:32]Waiting for new connection... [10:46:32] Sock 9.Parse request [10:46:32]Sock 9.Check first char [10:46:32]Sock 9.First char is OK [10:46:32]request: POST /json_proto HTTP/1.0 [10:46:32]Method: POST [10:46:32]URL: /json_proto [10:46:32]Method is POST - this is cgi request [10:46:32]url: /json_proto [10:46:32]query_string will be loaded in cgi processing [10:46:32]execute_cgi json_proto POST (null) [10:46:32]execute_cgi path=json_proto method=POST [10:46:32]POST find Content-Length [10:46:32]Host: 172.17.38.133:8080 [10:46:32]Content-Length: 677 [10:46:32]Content-Type: application/json [10:46:32] [10:46:32]POST finish read [10:46:32]Found Content-Length = 677 [10:46:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673208", "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" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:32]execute_script... [10:46: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)673208", "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" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:32]POST & json_proto [10:46:32]process_json_proto [10:46:32]json parsed OK: [10:46:32]protocol is kg_v1.0 [10:46:32]action value=close_receipt [10:46:32]process_action close_receipt [10:46:32]cmd_close_receipt [10:46:32]MH_GetDate [10:46:32]Write to MH i2c: F0 00 00 19 10 18 [10:46:32]Write i2c OK [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: F0 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: F0 09 00 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: F0 09 00 19 10 00 89 08 74 66 BD 8F 7C 64 B8 [10:46:32]GetLastDocTimeStamp 1718880356 [10:46:32]current date 1718880393 [10:46:32]FM_GetShiftState [10:46:32]SAM_PROTO_GetShiftState [10:46:32]wFMCommunicate request_size=4 [10:46:32]MH_SAM_APDU [10:46:32]CAPDU: 80 13 01 00 [10:46:32]Write to MH i2c: E2 08 00 1A 10 80 13 01 00 00 00 00 00 A7 [10:46:32]Write i2c OK [10:46:32]MH_I2C_Read... [10:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:32]Read from MH i2c: E2 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: E2 0E 00 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: E2 0E 00 1A 10 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F6 [10:46:32]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:46:32]wFMCommunicate OK [10:46:32]SAM_PROTO_GetShiftState done [10:46:32]FM_GetShiftState done [10:46:32]opened in 1718843124 [10:46:32]opened+sec_in_day 1718929524 [10:46:32]quantity*price = 40053 [10:46:32]sum+1 = 40055 [10:46:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 62 20.06.2024 10:46 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103877 ФПД: 234777216588675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104633&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103877&fm=234777216588675&tin=02508201610067®Number=0000000000092785&sum=40000 [10:46:33]StoreToDocumentArchive [10:46:33]shift 354 fd 103877 [10:46:33]save to /storage/0354/doc_00103877 [10:46:33]save last doc name /storage/0354/doc_00103877 to /storage/kkm_last_doc_name [10:46:33]save OK [10:46:33]Clear old archive folders... [10:46:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:33]tlvbuf is 00872260 [10:46:33]SAM_PROTO_ClearQueue [10:46:33]wFMCommunicate request_size=4 [10:46:33]MH_SAM_APDU [10:46:33]CAPDU: 80 09 00 00 [10:46:33]Write to MH i2c: E2 08 00 27 10 80 09 00 00 00 00 00 00 A9 [10:46:33]Write i2c OK [10:46:33]MH_I2C_Read... [10:46:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:33]Read from MH i2c: E2 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 03 00 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 03 00 27 10 00 90 00 AB [10:46:33]RAPDU: 90 00 [10:46:33]wFMCommunicate OK [10:46:33]SAM_PROTO_ClearQueue done [10:46:33]KKMCreateOFDPacket [10:46:33]OFDProtocolAddRootSTLVToBuf [10:46:33]FM_MakeSignedData [10:46:33]FM_MakeSignedData [10:46:33]SAM_PROTO_SignData [10:46:33]wFMCommunicate request_size=4 [10:46:33]MH_SAM_APDU [10:46:33]CAPDU: 80 0D 01 02 [10:46:33]Write to MH i2c: E2 08 00 28 10 80 0D 01 02 00 00 00 00 B1 [10:46:33]Write i2c OK [10:46:33]MH_I2C_Read... [10:46:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:33]Read from MH i2c: E2 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 03 00 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [10:46:33]RAPDU: 90 00 [10:46:33]wFMCommunicate OK [10:46:33]wFMCommunicate request_size=255 [10:46:33]MH_SAM_APDU [10:46: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 89 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 95 01 00 35 04 06 00 D5 [10:46:33]Write to MH i2c: E2 02 01 29 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 89 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 95 01 00 35 04 06 00 D5 00 00 16 [10:46:33]Write i2c OK [10:46:33]MH_I2C_Read... [10:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:33]Read from MH i2c: E2 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 03 00 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 03 00 29 10 00 90 00 AD [10:46:33]RAPDU: 90 00 [10:46:33]wFMCommunicate OK [10:46:33]wFMCommunicate request_size=10 [10:46:33]MH_SAM_APDU [10:46:33]CAPDU: 80 0D 02 02 05 87 54 98 9B 83 [10:46:33]Write to MH i2c: E2 0D 00 2A 10 80 0D 02 02 05 00 87 54 98 9B 83 00 00 4F [10:46:33]Write i2c OK [10:46:33]MH_I2C_Read... [10:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:33]Read from MH i2c: E2 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 03 00 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [10:46:33]RAPDU: 90 00 [10:46:33]wFMCommunicate OK [10:46:33]wFMCommunicate request_size=4 [10:46:33]MH_SAM_APDU [10:46:33]CAPDU: 80 0D 03 02 [10:46:33]Write to MH i2c: E2 08 00 2B 10 80 0D 03 02 00 00 00 00 B6 [10:46:33]Write i2c OK [10:46:33]MH_I2C_Read... [10:46:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:33]Read from MH i2c: E2 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 0B 00 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 0B 00 2B 10 00 8A 95 83 27 D8 1D 5E 21 90 00 F4 [10:46:33]RAPDU: 8A 95 83 27 D8 1D 5E 21 90 00 [10:46:33]wFMCommunicate OK [10:46:33]SAM_PROTO_SignData done [10:46:33]FM_MakeSignedData done [10:46:33]CreateOFDProtocolMessage [10:46:33]wFMCommunicate request_size=4 [10:46:33]MH_SAM_APDU [10:46:33]CAPDU: 80 11 00 00 [10:46:33]Write to MH i2c: E2 08 00 2C 10 80 11 00 00 00 00 00 00 B6 [10:46:33]Write i2c OK [10:46:33]MH_I2C_Read... [10:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:33]Read from MH i2c: E2 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 17 00 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: E2 17 00 2C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 09 [10:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:46:33]wFMCommunicate OK [10:46:33]CreateOFDProtocolMessage done [10:46:33]OFDSenderStorePacket 103877 [10:46:33]StoreOFDPacket docnum=103877 [10:46:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4F F4 07 01 83 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 89 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 95 01 00 35 04 06 00 D5 87 54 98 9B 83 8A 95 83 27 D8 1D 5E 21 [10:46:33]CheckFolder [10:46:33]dirname=/storage/ofd_packets [10:46:33]CheckFolder done [10:46:33]ProducePacketName [10:46:33]name=ofd_packets/00103877 [10:46:33]NVStorageSaveData ofd_packets/00103877 [10:46:33]File name is /storage/ofd_packets/00103877 [10:46:33]Write 301 bytes [10:46:33]NVStorageSaveData done [10:46:33]OFDSenderStorePacket done [10:46:33]KKMCreateOFDPacket done [10:46:33]NVStorageSaveData kkm_last_timestamp [10:46:33]File name is /storage/kkm_last_timestamp [10:46:33]Write 4 bytes [10:46:33]NVStorageSaveData done [10:46:33]ExternCall_PrintAddStr [10:46:33]wPrintStart [10:46:33]Write to MH i2c: 01 00 00 2D 10 3D [10:46:33]Write i2c OK [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: 01 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: 01 07 00 [10:46:33]MH_I2C_Read... [10:46:33]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 FF 0F 52 [10:46:33]RasterBufferAndPrint [10:46:33]line Счет N : (1)673208 [10:46:33]line ИНН: 02508201610067 [10:46:33]line Контрольно-Кассовый Чек [10:46:33]line ПРОДАЖА [10:46:33]line ТРК (МРК, ГНК) : 41 [10:46:33]line Товар: 2710124500 [10:46:33]line Аи-95-К-5 [10:46:33]line 5.420 * 73.90 [10:46:33]line = 400.54 [10:46:33]line НДС 12% НСП 1% [10:46:33]line > о реализуемом товаре [10:46:33]line ОКРУГЛЕНИЕ: -0.54 [10:46:33]line ИТОГО: 400.00 [10:46:33]line Внесено: 400.00 [10:46:33]line СДАЧА: 0.00 [10:46:33]line НСП 1% : 3.54 [10:46:33]line НДС 12% : 42.53 [10:46:33]line Наличными: 400.00 [10:46:33]line Безнал.: 0.00 [10:46:33]line Место: АЗС № 120 "Партнер Нефть" [10:46:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:46:33]line СНО: Общий режим [10:46:33]line Чек 62 20.06.2024 10:46 [10:46:33]line Смена: 354 ФФД: 1.0 [10:46:33]line ЗНМ: 0300000164 [10:46:33]line РНМ: 0000000000092785 [10:46:33]line Версия ККМ: 001 [10:46:33]line ФМ: 0000000000875093 [10:46:33]line ФД: 103877 [10:46:33]line ФПД: 234777216588675 [10:46:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104633&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103877&fm=234777216588675&tin=02508201610067®Number=0000000000092785&sum=40000 [10:46:34]written 0, free lines is 4095 [10:46:34]OFD Sender: Processing packet 103877 [packets to send 17, broken 16] [10:46:34]ProducePacketName [10:46:34]name=ofd_packets/00103877 [10:46:34]OFD Sender: To server: pG, [10:46:34]CommunicateWithHost lk.salyk.kg:30040 [10:46:34]ConnectInit lk.salyk.kg [10:46:34]Connected sock=10 [10:46:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4F F4 07 01 83 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 89 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 95 01 00 35 04 06 00 D5 87 54 98 9B 83 8A 95 83 27 D8 1D 5E 21 [10:46:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 08 0E 47 00 1B B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C5 95 01 00 F4 03 04 00 0F AF 73 66 B6 04 01 00 00 B0 5E A0 8A 9A 7A E2 72 [10:46:34]CommunicateWithHost err = 0 [10:46:34]CheckOFDResponse [10:46:34]1017 (14) - 77093643461234 [10:46:34]1041 (16) - 0000000000875093 [10:46:34]1040 (4) - 103877 [10:46:34]1012 (4) - 20.06.2024 04:24 [10:46:34]1206 (1) - 0 [10:46:34]OFD Sender: Remove packet 103877 [10:46:34]ProducePacketName [10:46:34]name=ofd_packets/00103877 [10:46:34]NVStorageDeleteData [10:46:34]Write to MH i2c: 01 00 00 58 10 68 [10:46:34]Write i2c OK [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: 01 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: 01 07 00 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: 01 07 00 58 10 00 00 00 00 00 D8 0C 53 [10:46:34]RasterBufferAndPrint [10:46:34]line [10:46:34]line [10:46:34]line [10:46:34]line [10:46:34]line [10:46:34]written 0, free lines is 3296 [10:46:34]MH_Cut [10:46:34]Write to MH i2c: D1 01 00 5F 10 01 41 [10:46:34]Write i2c OK [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: D1 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: D1 01 00 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: D1 01 00 5F 10 00 40 [10:46:34]Write to MH i2c: 01 00 00 60 10 70 [10:46:34]Write i2c OK [10:46:34]MH_I2C_Read... [10:46:35]OFD Sender: No OFD packet to send [10:46:35]*** Cut start [10:46:35]*** Partial cut [10:46:35]*** CUTSNS_PIN = 1 [10:46:35]*** CUTSNS_PIN = 0 [10:46:35]*** Brake cut motor [10:46:36]Read from MH i2c: 01 [10:46:36]MH_I2C_Read... [10:46:36]*** Stop cut motor [10:46:36]*** Cut end [10:46:36]Read from MH i2c: 01 07 00 [10:46:36]MH_I2C_Read... [10:46:36]Read from MH i2c: 01 07 00 60 10 00 00 00 00 00 FF 0F 85 [10:46:36]process_action close_receipt done [10:46:36]requested_data is exist [10:46:36]produce_requested_data [10:46:36]requested_item fm.sn is exist - process it [10:46:36]wFMCommunicate request_size=4 [10:46:36]MH_SAM_APDU [10:46:36]CAPDU: 80 11 00 00 [10:46:36]Write to MH i2c: E2 08 00 61 10 80 11 00 00 00 00 00 00 EB [10:46:36]Write i2c OK [10:46:36]MH_I2C_Read... [10:46:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:36]Read from MH i2c: E2 [10:46:36]MH_I2C_Read... [10:46:36]Read from MH i2c: E2 17 00 [10:46:36]MH_I2C_Read... [10:46:36]Read from MH i2c: E2 17 00 61 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3E [10:46:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:46:36]wFMCommunicate OK [10:46:36]requested_item fd.num is exist - process it [10:46:36]SAM_PROTO_GetFieldsCounters [10:46:36]wFMCommunicate request_size=4 [10:46:36]MH_SAM_APDU [10:46:36]CAPDU: 80 13 00 00 [10:46:36]Write to MH i2c: E2 08 00 62 10 80 13 00 00 00 00 00 00 EE [10:46:36]Write i2c OK [10:46:36]MH_I2C_Read... [10:46:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:36]Read from MH i2c: E2 [10:46:36]MH_I2C_Read... [10:46:36]Read from MH i2c: E2 62 00 [10:46:36]MH_I2C_Read... [10:46:36]Read from MH i2c: E2 62 00 62 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C5 95 01 00 0E 04 04 00 62 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 8D [10:46:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C5 95 01 00 0E 04 04 00 62 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:46:36]wFMCommunicate OK [10:46:36]SAM_PROTO_GetFieldsCounters done [10:46:36]requested_item shift.num is exist - process it [10:46:36]requested_item shift.opened is exist - process it [10:46:36]req_shift_opened [10:46:36]FM_GetShiftState [10:46:36]SAM_PROTO_GetShiftState [10:46:36]wFMCommunicate request_size=4 [10:46:36]MH_SAM_APDU [10:46:36]CAPDU: 80 13 01 00 [10:46:36]Write to MH i2c: E2 08 00 63 10 80 13 01 00 00 00 00 00 F0 [10:46:36]Write i2c OK [10:46:36]MH_I2C_Read... [10:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:36]Read from MH i2c: E2 [10:46:36]MH_I2C_Read... [10:46:36]Read from MH i2c: E2 0E 00 [10:46:36]MH_I2C_Read... [10:46:36]Read from MH i2c: E2 0E 00 63 10 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3F [10:46:36]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:46:36]wFMCommunicate OK [10:46:36]SAM_PROTO_GetShiftState done [10:46:36]FM_GetShiftState done [10:46:36]req_shift_opened done [10:46:36]requested_item shift.open_date is exist - process it [10:46:36]req_shift_open_date [10:46:36]req_shift_open_date done [10:46:36]produce_requested_data done [10:46:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103877,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:46:36]process_action_free close_receipt [10:46:36]json_value_free [10:46:36]json_value_free done [10:46:36]process_json_proto returns [10:46:36]Send response to host [10:46:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103877,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:46:36]free response buf [10:46:36]execute_script done [10:46:36]execute_script returns [10:46:36]free content buf [10:46:36]Sock 9.Close socket [10:46:36]Sock 9.Thread stoped [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:22]accept exits with 7 [10:48:22]New connection [10:48:22]New thread 3067063652 created [10:48:22]Thread 3067207012 joined [10:48:22]Waiting for new connection... [10:48:22] Sock 7.Parse request [10:48:22]Sock 7.Check first char [10:48:22]Sock 7.First char is OK [10:48:22]request: POST /json_proto HTTP/1.0 [10:48:22]Method: POST [10:48:22]URL: /json_proto [10:48:22]Method is POST - this is cgi request [10:48:22]url: /json_proto [10:48:22]query_string will be loaded in cgi processing [10:48:22]execute_cgi json_proto POST (null) [10:48:22]execute_cgi path=json_proto method=POST [10:48:22]POST find Content-Length [10:48:22]Host: 172.17.38.133:8080 [10:48:22]Content-Length: 682 [10:48:22]Content-Type: application/json [10:48:22] [10:48:22]POST finish read [10:48:22]Found Content-Length = 682 [10:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:22]execute_script... [10:48:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:22]POST & json_proto [10:48:22]process_json_proto [10:48:22]json parsed OK: [10:48:22]protocol is kg_v1.0 [10:48:22]action value=close_receipt [10:48:22]process_action close_receipt [10:48:22]cmd_close_receipt [10:48:22]MH_GetDate [10:48:22]Write to MH i2c: F0 00 00 64 10 63 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: F0 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: F0 09 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: F0 09 00 64 10 00 F8 08 74 66 BD 8F 7C 64 72 [10:48:22]GetLastDocTimeStamp 1718880393 [10:48:22]current date 1718880504 [10:48:22]FM_GetShiftState [10:48:22]SAM_PROTO_GetShiftState [10:48:22]wFMCommunicate request_size=4 [10:48:22]MH_SAM_APDU [10:48:22]CAPDU: 80 13 01 00 [10:48:22]Write to MH i2c: E2 08 00 65 10 80 13 01 00 00 00 00 00 F2 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:22]Read from MH i2c: E2 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 0E 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: E2 0E 00 65 10 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 41 [10:48:22]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:48:22]wFMCommunicate OK [10:48:22]SAM_PROTO_GetShiftState done [10:48:22]FM_GetShiftState done [10:48:22]opened in 1718843124 [10:48:22]opened+sec_in_day 1718929524 [10:48:22]quantity*price = 50009 [10:48:22]sum+1 = 50010 [10:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 63 20.06.2024 10:48 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103878 ФПД: 225053404701890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104824&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103878&fm=225053404701890&tin=02508201610067®Number=0000000000092785&sum=50000 [10:48:23]StoreToDocumentArchive [10:48:23]shift 354 fd 103878 [10:48:23]save to /storage/0354/doc_00103878 [10:48:23]save last doc name /storage/0354/doc_00103878 to /storage/kkm_last_doc_name [10:48:23]save OK [10:48:23]Clear old archive folders... [10:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:48:23]tlvbuf is 0081C0E0 [10:48:23]SAM_PROTO_ClearQueue [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 09 00 00 [10:48:23]Write to MH i2c: E2 08 00 72 10 80 09 00 00 00 00 00 00 F4 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [10:48:23]RAPDU: 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_ClearQueue done [10:48:23]KKMCreateOFDPacket [10:48:23]OFDProtocolAddRootSTLVToBuf [10:48:23]FM_MakeSignedData [10:48:23]FM_MakeSignedData [10:48:23]SAM_PROTO_SignData [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 0D 01 02 [10:48:23]Write to MH i2c: E2 08 00 73 10 80 0D 01 02 00 00 00 00 FC [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 03 00 73 10 00 90 00 F7 [10:48:23]RAPDU: 90 00 [10:48:23]wFMCommunicate OK [10:48:23]wFMCommunicate request_size=255 [10:48:23]MH_SAM_APDU [10:48:23]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 F8 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 95 01 00 35 04 06 00 [10:48:23]Write to MH i2c: E2 02 01 74 10 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 F8 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 95 01 00 35 04 06 00 00 00 6C [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 74 10 00 90 00 F8 [10:48:24]RAPDU: 90 00 [10:48:24]wFMCommunicate OK [10:48:24]wFMCommunicate request_size=11 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 0D 02 02 06 CC AF 54 3E 24 C2 [10:48:24]Write to MH i2c: E2 0E 00 75 10 80 0D 02 02 06 00 CC AF 54 3E 24 C2 00 00 FE [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 03 00 75 10 00 90 00 F9 [10:48:24]RAPDU: 90 00 [10:48:24]wFMCommunicate OK [10:48:24]wFMCommunicate request_size=4 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 0D 03 02 [10:48:24]Write to MH i2c: E2 08 00 76 10 80 0D 03 02 00 00 00 00 01 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 0B 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 0B 00 76 10 00 03 9F 19 B0 9A 60 BB 78 90 00 9A [10:48:24]RAPDU: 03 9F 19 B0 9A 60 BB 78 90 00 [10:48:24]wFMCommunicate OK [10:48:24]SAM_PROTO_SignData done [10:48:24]FM_MakeSignedData done [10:48:24]CreateOFDProtocolMessage [10:48:24]wFMCommunicate request_size=4 [10:48:24]MH_SAM_APDU [10:48:24]CAPDU: 80 11 00 00 [10:48:24]Write to MH i2c: E2 08 00 77 10 80 11 00 00 00 00 00 00 01 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:24]Read from MH i2c: E2 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 17 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: E2 17 00 77 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [10:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:48:24]wFMCommunicate OK [10:48:24]CreateOFDProtocolMessage done [10:48:24]OFDSenderStorePacket 103878 [10:48:24]StoreOFDPacket docnum=103878 [10:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 BD A8 08 01 D5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 F8 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 95 01 00 35 04 06 00 CC AF 54 3E 24 C2 03 9F 19 B0 9A 60 BB 78 [10:48:24]CheckFolder [10:48:24]dirname=/storage/ofd_packets [10:48:24]CheckFolder done [10:48:24]ProducePacketName [10:48:24]name=ofd_packets/00103878 [10:48:24]NVStorageSaveData ofd_packets/00103878 [10:48:24]File name is /storage/ofd_packets/00103878 [10:48:24]Write 302 bytes [10:48:24]NVStorageSaveData done [10:48:24]OFDSenderStorePacket done [10:48:24]KKMCreateOFDPacket done [10:48:24]NVStorageSaveData kkm_last_timestamp [10:48:24]File name is /storage/kkm_last_timestamp [10:48:24]Write 4 bytes [10:48:24]NVStorageSaveData done [10:48:24]ExternCall_PrintAddStr [10:48:24]wPrintStart [10:48:24]Write to MH i2c: 01 00 00 78 10 88 [10:48:24]Write i2c OK [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 07 00 [10:48:24]MH_I2C_Read... [10:48:24]Read from MH i2c: 01 07 00 78 10 00 00 00 00 00 FF 0F 9D [10:48:24]RasterBufferAndPrint [10:48:24]line Счет N : (1)673209 [10:48:24]line ИНН: 02508201610067 [10:48:24]line Контрольно-Кассовый Чек [10:48:24]line ПРОДАЖА [10:48:24]line ТРК (МРК, ГНК) : 21 [10:48:24]line Товар: 2710194210 [10:48:24]line ДТ(л)-К-5 [10:48:24]line 6.860 * 72.90 [10:48:24]line = 500.09 [10:48:24]line НДС 12% НСП 1% [10:48:24]line > о реализуемом товаре [10:48:24]line ОКРУГЛЕНИЕ: -0.09 [10:48:24]line ИТОГО: 500.00 [10:48:24]line Внесено: 500.00 [10:48:24]line СДАЧА: 0.00 [10:48:24]line НСП 1% : 4.43 [10:48:24]line НДС 12% : 53.11 [10:48:24]line Наличными: 500.00 [10:48:24]line Безнал.: 0.00 [10:48:24]line Место: АЗС № 120 "Партнер Нефть" [10:48:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:48:24]line СНО: Общий режим [10:48:24]line Чек 63 20.06.2024 10:48 [10:48:24]line Смена: 354 ФФД: 1.0 [10:48:24]line ЗНМ: 0300000164 [10:48:24]line РНМ: 0000000000092785 [10:48:24]line Версия ККМ: 001 [10:48:24]line ФМ: 0000000000875093 [10:48:24]line ФД: 103878 [10:48:24]line ФПД: 225053404701890 [10:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T104824&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103878&fm=225053404701890&tin=02508201610067®Number=0000000000092785&sum=50000 [10:48:24]OFD Sender: Processing packet 103878 [packets to send 17, broken 16] [10:48:24]ProducePacketName [10:48:24]name=ofd_packets/00103878 [10:48:24]OFD Sender: To server: pG, [10:48:24]CommunicateWithHost lk.salyk.kg:30040 [10:48:24]ConnectInit lk.salyk.kg [10:48:24]written 0, free lines is 4095 [10:48:24]Connected sock=10 [10:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 BD A8 08 01 D5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 F8 08 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 95 01 00 35 04 06 00 CC AF 54 3E 24 C2 03 9F 19 B0 9A 60 BB 78 [10:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9F 36 47 00 D6 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C6 95 01 00 F4 03 04 00 7D AF 73 66 B6 04 01 00 00 EF 0B 29 EE A1 06 FD 38 [10:48:25]CommunicateWithHost err = 0 [10:48:25]CheckOFDResponse [10:48:25]1017 (14) - 77093643461234 [10:48:25]1041 (16) - 0000000000875093 [10:48:25]1040 (4) - 103878 [10:48:25]1012 (4) - 20.06.2024 04:26 [10:48:25]1206 (1) - 0 [10:48:25]OFD Sender: Remove packet 103878 [10:48:25]ProducePacketName [10:48:25]name=ofd_packets/00103878 [10:48:25]NVStorageDeleteData [10:48:25]Write to MH i2c: 01 00 00 A3 10 B3 [10:48:25]Write i2c OK [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: 01 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: 01 07 00 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: 01 07 00 A3 10 00 00 00 00 00 E1 0C A7 [10:48:25]RasterBufferAndPrint [10:48:25]line [10:48:25]line [10:48:25]line [10:48:25]line [10:48:25]line [10:48:25]written 0, free lines is 3303 [10:48:25]MH_Cut [10:48:25]Write to MH i2c: D1 01 00 AA 10 01 8C [10:48:25]Write i2c OK [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: D1 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: D1 01 00 [10:48:25]MH_I2C_Read... [10:48:25]Read from MH i2c: D1 01 00 AA 10 00 8B [10:48:25]Write to MH i2c: 01 00 00 AB 10 BB [10:48:25]Write i2c OK [10:48:25]MH_I2C_Read... [10:48:25]OFD Sender: No OFD packet to send [10:48:25]*** Cut start [10:48:25]*** Partial cut [10:48:25]*** CUTSNS_PIN = 1 [10:48:25]*** CUTSNS_PIN = 0 [10:48:26]*** Brake cut motor [10:48:26]Read from MH i2c: 01 [10:48:26]MH_I2C_Read... [10:48:26]*** Stop cut motor [10:48:26]*** Cut end [10:48:26]Read from MH i2c: 01 07 00 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: 01 07 00 AB 10 00 00 00 00 00 FF 0F D0 [10:48:26]process_action close_receipt done [10:48:26]requested_data is exist [10:48:26]produce_requested_data [10:48:26]requested_item fm.sn is exist - process it [10:48:26]wFMCommunicate request_size=4 [10:48:26]MH_SAM_APDU [10:48:26]CAPDU: 80 11 00 00 [10:48:26]Write to MH i2c: E2 08 00 AC 10 80 11 00 00 00 00 00 00 36 [10:48:26]Write i2c OK [10:48:26]MH_I2C_Read... [10:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:26]Read from MH i2c: E2 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 17 00 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 17 00 AC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 89 [10:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:48:26]wFMCommunicate OK [10:48:26]requested_item fd.num is exist - process it [10:48:26]SAM_PROTO_GetFieldsCounters [10:48:26]wFMCommunicate request_size=4 [10:48:26]MH_SAM_APDU [10:48:26]CAPDU: 80 13 00 00 [10:48:26]Write to MH i2c: E2 08 00 AD 10 80 13 00 00 00 00 00 00 39 [10:48:26]Write i2c OK [10:48:26]MH_I2C_Read... [10:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:26]Read from MH i2c: E2 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 62 00 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 62 00 AD 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 95 01 00 0E 04 04 00 62 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 DC [10:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 95 01 00 0E 04 04 00 62 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:48:26]wFMCommunicate OK [10:48:26]SAM_PROTO_GetFieldsCounters done [10:48:26]requested_item shift.num is exist - process it [10:48:26]requested_item shift.opened is exist - process it [10:48:26]req_shift_opened [10:48:26]FM_GetShiftState [10:48:26]SAM_PROTO_GetShiftState [10:48:26]wFMCommunicate request_size=4 [10:48:26]MH_SAM_APDU [10:48:26]CAPDU: 80 13 01 00 [10:48:26]Write to MH i2c: E2 08 00 AE 10 80 13 01 00 00 00 00 00 3B [10:48:26]Write i2c OK [10:48:26]MH_I2C_Read... [10:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:26]Read from MH i2c: E2 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 0E 00 [10:48:26]MH_I2C_Read... [10:48:26]Read from MH i2c: E2 0E 00 AE 10 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8A [10:48:26]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:48:26]wFMCommunicate OK [10:48:26]SAM_PROTO_GetShiftState done [10:48:26]FM_GetShiftState done [10:48:26]req_shift_opened done [10:48:26]requested_item shift.open_date is exist - process it [10:48:26]req_shift_open_date [10:48:26]req_shift_open_date done [10:48:26]produce_requested_data done [10:48:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103878,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:48:26]process_action_free close_receipt [10:48:26]json_value_free [10:48:26]json_value_free done [10:48:26]process_json_proto returns [10:48:26]Send response to host [10:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103878,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:48:26]free response buf [10:48:26]execute_script done [10:48:26]execute_script returns [10:48:26]free content buf [10:48:26]Sock 7.Close socket [10:48:26]Sock 7.Thread stoped [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]accept exits with 9 [10:51:05]New connection [10:51:05]New thread 3067207012 created [10:51:05]Thread 3067063652 joined [10:51:05]Waiting for new connection... [10:51:05] Sock 9.Parse request [10:51:05]Sock 9.Check first char [10:51:05]Sock 9.First char is OK [10:51:05]request: POST /json_proto HTTP/1.0 [10:51:05]Method: POST [10:51:05]URL: /json_proto [10:51:05]Method is POST - this is cgi request [10:51:05]url: /json_proto [10:51:05]query_string will be loaded in cgi processing [10:51:05]execute_cgi json_proto POST (null) [10:51:05]execute_cgi path=json_proto method=POST [10:51:05]POST find Content-Length [10:51:05]Host: 172.17.38.133:8080 [10:51:05]Content-Length: 1207 [10:51:05]Content-Type: application/json [10:51:05] [10:51:05]POST finish read [10:51:05]Found Content-Length = 1207 [10:51: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673210\u000A20.06.2024 10:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2217.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\u000A53329\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:05]execute_script... [10:51: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673210\u000A20.06.2024 10:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2217.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\u000A53329\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:05]POST & json_proto [10:51:05]process_json_proto [10:51:05]json parsed OK: [10:51:05]protocol is kg_v1.0 [10:51:05]action value=print_text [10:51:05]process_action print_text [10:51:05]cmd_print_text [10:51:05]ExternCall_PrintAddStr [10:51:05]wPrintStart [10:51:05]Write to MH i2c: 01 00 00 AF 10 BF [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 07 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 07 00 AF 10 00 00 00 00 00 FF 0F D4 [10:51:05]RasterBufferAndPrint [10:51:05]line *****ТОВАРНЫЙ ЧЕК***** [10:51:05]line АЗС 120 [10:51:05]line Партнер нефть [10:51:05]line 02508201610067 [10:51:05]line Кассир : Дуйшенбиев А. [10:51:05]line Счет N : (1)673210 [10:51:05]line 20.06.2024 10:28 [10:51:05]line ПРОДАЖА [10:51:05]line ТРК (МРК, ГНК): 31 [10:51:05]line Вид ГСМ : 2710124500 [10:51:05]line Аи-95-К-5 [10:51:05]line 30.000 x 73.90 [10:51:05]line ИТОГ: 2217.00 [10:51:05]line Тип оплаты: Талоны: Топливная Карта [10:51:05]line 53329 [10:51:05]line ______________________ [10:51:05]line (подпись) [10:51:05]written 0, free lines is 4095 [10:51:05]Write to MH i2c: 01 00 00 C3 10 D3 [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 07 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: 01 07 00 C3 10 00 00 00 00 00 11 0E F9 [10:51:05]RasterBufferAndPrint [10:51:05]line [10:51:05]line [10:51:05]line [10:51:05]line [10:51:05]line [10:51:05]written 0, free lines is 3603 [10:51:05]MH_Cut [10:51:05]Write to MH i2c: D1 01 00 CA 10 01 AC [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: D1 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: D1 01 00 [10:51:05]MH_I2C_Read... [10:51:05]Read from MH i2c: D1 01 00 CA 10 00 AB [10:51:05]Write to MH i2c: 01 00 00 CB 10 DB [10:51:05]Write i2c OK [10:51:05]MH_I2C_Read... [10:51:05]OFD Sender: No OFD packet to send [10:51:06]*** Cut start [10:51:06]*** Partial cut [10:51:06]*** CUTSNS_PIN = 1 [10:51:06]*** CUTSNS_PIN = 0 [10:51:06]*** Brake cut motor [10:51:06]Read from MH i2c: 01 [10:51:06]MH_I2C_Read... [10:51:06]*** Stop cut motor [10:51:06]*** Cut end [10:51:06]Read from MH i2c: 01 07 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: 01 07 00 CB 10 00 00 00 00 00 FF 0F F0 [10:51:06]process_action print_text done [10:51:06]requested_data is exist [10:51:06]produce_requested_data [10:51:06]requested_item fm.sn is exist - process it [10:51:06]wFMCommunicate request_size=4 [10:51:06]MH_SAM_APDU [10:51:06]CAPDU: 80 11 00 00 [10:51:06]Write to MH i2c: E2 08 00 CC 10 80 11 00 00 00 00 00 00 56 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:06]Read from MH i2c: E2 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 17 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 17 00 CC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A9 [10:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:51:06]wFMCommunicate OK [10:51:06]requested_item fd.num is exist - process it [10:51:06]SAM_PROTO_GetFieldsCounters [10:51:06]wFMCommunicate request_size=4 [10:51:06]MH_SAM_APDU [10:51:06]CAPDU: 80 13 00 00 [10:51:06]Write to MH i2c: E2 08 00 CD 10 80 13 00 00 00 00 00 00 59 [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:06]Read from MH i2c: E2 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 62 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 62 00 CD 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 95 01 00 0E 04 04 00 62 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 FC [10:51:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C6 95 01 00 0E 04 04 00 62 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:51:06]wFMCommunicate OK [10:51:06]SAM_PROTO_GetFieldsCounters done [10:51:06]requested_item shift.num is exist - process it [10:51:06]requested_item shift.opened is exist - process it [10:51:06]req_shift_opened [10:51:06]FM_GetShiftState [10:51:06]SAM_PROTO_GetShiftState [10:51:06]wFMCommunicate request_size=4 [10:51:06]MH_SAM_APDU [10:51:06]CAPDU: 80 13 01 00 [10:51:06]Write to MH i2c: E2 08 00 CE 10 80 13 01 00 00 00 00 00 5B [10:51:06]Write i2c OK [10:51:06]MH_I2C_Read... [10:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:06]Read from MH i2c: E2 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 0E 00 [10:51:06]MH_I2C_Read... [10:51:06]Read from MH i2c: E2 0E 00 CE 10 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AA [10:51:06]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:51:06]wFMCommunicate OK [10:51:06]SAM_PROTO_GetShiftState done [10:51:06]FM_GetShiftState done [10:51:06]req_shift_opened done [10:51:06]requested_item shift.open_date is exist - process it [10:51:06]req_shift_open_date [10:51:06]req_shift_open_date done [10:51:06]produce_requested_data done [10:51:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103878,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:51:06]process_action_free print_text [10:51:06]json_value_free [10:51:06]json_value_free done [10:51:06]process_json_proto returns [10:51:06]Send response to host [10:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103878,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:51:06]free response buf [10:51:06]execute_script done [10:51:06]execute_script returns [10:51:06]free content buf [10:51:06]Sock 9.Close socket [10:51:06]Sock 9.Thread stoped [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57: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:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:25]accept exits with 7 [10:59:25]New connection [10:59:25]New thread 3067063652 created [10:59:25]Thread 3067207012 joined [10:59:25]Waiting for new connection... [10:59:25] Sock 7.Parse request [10:59:25]Sock 7.Check first char [10:59:25]Sock 7.First char is OK [10:59:25]request: POST /json_proto HTTP/1.0 [10:59:25]Method: POST [10:59:25]URL: /json_proto [10:59:25]Method is POST - this is cgi request [10:59:25]url: /json_proto [10:59:25]query_string will be loaded in cgi processing [10:59:25]execute_cgi json_proto POST (null) [10:59:25]execute_cgi path=json_proto method=POST [10:59:25]POST find Content-Length [10:59:25]Host: 172.17.38.133:8080 [10:59:25]Content-Length: 682 [10:59:25]Content-Type: application/json [10:59:25] [10:59:25]POST finish read [10:59:25]Found Content-Length = 682 [10:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:25]execute_script... [10:59: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)673212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:25]POST & json_proto [10:59:25]process_json_proto [10:59:25]json parsed OK: [10:59:25]protocol is kg_v1.0 [10:59:25]action value=close_receipt [10:59:25]process_action close_receipt [10:59:25]cmd_close_receipt [10:59:25]MH_GetDate [10:59:25]Write to MH i2c: F0 00 00 CF 10 CE [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 09 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: F0 09 00 CF 10 00 8F 0B 74 66 BD 8F 7C 64 77 [10:59:25]GetLastDocTimeStamp 1718880504 [10:59:25]current date 1718881167 [10:59:25]FM_GetShiftState [10:59:25]SAM_PROTO_GetShiftState [10:59:25]wFMCommunicate request_size=4 [10:59:25]MH_SAM_APDU [10:59:25]CAPDU: 80 13 01 00 [10:59:25]Write to MH i2c: E2 08 00 D0 10 80 13 01 00 00 00 00 00 5D [10:59:25]Write i2c OK [10:59:25]MH_I2C_Read... [10:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:25]Read from MH i2c: E2 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 0E 00 [10:59:25]MH_I2C_Read... [10:59:25]Read from MH i2c: E2 0E 00 D0 10 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AC [10:59:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:59:25]wFMCommunicate OK [10:59:25]SAM_PROTO_GetShiftState done [10:59:25]FM_GetShiftState done [10:59:25]opened in 1718843124 [10:59:25]opened+sec_in_day 1718929524 [10:59:25]quantity*price = 120051 [10:59:25]sum+1 = 120052 [10:59:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 64 20.06.2024 10:59 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103879 ФПД: 187670889022115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T105927&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103879&fm=187670889022115&tin=02508201610067®Number=0000000000092785&sum=120000 [10:59:26]StoreToDocumentArchive [10:59:26]shift 354 fd 103879 [10:59:26]save to /storage/0354/doc_00103879 [10:59:26]save last doc name /storage/0354/doc_00103879 to /storage/kkm_last_doc_name [10:59:26]save OK [10:59:26]Clear old archive folders... [10:59:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:26]tlvbuf is 008381A0 [10:59:26]SAM_PROTO_ClearQueue [10:59:26]wFMCommunicate request_size=4 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 09 00 00 [10:59:26]Write to MH i2c: E2 08 00 DD 10 80 09 00 00 00 00 00 00 5F [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:26]Read from MH i2c: E2 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 [10:59:26]MH_I2C_Read... [10:59:26]Read from MH i2c: E2 03 00 DD 10 00 90 00 61 [10:59:26]RAPDU: 90 00 [10:59:26]wFMCommunicate OK [10:59:26]SAM_PROTO_ClearQueue done [10:59:26]KKMCreateOFDPacket [10:59:26]OFDProtocolAddRootSTLVToBuf [10:59:26]FM_MakeSignedData [10:59:26]FM_MakeSignedData [10:59:26]SAM_PROTO_SignData [10:59:26]wFMCommunicate request_size=4 [10:59:26]MH_SAM_APDU [10:59:26]CAPDU: 80 0D 01 02 [10:59:26]Write to MH i2c: E2 08 00 DE 10 80 0D 01 02 00 00 00 00 67 [10:59:26]Write i2c OK [10:59:26]MH_I2C_Read... [10:59:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 DE 10 00 90 00 62 [10:59:27]RAPDU: 90 00 [10:59:27]wFMCommunicate OK [10:59:27]wFMCommunicate request_size=255 [10:59:27]MH_SAM_APDU [10:59: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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8F 0B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 95 01 00 35 04 06 00 AA [10:59:27]Write to MH i2c: E2 02 01 DF 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8F 0B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 95 01 00 35 04 06 00 AA 00 00 9E [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 DF 10 00 90 00 63 [10:59:27]RAPDU: 90 00 [10:59:27]wFMCommunicate OK [10:59:27]wFMCommunicate request_size=10 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 0D 02 02 05 AF 88 AC C2 A3 [10:59:27]Write to MH i2c: E2 0D 00 E0 10 80 0D 02 02 05 00 AF 88 AC C2 A3 00 00 BC [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 03 00 E0 10 00 90 00 64 [10:59:27]RAPDU: 90 00 [10:59:27]wFMCommunicate OK [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 0D 03 02 [10:59:27]Write to MH i2c: E2 08 00 E1 10 80 0D 03 02 00 00 00 00 6C [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 0B 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 0B 00 E1 10 00 8F 79 20 F9 03 91 75 FF 90 00 96 [10:59:27]RAPDU: 8F 79 20 F9 03 91 75 FF 90 00 [10:59:27]wFMCommunicate OK [10:59:27]SAM_PROTO_SignData done [10:59:27]FM_MakeSignedData done [10:59:27]CreateOFDProtocolMessage [10:59:27]wFMCommunicate request_size=4 [10:59:27]MH_SAM_APDU [10:59:27]CAPDU: 80 11 00 00 [10:59:27]Write to MH i2c: E2 08 00 E2 10 80 11 00 00 00 00 00 00 6C [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:27]Read from MH i2c: E2 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 17 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: E2 17 00 E2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BF [10:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:59:27]wFMCommunicate OK [10:59:27]CreateOFDProtocolMessage done [10:59:27]OFDSenderStorePacket 103879 [10:59:27]StoreOFDPacket docnum=103879 [10:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 67 07 07 01 EE 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8F 0B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 95 01 00 35 04 06 00 AA AF 88 AC C2 A3 8F 79 20 F9 03 91 75 FF [10:59:27]CheckFolder [10:59:27]dirname=/storage/ofd_packets [10:59:27]CheckFolder done [10:59:27]ProducePacketName [10:59:27]name=ofd_packets/00103879 [10:59:27]NVStorageSaveData ofd_packets/00103879 [10:59:27]File name is /storage/ofd_packets/00103879 [10:59:27]Write 301 bytes [10:59:27]NVStorageSaveData done [10:59:27]OFDSenderStorePacket done [10:59:27]KKMCreateOFDPacket done [10:59:27]NVStorageSaveData kkm_last_timestamp [10:59:27]File name is /storage/kkm_last_timestamp [10:59:27]Write 4 bytes [10:59:27]NVStorageSaveData done [10:59:27]ExternCall_PrintAddStr [10:59:27]wPrintStart [10:59:27]Write to MH i2c: 01 00 00 E3 10 F3 [10:59:27]Write i2c OK [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 07 00 [10:59:27]MH_I2C_Read... [10:59:27]Read from MH i2c: 01 07 00 E3 10 00 00 00 00 00 FF 0F 08 [10:59:27]RasterBufferAndPrint [10:59:27]line Счет N : (1)673212 [10:59:27]line ИНН: 02508201610067 [10:59:27]line Контрольно-Кассовый Чек [10:59:27]line ПРОДАЖА [10:59:27]line ТРК (МРК, ГНК) : 42 [10:59:27]line Товар: 2710124130 [10:59:27]line Аи-92-К-5 [10:59:27]line 18.080 * 66.40 [10:59:27]line = 1200.51 [10:59:27]line НДС 12% НСП 1% [10:59:27]line > о реализуемом товаре [10:59:27]line ОКРУГЛЕНИЕ: -0.51 [10:59:27]line ИТОГО: 1200.00 [10:59:27]line Внесено: 1200.00 [10:59:27]line СДАЧА: 0.00 [10:59:27]line НСП 1% : 10.62 [10:59:27]line НДС 12% : 127.49 [10:59:27]line Наличными: 1200.00 [10:59:27]line Безнал.: 0.00 [10:59:27]line Место: АЗС № 120 "Партнер Нефть" [10:59:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [10:59:27]line СНО: Общий режим [10:59:27]line Чек 64 20.06.2024 10:59 [10:59:27]line Смена: 354 ФФД: 1.0 [10:59:27]line ЗНМ: 0300000164 [10:59:27]line РНМ: 0000000000092785 [10:59:27]line Версия ККМ: 001 [10:59:27]line ФМ: 0000000000875093 [10:59:27]line ФД: 103879 [10:59:27]line ФПД: 187670889022115 [10:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T105927&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103879&fm=187670889022115&tin=02508201610067®Number=0000000000092785&sum=120000 [10:59:27]OFD Sender: Processing packet 103879 [packets to send 17, broken 16] [10:59:27]ProducePacketName [10:59:27]name=ofd_packets/00103879 [10:59:27]OFD Sender: To server: pG, [10:59:27]CommunicateWithHost lk.salyk.kg:30040 [10:59:27]ConnectInit lk.salyk.kg [10:59:27]written 0, free lines is 4095 [10:59:27]Connected sock=10 [10:59:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 67 07 07 01 EE 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 8F 0B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 95 01 00 35 04 06 00 AA AF 88 AC C2 A3 8F 79 20 F9 03 91 75 FF [10:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 49 D0 47 00 67 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C7 95 01 00 F4 03 04 00 15 B2 73 66 B6 04 01 00 00 BF C4 23 97 6C 5D C7 57 [10:59:28]CommunicateWithHost err = 0 [10:59:28]CheckOFDResponse [10:59:28]1017 (14) - 77093643461234 [10:59:28]1041 (16) - 0000000000875093 [10:59:28]1040 (4) - 103879 [10:59:28]1012 (4) - 20.06.2024 04:37 [10:59:28]1206 (1) - 0 [10:59:28]OFD Sender: Remove packet 103879 [10:59:28]ProducePacketName [10:59:28]name=ofd_packets/00103879 [10:59:28]NVStorageDeleteData [10:59:28]Write to MH i2c: 01 00 00 0E 11 1F [10:59:28]Write i2c OK [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: 01 [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: 01 07 00 [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: 01 07 00 0E 11 00 00 00 00 00 D5 0C 07 [10:59:28]RasterBufferAndPrint [10:59:28]line [10:59:28]line [10:59:28]line [10:59:28]line [10:59:28]line [10:59:28]written 0, free lines is 3292 [10:59:28]MH_Cut [10:59:28]Write to MH i2c: D1 01 00 15 11 01 F8 [10:59:28]Write i2c OK [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: D1 [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: D1 01 00 [10:59:28]MH_I2C_Read... [10:59:28]Read from MH i2c: D1 01 00 15 11 00 F7 [10:59:28]Write to MH i2c: 01 00 00 16 11 27 [10:59:28]Write i2c OK [10:59:28]MH_I2C_Read... [10:59:28]OFD Sender: No OFD packet to send [10:59:28]*** Cut start [10:59:28]*** Partial cut [10:59:28]*** CUTSNS_PIN = 1 [10:59:29]*** CUTSNS_PIN = 0 [10:59:29]*** Brake cut motor [10:59:29]Read from MH i2c: 01 [10:59:29]MH_I2C_Read... [10:59:29]*** Stop cut motor [10:59:29]*** Cut end [10:59:29]Read from MH i2c: 01 07 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 FF 0F 3C [10:59:29]process_action close_receipt done [10:59:29]requested_data is exist [10:59:29]produce_requested_data [10:59:29]requested_item fm.sn is exist - process it [10:59:29]wFMCommunicate request_size=4 [10:59:29]MH_SAM_APDU [10:59:29]CAPDU: 80 11 00 00 [10:59:29]Write to MH i2c: E2 08 00 17 11 80 11 00 00 00 00 00 00 A2 [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:29]Read from MH i2c: E2 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 17 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 17 00 17 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F5 [10:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [10:59:29]wFMCommunicate OK [10:59:29]requested_item fd.num is exist - process it [10:59:29]SAM_PROTO_GetFieldsCounters [10:59:29]wFMCommunicate request_size=4 [10:59:29]MH_SAM_APDU [10:59:29]CAPDU: 80 13 00 00 [10:59:29]Write to MH i2c: E2 08 00 18 11 80 13 00 00 00 00 00 00 A5 [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:29]Read from MH i2c: E2 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 62 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 62 00 18 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C7 95 01 00 0E 04 04 00 62 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 4C [10:59:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C7 95 01 00 0E 04 04 00 62 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:59:29]wFMCommunicate OK [10:59:29]SAM_PROTO_GetFieldsCounters done [10:59:29]requested_item shift.num is exist - process it [10:59:29]requested_item shift.opened is exist - process it [10:59:29]req_shift_opened [10:59:29]FM_GetShiftState [10:59:29]SAM_PROTO_GetShiftState [10:59:29]wFMCommunicate request_size=4 [10:59:29]MH_SAM_APDU [10:59:29]CAPDU: 80 13 01 00 [10:59:29]Write to MH i2c: E2 08 00 19 11 80 13 01 00 00 00 00 00 A7 [10:59:29]Write i2c OK [10:59:29]MH_I2C_Read... [10:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:29]Read from MH i2c: E2 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 0E 00 [10:59:29]MH_I2C_Read... [10:59:29]Read from MH i2c: E2 0E 00 19 11 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F6 [10:59:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [10:59:29]wFMCommunicate OK [10:59:29]SAM_PROTO_GetShiftState done [10:59:29]FM_GetShiftState done [10:59:29]req_shift_opened done [10:59:29]requested_item shift.open_date is exist - process it [10:59:29]req_shift_open_date [10:59:29]req_shift_open_date done [10:59:29]produce_requested_data done [10:59:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103879,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [10:59:29]process_action_free close_receipt [10:59:29]json_value_free [10:59:29]json_value_free done [10:59:29]process_json_proto returns [10:59:29]Send response to host [10:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103879,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [10:59:29]free response buf [10:59:29]execute_script done [10:59:29]execute_script returns [10:59:29]free content buf [10:59:29]Sock 7.Close socket [10:59:29]Sock 7.Thread stoped [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]accept exits with 9 [11:01:33]New connection [11:01:33]New thread 3067207012 created [11:01:33]Thread 3067063652 joined [11:01:33]Waiting for new connection... [11:01:33] Sock 9.Parse request [11:01:33]Sock 9.Check first char [11:01:33]Sock 9.First char is OK [11:01:33]request: POST /json_proto HTTP/1.0 [11:01:33]Method: POST [11:01:33]URL: /json_proto [11:01:33]Method is POST - this is cgi request [11:01:33]url: /json_proto [11:01:33]query_string will be loaded in cgi processing [11:01:33]execute_cgi json_proto POST (null) [11:01:33]execute_cgi path=json_proto method=POST [11:01:33]POST find Content-Length [11:01:33]Host: 172.17.38.133:8080 [11:01:33]Content-Length: 687 [11:01:33]Content-Type: application/json [11:01:33] [11:01:33]POST finish read [11:01:33]Found Content-Length = 687 [11:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:33]execute_script... [11:01:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:33]POST & json_proto [11:01:33]process_json_proto [11:01:33]json parsed OK: [11:01:33]protocol is kg_v1.0 [11:01:33]action value=close_receipt [11:01:33]process_action close_receipt [11:01:33]cmd_close_receipt [11:01:33]MH_GetDate [11:01:33]Write to MH i2c: F0 00 00 1A 11 1A [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: F0 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: F0 09 00 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: F0 09 00 1A 11 00 0E 0C 74 66 BD 8F 7C 64 43 [11:01:33]GetLastDocTimeStamp 1718881167 [11:01:33]current date 1718881294 [11:01:33]FM_GetShiftState [11:01:33]SAM_PROTO_GetShiftState [11:01:33]wFMCommunicate request_size=4 [11:01:33]MH_SAM_APDU [11:01:33]CAPDU: 80 13 01 00 [11:01:33]Write to MH i2c: E2 08 00 1B 11 80 13 01 00 00 00 00 00 A9 [11:01:33]Write i2c OK [11:01:33]MH_I2C_Read... [11:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:33]Read from MH i2c: E2 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: E2 0E 00 [11:01:33]MH_I2C_Read... [11:01:33]Read from MH i2c: E2 0E 00 1B 11 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F8 [11:01:33]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:01:33]wFMCommunicate OK [11:01:33]SAM_PROTO_GetShiftState done [11:01:33]FM_GetShiftState done [11:01:33]opened in 1718843124 [11:01:33]opened+sec_in_day 1718929524 [11:01:33]quantity*price = 600039 [11:01:33]sum+1 = 600041 [11:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.21 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 65 20.06.2024 11:01 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103880 ФПД: 99612940923476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T110134&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103880&fm=99612940923476&tin=02508201610067®Number=0000000000092785&sum=600000 [11:01:34]StoreToDocumentArchive [11:01:34]shift 354 fd 103880 [11:01:34]save to /storage/0354/doc_00103880 [11:01:34]save last doc name /storage/0354/doc_00103880 to /storage/kkm_last_doc_name [11:01:34]save OK [11:01:34]Clear old archive folders... [11:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:01:34]tlvbuf is 008379D0 [11:01:34]SAM_PROTO_ClearQueue [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 09 00 00 [11:01:34]Write to MH i2c: E2 08 00 28 11 80 09 00 00 00 00 00 00 AB [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 28 11 00 90 00 AD [11:01:34]RAPDU: 90 00 [11:01:34]wFMCommunicate OK [11:01:34]SAM_PROTO_ClearQueue done [11:01:34]KKMCreateOFDPacket [11:01:34]OFDProtocolAddRootSTLVToBuf [11:01:34]FM_MakeSignedData [11:01:34]FM_MakeSignedData [11:01:34]SAM_PROTO_SignData [11:01:34]wFMCommunicate request_size=4 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 0D 01 02 [11:01:34]Write to MH i2c: E2 08 00 29 11 80 0D 01 02 00 00 00 00 B3 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 29 11 00 90 00 AE [11:01:34]RAPDU: 90 00 [11:01:34]wFMCommunicate OK [11:01:34]wFMCommunicate request_size=255 [11:01:34]MH_SAM_APDU [11:01:34]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0E 0C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 95 01 00 35 04 06 00 [11:01:34]Write to MH i2c: E2 02 01 2A 11 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0E 0C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 95 01 00 35 04 06 00 00 00 FD [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:34]Read from MH i2c: E2 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 [11:01:34]MH_I2C_Read... [11:01:34]Read from MH i2c: E2 03 00 2A 11 00 90 00 AF [11:01:34]RAPDU: 90 00 [11:01:34]wFMCommunicate OK [11:01:34]wFMCommunicate request_size=11 [11:01:34]MH_SAM_APDU [11:01:34]CAPDU: 80 0D 02 02 06 5A 98 F1 F5 72 54 [11:01:34]Write to MH i2c: E2 0E 00 2B 11 80 0D 02 02 06 00 5A 98 F1 F5 72 54 00 00 60 [11:01:34]Write i2c OK [11:01:34]MH_I2C_Read... [11:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:35]Read from MH i2c: E2 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: E2 03 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [11:01:35]RAPDU: 90 00 [11:01:35]wFMCommunicate OK [11:01:35]wFMCommunicate request_size=4 [11:01:35]MH_SAM_APDU [11:01:35]CAPDU: 80 0D 03 02 [11:01:35]Write to MH i2c: E2 08 00 2C 11 80 0D 03 02 00 00 00 00 B8 [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:35]Read from MH i2c: E2 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: E2 0B 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: E2 0B 00 2C 11 00 69 3B 4D 54 60 46 DD BA 90 00 3B [11:01:35]RAPDU: 69 3B 4D 54 60 46 DD BA 90 00 [11:01:35]wFMCommunicate OK [11:01:35]SAM_PROTO_SignData done [11:01:35]FM_MakeSignedData done [11:01:35]CreateOFDProtocolMessage [11:01:35]wFMCommunicate request_size=4 [11:01:35]MH_SAM_APDU [11:01:35]CAPDU: 80 11 00 00 [11:01:35]Write to MH i2c: E2 08 00 2D 11 80 11 00 00 00 00 00 00 B8 [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:35]Read from MH i2c: E2 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: E2 17 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: E2 17 00 2D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [11:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:01:35]wFMCommunicate OK [11:01:35]CreateOFDProtocolMessage done [11:01:35]OFDSenderStorePacket 103880 [11:01:35]StoreOFDPacket docnum=103880 [11:01:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 93 04 08 01 0E 32 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0E 0C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 95 01 00 35 04 06 00 5A 98 F1 F5 72 54 69 3B 4D 54 60 46 DD BA [11:01:35]CheckFolder [11:01:35]dirname=/storage/ofd_packets [11:01:35]CheckFolder done [11:01:35]ProducePacketName [11:01:35]name=ofd_packets/00103880 [11:01:35]NVStorageSaveData ofd_packets/00103880 [11:01:35]File name is /storage/ofd_packets/00103880 [11:01:35]Write 302 bytes [11:01:35]NVStorageSaveData done [11:01:35]OFDSenderStorePacket done [11:01:35]KKMCreateOFDPacket done [11:01:35]NVStorageSaveData kkm_last_timestamp [11:01:35]File name is /storage/kkm_last_timestamp [11:01:35]Write 4 bytes [11:01:35]NVStorageSaveData done [11:01:35]ExternCall_PrintAddStr [11:01:35]wPrintStart [11:01:35]Write to MH i2c: 01 00 00 2E 11 3F [11:01:35]OFD Sender: Processing packet 103880 [packets to send 17, broken 16] [11:01:35]ProducePacketName [11:01:35]name=ofd_packets/00103880 [11:01:35]OFD Sender: To server: pG, [11:01:35]CommunicateWithHost lk.salyk.kg:30040 [11:01:35]ConnectInit lk.salyk.kg [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 07 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 07 00 2E 11 00 00 00 00 00 FF 0F 54 [11:01:35]RasterBufferAndPrint [11:01:35]line Счет N : (1)673211 [11:01:35]line ИНН: 02508201610067 [11:01:35]line Контрольно-Кассовый Чек [11:01:35]line ПРОДАЖА [11:01:35]line ТРК (МРК, ГНК) : 11 [11:01:35]line Товар: 2710194210 [11:01:35]line ДТ(л)-К-5 [11:01:35]line 82.310 * 72.90 [11:01:35]line = 6000.40 [11:01:35]line НДС 12% НСП 1% [11:01:35]line > о реализуемом товаре [11:01:35]line ОКРУГЛЕНИЕ: -0.40 [11:01:35]line ИТОГО: 6000.00 [11:01:35]line Внесено: 6000.00 [11:01:35]line СДАЧА: 0.00 [11:01:35]line НСП 1% : 53.10 [11:01:35]line НДС 12% : 637.21 [11:01:35]line Наличными: 6000.00 [11:01:35]line Безнал.: 0.00 [11:01:35]line Место: АЗС № 120 "Партнер Нефть" [11:01:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:01:35]line СНО: Общий режим [11:01:35]line Чек 65 20.06.2024 11:01 [11:01:35]line Смена: 354 ФФД: 1.0 [11:01:35]line ЗНМ: 0300000164 [11:01:35]line РНМ: 0000000000092785 [11:01:35]line Версия ККМ: 001 [11:01:35]line ФМ: 0000000000875093 [11:01:35]line ФД: 103880 [11:01:35]line ФПД: 99612940923476 [11:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T110134&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103880&fm=99612940923476&tin=02508201610067®Number=0000000000092785&sum=600000 [11:01:35]Connected sock=10 [11:01:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 93 04 08 01 0E 32 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0E 0C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 95 01 00 35 04 06 00 5A 98 F1 F5 72 54 69 3B 4D 54 60 46 DD BA [11:01:35]written 0, free lines is 4095 [11:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 67 E3 47 00 00 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C8 95 01 00 F4 03 04 00 94 B2 73 66 B6 04 01 00 00 98 E2 ED C9 57 67 77 C9 [11:01:35]CommunicateWithHost err = 0 [11:01:35]CheckOFDResponse [11:01:35]1017 (14) - 77093643461234 [11:01:35]1041 (16) - 0000000000875093 [11:01:35]1040 (4) - 103880 [11:01:35]1012 (4) - 20.06.2024 04:39 [11:01:35]1206 (1) - 0 [11:01:35]OFD Sender: Remove packet 103880 [11:01:35]ProducePacketName [11:01:35]name=ofd_packets/00103880 [11:01:35]NVStorageDeleteData [11:01:35]Write to MH i2c: 01 00 00 59 11 6A [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 07 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: 01 07 00 59 11 00 00 00 00 00 D9 0C 56 [11:01:35]RasterBufferAndPrint [11:01:35]line [11:01:35]line [11:01:35]line [11:01:35]line [11:01:35]line [11:01:35]written 0, free lines is 3296 [11:01:35]MH_Cut [11:01:35]Write to MH i2c: D1 01 00 60 11 01 43 [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: D1 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: D1 01 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: D1 01 00 60 11 00 42 [11:01:35]Write to MH i2c: 01 00 00 61 11 72 [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:36]OFD Sender: No OFD packet to send [11:01:36]*** Cut start [11:01:36]*** Partial cut [11:01:36]*** CUTSNS_PIN = 1 [11:01:36]*** CUTSNS_PIN = 0 [11:01:36]*** Brake cut motor [11:01:37]Read from MH i2c: 01 [11:01:37]MH_I2C_Read... [11:01:37]*** Stop cut motor [11:01:37]*** Cut end [11:01:37]Read from MH i2c: 01 07 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: 01 07 00 61 11 00 00 00 00 00 FF 0F 87 [11:01:37]process_action close_receipt done [11:01:37]requested_data is exist [11:01:37]produce_requested_data [11:01:37]requested_item fm.sn is exist - process it [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 11 00 00 [11:01:37]Write to MH i2c: E2 08 00 62 11 80 11 00 00 00 00 00 00 ED [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 17 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 17 00 62 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [11:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:01:37]wFMCommunicate OK [11:01:37]requested_item fd.num is exist - process it [11:01:37]SAM_PROTO_GetFieldsCounters [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 13 00 00 [11:01:37]Write to MH i2c: E2 08 00 63 11 80 13 00 00 00 00 00 00 F0 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 62 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 62 00 63 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C8 95 01 00 0E 04 04 00 62 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 9B [11:01:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C8 95 01 00 0E 04 04 00 62 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 [11:01:37]wFMCommunicate OK [11:01:37]SAM_PROTO_GetFieldsCounters done [11:01:37]requested_item shift.num is exist - process it [11:01:37]requested_item shift.opened is exist - process it [11:01:37]req_shift_opened [11:01:37]FM_GetShiftState [11:01:37]SAM_PROTO_GetShiftState [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 13 01 00 [11:01:37]Write to MH i2c: E2 08 00 64 11 80 13 01 00 00 00 00 00 F2 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 0E 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 0E 00 64 11 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 41 [11:01:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:01:37]wFMCommunicate OK [11:01:37]SAM_PROTO_GetShiftState done [11:01:37]FM_GetShiftState done [11:01:37]req_shift_opened done [11:01:37]requested_item shift.open_date is exist - process it [11:01:37]req_shift_open_date [11:01:37]req_shift_open_date done [11:01:37]produce_requested_data done [11:01:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103880,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:01:37]process_action_free close_receipt [11:01:37]json_value_free [11:01:37]json_value_free done [11:01:37]process_json_proto returns [11:01:37]Send response to host [11:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103880,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:01:37]free response buf [11:01:37]execute_script done [11:01:37]execute_script returns [11:01:37]free content buf [11:01:37]Sock 9.Close socket [11:01:37]Sock 9.Thread stoped [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:15]accept exits with 7 [11:03:15]New connection [11:03:15]New thread 3067063652 created [11:03:15]Thread 3067207012 joined [11:03:15]Waiting for new connection... [11:03:15] Sock 7.Parse request [11:03:15]Sock 7.Check first char [11:03:15]Sock 7.First char is OK [11:03:15]request: POST /json_proto HTTP/1.0 [11:03:15]Method: POST [11:03:15]URL: /json_proto [11:03:15]Method is POST - this is cgi request [11:03:15]url: /json_proto [11:03:15]query_string will be loaded in cgi processing [11:03:15]execute_cgi json_proto POST (null) [11:03:15]execute_cgi path=json_proto method=POST [11:03:15]POST find Content-Length [11:03:15]Host: 172.17.38.133:8080 [11:03:15]Content-Length: 1213 [11:03:15]Content-Type: application/json [11:03:15] [11:03:15]POST finish read [11:03:15]Found Content-Length = 1213 [11:03: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673214\u000A20.06.2024 10:40\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 66.40\u000A\u0418\u0422\u041E\u0413: 1992.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\u000A4104017;4104018;4104019\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:15]execute_script... [11:03: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673214\u000A20.06.2024 10:40\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 66.40\u000A\u0418\u0422\u041E\u0413: 1992.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\u000A4104017;4104018;4104019\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:15]POST & json_proto [11:03:15]process_json_proto [11:03:15]json parsed OK: [11:03:15]protocol is kg_v1.0 [11:03:15]action value=print_text [11:03:15]process_action print_text [11:03:15]cmd_print_text [11:03:15]ExternCall_PrintAddStr [11:03:15]wPrintStart [11:03:15]Write to MH i2c: 01 00 00 65 11 76 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 65 11 00 00 00 00 00 FF 0F 8B [11:03:15]RasterBufferAndPrint [11:03:15]line *****ТОВАРНЫЙ ЧЕК***** [11:03:15]line АЗС 120 [11:03:15]line Партнер нефть [11:03:15]line 02508201610067 [11:03:15]line Кассир : Дуйшенбиев А. [11:03:15]line Счет N : (1)673214 [11:03:15]line 20.06.2024 10:40 [11:03:15]line ПРОДАЖА [11:03:15]line ТРК (МРК, ГНК): 32 [11:03:15]line Вид ГСМ : 2710124130 [11:03:15]line Аи-92-К-5 [11:03:15]line 30.000 x 66.40 [11:03:15]line ИТОГ: 1992.00 [11:03:15]line Тип оплаты: Талоны: Партнер нефть [11:03:15]line 4104017;4104018;4104019 [11:03:15]line ______________________ [11:03:15]line (подпись) [11:03:15]written 0, free lines is 4095 [11:03:15]Write to MH i2c: 01 00 00 79 11 8A [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 79 11 00 00 00 00 00 1A 0E B9 [11:03:15]RasterBufferAndPrint [11:03:15]line [11:03:15]line [11:03:15]line [11:03:15]line [11:03:15]line [11:03:15]written 0, free lines is 3612 [11:03:15]MH_Cut [11:03:15]Write to MH i2c: D1 01 00 80 11 01 63 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: D1 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: D1 01 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: D1 01 00 80 11 00 62 [11:03:15]Write to MH i2c: 01 00 00 81 11 92 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]*** Cut start [11:03:15]*** Partial cut [11:03:15]*** CUTSNS_PIN = 1 [11:03:16]*** CUTSNS_PIN = 0 [11:03:16]*** Brake cut motor [11:03:16]OFD Sender: No OFD packet to send [11:03:16]Read from MH i2c: 01 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: 01 07 00 [11:03:16]MH_I2C_Read... [11:03:16]*** Stop cut motor [11:03:16]*** Cut end [11:03:16]Read from MH i2c: 01 07 00 81 11 00 00 00 00 00 FF 0F A7 [11:03:16]process_action print_text done [11:03:16]requested_data is exist [11:03:16]produce_requested_data [11:03:16]requested_item fm.sn is exist - process it [11:03:16]wFMCommunicate request_size=4 [11:03:16]MH_SAM_APDU [11:03:16]CAPDU: 80 11 00 00 [11:03:16]Write to MH i2c: E2 08 00 82 11 80 11 00 00 00 00 00 00 0D [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:16]Read from MH i2c: E2 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 17 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 17 00 82 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [11:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:03:16]wFMCommunicate OK [11:03:16]requested_item fd.num is exist - process it [11:03:16]SAM_PROTO_GetFieldsCounters [11:03:16]wFMCommunicate request_size=4 [11:03:16]MH_SAM_APDU [11:03:16]CAPDU: 80 13 00 00 [11:03:16]Write to MH i2c: E2 08 00 83 11 80 13 00 00 00 00 00 00 10 [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:16]Read from MH i2c: E2 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 62 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 62 00 83 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C8 95 01 00 0E 04 04 00 62 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 BB [11:03:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C8 95 01 00 0E 04 04 00 62 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 [11:03:16]wFMCommunicate OK [11:03:16]SAM_PROTO_GetFieldsCounters done [11:03:16]requested_item shift.num is exist - process it [11:03:16]requested_item shift.opened is exist - process it [11:03:16]req_shift_opened [11:03:16]FM_GetShiftState [11:03:16]SAM_PROTO_GetShiftState [11:03:16]wFMCommunicate request_size=4 [11:03:16]MH_SAM_APDU [11:03:16]CAPDU: 80 13 01 00 [11:03:16]Write to MH i2c: E2 08 00 84 11 80 13 01 00 00 00 00 00 12 [11:03:16]Write i2c OK [11:03:16]MH_I2C_Read... [11:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:16]Read from MH i2c: E2 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 0E 00 [11:03:16]MH_I2C_Read... [11:03:16]Read from MH i2c: E2 0E 00 84 11 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 61 [11:03:16]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:03:16]wFMCommunicate OK [11:03:16]SAM_PROTO_GetShiftState done [11:03:16]FM_GetShiftState done [11:03:16]req_shift_opened done [11:03:16]requested_item shift.open_date is exist - process it [11:03:16]req_shift_open_date [11:03:16]req_shift_open_date done [11:03:16]produce_requested_data done [11:03:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103880,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:03:16]process_action_free print_text [11:03:16]json_value_free [11:03:16]json_value_free done [11:03:16]process_json_proto returns [11:03:16]Send response to host [11:03:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103880,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:03:16]free response buf [11:03:16]execute_script done [11:03:16]execute_script returns [11:03:16]free content buf [11:03:16]Sock 7.Close socket [11:03:16]Sock 7.Thread stoped [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:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:11]accept exits with 9 [11:05:11]New connection [11:05:11]New thread 3067207012 created [11:05:11]Thread 3067063652 joined [11:05:11]Waiting for new connection... [11:05:11] Sock 9.Parse request [11:05:11]Sock 9.Check first char [11:05:11]Sock 9.First char is OK [11:05:11]request: POST /json_proto HTTP/1.0 [11:05:11]Method: POST [11:05:11]URL: /json_proto [11:05:11]Method is POST - this is cgi request [11:05:11]url: /json_proto [11:05:11]query_string will be loaded in cgi processing [11:05:11]execute_cgi json_proto POST (null) [11:05:11]execute_cgi path=json_proto method=POST [11:05:11]POST find Content-Length [11:05:11]Host: 172.17.38.133:8080 [11:05:11]Content-Length: 677 [11:05:11]Content-Type: application/json [11:05:11] [11:05:11]POST finish read [11:05:11]Found Content-Length = 677 [11:05:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673215", "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" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:11]execute_script... [11: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)673215", "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" : 73.90, "quantity" : 6.770, "sum" : 500.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:11]POST & json_proto [11:05:11]process_json_proto [11:05:11]json parsed OK: [11:05:11]protocol is kg_v1.0 [11:05:11]action value=close_receipt [11:05:11]process_action close_receipt [11:05:11]cmd_close_receipt [11:05:11]MH_GetDate [11:05:11]Write to MH i2c: F0 00 00 85 11 85 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: F0 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: F0 09 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: F0 09 00 85 11 00 E9 0C 74 66 BD 8F 7C 64 89 [11:05:11]GetLastDocTimeStamp 1718881294 [11:05:11]current date 1718881513 [11:05:11]FM_GetShiftState [11:05:11]SAM_PROTO_GetShiftState [11:05:11]wFMCommunicate request_size=4 [11:05:11]MH_SAM_APDU [11:05:11]CAPDU: 80 13 01 00 [11:05:11]Write to MH i2c: E2 08 00 86 11 80 13 01 00 00 00 00 00 14 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:11]Read from MH i2c: E2 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 0E 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 0E 00 86 11 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 63 [11:05:11]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:05:11]wFMCommunicate OK [11:05:11]SAM_PROTO_GetShiftState done [11:05:11]FM_GetShiftState done [11:05:11]opened in 1718843124 [11:05:11]opened+sec_in_day 1718929524 [11:05:11]quantity*price = 50030 [11:05:11]sum+1 = 50031 [11:05:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 66 20.06.2024 11:05 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103881 ФПД: 91134655677332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T110513&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103881&fm=91134655677332&tin=02508201610067®Number=0000000000092785&sum=50000 [11:05:12]StoreToDocumentArchive [11:05:12]shift 354 fd 103881 [11:05:12]save to /storage/0354/doc_00103881 [11:05:12]save last doc name /storage/0354/doc_00103881 to /storage/kkm_last_doc_name [11:05:12]save OK [11:05:12]Clear old archive folders... [11:05:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:12]tlvbuf is 0081C510 [11:05:12]SAM_PROTO_ClearQueue [11:05:12]wFMCommunicate request_size=4 [11:05:12]MH_SAM_APDU [11:05:12]CAPDU: 80 09 00 00 [11:05:12]Write to MH i2c: E2 08 00 93 11 80 09 00 00 00 00 00 00 16 [11:05:12]Write i2c OK [11:05:12]MH_I2C_Read... [11:05:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:12]Read from MH i2c: E2 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: E2 03 00 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: E2 03 00 93 11 00 90 00 18 [11:05:12]RAPDU: 90 00 [11:05:12]wFMCommunicate OK [11:05:12]SAM_PROTO_ClearQueue done [11:05:12]KKMCreateOFDPacket [11:05:12]OFDProtocolAddRootSTLVToBuf [11:05:12]FM_MakeSignedData [11:05:12]FM_MakeSignedData [11:05:12]SAM_PROTO_SignData [11:05:12]wFMCommunicate request_size=4 [11:05:12]MH_SAM_APDU [11:05:12]CAPDU: 80 0D 01 02 [11:05:12]Write to MH i2c: E2 08 00 94 11 80 0D 01 02 00 00 00 00 1E [11:05:12]Write i2c OK [11:05:12]MH_I2C_Read... [11:05:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:12]Read from MH i2c: E2 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: E2 03 00 [11:05:12]MH_I2C_Read... [11:05:12]Read from MH i2c: E2 03 00 94 11 00 90 00 19 [11:05:12]RAPDU: 90 00 [11:05:12]wFMCommunicate OK [11:05:12]wFMCommunicate request_size=255 [11:05:12]MH_SAM_APDU [11: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 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 E9 0C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 95 01 00 35 04 06 00 52 [11:05:12]Write to MH i2c: E2 02 01 95 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 E9 0C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 95 01 00 35 04 06 00 52 00 00 C5 [11:05:12]Write i2c OK [11:05:12]MH_I2C_Read... [11:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:13]Read from MH i2c: E2 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 03 00 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 03 00 95 11 00 90 00 1A [11:05:13]RAPDU: 90 00 [11:05:13]wFMCommunicate OK [11:05:13]wFMCommunicate request_size=10 [11:05:13]MH_SAM_APDU [11:05:13]CAPDU: 80 0D 02 02 05 E2 F0 C7 43 94 [11:05:13]Write to MH i2c: E2 0D 00 96 11 80 0D 02 02 05 00 E2 F0 C7 43 94 00 00 9B [11:05:13]Write i2c OK [11:05:13]MH_I2C_Read... [11:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:13]Read from MH i2c: E2 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 03 00 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 03 00 96 11 00 90 00 1B [11:05:13]RAPDU: 90 00 [11:05:13]wFMCommunicate OK [11:05:13]wFMCommunicate request_size=4 [11:05:13]MH_SAM_APDU [11:05:13]CAPDU: 80 0D 03 02 [11:05:13]Write to MH i2c: E2 08 00 97 11 80 0D 03 02 00 00 00 00 23 [11:05:13]Write i2c OK [11:05:13]MH_I2C_Read... [11:05:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:13]Read from MH i2c: E2 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 0B 00 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 0B 00 97 11 00 98 10 29 BB D2 72 63 30 90 00 87 [11:05:13]RAPDU: 98 10 29 BB D2 72 63 30 90 00 [11:05:13]wFMCommunicate OK [11:05:13]SAM_PROTO_SignData done [11:05:13]FM_MakeSignedData done [11:05:13]CreateOFDProtocolMessage [11:05:13]wFMCommunicate request_size=4 [11:05:13]MH_SAM_APDU [11:05:13]CAPDU: 80 11 00 00 [11:05:13]Write to MH i2c: E2 08 00 98 11 80 11 00 00 00 00 00 00 23 [11:05:13]Write i2c OK [11:05:13]MH_I2C_Read... [11:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:13]Read from MH i2c: E2 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 17 00 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: E2 17 00 98 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [11:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:05:13]wFMCommunicate OK [11:05:13]CreateOFDProtocolMessage done [11:05:13]OFDSenderStorePacket 103881 [11:05:13]StoreOFDPacket docnum=103881 [11:05:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D4 B4 07 01 E1 58 5A 03 01 00 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 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 E9 0C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 95 01 00 35 04 06 00 52 E2 F0 C7 43 94 98 10 29 BB D2 72 63 30 [11:05:13]CheckFolder [11:05:13]dirname=/storage/ofd_packets [11:05:13]CheckFolder done [11:05:13]ProducePacketName [11:05:13]name=ofd_packets/00103881 [11:05:13]NVStorageSaveData ofd_packets/00103881 [11:05:13]File name is /storage/ofd_packets/00103881 [11:05:13]Write 301 bytes [11:05:13]NVStorageSaveData done [11:05:13]OFDSenderStorePacket done [11:05:13]KKMCreateOFDPacket done [11:05:13]NVStorageSaveData kkm_last_timestamp [11:05:13]File name is /storage/kkm_last_timestamp [11:05:13]Write 4 bytes [11:05:13]NVStorageSaveData done [11:05:13]ExternCall_PrintAddStr [11:05:13]wPrintStart [11:05:13]Write to MH i2c: 01 00 00 99 11 AA [11:05:13]Write i2c OK [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: 01 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: 01 07 00 [11:05:13]MH_I2C_Read... [11:05:13]Read from MH i2c: 01 07 00 99 11 00 00 00 00 00 FF 0F BF [11:05:13]RasterBufferAndPrint [11:05:13]line Счет N : (1)673215 [11:05:13]line ИНН: 02508201610067 [11:05:13]line Контрольно-Кассовый Чек [11:05:13]line ПРОДАЖА [11:05:13]line ТРК (МРК, ГНК) : 31 [11:05:13]line Товар: 2710124500 [11:05:13]line Аи-95-К-5 [11:05:13]line 6.770 * 73.90 [11:05:13]line = 500.30 [11:05:13]line НДС 12% НСП 1% [11:05:13]line > о реализуемом товаре [11:05:13]line ОКРУГЛЕНИЕ: -0.30 [11:05:13]line ИТОГО: 500.00 [11:05:13]line Внесено: 500.00 [11:05:13]line СДАЧА: 0.00 [11:05:13]line НСП 1% : 4.43 [11:05:13]line НДС 12% : 53.13 [11:05:13]line Наличными: 500.00 [11:05:13]line Безнал.: 0.00 [11:05:13]line Место: АЗС № 120 "Партнер Нефть" [11:05:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:05:13]line СНО: Общий режим [11:05:13]line Чек 66 20.06.2024 11:05 [11:05:13]line Смена: 354 ФФД: 1.0 [11:05:13]line ЗНМ: 0300000164 [11:05:13]line РНМ: 0000000000092785 [11:05:13]line Версия ККМ: 001 [11:05:13]line ФМ: 0000000000875093 [11:05:13]line ФД: 103881 [11:05:13]line ФПД: 91134655677332 [11:05:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T110513&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103881&fm=91134655677332&tin=02508201610067®Number=0000000000092785&sum=50000 [11:05:13]written 0, free lines is 4095 [11:05:13]OFD Sender: Processing packet 103881 [packets to send 17, broken 16] [11:05:13]ProducePacketName [11:05:13]name=ofd_packets/00103881 [11:05:13]OFD Sender: To server: pG, [11:05:13]CommunicateWithHost lk.salyk.kg:30040 [11:05:13]ConnectInit lk.salyk.kg [11:05:13]Connected sock=10 [11: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 35 30 39 33 0F 01 00 00 D4 B4 07 01 E1 58 5A 03 01 00 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 72 1A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6E C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 E9 0C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 95 01 00 35 04 06 00 52 E2 F0 C7 43 94 98 10 29 BB D2 72 63 30 [11:05:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BF F4 47 00 2E 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 C9 95 01 00 F4 03 04 00 6E B3 73 66 B6 04 01 00 00 AC BA C3 B5 A4 A9 16 DC [11:05:13]CommunicateWithHost err = 0 [11:05:13]CheckOFDResponse [11:05:13]1017 (14) - 77093643461234 [11:05:13]1041 (16) - 0000000000875093 [11:05:13]1040 (4) - 103881 [11:05:13]1012 (4) - 20.06.2024 04:43 [11:05:13]1206 (1) - 0 [11:05:13]OFD Sender: Remove packet 103881 [11:05:13]ProducePacketName [11:05:13]name=ofd_packets/00103881 [11:05:13]NVStorageDeleteData [11:05:14]Write to MH i2c: 01 00 00 C4 11 D5 [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: 01 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: 01 07 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: 01 07 00 C4 11 00 00 00 00 00 D4 0C BC [11:05:14]RasterBufferAndPrint [11:05:14]line [11:05:14]line [11:05:14]line [11:05:14]line [11:05:14]line [11:05:14]written 0, free lines is 3292 [11:05:14]MH_Cut [11:05:14]Write to MH i2c: D1 01 00 CB 11 01 AE [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: D1 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: D1 01 00 [11:05:14]MH_I2C_Read... [11:05:14]Read from MH i2c: D1 01 00 CB 11 00 AD [11:05:14]Write to MH i2c: 01 00 00 CC 11 DD [11:05:14]Write i2c OK [11:05:14]MH_I2C_Read... [11:05:14]OFD Sender: No OFD packet to send [11:05:14]*** Cut start [11:05:14]*** Partial cut [11:05:14]*** CUTSNS_PIN = 1 [11:05:14]*** CUTSNS_PIN = 0 [11:05:15]*** Brake cut motor [11:05:15]Read from MH i2c: 01 [11:05:15]MH_I2C_Read... [11:05:15]*** Stop cut motor [11:05:15]*** Cut end [11:05:15]Read from MH i2c: 01 07 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: 01 07 00 CC 11 00 00 00 00 00 FF 0F F2 [11:05:15]process_action close_receipt done [11:05:15]requested_data is exist [11:05:15]produce_requested_data [11:05:15]requested_item fm.sn is exist - process it [11:05:15]wFMCommunicate request_size=4 [11:05:15]MH_SAM_APDU [11:05:15]CAPDU: 80 11 00 00 [11:05:15]Write to MH i2c: E2 08 00 CD 11 80 11 00 00 00 00 00 00 58 [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:15]Read from MH i2c: E2 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 17 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 17 00 CD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AB [11:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:05:15]wFMCommunicate OK [11:05:15]requested_item fd.num is exist - process it [11:05:15]SAM_PROTO_GetFieldsCounters [11:05:15]wFMCommunicate request_size=4 [11:05:15]MH_SAM_APDU [11:05:15]CAPDU: 80 13 00 00 [11:05:15]Write to MH i2c: E2 08 00 CE 11 80 13 00 00 00 00 00 00 5B [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:15]Read from MH i2c: E2 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 62 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 62 00 CE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 95 01 00 0E 04 04 00 62 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 0A [11:05:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 95 01 00 0E 04 04 00 62 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 [11:05:15]wFMCommunicate OK [11:05:15]SAM_PROTO_GetFieldsCounters done [11:05:15]requested_item shift.num is exist - process it [11:05:15]requested_item shift.opened is exist - process it [11:05:15]req_shift_opened [11:05:15]FM_GetShiftState [11:05:15]SAM_PROTO_GetShiftState [11:05:15]wFMCommunicate request_size=4 [11:05:15]MH_SAM_APDU [11:05:15]CAPDU: 80 13 01 00 [11:05:15]Write to MH i2c: E2 08 00 CF 11 80 13 01 00 00 00 00 00 5D [11:05:15]Write i2c OK [11:05:15]MH_I2C_Read... [11:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:15]Read from MH i2c: E2 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 0E 00 [11:05:15]MH_I2C_Read... [11:05:15]Read from MH i2c: E2 0E 00 CF 11 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AC [11:05:15]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:05:15]wFMCommunicate OK [11:05:15]SAM_PROTO_GetShiftState done [11:05:15]FM_GetShiftState done [11:05:15]req_shift_opened done [11:05:15]requested_item shift.open_date is exist - process it [11:05:15]req_shift_open_date [11:05:15]req_shift_open_date done [11:05:15]produce_requested_data done [11:05:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103881,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:05:15]process_action_free close_receipt [11:05:15]json_value_free [11:05:15]json_value_free done [11:05:15]process_json_proto returns [11:05:15]Send response to host [11:05:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103881,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:05:15]free response buf [11:05:15]execute_script done [11:05:15]execute_script returns [11:05:15]free content buf [11:05:15]Sock 9.Close socket [11:05:15]Sock 9.Thread stoped [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:07]accept exits with 7 [11:07:07]New connection [11:07:07]New thread 3067063652 created [11:07:07]Thread 3067207012 joined [11:07:07]Waiting for new connection... [11:07:07] Sock 7.Parse request [11:07:07]Sock 7.Check first char [11:07:07]Sock 7.First char is OK [11:07:07]request: POST /json_proto HTTP/1.0 [11:07:07]Method: POST [11:07:07]URL: /json_proto [11:07:07]Method is POST - this is cgi request [11:07:07]url: /json_proto [11:07:07]query_string will be loaded in cgi processing [11:07:07]execute_cgi json_proto POST (null) [11:07:07]execute_cgi path=json_proto method=POST [11:07:07]POST find Content-Length [11:07:07]Host: 172.17.38.133:8080 [11:07:07]Content-Length: 1169 [11:07:07]Content-Type: application/json [11:07:07] [11:07:07]POST finish read [11:07:07]Found Content-Length = 1169 [11:07:07]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673213\u000A20.06.2024 10:44\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 55.820 x 66.40\u000A\u0418\u0422\u041E\u0413: 3706.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088720\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:07]execute_script... [11:07:07]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673213\u000A20.06.2024 10:44\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 55.820 x 66.40\u000A\u0418\u0422\u041E\u0413: 3706.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30088720\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:07]POST & json_proto [11:07:07]process_json_proto [11:07:07]json parsed OK: [11:07:07]protocol is kg_v1.0 [11:07:07]action value=print_text [11:07:07]process_action print_text [11:07:07]cmd_print_text [11:07:07]ExternCall_PrintAddStr [11:07:07]wPrintStart [11:07:07]Write to MH i2c: 01 00 00 D0 11 E1 [11:07:07]Write i2c OK [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: 01 [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: 01 07 00 [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: 01 07 00 D0 11 00 00 00 00 00 FF 0F F6 [11:07:07]RasterBufferAndPrint [11:07:07]line *****ТОВАРНЫЙ ЧЕК***** [11:07:07]line АЗС 120 [11:07:07]line Партнер нефть [11:07:07]line 02508201610067 [11:07:07]line Кассир : Дуйшенбиев А. [11:07:07]line Счет N : (1)673213 [11:07:07]line 20.06.2024 10:44 [11:07:07]line ПРОДАЖА [11:07:07]line ТРК (МРК, ГНК): 42 [11:07:07]line Вид ГСМ : 2710124130 [11:07:07]line Аи-92-К-5 [11:07:07]line 55.820 x 66.40 [11:07:07]line ИТОГ: 3706.45 [11:07:07]line Тип оплаты: Талоны: ТК ГПНА Online [11:07:07]line 30088720 [11:07:07]line ______________________ [11:07:07]line (подпись) [11:07:07]written 0, free lines is 4095 [11:07:07]Write to MH i2c: 01 00 00 E4 11 F5 [11:07:07]Write i2c OK [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: 01 [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: 01 07 00 [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: 01 07 00 E4 11 00 00 00 00 00 12 0E 1C [11:07:07]RasterBufferAndPrint [11:07:07]line [11:07:07]line [11:07:07]line [11:07:07]line [11:07:07]line [11:07:07]written 0, free lines is 3603 [11:07:07]MH_Cut [11:07:07]Write to MH i2c: D1 01 00 EB 11 01 CE [11:07:07]Write i2c OK [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: D1 [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: D1 01 00 [11:07:07]MH_I2C_Read... [11:07:07]Read from MH i2c: D1 01 00 EB 11 00 CD [11:07:07]Write to MH i2c: 01 00 00 EC 11 FD [11:07:07]Write i2c OK [11:07:07]MH_I2C_Read... [11:07:08]*** Cut start [11:07:08]*** Partial cut [11:07:08]*** CUTSNS_PIN = 1 [11:07:08]*** CUTSNS_PIN = 0 [11:07:08]*** Brake cut motor [11:07:08]Read from MH i2c: 01 [11:07:08]MH_I2C_Read... [11:07:08]*** Stop cut motor [11:07:08]*** Cut end [11:07:08]Read from MH i2c: 01 07 00 [11:07:08]MH_I2C_Read... [11:07:08]Read from MH i2c: 01 07 00 EC 11 00 00 00 00 00 FF 0F 12 [11:07:08]process_action print_text done [11:07:08]requested_data is exist [11:07:08]produce_requested_data [11:07:08]requested_item fm.sn is exist - process it [11:07:08]wFMCommunicate request_size=4 [11:07:08]MH_SAM_APDU [11:07:08]CAPDU: 80 11 00 00 [11:07:08]Write to MH i2c: E2 08 00 ED 11 80 11 00 00 00 00 00 00 78 [11:07:08]Write i2c OK [11:07:08]MH_I2C_Read... [11:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:08]Read from MH i2c: E2 [11:07:08]MH_I2C_Read... [11:07:08]Read from MH i2c: E2 17 00 [11:07:08]MH_I2C_Read... [11:07:08]Read from MH i2c: E2 17 00 ED 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CB [11:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:07:08]wFMCommunicate OK [11:07:08]requested_item fd.num is exist - process it [11:07:08]SAM_PROTO_GetFieldsCounters [11:07:08]wFMCommunicate request_size=4 [11:07:08]MH_SAM_APDU [11:07:08]CAPDU: 80 13 00 00 [11:07:08]Write to MH i2c: E2 08 00 EE 11 80 13 00 00 00 00 00 00 7B [11:07:08]Write i2c OK [11:07:08]MH_I2C_Read... [11:07:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:08]Read from MH i2c: E2 [11:07:08]MH_I2C_Read... [11:07:08]Read from MH i2c: E2 62 00 [11:07:08]MH_I2C_Read... [11:07:08]Read from MH i2c: E2 62 00 EE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 95 01 00 0E 04 04 00 62 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 2A [11:07:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 C9 95 01 00 0E 04 04 00 62 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 [11:07:08]wFMCommunicate OK [11:07:08]SAM_PROTO_GetFieldsCounters done [11:07:08]requested_item shift.num is exist - process it [11:07:08]requested_item shift.opened is exist - process it [11:07:08]req_shift_opened [11:07:08]FM_GetShiftState [11:07:08]SAM_PROTO_GetShiftState [11:07:08]wFMCommunicate request_size=4 [11:07:08]MH_SAM_APDU [11:07:08]CAPDU: 80 13 01 00 [11:07:08]Write to MH i2c: E2 08 00 EF 11 80 13 01 00 00 00 00 00 7D [11:07:08]Write i2c OK [11:07:08]MH_I2C_Read... [11:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:09]Read from MH i2c: E2 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: E2 0E 00 [11:07:09]MH_I2C_Read... [11:07:09]Read from MH i2c: E2 0E 00 EF 11 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CC [11:07:09]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:07:09]wFMCommunicate OK [11:07:09]SAM_PROTO_GetShiftState done [11:07:09]FM_GetShiftState done [11:07:09]req_shift_opened done [11:07:09]requested_item shift.open_date is exist - process it [11:07:09]req_shift_open_date [11:07:09]req_shift_open_date done [11:07:09]produce_requested_data done [11:07:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103881,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:07:09]process_action_free print_text [11:07:09]json_value_free [11:07:09]json_value_free done [11:07:09]process_json_proto returns [11:07:09]Send response to host [11:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103881,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:07:09]free response buf [11:07:09]execute_script done [11:07:09]execute_script returns [11:07:09]free content buf [11:07:09]Sock 7.Close socket [11:07:09]Sock 7.Thread stoped [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:03]accept exits with 9 [11:14:03]New connection [11:14:03]New thread 3067207012 created [11:14:03]Thread 3067063652 joined [11:14:03]Waiting for new connection... [11:14:03] Sock 9.Parse request [11:14:03]Sock 9.Check first char [11:14:03]Sock 9.First char is OK [11:14:03]request: POST /json_proto HTTP/1.0 [11:14:03]Method: POST [11:14:03]URL: /json_proto [11:14:03]Method is POST - this is cgi request [11:14:03]url: /json_proto [11:14:03]query_string will be loaded in cgi processing [11:14:03]execute_cgi json_proto POST (null) [11:14:03]execute_cgi path=json_proto method=POST [11:14:03]POST find Content-Length [11:14:03]Host: 172.17.38.133:8080 [11:14:03]Content-Length: 677 [11:14:03]Content-Type: application/json [11:14:03] [11:14:03]POST finish read [11:14:03]Found Content-Length = 677 [11:14:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:03]execute_script... [11:14: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)673216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:03]POST & json_proto [11:14:03]process_json_proto [11:14:03]json parsed OK: [11:14:03]protocol is kg_v1.0 [11:14:03]action value=close_receipt [11:14:03]process_action close_receipt [11:14:03]cmd_close_receipt [11:14:03]MH_GetDate [11:14:03]Write to MH i2c: F0 00 00 F0 11 F0 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: F0 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: F0 09 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: F0 09 00 F0 11 00 FC 0E 74 66 BD 8F 7C 64 09 [11:14:03]GetLastDocTimeStamp 1718881513 [11:14:03]current date 1718882044 [11:14:03]FM_GetShiftState [11:14:03]SAM_PROTO_GetShiftState [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 13 01 00 [11:14:03]Write to MH i2c: E2 08 00 F1 11 80 13 01 00 00 00 00 00 7F [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 0E 00 F1 11 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CE [11:14:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_GetShiftState done [11:14:03]FM_GetShiftState done [11:14:03]opened in 1718843124 [11:14:03]opened+sec_in_day 1718929524 [11:14:03]quantity*price = 50065 [11:14:03]sum+1 = 50067 [11:14:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 67 20.06.2024 11:14 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103882 ФПД: 196566248682481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111404&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103882&fm=196566248682481&tin=02508201610067®Number=0000000000092785&sum=50000 [11:14:04]StoreToDocumentArchive [11:14:04]shift 354 fd 103882 [11:14:04]save to /storage/0354/doc_00103882 [11:14:04]save last doc name /storage/0354/doc_00103882 to /storage/kkm_last_doc_name [11:14:04]save OK [11:14:04]Clear old archive folders... [11:14:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:04]tlvbuf is 00842D60 [11:14:04]SAM_PROTO_ClearQueue [11:14:04]wFMCommunicate request_size=4 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 09 00 00 [11:14:04]Write to MH i2c: E2 08 00 FE 11 80 09 00 00 00 00 00 00 81 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 FE 11 00 90 00 83 [11:14:04]RAPDU: 90 00 [11:14:04]wFMCommunicate OK [11:14:04]SAM_PROTO_ClearQueue done [11:14:04]KKMCreateOFDPacket [11:14:04]OFDProtocolAddRootSTLVToBuf [11:14:04]FM_MakeSignedData [11:14:04]FM_MakeSignedData [11:14:04]SAM_PROTO_SignData [11:14:04]wFMCommunicate request_size=4 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 0D 01 02 [11:14:04]Write to MH i2c: E2 08 00 FF 11 80 0D 01 02 00 00 00 00 89 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 FF 11 00 90 00 84 [11:14:04]RAPDU: 90 00 [11:14:04]wFMCommunicate OK [11:14:04]wFMCommunicate request_size=255 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FC 0E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 95 01 00 35 04 06 00 B2 [11:14:04]Write to MH i2c: E2 02 01 00 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FC 0E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 95 01 00 35 04 06 00 B2 00 00 E0 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:04]Read from MH i2c: E2 03 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 00 12 00 90 00 86 [11:14:04]RAPDU: 90 00 [11:14:04]wFMCommunicate OK [11:14:04]wFMCommunicate request_size=10 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 0D 02 02 05 C6 A5 6D 73 F1 [11:14:04]Write to MH i2c: E2 0D 00 01 12 80 0D 02 02 05 00 C6 A5 6D 73 F1 00 00 D3 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 01 12 00 90 00 87 [11:14:04]RAPDU: 90 00 [11:14:04]wFMCommunicate OK [11:14:04]wFMCommunicate request_size=4 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 0D 03 02 [11:14:04]Write to MH i2c: E2 08 00 02 12 80 0D 03 02 00 00 00 00 8F [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 0B 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 0B 00 02 12 00 E4 91 35 A0 8B 5B 51 24 90 00 35 [11:14:04]RAPDU: E4 91 35 A0 8B 5B 51 24 90 00 [11:14:04]wFMCommunicate OK [11:14:04]SAM_PROTO_SignData done [11:14:04]FM_MakeSignedData done [11:14:04]CreateOFDProtocolMessage [11:14:04]wFMCommunicate request_size=4 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 11 00 00 [11:14:04]Write to MH i2c: E2 08 00 03 12 80 11 00 00 00 00 00 00 8F [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 17 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 17 00 03 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E2 [11:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:14:04]wFMCommunicate OK [11:14:04]CreateOFDProtocolMessage done [11:14:04]OFDSenderStorePacket 103882 [11:14:04]StoreOFDPacket docnum=103882 [11:14:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 36 FC 07 01 14 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FC 0E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 95 01 00 35 04 06 00 B2 C6 A5 6D 73 F1 E4 91 35 A0 8B 5B 51 24 [11:14:04]CheckFolder [11:14:04]dirname=/storage/ofd_packets [11:14:04]CheckFolder done [11:14:04]ProducePacketName [11:14:04]name=ofd_packets/00103882 [11:14:04]NVStorageSaveData ofd_packets/00103882 [11:14:04]File name is /storage/ofd_packets/00103882 [11:14:04]Write 301 bytes [11:14:04]NVStorageSaveData done [11:14:04]OFDSenderStorePacket done [11:14:04]KKMCreateOFDPacket done [11:14:04]NVStorageSaveData kkm_last_timestamp [11:14:04]File name is /storage/kkm_last_timestamp [11:14:04]Write 4 bytes [11:14:04]NVStorageSaveData done [11:14:04]ExternCall_PrintAddStr [11:14:04]wPrintStart [11:14:04]Write to MH i2c: 01 00 00 04 12 16 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: 01 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: 01 07 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: 01 07 00 04 12 00 00 00 00 00 FF 0F 2B [11:14:04]RasterBufferAndPrint [11:14:04]line Счет N : (1)673216 [11:14:04]line ИНН: 02508201610067 [11:14:04]line Контрольно-Кассовый Чек [11:14:04]line ПРОДАЖА [11:14:04]line ТРК (МРК, ГНК) : 32 [11:14:04]line Товар: 2710124130 [11:14:04]line Аи-92-К-5 [11:14:04]line 7.540 * 66.40 [11:14:04]line = 500.66 [11:14:04]line НДС 12% НСП 1% [11:14:04]line > о реализуемом товаре [11:14:04]line ОКРУГЛЕНИЕ: -0.66 [11:14:04]line ИТОГО: 500.00 [11:14:04]line Внесено: 500.00 [11:14:04]line СДАЧА: 0.00 [11:14:04]line НСП 1% : 4.43 [11:14:04]line НДС 12% : 53.17 [11:14:04]line Наличными: 500.00 [11:14:04]line Безнал.: 0.00 [11:14:04]line Место: АЗС № 120 "Партнер Нефть" [11:14:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:14:04]line СНО: Общий режим [11:14:04]line Чек 67 20.06.2024 11:14 [11:14:04]line Смена: 354 ФФД: 1.0 [11:14:04]line ЗНМ: 0300000164 [11:14:04]line РНМ: 0000000000092785 [11:14:04]line Версия ККМ: 001 [11:14:04]line ФМ: 0000000000875093 [11:14:04]line ФД: 103882 [11:14:04]line ФПД: 196566248682481 [11:14:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111404&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103882&fm=196566248682481&tin=02508201610067®Number=0000000000092785&sum=50000 [11:14:05]OFD Sender: Processing packet 103882 [packets to send 17, broken 16] [11:14:05]ProducePacketName [11:14:05]name=ofd_packets/00103882 [11:14:05]OFD Sender: To server: pG, [11:14:05]CommunicateWithHost lk.salyk.kg:30040 [11:14:05]ConnectInit lk.salyk.kg [11:14:05]written 0, free lines is 4095 [11:14:05]Connected sock=10 [11:14:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 36 FC 07 01 14 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FC 0E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 95 01 00 35 04 06 00 B2 C6 A5 6D 73 F1 E4 91 35 A0 8B 5B 51 24 [11:14:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 35 CA 47 00 48 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CA 95 01 00 F4 03 04 00 82 B5 73 66 B6 04 01 00 00 7A 5E 07 8A 64 64 94 74 [11:14:05]CommunicateWithHost err = 0 [11:14:05]CheckOFDResponse [11:14:05]1017 (14) - 77093643461234 [11:14:05]1041 (16) - 0000000000875093 [11:14:05]1040 (4) - 103882 [11:14:05]1012 (4) - 20.06.2024 04:52 [11:14:05]1206 (1) - 0 [11:14:05]OFD Sender: Remove packet 103882 [11:14:05]ProducePacketName [11:14:05]name=ofd_packets/00103882 [11:14:05]NVStorageDeleteData [11:14:05]Write to MH i2c: 01 00 00 2F 12 41 [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: 01 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: 01 07 00 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: 01 07 00 2F 12 00 00 00 00 00 E4 0C 38 [11:14:05]RasterBufferAndPrint [11:14:05]line [11:14:05]line [11:14:05]line [11:14:05]line [11:14:05]line [11:14:05]written 0, free lines is 3306 [11:14:05]MH_Cut [11:14:05]Write to MH i2c: D1 01 00 36 12 01 1A [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: D1 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: D1 01 00 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: D1 01 00 36 12 00 19 [11:14:05]Write to MH i2c: 01 00 00 37 12 49 [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:06]OFD Sender: No OFD packet to send [11:14:06]*** Cut start [11:14:06]*** Partial cut [11:14:06]*** CUTSNS_PIN = 1 [11:14:06]*** CUTSNS_PIN = 0 [11:14:06]*** Brake cut motor [11:14:07]Read from MH i2c: 01 [11:14:07]MH_I2C_Read... [11:14:07]*** Stop cut motor [11:14:07]*** Cut end [11:14:07]Read from MH i2c: 01 07 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: 01 07 00 37 12 00 00 00 00 00 FF 0F 5E [11:14:07]process_action close_receipt done [11:14:07]requested_data is exist [11:14:07]produce_requested_data [11:14:07]requested_item fm.sn is exist - process it [11:14:07]wFMCommunicate request_size=4 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 11 00 00 [11:14:07]Write to MH i2c: E2 08 00 38 12 80 11 00 00 00 00 00 00 C4 [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 17 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 17 00 38 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 17 [11:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:14:07]wFMCommunicate OK [11:14:07]requested_item fd.num is exist - process it [11:14:07]SAM_PROTO_GetFieldsCounters [11:14:07]wFMCommunicate request_size=4 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 13 00 00 [11:14:07]Write to MH i2c: E2 08 00 39 12 80 13 00 00 00 00 00 00 C7 [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 62 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 62 00 39 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CA 95 01 00 0E 04 04 00 62 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 7A [11:14:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CA 95 01 00 0E 04 04 00 62 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 [11:14:07]wFMCommunicate OK [11:14:07]SAM_PROTO_GetFieldsCounters done [11:14:07]requested_item shift.num is exist - process it [11:14:07]requested_item shift.opened is exist - process it [11:14:07]req_shift_opened [11:14:07]FM_GetShiftState [11:14:07]SAM_PROTO_GetShiftState [11:14:07]wFMCommunicate request_size=4 [11:14:07]MH_SAM_APDU [11:14:07]CAPDU: 80 13 01 00 [11:14:07]Write to MH i2c: E2 08 00 3A 12 80 13 01 00 00 00 00 00 C9 [11:14:07]Write i2c OK [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:07]Read from MH i2c: E2 0E 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 0E 00 3A 12 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 18 [11:14:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:14:07]wFMCommunicate OK [11:14:07]SAM_PROTO_GetShiftState done [11:14:07]FM_GetShiftState done [11:14:07]req_shift_opened done [11:14:07]requested_item shift.open_date is exist - process it [11:14:07]req_shift_open_date [11:14:07]req_shift_open_date done [11:14:07]produce_requested_data done [11:14:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103882,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:14:07]process_action_free close_receipt [11:14:07]json_value_free [11:14:07]json_value_free done [11:14:07]process_json_proto returns [11:14:07]Send response to host [11:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103882,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:14:07]free response buf [11:14:07]execute_script done [11:14:07]execute_script returns [11:14:07]free content buf [11:14:07]Sock 9.Close socket [11:14:07]Sock 9.Thread stoped [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:37]accept exits with 7 [11:15:37]New connection [11:15:37]New thread 3067063652 created [11:15:37]Thread 3067207012 joined [11:15:37]Waiting for new connection... [11:15:37] Sock 7.Parse request [11:15:37]Sock 7.Check first char [11:15:37]Sock 7.First char is OK [11:15:37]request: POST /json_proto HTTP/1.0 [11:15:37]Method: POST [11:15:37]URL: /json_proto [11:15:37]Method is POST - this is cgi request [11:15:37]url: /json_proto [11:15:37]query_string will be loaded in cgi processing [11:15:37]execute_cgi json_proto POST (null) [11:15:37]execute_cgi path=json_proto method=POST [11:15:37]POST find Content-Length [11:15:37]Host: 172.17.38.133:8080 [11:15:37]Content-Length: 682 [11:15:37]Content-Type: application/json [11:15:37] [11:15:37]POST finish read [11:15:37]Found Content-Length = 682 [11:15:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:37]execute_script... [11:15: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)673218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:37]POST & json_proto [11:15:37]process_json_proto [11:15:37]json parsed OK: [11:15:37]protocol is kg_v1.0 [11:15:37]action value=close_receipt [11:15:37]process_action close_receipt [11:15:37]cmd_close_receipt [11:15:37]MH_GetDate [11:15:37]Write to MH i2c: F0 00 00 3B 12 3C [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: F0 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: F0 09 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: F0 09 00 3B 12 00 5A 0F 74 66 BD 8F 7C 64 B4 [11:15:37]GetLastDocTimeStamp 1718882044 [11:15:37]current date 1718882138 [11:15:37]FM_GetShiftState [11:15:37]SAM_PROTO_GetShiftState [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 13 01 00 [11:15:37]Write to MH i2c: E2 08 00 3C 12 80 13 01 00 00 00 00 00 CB [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0E 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0E 00 3C 12 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1A [11:15:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:15:37]wFMCommunicate OK [11:15:37]SAM_PROTO_GetShiftState done [11:15:37]FM_GetShiftState done [11:15:37]opened in 1718843124 [11:15:37]opened+sec_in_day 1718929524 [11:15:37]quantity*price = 100064 [11:15:37]sum+1 = 100066 [11:15:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 68 20.06.2024 11:15 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103883 ФПД: 248249562254322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103883&fm=248249562254322&tin=02508201610067®Number=0000000000092785&sum=100000 [11:15:38]StoreToDocumentArchive [11:15:38]shift 354 fd 103883 [11:15:38]save to /storage/0354/doc_00103883 [11:15:38]save last doc name /storage/0354/doc_00103883 to /storage/kkm_last_doc_name [11:15:38]save OK [11:15:38]Clear old archive folders... [11:15:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:38]tlvbuf is 00838410 [11:15:38]SAM_PROTO_ClearQueue [11:15:38]wFMCommunicate request_size=4 [11:15:38]MH_SAM_APDU [11:15:38]CAPDU: 80 09 00 00 [11:15:38]Write to MH i2c: E2 08 00 49 12 80 09 00 00 00 00 00 00 CD [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:38]Read from MH i2c: E2 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 03 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 03 00 49 12 00 90 00 CF [11:15:38]RAPDU: 90 00 [11:15:38]wFMCommunicate OK [11:15:38]SAM_PROTO_ClearQueue done [11:15:38]KKMCreateOFDPacket [11:15:38]OFDProtocolAddRootSTLVToBuf [11:15:38]FM_MakeSignedData [11:15:38]FM_MakeSignedData [11:15:38]SAM_PROTO_SignData [11:15:38]wFMCommunicate request_size=4 [11:15:38]MH_SAM_APDU [11:15:38]CAPDU: 80 0D 01 02 [11:15:38]Write to MH i2c: E2 08 00 4A 12 80 0D 01 02 00 00 00 00 D5 [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:38]Read from MH i2c: E2 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 03 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 03 00 4A 12 00 90 00 D0 [11:15:38]RAPDU: 90 00 [11:15:38]wFMCommunicate OK [11:15:38]wFMCommunicate request_size=255 [11:15:38]MH_SAM_APDU [11:15: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 5A 0F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 95 01 00 35 04 06 00 E1 [11:15:38]Write to MH i2c: E2 02 01 4B 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 5A 0F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 95 01 00 35 04 06 00 E1 00 00 0B [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:38]Read from MH i2c: E2 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 03 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 03 00 4B 12 00 90 00 D1 [11:15:38]RAPDU: 90 00 [11:15:38]wFMCommunicate OK [11:15:38]wFMCommunicate request_size=10 [11:15:38]MH_SAM_APDU [11:15:38]CAPDU: 80 0D 02 02 05 C8 1A F9 4B F2 [11:15:38]Write to MH i2c: E2 0D 00 4C 12 80 0D 02 02 05 00 C8 1A F9 4B F2 00 00 FA [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:38]Read from MH i2c: E2 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 03 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 03 00 4C 12 00 90 00 D2 [11:15:38]RAPDU: 90 00 [11:15:38]wFMCommunicate OK [11:15:38]wFMCommunicate request_size=4 [11:15:38]MH_SAM_APDU [11:15:38]CAPDU: 80 0D 03 02 [11:15:38]Write to MH i2c: E2 08 00 4D 12 80 0D 03 02 00 00 00 00 DA [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:38]Read from MH i2c: E2 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 0B 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 0B 00 4D 12 00 FB F3 58 EE D1 B7 67 B9 90 00 B7 [11:15:38]RAPDU: FB F3 58 EE D1 B7 67 B9 90 00 [11:15:38]wFMCommunicate OK [11:15:38]SAM_PROTO_SignData done [11:15:38]FM_MakeSignedData done [11:15:38]CreateOFDProtocolMessage [11:15:38]wFMCommunicate request_size=4 [11:15:38]MH_SAM_APDU [11:15:38]CAPDU: 80 11 00 00 [11:15:38]Write to MH i2c: E2 08 00 4E 12 80 11 00 00 00 00 00 00 DA [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:38]Read from MH i2c: E2 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 17 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: E2 17 00 4E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2D [11:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:15:38]wFMCommunicate OK [11:15:38]CreateOFDProtocolMessage done [11:15:38]OFDSenderStorePacket 103883 [11:15:38]StoreOFDPacket docnum=103883 [11:15:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 49 75 07 01 AD 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 5A 0F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 95 01 00 35 04 06 00 E1 C8 1A F9 4B F2 FB F3 58 EE D1 B7 67 B9 [11:15:38]CheckFolder [11:15:38]dirname=/storage/ofd_packets [11:15:38]CheckFolder done [11:15:38]ProducePacketName [11:15:38]name=ofd_packets/00103883 [11:15:38]NVStorageSaveData ofd_packets/00103883 [11:15:38]File name is /storage/ofd_packets/00103883 [11:15:38]Write 301 bytes [11:15:38]NVStorageSaveData done [11:15:38]OFDSenderStorePacket done [11:15:38]KKMCreateOFDPacket done [11:15:38]NVStorageSaveData kkm_last_timestamp [11:15:38]File name is /storage/kkm_last_timestamp [11:15:38]Write 4 bytes [11:15:38]NVStorageSaveData done [11:15:38]ExternCall_PrintAddStr [11:15:38]wPrintStart [11:15:38]Write to MH i2c: 01 00 00 4F 12 61 [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 07 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 07 00 4F 12 00 00 00 00 00 FF 0F 76 [11:15:38]RasterBufferAndPrint [11:15:38]line Счет N : (1)673218 [11:15:38]line ИНН: 02508201610067 [11:15:38]line Контрольно-Кассовый Чек [11:15:38]line ПРОДАЖА [11:15:38]line ТРК (МРК, ГНК) : 32 [11:15:38]line Товар: 2710124130 [11:15:38]line Аи-92-К-5 [11:15:38]line 15.070 * 66.40 [11:15:38]line = 1000.65 [11:15:38]line НДС 12% НСП 1% [11:15:38]line > о реализуемом товаре [11:15:38]line ОКРУГЛЕНИЕ: -0.65 [11:15:38]line ИТОГО: 1000.00 [11:15:38]line Внесено: 1000.00 [11:15:38]line СДАЧА: 0.00 [11:15:38]line НСП 1% : 8.85 [11:15:38]line НДС 12% : 106.26 [11:15:38]line Наличными: 1000.00 [11:15:38]line Безнал.: 0.00 [11:15:38]line Место: АЗС № 120 "Партнер Нефть" [11:15:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:15:38]line СНО: Общий режим [11:15:38]line Чек 68 20.06.2024 11:15 [11:15:38]line Смена: 354 ФФД: 1.0 [11:15:38]line ЗНМ: 0300000164 [11:15:38]line РНМ: 0000000000092785 [11:15:38]line Версия ККМ: 001 [11:15:38]line ФМ: 0000000000875093 [11:15:38]line ФД: 103883 [11:15:38]line ФПД: 248249562254322 [11:15:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103883&fm=248249562254322&tin=02508201610067®Number=0000000000092785&sum=100000 [11:15:39]OFD Sender: Processing packet 103883 [packets to send 17, broken 16] [11:15:39]ProducePacketName [11:15:39]name=ofd_packets/00103883 [11:15:39]OFD Sender: To server: pG, [11:15:39]CommunicateWithHost lk.salyk.kg:30040 [11:15:39]ConnectInit lk.salyk.kg [11:15:39]written 0, free lines is 4095 [11:15:39]Connected sock=10 [11:15:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 49 75 07 01 AD 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 5A 0F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 95 01 00 35 04 06 00 E1 C8 1A F9 4B F2 FB F3 58 EE D1 B7 67 B9 [11:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 55 22 47 00 1F F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CB 95 01 00 F4 03 04 00 E0 B5 73 66 B6 04 01 00 00 10 51 84 04 EF DD 8A DF [11:15:39]CommunicateWithHost err = 0 [11:15:39]CheckOFDResponse [11:15:39]1017 (14) - 77093643461234 [11:15:39]1041 (16) - 0000000000875093 [11:15:39]1040 (4) - 103883 [11:15:39]1012 (4) - 20.06.2024 04:53 [11:15:39]1206 (1) - 0 [11:15:39]OFD Sender: Remove packet 103883 [11:15:39]ProducePacketName [11:15:39]name=ofd_packets/00103883 [11:15:39]NVStorageDeleteData [11:15:39]Write to MH i2c: 01 00 00 7A 12 8C [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 07 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: 01 07 00 7A 12 00 00 00 00 00 DD 0C 7C [11:15:39]RasterBufferAndPrint [11:15:39]line [11:15:39]line [11:15:39]line [11:15:39]line [11:15:39]line [11:15:39]written 0, free lines is 3299 [11:15:39]MH_Cut [11:15:39]Write to MH i2c: D1 01 00 81 12 01 65 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: D1 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: D1 01 00 [11:15:39]MH_I2C_Read... [11:15:39]Read from MH i2c: D1 01 00 81 12 00 64 [11:15:39]Write to MH i2c: 01 00 00 82 12 94 [11:15:39]Write i2c OK [11:15:39]MH_I2C_Read... [11:15:39]OFD Sender: No OFD packet to send [11:15:40]*** Cut start [11:15:40]*** Partial cut [11:15:40]*** CUTSNS_PIN = 1 [11:15:40]*** CUTSNS_PIN = 0 [11:15:40]*** Brake cut motor [11:15:40]Read from MH i2c: 01 [11:15:40]MH_I2C_Read... [11:15:40]*** Stop cut motor [11:15:40]*** Cut end [11:15:40]Read from MH i2c: 01 07 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 82 12 00 00 00 00 00 FF 0F A9 [11:15:40]process_action close_receipt done [11:15:40]requested_data is exist [11:15:40]produce_requested_data [11:15:40]requested_item fm.sn is exist - process it [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 11 00 00 [11:15:40]Write to MH i2c: E2 08 00 83 12 80 11 00 00 00 00 00 00 0F [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 17 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 17 00 83 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 62 [11:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:15:40]wFMCommunicate OK [11:15:40]requested_item fd.num is exist - process it [11:15:40]SAM_PROTO_GetFieldsCounters [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 13 00 00 [11:15:40]Write to MH i2c: E2 08 00 84 12 80 13 00 00 00 00 00 00 12 [11:15:41]Write i2c OK [11:15:41]MH_I2C_Read... [11:15:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:41]Read from MH i2c: E2 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: E2 62 00 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: E2 62 00 84 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CB 95 01 00 0E 04 04 00 62 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 C9 [11:15:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CB 95 01 00 0E 04 04 00 62 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 [11:15:41]wFMCommunicate OK [11:15:41]SAM_PROTO_GetFieldsCounters done [11:15:41]requested_item shift.num is exist - process it [11:15:41]requested_item shift.opened is exist - process it [11:15:41]req_shift_opened [11:15:41]FM_GetShiftState [11:15:41]SAM_PROTO_GetShiftState [11:15:41]wFMCommunicate request_size=4 [11:15:41]MH_SAM_APDU [11:15:41]CAPDU: 80 13 01 00 [11:15:41]Write to MH i2c: E2 08 00 85 12 80 13 01 00 00 00 00 00 14 [11:15:41]Write i2c OK [11:15:41]MH_I2C_Read... [11:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:41]Read from MH i2c: E2 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: E2 0E 00 [11:15:41]MH_I2C_Read... [11:15:41]Read from MH i2c: E2 0E 00 85 12 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 63 [11:15:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:15:41]wFMCommunicate OK [11:15:41]SAM_PROTO_GetShiftState done [11:15:41]FM_GetShiftState done [11:15:41]req_shift_opened done [11:15:41]requested_item shift.open_date is exist - process it [11:15:41]req_shift_open_date [11:15:41]req_shift_open_date done [11:15:41]produce_requested_data done [11:15:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103883,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:15:41]process_action_free close_receipt [11:15:41]json_value_free [11:15:41]json_value_free done [11:15:41]process_json_proto returns [11:15:41]Send response to host [11:15:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103883,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:15:41]free response buf [11:15:41]execute_script done [11:15:41]execute_script returns [11:15:41]free content buf [11:15:41]Sock 7.Close socket [11:15:41]Sock 7.Thread stoped [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:10]accept exits with 9 [11:16:10]New connection [11:16:10]New thread 3067207012 created [11:16:10]Thread 3067063652 joined [11:16:10]Waiting for new connection... [11:16:10] Sock 9.Parse request [11:16:10]Sock 9.Check first char [11:16:10]Sock 9.First char is OK [11:16:10]request: POST /json_proto HTTP/1.0 [11:16:10]Method: POST [11:16:10]URL: /json_proto [11:16:10]Method is POST - this is cgi request [11:16:10]url: /json_proto [11:16:10]query_string will be loaded in cgi processing [11:16:10]execute_cgi json_proto POST (null) [11:16:10]execute_cgi path=json_proto method=POST [11:16:10]POST find Content-Length [11:16:10]Host: 172.17.38.133:8080 [11:16:10]Content-Length: 677 [11:16:10]Content-Type: application/json [11:16:10] [11:16:10]POST finish read [11:16:10]Found Content-Length = 677 [11:16:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:10]execute_script... [11:16: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)673217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:10]POST & json_proto [11:16:10]process_json_proto [11:16:10]json parsed OK: [11:16:10]protocol is kg_v1.0 [11:16:10]action value=close_receipt [11:16:10]process_action close_receipt [11:16:10]cmd_close_receipt [11:16:10]MH_GetDate [11:16:10]Write to MH i2c: F0 00 00 86 12 87 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: F0 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: F0 09 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: F0 09 00 86 12 00 7C 0F 74 66 BD 8F 7C 64 21 [11:16:10]GetLastDocTimeStamp 1718882138 [11:16:10]current date 1718882172 [11:16:10]FM_GetShiftState [11:16:10]SAM_PROTO_GetShiftState [11:16:10]wFMCommunicate request_size=4 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 13 01 00 [11:16:10]Write to MH i2c: E2 08 00 87 12 80 13 01 00 00 00 00 00 16 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 0E 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 0E 00 87 12 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 65 [11:16:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:16:10]wFMCommunicate OK [11:16:10]SAM_PROTO_GetShiftState done [11:16:10]FM_GetShiftState done [11:16:10]opened in 1718843124 [11:16:10]opened+sec_in_day 1718929524 [11:16:10]quantity*price = 50065 [11:16:10]sum+1 = 50067 [11:16:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 69 20.06.2024 11:16 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103884 ФПД: 171907994649086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111612&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103884&fm=171907994649086&tin=02508201610067®Number=0000000000092785&sum=50000 [11:16:11]StoreToDocumentArchive [11:16:11]shift 354 fd 103884 [11:16:11]save to /storage/0354/doc_00103884 [11:16:11]save last doc name /storage/0354/doc_00103884 to /storage/kkm_last_doc_name [11:16:11]save OK [11:16:11]Clear old archive folders... [11:16:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:11]tlvbuf is 0085CB70 [11:16:11]SAM_PROTO_ClearQueue [11:16:11]wFMCommunicate request_size=4 [11:16:11]MH_SAM_APDU [11:16:11]CAPDU: 80 09 00 00 [11:16:11]Write to MH i2c: E2 08 00 94 12 80 09 00 00 00 00 00 00 18 [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:11]Read from MH i2c: E2 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 03 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 03 00 94 12 00 90 00 1A [11:16:11]RAPDU: 90 00 [11:16:11]wFMCommunicate OK [11:16:11]SAM_PROTO_ClearQueue done [11:16:11]KKMCreateOFDPacket [11:16:11]OFDProtocolAddRootSTLVToBuf [11:16:11]FM_MakeSignedData [11:16:11]FM_MakeSignedData [11:16:11]SAM_PROTO_SignData [11:16:11]wFMCommunicate request_size=4 [11:16:11]MH_SAM_APDU [11:16:11]CAPDU: 80 0D 01 02 [11:16:11]Write to MH i2c: E2 08 00 95 12 80 0D 01 02 00 00 00 00 20 [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 [11:16:11]MH_I2C_Read... [11:16:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:11]Read from MH i2c: E2 03 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: E2 03 00 95 12 00 90 00 1B [11:16:11]RAPDU: 90 00 [11:16:11]wFMCommunicate OK [11:16:11]wFMCommunicate request_size=255 [11:16:11]MH_SAM_APDU [11:16: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7C 0F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 95 01 00 35 04 06 00 9C [11:16:11]Write to MH i2c: E2 02 01 96 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7C 0F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 95 01 00 35 04 06 00 9C 00 00 E5 [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:12]Read from MH i2c: E2 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 03 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 03 00 96 12 00 90 00 1C [11:16:12]RAPDU: 90 00 [11:16:12]wFMCommunicate OK [11:16:12]wFMCommunicate request_size=10 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 0D 02 02 05 59 72 F4 81 FE [11:16:12]Write to MH i2c: E2 0D 00 97 12 80 0D 02 02 05 00 59 72 F4 81 FE 00 00 6B [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:12]Read from MH i2c: E2 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 03 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 03 00 97 12 00 90 00 1D [11:16:12]RAPDU: 90 00 [11:16:12]wFMCommunicate OK [11:16:12]wFMCommunicate request_size=4 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 0D 03 02 [11:16:12]Write to MH i2c: E2 08 00 98 12 80 0D 03 02 00 00 00 00 25 [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:12]Read from MH i2c: E2 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 0B 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 0B 00 98 12 00 E6 E2 B8 40 2E A8 49 52 90 00 57 [11:16:12]RAPDU: E6 E2 B8 40 2E A8 49 52 90 00 [11:16:12]wFMCommunicate OK [11:16:12]SAM_PROTO_SignData done [11:16:12]FM_MakeSignedData done [11:16:12]CreateOFDProtocolMessage [11:16:12]wFMCommunicate request_size=4 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 11 00 00 [11:16:12]Write to MH i2c: E2 08 00 99 12 80 11 00 00 00 00 00 00 25 [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:12]Read from MH i2c: E2 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 17 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 17 00 99 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 78 [11:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:16:12]wFMCommunicate OK [11:16:12]CreateOFDProtocolMessage done [11:16:12]OFDSenderStorePacket 103884 [11:16:12]StoreOFDPacket docnum=103884 [11:16:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 46 85 07 01 68 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7C 0F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 95 01 00 35 04 06 00 9C 59 72 F4 81 FE E6 E2 B8 40 2E A8 49 52 [11:16:12]CheckFolder [11:16:12]dirname=/storage/ofd_packets [11:16:12]CheckFolder done [11:16:12]ProducePacketName [11:16:12]name=ofd_packets/00103884 [11:16:12]NVStorageSaveData ofd_packets/00103884 [11:16:12]File name is /storage/ofd_packets/00103884 [11:16:12]Write 301 bytes [11:16:12]NVStorageSaveData done [11:16:12]OFDSenderStorePacket done [11:16:12]KKMCreateOFDPacket done [11:16:12]NVStorageSaveData kkm_last_timestamp [11:16:12]File name is /storage/kkm_last_timestamp [11:16:12]Write 4 bytes [11:16:12]NVStorageSaveData done [11:16:12]ExternCall_PrintAddStr [11:16:12]wPrintStart [11:16:12]Write to MH i2c: 01 00 00 9A 12 AC [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 07 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 07 00 9A 12 00 00 00 00 00 FF 0F C1 [11:16:12]RasterBufferAndPrint [11:16:12]line Счет N : (1)673217 [11:16:12]line ИНН: 02508201610067 [11:16:12]line Контрольно-Кассовый Чек [11:16:12]line ПРОДАЖА [11:16:12]line ТРК (МРК, ГНК) : 42 [11:16:12]line Товар: 2710124130 [11:16:12]line Аи-92-К-5 [11:16:12]line 7.540 * 66.40 [11:16:12]line = 500.66 [11:16:12]line НДС 12% НСП 1% [11:16:12]line > о реализуемом товаре [11:16:12]line ОКРУГЛЕНИЕ: -0.66 [11:16:12]line ИТОГО: 500.00 [11:16:12]line Внесено: 500.00 [11:16:12]line СДАЧА: 0.00 [11:16:12]line НСП 1% : 4.43 [11:16:12]line НДС 12% : 53.17 [11:16:12]line Наличными: 500.00 [11:16:12]line Безнал.: 0.00 [11:16:12]line Место: АЗС № 120 "Партнер Нефть" [11:16:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:16:12]line СНО: Общий режим [11:16:12]line Чек 69 20.06.2024 11:16 [11:16:12]line Смена: 354 ФФД: 1.0 [11:16:12]line ЗНМ: 0300000164 [11:16:12]line РНМ: 0000000000092785 [11:16:12]line Версия ККМ: 001 [11:16:12]line ФМ: 0000000000875093 [11:16:12]line ФД: 103884 [11:16:12]line ФПД: 171907994649086 [11:16:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111612&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103884&fm=171907994649086&tin=02508201610067®Number=0000000000092785&sum=50000 [11:16:12]OFD Sender: Processing packet 103884 [packets to send 17, broken 16] [11:16:12]ProducePacketName [11:16:12]name=ofd_packets/00103884 [11:16:12]OFD Sender: To server: pG, [11:16:12]CommunicateWithHost lk.salyk.kg:30040 [11:16:12]ConnectInit lk.salyk.kg [11:16:12]written 0, free lines is 4095 [11:16:12]Connected sock=10 [11:16:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 46 85 07 01 68 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 7C 0F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 95 01 00 35 04 06 00 9C 59 72 F4 81 FE E6 E2 B8 40 2E A8 49 52 [11:16:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AE 46 47 00 72 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CC 95 01 00 F4 03 04 00 02 B6 73 66 B6 04 01 00 00 A7 96 DD 4D F1 E4 2E 55 [11:16:13]CommunicateWithHost err = 0 [11:16:13]CheckOFDResponse [11:16:13]1017 (14) - 77093643461234 [11:16:13]1041 (16) - 0000000000875093 [11:16:13]1040 (4) - 103884 [11:16:13]1012 (4) - 20.06.2024 04:54 [11:16:13]1206 (1) - 0 [11:16:13]OFD Sender: Remove packet 103884 [11:16:13]ProducePacketName [11:16:13]name=ofd_packets/00103884 [11:16:13]NVStorageDeleteData [11:16:13]Write to MH i2c: 01 00 00 C5 12 D7 [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 07 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 07 00 C5 12 00 00 00 00 00 E8 0C D2 [11:16:13]RasterBufferAndPrint [11:16:13]line [11:16:13]line [11:16:13]line [11:16:13]line [11:16:13]line [11:16:13]written 0, free lines is 3310 [11:16:13]MH_Cut [11:16:13]Write to MH i2c: D1 01 00 CC 12 01 B0 [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: D1 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: D1 01 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: D1 01 00 CC 12 00 AF [11:16:13]Write to MH i2c: 01 00 00 CD 12 DF [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]OFD Sender: No OFD packet to send [11:16:13]*** Cut start [11:16:13]*** Partial cut [11:16:13]*** CUTSNS_PIN = 1 [11:16:13]*** CUTSNS_PIN = 0 [11:16:14]*** Brake cut motor [11:16:14]Read from MH i2c: 01 [11:16:14]MH_I2C_Read... [11:16:14]*** Stop cut motor [11:16:14]*** Cut end [11:16:14]Read from MH i2c: 01 07 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 FF 0F F4 [11:16:14]process_action close_receipt done [11:16:14]requested_data is exist [11:16:14]produce_requested_data [11:16:14]requested_item fm.sn is exist - process it [11:16:14]wFMCommunicate request_size=4 [11:16:14]MH_SAM_APDU [11:16:14]CAPDU: 80 11 00 00 [11:16:14]Write to MH i2c: E2 08 00 CE 12 80 11 00 00 00 00 00 00 5A [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:14]Read from MH i2c: E2 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: E2 17 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: E2 17 00 CE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [11:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:16:14]wFMCommunicate OK [11:16:14]requested_item fd.num is exist - process it [11:16:14]SAM_PROTO_GetFieldsCounters [11:16:14]wFMCommunicate request_size=4 [11:16:14]MH_SAM_APDU [11:16:14]CAPDU: 80 13 00 00 [11:16:14]Write to MH i2c: E2 08 00 CF 12 80 13 00 00 00 00 00 00 5D [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:14]Read from MH i2c: E2 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: E2 62 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: E2 62 00 CF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CC 95 01 00 0E 04 04 00 62 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 18 [11:16:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CC 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:14]wFMCommunicate OK [11:16:14]SAM_PROTO_GetFieldsCounters done [11:16:14]requested_item shift.num is exist - process it [11:16:14]requested_item shift.opened is exist - process it [11:16:14]req_shift_opened [11:16:14]FM_GetShiftState [11:16:14]SAM_PROTO_GetShiftState [11:16:14]wFMCommunicate request_size=4 [11:16:14]MH_SAM_APDU [11:16:14]CAPDU: 80 13 01 00 [11:16:14]Write to MH i2c: E2 08 00 D0 12 80 13 01 00 00 00 00 00 5F [11:16:14]Write i2c OK [11:16:14]MH_I2C_Read... [11:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:14]Read from MH i2c: E2 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: E2 0E 00 [11:16:14]MH_I2C_Read... [11:16:14]Read from MH i2c: E2 0E 00 D0 12 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AE [11:16:14]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:16:14]wFMCommunicate OK [11:16:14]SAM_PROTO_GetShiftState done [11:16:14]FM_GetShiftState done [11:16:14]req_shift_opened done [11:16:14]requested_item shift.open_date is exist - process it [11:16:14]req_shift_open_date [11:16:14]req_shift_open_date done [11:16:14]produce_requested_data done [11:16:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103884,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:16:14]process_action_free close_receipt [11:16:14]json_value_free [11:16:14]json_value_free done [11:16:14]process_json_proto returns [11:16:14]Send response to host [11:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103884,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:16:14]free response buf [11:16:14]execute_script done [11:16:14]execute_script returns [11:16:14]free content buf [11:16:14]Sock 9.Close socket [11:16:14]Sock 9.Thread stoped [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:40]int [11:17:40]Write to MH i2c: 01 00 00 D1 12 E3 [11:17:40]*** FLAG_PRN_PAP1 set [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 D1 12 00 01 00 00 00 FF 0F F9 [11:17:40]state=0 [11:17:40]No paper [11:17:40]int [11:17:40]Write to MH i2c: 01 00 00 D2 12 E4 [11:17:40]*** FLAG_PRN_PAP2 set [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 D2 12 00 03 00 00 00 FF 0F FC [11:17:40]state=0 [11:17:40]No paper [11:17:40]Cover opened [11:17:42]int [11:17:42]Write to MH i2c: 01 00 00 D3 12 E5 [11:17:42]*** FLAG_PRN_PAP2 reset [11:17:42]Write i2c OK [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: 01 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: 01 07 00 [11:17:42]MH_I2C_Read... [11:17:42]Read from MH i2c: 01 07 00 D3 12 00 01 00 00 00 FF 0F FB [11:17:42]state=3 [11:17:42]No paper [11:17:42]Cover closed [11:17:43]int [11:17:43]Write to MH i2c: 01 00 00 D4 12 E6 [11:17:43]*** FLAG_PRN_PAP2 set [11:17:43]Write i2c OK [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: 01 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: 01 07 00 [11:17:43]MH_I2C_Read... [11:17:43]Read from MH i2c: 01 07 00 D4 12 00 03 00 00 00 FF 0F FE [11:17:43]state=0 [11:17:43]No paper [11:17:43]Cover opened [11:17:43]OFD Sender: No OFD packet to send [11:17:48]Write to MH i2c: 01 00 00 D5 12 E7 [11:17:48]Write i2c OK [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: 01 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: 01 07 00 [11:17:48]MH_I2C_Read... [11:17:48]Read from MH i2c: 01 07 00 D5 12 00 03 00 00 00 FF 0F FF [11:17:48]state=3 [11:17:48]No paper [11:17:48]Cover opened [11:17:48]OFD Sender: No OFD packet to send [11:17:51]int [11:17:51]Write to MH i2c: 01 00 00 D6 12 E8 [11:17:51]*** FLAG_PRN_PAP1 reset [11:17:51]*** FLAG_PRN_PAP2 reset [11:17:51]Write i2c OK [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 [11:17:51]MH_I2C_Read... [11:17:51]Read from MH i2c: 01 07 00 D6 12 00 00 00 00 00 FF 0F FD [11:17:51]state=3 [11:17:51]Cover closed [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]accept exits with 7 [11:19:08]New connection [11:19:08]New thread 3067063652 created [11:19:08]Thread 3067207012 joined [11:19:08]Waiting for new connection... [11:19:08] Sock 7.Parse request [11:19:08]Sock 7.Check first char [11:19:08]Sock 7.First char is OK [11:19:08]request: POST /json_proto HTTP/1.0 [11:19:08]Method: POST [11:19:08]URL: /json_proto [11:19:08]Method is POST - this is cgi request [11:19:08]url: /json_proto [11:19:08]query_string will be loaded in cgi processing [11:19:08]execute_cgi json_proto POST (null) [11:19:08]execute_cgi path=json_proto method=POST [11:19:08]POST find Content-Length [11:19:08]Host: 172.17.38.133:8080 [11:19:08]Content-Length: 677 [11:19:08]Content-Type: application/json [11:19:08] [11:19:08]POST finish read [11:19:08]Found Content-Length = 677 [11:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:08]execute_script... [11:19: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)673219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:08]POST & json_proto [11:19:08]process_json_proto [11:19:08]json parsed OK: [11:19:08]protocol is kg_v1.0 [11:19:08]action value=close_receipt [11:19:08]process_action close_receipt [11:19:08]cmd_close_receipt [11:19:08]MH_GetDate [11:19:08]Write to MH i2c: F0 00 00 D7 12 D8 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: F0 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: F0 09 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: F0 09 00 D7 12 00 2D 10 74 66 BD 8F 7C 64 24 [11:19:08]GetLastDocTimeStamp 1718882172 [11:19:08]current date 1718882349 [11:19:08]FM_GetShiftState [11:19:08]SAM_PROTO_GetShiftState [11:19:08]wFMCommunicate request_size=4 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 13 01 00 [11:19:08]Write to MH i2c: E2 08 00 D8 12 80 13 01 00 00 00 00 00 67 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 0E 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 0E 00 D8 12 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B6 [11:19:08]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:19:08]wFMCommunicate OK [11:19:08]SAM_PROTO_GetShiftState done [11:19:08]FM_GetShiftState done [11:19:08]opened in 1718843124 [11:19:08]opened+sec_in_day 1718929524 [11:19:08]quantity*price = 50065 [11:19:08]sum+1 = 50067 [11:19:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 70 20.06.2024 11:19 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103885 ФПД: 8110591686147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111909&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103885&fm=8110591686147&tin=02508201610067®Number=0000000000092785&sum=50000 [11:19:09]StoreToDocumentArchive [11:19:09]shift 354 fd 103885 [11:19:09]save to /storage/0354/doc_00103885 [11:19:09]save last doc name /storage/0354/doc_00103885 to /storage/kkm_last_doc_name [11:19:09]save OK [11:19:09]Clear old archive folders... [11:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:09]tlvbuf is 00873020 [11:19:09]SAM_PROTO_ClearQueue [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 09 00 00 [11:19:09]Write to MH i2c: E2 08 00 E5 12 80 09 00 00 00 00 00 00 69 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 E5 12 00 90 00 6B [11:19:09]RAPDU: 90 00 [11:19:09]wFMCommunicate OK [11:19:09]SAM_PROTO_ClearQueue done [11:19:09]KKMCreateOFDPacket [11:19:09]OFDProtocolAddRootSTLVToBuf [11:19:09]FM_MakeSignedData [11:19:09]FM_MakeSignedData [11:19:09]SAM_PROTO_SignData [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 0D 01 02 [11:19:09]Write to MH i2c: E2 08 00 E6 12 80 0D 01 02 00 00 00 00 71 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 E6 12 00 90 00 6C [11:19:09]RAPDU: 90 00 [11:19:09]wFMCommunicate OK [11:19:09]wFMCommunicate request_size=255 [11:19:09]MH_SAM_APDU [11:19: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2D 10 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 95 01 00 35 04 06 00 07 [11:19:09]Write to MH i2c: E2 02 01 E7 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2D 10 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 95 01 00 35 04 06 00 07 00 00 55 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 E7 12 00 90 00 6D [11:19:09]RAPDU: 90 00 [11:19:09]wFMCommunicate OK [11:19:09]wFMCommunicate request_size=10 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 0D 02 02 05 60 64 EF B6 03 [11:19:09]Write to MH i2c: E2 0D 00 E8 12 80 0D 02 02 05 00 60 64 EF B6 03 00 00 EA [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 03 00 E8 12 00 90 00 6E [11:19:09]RAPDU: 90 00 [11:19:09]wFMCommunicate OK [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 0D 03 02 [11:19:09]Write to MH i2c: E2 08 00 E9 12 80 0D 03 02 00 00 00 00 76 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:09]Read from MH i2c: E2 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 0B 00 [11:19:09]MH_I2C_Read... [11:19:09]Read from MH i2c: E2 0B 00 E9 12 00 B9 71 7E E7 AF 2B A2 AA 90 00 2C [11:19:09]RAPDU: B9 71 7E E7 AF 2B A2 AA 90 00 [11:19:09]wFMCommunicate OK [11:19:09]SAM_PROTO_SignData done [11:19:09]FM_MakeSignedData done [11:19:09]CreateOFDProtocolMessage [11:19:09]wFMCommunicate request_size=4 [11:19:09]MH_SAM_APDU [11:19:09]CAPDU: 80 11 00 00 [11:19:09]Write to MH i2c: E2 08 00 EA 12 80 11 00 00 00 00 00 00 76 [11:19:09]Write i2c OK [11:19:09]MH_I2C_Read... [11:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:10]Read from MH i2c: E2 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 17 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: E2 17 00 EA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C9 [11:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:19:10]wFMCommunicate OK [11:19:10]CreateOFDProtocolMessage done [11:19:10]OFDSenderStorePacket 103885 [11:19:10]StoreOFDPacket docnum=103885 [11:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9F BD 07 01 F6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2D 10 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 95 01 00 35 04 06 00 07 60 64 EF B6 03 B9 71 7E E7 AF 2B A2 AA [11:19:10]CheckFolder [11:19:10]dirname=/storage/ofd_packets [11:19:10]CheckFolder done [11:19:10]ProducePacketName [11:19:10]name=ofd_packets/00103885 [11:19:10]NVStorageSaveData ofd_packets/00103885 [11:19:10]File name is /storage/ofd_packets/00103885 [11:19:10]Write 301 bytes [11:19:10]NVStorageSaveData done [11:19:10]OFDSenderStorePacket done [11:19:10]KKMCreateOFDPacket done [11:19:10]NVStorageSaveData kkm_last_timestamp [11:19:10]File name is /storage/kkm_last_timestamp [11:19:10]Write 4 bytes [11:19:10]NVStorageSaveData done [11:19:10]ExternCall_PrintAddStr [11:19:10]wPrintStart [11:19:10]Write to MH i2c: 01 00 00 EB 12 FD [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 FF 0F 12 [11:19:10]RasterBufferAndPrint [11:19:10]line Счет N : (1)673219 [11:19:10]line ИНН: 02508201610067 [11:19:10]line Контрольно-Кассовый Чек [11:19:10]line ПРОДАЖА [11:19:10]line ТРК (МРК, ГНК) : 42 [11:19:10]line Товар: 2710124130 [11:19:10]line Аи-92-К-5 [11:19:10]line 7.540 * 66.40 [11:19:10]line = 500.66 [11:19:10]line НДС 12% НСП 1% [11:19:10]line > о реализуемом товаре [11:19:10]line ОКРУГЛЕНИЕ: -0.66 [11:19:10]line ИТОГО: 500.00 [11:19:10]line Внесено: 500.00 [11:19:10]line СДАЧА: 0.00 [11:19:10]line НСП 1% : 4.43 [11:19:10]line НДС 12% : 53.17 [11:19:10]line Наличными: 500.00 [11:19:10]line Безнал.: 0.00 [11:19:10]line Место: АЗС № 120 "Партнер Нефть" [11:19:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:19:10]line СНО: Общий режим [11:19:10]line Чек 70 20.06.2024 11:19 [11:19:10]line Смена: 354 ФФД: 1.0 [11:19:10]line ЗНМ: 0300000164 [11:19:10]line РНМ: 0000000000092785 [11:19:10]line Версия ККМ: 001 [11:19:10]line ФМ: 0000000000875093 [11:19:10]line ФД: 103885 [11:19:10]line ФПД: 8110591686147 [11:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T111909&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103885&fm=8110591686147&tin=02508201610067®Number=0000000000092785&sum=50000 [11:19:10]written 0, free lines is 4095 [11:19:10]OFD Sender: Processing packet 103885 [packets to send 17, broken 16] [11:19:10]ProducePacketName [11:19:10]name=ofd_packets/00103885 [11:19:10]OFD Sender: To server: pG, [11:19:10]CommunicateWithHost lk.salyk.kg:30040 [11:19:10]ConnectInit lk.salyk.kg [11:19:10]Connected sock=10 [11:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9F BD 07 01 F6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2D 10 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 95 01 00 35 04 06 00 07 60 64 EF B6 03 B9 71 7E E7 AF 2B A2 AA [11:19:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CC 11 47 00 07 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CD 95 01 00 F4 03 04 00 B3 B6 73 66 B6 04 01 00 00 36 4A 06 9E B4 5A 74 2C [11:19:10]CommunicateWithHost err = 0 [11:19:10]CheckOFDResponse [11:19:10]1017 (14) - 77093643461234 [11:19:10]1041 (16) - 0000000000875093 [11:19:10]1040 (4) - 103885 [11:19:10]1012 (4) - 20.06.2024 04:57 [11:19:10]1206 (1) - 0 [11:19:10]OFD Sender: Remove packet 103885 [11:19:10]ProducePacketName [11:19:10]name=ofd_packets/00103885 [11:19:10]NVStorageDeleteData [11:19:10]Write to MH i2c: 01 00 00 16 13 29 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: 01 07 00 16 13 00 00 00 00 00 E4 0C 20 [11:19:10]RasterBufferAndPrint [11:19:10]line [11:19:10]line [11:19:10]line [11:19:10]line [11:19:10]line [11:19:10]written 0, free lines is 3309 [11:19:10]MH_Cut [11:19:10]Write to MH i2c: D1 01 00 1D 13 01 02 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: D1 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: D1 01 00 [11:19:10]MH_I2C_Read... [11:19:10]Read from MH i2c: D1 01 00 1D 13 00 01 [11:19:10]Write to MH i2c: 01 00 00 1E 13 31 [11:19:10]Write i2c OK [11:19:10]MH_I2C_Read... [11:19:10]OFD Sender: No OFD packet to send [11:19:11]*** Cut start [11:19:11]*** Partial cut [11:19:11]*** CUTSNS_PIN = 1 [11:19:11]*** CUTSNS_PIN = 0 [11:19:11]*** Brake cut motor [11:19:11]Read from MH i2c: 01 [11:19:11]MH_I2C_Read... [11:19:11]*** Stop cut motor [11:19:11]*** Cut end [11:19:11]Read from MH i2c: 01 07 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: 01 07 00 1E 13 00 00 00 00 00 FF 0F 46 [11:19:11]process_action close_receipt done [11:19:11]requested_data is exist [11:19:11]produce_requested_data [11:19:11]requested_item fm.sn is exist - process it [11:19:11]wFMCommunicate request_size=4 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 11 00 00 [11:19:11]Write to MH i2c: E2 08 00 1F 13 80 11 00 00 00 00 00 00 AC [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:11]Read from MH i2c: E2 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 17 00 [11:19:11]MH_I2C_Read... [11:19:11]Read from MH i2c: E2 17 00 1F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [11:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:19:11]wFMCommunicate OK [11:19:11]requested_item fd.num is exist - process it [11:19:11]SAM_PROTO_GetFieldsCounters [11:19:11]wFMCommunicate request_size=4 [11:19:11]MH_SAM_APDU [11:19:11]CAPDU: 80 13 00 00 [11:19:11]Write to MH i2c: E2 08 00 20 13 80 13 00 00 00 00 00 00 AF [11:19:11]Write i2c OK [11:19:11]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 62 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 62 00 20 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 95 01 00 0E 04 04 00 62 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 6E [11:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CD 95 01 00 0E 04 04 00 62 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 [11:19:12]wFMCommunicate OK [11:19:12]SAM_PROTO_GetFieldsCounters done [11:19:12]requested_item shift.num is exist - process it [11:19:12]requested_item shift.opened is exist - process it [11:19:12]req_shift_opened [11:19:12]FM_GetShiftState [11:19:12]SAM_PROTO_GetShiftState [11:19:12]wFMCommunicate request_size=4 [11:19:12]MH_SAM_APDU [11:19:12]CAPDU: 80 13 01 00 [11:19:12]Write to MH i2c: E2 08 00 21 13 80 13 01 00 00 00 00 00 B1 [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0E 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0E 00 21 13 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 00 [11:19:12]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:19:12]wFMCommunicate OK [11:19:12]SAM_PROTO_GetShiftState done [11:19:12]FM_GetShiftState done [11:19:12]req_shift_opened done [11:19:12]requested_item shift.open_date is exist - process it [11:19:12]req_shift_open_date [11:19:12]req_shift_open_date done [11:19:12]produce_requested_data done [11:19:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103885,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:19:12]process_action_free close_receipt [11:19:12]json_value_free [11:19:12]json_value_free done [11:19:12]process_json_proto returns [11:19:12]Send response to host [11:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103885,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:19:12]free response buf [11:19:12]execute_script done [11:19:12]execute_script returns [11:19:12]free content buf [11:19:12]Sock 7.Close socket [11:19:12]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:51]accept exits with 9 [11:21:51]New connection [11:21:51]New thread 3067207012 created [11:21:51]Thread 3067063652 joined [11:21:51]Waiting for new connection... [11:21:51] Sock 9.Parse request [11:21:51]Sock 9.Check first char [11:21:51]Sock 9.First char is OK [11:21:51]request: POST /json_proto HTTP/1.0 [11:21:51]Method: POST [11:21:51]URL: /json_proto [11:21:51]Method is POST - this is cgi request [11:21:51]url: /json_proto [11:21:51]query_string will be loaded in cgi processing [11:21:51]execute_cgi json_proto POST (null) [11:21:51]execute_cgi path=json_proto method=POST [11:21:51]POST find Content-Length [11:21:51]Host: 172.17.38.133:8080 [11:21:51]Content-Length: 677 [11:21:51]Content-Type: application/json [11:21:51] [11:21:51]POST finish read [11:21:51]Found Content-Length = 677 [11:21:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:51]execute_script... [11:21:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:51]POST & json_proto [11:21:51]process_json_proto [11:21:51]json parsed OK: [11:21:51]protocol is kg_v1.0 [11:21:51]action value=close_receipt [11:21:51]process_action close_receipt [11:21:51]cmd_close_receipt [11:21:51]MH_GetDate [11:21:51]Write to MH i2c: F0 00 00 22 13 24 [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: F0 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: F0 09 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: F0 09 00 22 13 00 D1 10 74 66 BD 8F 7C 64 14 [11:21:51]GetLastDocTimeStamp 1718882349 [11:21:51]current date 1718882513 [11:21:51]FM_GetShiftState [11:21:51]SAM_PROTO_GetShiftState [11:21:51]wFMCommunicate request_size=4 [11:21:51]MH_SAM_APDU [11:21:51]CAPDU: 80 13 01 00 [11:21:51]Write to MH i2c: E2 08 00 23 13 80 13 01 00 00 00 00 00 B3 [11:21:51]Write i2c OK [11:21:51]MH_I2C_Read... [11:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:51]Read from MH i2c: E2 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 0E 00 [11:21:51]MH_I2C_Read... [11:21:51]Read from MH i2c: E2 0E 00 23 13 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 02 [11:21:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:21:51]wFMCommunicate OK [11:21:51]SAM_PROTO_GetShiftState done [11:21:51]FM_GetShiftState done [11:21:51]opened in 1718843124 [11:21:51]opened+sec_in_day 1718929524 [11:21:51]quantity*price = 50065 [11:21:51]sum+1 = 50067 [11:21:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 71 20.06.2024 11:21 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103886 ФПД: 124832598578822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112153&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103886&fm=124832598578822&tin=02508201610067®Number=0000000000092785&sum=50000 [11:21:52]StoreToDocumentArchive [11:21:52]shift 354 fd 103886 [11:21:52]save to /storage/0354/doc_00103886 [11:21:52]save last doc name /storage/0354/doc_00103886 to /storage/kkm_last_doc_name [11:21:52]save OK [11:21:52]Clear old archive folders... [11:21:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:52]tlvbuf is B6EFF2A0 [11:21:52]SAM_PROTO_ClearQueue [11:21:52]wFMCommunicate request_size=4 [11:21:52]MH_SAM_APDU [11:21:52]CAPDU: 80 09 00 00 [11:21:52]Write to MH i2c: E2 08 00 30 13 80 09 00 00 00 00 00 00 B5 [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:52]Read from MH i2c: E2 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 03 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 03 00 30 13 00 90 00 B7 [11:21:52]RAPDU: 90 00 [11:21:52]wFMCommunicate OK [11:21:52]SAM_PROTO_ClearQueue done [11:21:52]KKMCreateOFDPacket [11:21:52]OFDProtocolAddRootSTLVToBuf [11:21:52]FM_MakeSignedData [11:21:52]FM_MakeSignedData [11:21:52]SAM_PROTO_SignData [11:21:52]wFMCommunicate request_size=4 [11:21:52]MH_SAM_APDU [11:21:52]CAPDU: 80 0D 01 02 [11:21:52]Write to MH i2c: E2 08 00 31 13 80 0D 01 02 00 00 00 00 BD [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:52]Read from MH i2c: E2 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 03 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 03 00 31 13 00 90 00 B8 [11:21:52]RAPDU: 90 00 [11:21:52]wFMCommunicate OK [11:21:52]wFMCommunicate request_size=255 [11:21:52]MH_SAM_APDU [11:21:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 D1 10 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 95 01 00 35 04 06 00 71 [11:21:52]Write to MH i2c: E2 02 01 32 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 D1 10 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 95 01 00 35 04 06 00 71 00 00 B1 [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:53]Read from MH i2c: E2 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 03 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 03 00 32 13 00 90 00 B9 [11:21:53]RAPDU: 90 00 [11:21:53]wFMCommunicate OK [11:21:53]wFMCommunicate request_size=10 [11:21:53]MH_SAM_APDU [11:21:53]CAPDU: 80 0D 02 02 05 88 DA B1 D6 86 [11:21:53]Write to MH i2c: E2 0D 00 33 13 80 0D 02 02 05 00 88 DA B1 D6 86 00 00 39 [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:53]Read from MH i2c: E2 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 03 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 03 00 33 13 00 90 00 BA [11:21:53]RAPDU: 90 00 [11:21:53]wFMCommunicate OK [11:21:53]wFMCommunicate request_size=4 [11:21:53]MH_SAM_APDU [11:21:53]CAPDU: 80 0D 03 02 [11:21:53]Write to MH i2c: E2 08 00 34 13 80 0D 03 02 00 00 00 00 C2 [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:53]Read from MH i2c: E2 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 0B 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 0B 00 34 13 00 EB FA E7 E2 39 76 F0 7C 90 00 8C [11:21:53]RAPDU: EB FA E7 E2 39 76 F0 7C 90 00 [11:21:53]wFMCommunicate OK [11:21:53]SAM_PROTO_SignData done [11:21:53]FM_MakeSignedData done [11:21:53]CreateOFDProtocolMessage [11:21:53]wFMCommunicate request_size=4 [11:21:53]MH_SAM_APDU [11:21:53]CAPDU: 80 11 00 00 [11:21:53]Write to MH i2c: E2 08 00 35 13 80 11 00 00 00 00 00 00 C2 [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:53]Read from MH i2c: E2 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 17 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: E2 17 00 35 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [11:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:21:53]wFMCommunicate OK [11:21:53]CreateOFDProtocolMessage done [11:21:53]OFDSenderStorePacket 103886 [11:21:53]StoreOFDPacket docnum=103886 [11:21:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7A 62 07 01 72 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 D1 10 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 95 01 00 35 04 06 00 71 88 DA B1 D6 86 EB FA E7 E2 39 76 F0 7C [11:21:53]CheckFolder [11:21:53]dirname=/storage/ofd_packets [11:21:53]CheckFolder done [11:21:53]ProducePacketName [11:21:53]name=ofd_packets/00103886 [11:21:53]NVStorageSaveData ofd_packets/00103886 [11:21:53]File name is /storage/ofd_packets/00103886 [11:21:53]Write 301 bytes [11:21:53]NVStorageSaveData done [11:21:53]OFDSenderStorePacket done [11:21:53]KKMCreateOFDPacket done [11:21:53]NVStorageSaveData kkm_last_timestamp [11:21:53]File name is /storage/kkm_last_timestamp [11:21:53]Write 4 bytes [11:21:53]NVStorageSaveData done [11:21:53]ExternCall_PrintAddStr [11:21:53]wPrintStart [11:21:53]Write to MH i2c: 01 00 00 36 13 49 [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: 01 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: 01 07 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: 01 07 00 36 13 00 00 00 00 00 FF 0F 5E [11:21:53]RasterBufferAndPrint [11:21:53]line Счет N : (1)673220 [11:21:53]line ИНН: 02508201610067 [11:21:53]line Контрольно-Кассовый Чек [11:21:53]line ПРОДАЖА [11:21:53]line ТРК (МРК, ГНК) : 32 [11:21:53]line Товар: 2710124130 [11:21:53]line Аи-92-К-5 [11:21:53]line 7.540 * 66.40 [11:21:53]line = 500.66 [11:21:53]line НДС 12% НСП 1% [11:21:53]line > о реализуемом товаре [11:21:53]line ОКРУГЛЕНИЕ: -0.66 [11:21:53]line ИТОГО: 500.00 [11:21:53]line Внесено: 500.00 [11:21:53]line СДАЧА: 0.00 [11:21:53]line НСП 1% : 4.43 [11:21:53]line НДС 12% : 53.17 [11:21:53]line Наличными: 500.00 [11:21:53]line Безнал.: 0.00 [11:21:53]line Место: АЗС № 120 "Партнер Нефть" [11:21:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:21:53]line СНО: Общий режим [11:21:53]line Чек 71 20.06.2024 11:21 [11:21:53]line Смена: 354 ФФД: 1.0 [11:21:53]line ЗНМ: 0300000164 [11:21:53]line РНМ: 0000000000092785 [11:21:53]line Версия ККМ: 001 [11:21:53]line ФМ: 0000000000875093 [11:21:53]line ФД: 103886 [11:21:53]line ФПД: 124832598578822 [11:21:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112153&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103886&fm=124832598578822&tin=02508201610067®Number=0000000000092785&sum=50000 [11:21:53]written 0, free lines is 4095 [11:21:53]OFD Sender: Processing packet 103886 [packets to send 17, broken 16] [11:21:53]ProducePacketName [11:21:53]name=ofd_packets/00103886 [11:21:53]OFD Sender: To server: pG, [11:21:53]CommunicateWithHost lk.salyk.kg:30040 [11:21:53]ConnectInit lk.salyk.kg [11:21:53]Connected sock=10 [11:21:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7A 62 07 01 72 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 D1 10 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CE 95 01 00 35 04 06 00 71 88 DA B1 D6 86 EB FA E7 E2 39 76 F0 7C [11:21:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 13 32 47 00 21 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 35 30 39 33 10 04 04 00 CE 95 01 00 F4 03 04 00 56 B7 73 66 B6 04 01 00 00 10 26 BA 76 84 6B 9F 59 [11:21:53]CommunicateWithHost err = 0 [11:21:53]CheckOFDResponse [11:21:53]1017 (14) - 77093643461234 [11:21:53]1041 (16) - 0000000000875093 [11:21:53]1040 (4) - 103886 [11:21:53]1012 (4) - 20.06.2024 05:00 [11:21:53]1206 (1) - 0 [11:21:53]OFD Sender: Remove packet 103886 [11:21:53]ProducePacketName [11:21:53]name=ofd_packets/00103886 [11:21:53]NVStorageDeleteData [11:21:53]Write to MH i2c: 01 00 00 61 13 74 [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: 01 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: 01 07 00 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: 01 07 00 61 13 00 00 00 00 00 EE 0C 75 [11:21:53]RasterBufferAndPrint [11:21:53]line [11:21:53]line [11:21:53]line [11:21:53]line [11:21:53]line [11:21:53]written 0, free lines is 3316 [11:21:53]MH_Cut [11:21:53]Write to MH i2c: D1 01 00 68 13 01 4D [11:21:53]Write i2c OK [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: D1 [11:21:53]MH_I2C_Read... [11:21:53]Read from MH i2c: D1 01 00 [11:21:53]MH_I2C_Read... [11:21:54]Read from MH i2c: D1 01 00 68 13 00 4C [11:21:54]Write to MH i2c: 01 00 00 69 13 7C [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]OFD Sender: No OFD packet to send [11:21:54]*** Cut start [11:21:54]*** Partial cut [11:21:54]*** CUTSNS_PIN = 1 [11:21:54]*** CUTSNS_PIN = 0 [11:21:54]*** Brake cut motor [11:21:55]Read from MH i2c: 01 [11:21:55]MH_I2C_Read... [11:21:55]*** Stop cut motor [11:21:55]*** Cut end [11:21:55]Read from MH i2c: 01 07 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 FF 0F 91 [11:21:55]process_action close_receipt done [11:21:55]requested_data is exist [11:21:55]produce_requested_data [11:21:55]requested_item fm.sn is exist - process it [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 11 00 00 [11:21:55]Write to MH i2c: E2 08 00 6A 13 80 11 00 00 00 00 00 00 F7 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 17 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 17 00 6A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [11:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:21:55]wFMCommunicate OK [11:21:55]requested_item fd.num is exist - process it [11:21:55]SAM_PROTO_GetFieldsCounters [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 13 00 00 [11:21:55]Write to MH i2c: E2 08 00 6B 13 80 13 00 00 00 00 00 00 FA [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 62 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 62 00 6B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CE 95 01 00 0E 04 04 00 62 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 BD [11:21:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CE 95 01 00 0E 04 04 00 62 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 [11:21:55]wFMCommunicate OK [11:21:55]SAM_PROTO_GetFieldsCounters done [11:21:55]requested_item shift.num is exist - process it [11:21:55]requested_item shift.opened is exist - process it [11:21:55]req_shift_opened [11:21:55]FM_GetShiftState [11:21:55]SAM_PROTO_GetShiftState [11:21:55]wFMCommunicate request_size=4 [11:21:55]MH_SAM_APDU [11:21:55]CAPDU: 80 13 01 00 [11:21:55]Write to MH i2c: E2 08 00 6C 13 80 13 01 00 00 00 00 00 FC [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:55]Read from MH i2c: E2 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 0E 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: E2 0E 00 6C 13 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 4B [11:21:55]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:21:55]wFMCommunicate OK [11:21:55]SAM_PROTO_GetShiftState done [11:21:55]FM_GetShiftState done [11:21:55]req_shift_opened done [11:21:55]requested_item shift.open_date is exist - process it [11:21:55]req_shift_open_date [11:21:55]req_shift_open_date done [11:21:55]produce_requested_data done [11:21:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103886,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:21:55]process_action_free close_receipt [11:21:55]json_value_free [11:21:55]json_value_free done [11:21:55]process_json_proto returns [11:21:55]Send response to host [11:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103886,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:21:55]free response buf [11:21:55]execute_script done [11:21:55]execute_script returns [11:21:55]free content buf [11:21:55]Sock 9.Close socket [11:21:55]Sock 9.Thread stoped [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]accept exits with 7 [11:23:39]New connection [11:23:39]New thread 3067063652 created [11:23:39]Thread 3067207012 joined [11:23:39]Waiting for new connection... [11:23:39] Sock 7.Parse request [11:23:39]Sock 7.Check first char [11:23:39]Sock 7.First char is OK [11:23:39]request: POST /json_proto HTTP/1.0 [11:23:39]Method: POST [11:23:39]URL: /json_proto [11:23:39]Method is POST - this is cgi request [11:23:39]url: /json_proto [11:23:39]query_string will be loaded in cgi processing [11:23:39]execute_cgi json_proto POST (null) [11:23:39]execute_cgi path=json_proto method=POST [11:23:39]POST find Content-Length [11:23:39]Host: 172.17.38.133:8080 [11:23:39]Content-Length: 682 [11:23:39]Content-Type: application/json [11:23:39] [11:23:39]POST finish read [11:23:39]Found Content-Length = 682 [11:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:23:39]execute_script... [11:23: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)673221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:23:39]POST & json_proto [11:23:39]process_json_proto [11:23:39]json parsed OK: [11:23:39]protocol is kg_v1.0 [11:23:39]action value=close_receipt [11:23:39]process_action close_receipt [11:23:39]cmd_close_receipt [11:23:39]MH_GetDate [11:23:39]Write to MH i2c: F0 00 00 6D 13 6F [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: F0 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: F0 09 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: F0 09 00 6D 13 00 3C 11 74 66 BD 8F 7C 64 CB [11:23:39]GetLastDocTimeStamp 1718882513 [11:23:39]current date 1718882620 [11:23:39]FM_GetShiftState [11:23:39]SAM_PROTO_GetShiftState [11:23:39]wFMCommunicate request_size=4 [11:23:39]MH_SAM_APDU [11:23:39]CAPDU: 80 13 01 00 [11:23:39]Write to MH i2c: E2 08 00 6E 13 80 13 01 00 00 00 00 00 FE [11:23:39]Write i2c OK [11:23:39]MH_I2C_Read... [11:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:39]Read from MH i2c: E2 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 0E 00 [11:23:39]MH_I2C_Read... [11:23:39]Read from MH i2c: E2 0E 00 6E 13 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 4D [11:23:39]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:23:39]wFMCommunicate OK [11:23:39]SAM_PROTO_GetShiftState done [11:23:39]FM_GetShiftState done [11:23:39]opened in 1718843124 [11:23:39]opened+sec_in_day 1718929524 [11:23:39]quantity*price = 200063 [11:23:39]sum+1 = 200064 [11:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 72 20.06.2024 11:23 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103887 ФПД: 106916254467061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112341&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103887&fm=106916254467061&tin=02508201610067®Number=0000000000092785&sum=200000 [11:23:40]StoreToDocumentArchive [11:23:40]shift 354 fd 103887 [11:23:40]save to /storage/0354/doc_00103887 [11:23:40]save last doc name /storage/0354/doc_00103887 to /storage/kkm_last_doc_name [11:23:40]save OK [11:23:40]Clear old archive folders... [11:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:40]tlvbuf is 00823B30 [11:23:40]SAM_PROTO_ClearQueue [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 09 00 00 [11:23:40]Write to MH i2c: E2 08 00 7B 13 80 09 00 00 00 00 00 00 00 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 7B 13 00 90 00 02 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]SAM_PROTO_ClearQueue done [11:23:40]KKMCreateOFDPacket [11:23:40]OFDProtocolAddRootSTLVToBuf [11:23:40]FM_MakeSignedData [11:23:40]FM_MakeSignedData [11:23:40]SAM_PROTO_SignData [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 01 02 [11:23:40]Write to MH i2c: E2 08 00 7C 13 80 0D 01 02 00 00 00 00 08 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 7C 13 00 90 00 03 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]wFMCommunicate request_size=255 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 48 00 00 00 F4 03 04 00 3D 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 95 01 00 35 04 06 00 61 [11:23:40]Write to MH i2c: E2 02 01 7D 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 48 00 00 00 F4 03 04 00 3D 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 95 01 00 35 04 06 00 61 00 00 50 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 7D 13 00 90 00 04 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]wFMCommunicate request_size=10 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 02 02 05 3D 61 5E 43 F5 [11:23:40]Write to MH i2c: E2 0D 00 7E 13 80 0D 02 02 05 00 3D 61 5E 43 F5 00 00 49 [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 03 00 7E 13 00 90 00 05 [11:23:40]RAPDU: 90 00 [11:23:40]wFMCommunicate OK [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 0D 03 02 [11:23:40]Write to MH i2c: E2 08 00 7F 13 80 0D 03 02 00 00 00 00 0D [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 0B 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 0B 00 7F 13 00 28 C9 6F 35 0A C2 F4 72 90 00 D5 [11:23:41]RAPDU: 28 C9 6F 35 0A C2 F4 72 90 00 [11:23:41]wFMCommunicate OK [11:23:41]SAM_PROTO_SignData done [11:23:41]FM_MakeSignedData done [11:23:41]CreateOFDProtocolMessage [11:23:41]wFMCommunicate request_size=4 [11:23:41]MH_SAM_APDU [11:23:41]CAPDU: 80 11 00 00 [11:23:41]Write to MH i2c: E2 08 00 80 13 80 11 00 00 00 00 00 00 0D [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:41]Read from MH i2c: E2 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 17 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: E2 17 00 80 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [11:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:23:41]wFMCommunicate OK [11:23:41]CreateOFDProtocolMessage done [11:23:41]OFDSenderStorePacket 103887 [11:23:41]StoreOFDPacket docnum=103887 [11:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 29 92 07 01 A6 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 48 00 00 00 F4 03 04 00 3D 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 95 01 00 35 04 06 00 61 3D 61 5E 43 F5 28 C9 6F 35 0A C2 F4 72 [11:23:41]CheckFolder [11:23:41]dirname=/storage/ofd_packets [11:23:41]CheckFolder done [11:23:41]ProducePacketName [11:23:41]name=ofd_packets/00103887 [11:23:41]NVStorageSaveData ofd_packets/00103887 [11:23:41]File name is /storage/ofd_packets/00103887 [11:23:41]Write 301 bytes [11:23:41]NVStorageSaveData done [11:23:41]OFDSenderStorePacket done [11:23:41]KKMCreateOFDPacket done [11:23:41]NVStorageSaveData kkm_last_timestamp [11:23:41]File name is /storage/kkm_last_timestamp [11:23:41]Write 4 bytes [11:23:41]NVStorageSaveData done [11:23:41]ExternCall_PrintAddStr [11:23:41]wPrintStart [11:23:41]Write to MH i2c: 01 00 00 81 13 94 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 FF 0F A9 [11:23:41]RasterBufferAndPrint [11:23:41]line Счет N : (1)673221 [11:23:41]line ИНН: 02508201610067 [11:23:41]line Контрольно-Кассовый Чек [11:23:41]line ПРОДАЖА [11:23:41]line ТРК (МРК, ГНК) : 42 [11:23:41]line Товар: 2710124130 [11:23:41]line Аи-92-К-5 [11:23:41]line 30.130 * 66.40 [11:23:41]line = 2000.63 [11:23:41]line НДС 12% НСП 1% [11:23:41]line > о реализуемом товаре [11:23:41]line ОКРУГЛЕНИЕ: -0.63 [11:23:41]line ИТОГО: 2000.00 [11:23:41]line Внесено: 2000.00 [11:23:41]line СДАЧА: 0.00 [11:23:41]line НСП 1% : 17.70 [11:23:41]line НДС 12% : 212.46 [11:23:41]line Наличными: 2000.00 [11:23:41]line Безнал.: 0.00 [11:23:41]line Место: АЗС № 120 "Партнер Нефть" [11:23:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:23:41]line СНО: Общий режим [11:23:41]line Чек 72 20.06.2024 11:23 [11:23:41]line Смена: 354 ФФД: 1.0 [11:23:41]line ЗНМ: 0300000164 [11:23:41]line РНМ: 0000000000092785 [11:23:41]line Версия ККМ: 001 [11:23:41]line ФМ: 0000000000875093 [11:23:41]line ФД: 103887 [11:23:41]line ФПД: 106916254467061 [11:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112341&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103887&fm=106916254467061&tin=02508201610067®Number=0000000000092785&sum=200000 [11:23:41]OFD Sender: Processing packet 103887 [packets to send 17, broken 16] [11:23:41]ProducePacketName [11:23:41]name=ofd_packets/00103887 [11:23:41]OFD Sender: To server: pG, [11:23:41]CommunicateWithHost lk.salyk.kg:30040 [11:23:41]ConnectInit lk.salyk.kg [11:23:41]written 0, free lines is 4095 [11:23:41]Connected sock=10 [11:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 29 92 07 01 A6 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 48 00 00 00 F4 03 04 00 3D 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 95 01 00 35 04 06 00 61 3D 61 5E 43 F5 28 C9 6F 35 0A C2 F4 72 [11:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BF F4 47 00 2E 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 CF 95 01 00 F4 03 04 00 C2 B7 73 66 B6 04 01 00 00 31 C3 2C 55 FF A9 C7 FE [11:23:41]CommunicateWithHost err = 0 [11:23:41]CheckOFDResponse [11:23:41]1017 (14) - 77093643461234 [11:23:41]1041 (16) - 0000000000875093 [11:23:41]1040 (4) - 103887 [11:23:41]1012 (4) - 20.06.2024 05:01 [11:23:41]1206 (1) - 0 [11:23:41]OFD Sender: Remove packet 103887 [11:23:41]ProducePacketName [11:23:41]name=ofd_packets/00103887 [11:23:41]NVStorageDeleteData [11:23:41]Write to MH i2c: 01 00 00 AC 13 BF [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: 01 07 00 AC 13 00 00 00 00 00 EE 0C C0 [11:23:41]RasterBufferAndPrint [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]line [11:23:41]written 0, free lines is 3316 [11:23:41]MH_Cut [11:23:41]Write to MH i2c: D1 01 00 B3 13 01 98 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 01 00 [11:23:41]MH_I2C_Read... [11:23:41]Read from MH i2c: D1 01 00 B3 13 00 97 [11:23:41]Write to MH i2c: 01 00 00 B4 13 C7 [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:42]OFD Sender: No OFD packet to send [11:23:42]*** Cut start [11:23:42]*** Partial cut [11:23:42]*** CUTSNS_PIN = 1 [11:23:42]*** CUTSNS_PIN = 0 [11:23:42]*** Brake cut motor [11:23:43]Read from MH i2c: 01 [11:23:43]MH_I2C_Read... [11:23:43]*** Stop cut motor [11:23:43]*** Cut end [11:23:43]Read from MH i2c: 01 07 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 FF 0F DC [11:23:43]process_action close_receipt done [11:23:43]requested_data is exist [11:23:43]produce_requested_data [11:23:43]requested_item fm.sn is exist - process it [11:23:43]wFMCommunicate request_size=4 [11:23:43]MH_SAM_APDU [11:23:43]CAPDU: 80 11 00 00 [11:23:43]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 17 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 95 [11:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:23:43]wFMCommunicate OK [11:23:43]requested_item fd.num is exist - process it [11:23:43]SAM_PROTO_GetFieldsCounters [11:23:43]wFMCommunicate request_size=4 [11:23:43]MH_SAM_APDU [11:23:43]CAPDU: 80 13 00 00 [11:23:43]Write to MH i2c: E2 08 00 B6 13 80 13 00 00 00 00 00 00 45 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 62 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 62 00 B6 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CF 95 01 00 0E 04 04 00 62 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 0C [11: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 CF 95 01 00 0E 04 04 00 62 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 [11:23:43]wFMCommunicate OK [11:23:43]SAM_PROTO_GetFieldsCounters done [11:23:43]requested_item shift.num is exist - process it [11:23:43]requested_item shift.opened is exist - process it [11:23:43]req_shift_opened [11:23:43]FM_GetShiftState [11:23:43]SAM_PROTO_GetShiftState [11:23:43]wFMCommunicate request_size=4 [11:23:43]MH_SAM_APDU [11:23:43]CAPDU: 80 13 01 00 [11:23:43]Write to MH i2c: E2 08 00 B7 13 80 13 01 00 00 00 00 00 47 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:43]Read from MH i2c: E2 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 0E 00 [11:23:43]MH_I2C_Read... [11:23:43]Read from MH i2c: E2 0E 00 B7 13 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 96 [11:23:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:23:43]wFMCommunicate OK [11:23:43]SAM_PROTO_GetShiftState done [11:23:43]FM_GetShiftState done [11:23:43]req_shift_opened done [11:23:43]requested_item shift.open_date is exist - process it [11:23:43]req_shift_open_date [11:23:43]req_shift_open_date done [11:23:43]produce_requested_data done [11:23:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103887,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:23:43]process_action_free close_receipt [11:23:43]json_value_free [11:23:43]json_value_free done [11:23:43]process_json_proto returns [11:23:43]Send response to host [11:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103887,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:23:43]free response buf [11:23:43]execute_script done [11:23:43]execute_script returns [11:23:43]free content buf [11:23:43]Sock 7.Close socket [11:23:43]Sock 7.Thread stoped [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:02]accept exits with 9 [11:25:02]New connection [11:25:02]New thread 3067207012 created [11:25:02]Thread 3067063652 joined [11:25:02]Waiting for new connection... [11:25:02] Sock 9.Parse request [11:25:02]Sock 9.Check first char [11:25:02]Sock 9.First char is OK [11:25:02]request: POST /json_proto HTTP/1.0 [11:25:02]Method: POST [11:25:02]URL: /json_proto [11:25:02]Method is POST - this is cgi request [11:25:02]url: /json_proto [11:25:02]query_string will be loaded in cgi processing [11:25:02]execute_cgi json_proto POST (null) [11:25:02]execute_cgi path=json_proto method=POST [11:25:02]POST find Content-Length [11:25:02]Host: 172.17.38.133:8080 [11:25:02]Content-Length: 678 [11:25:02]Content-Type: application/json [11:25:02] [11:25:02]POST finish read [11:25:02]Found Content-Length = 678 [11:25:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:02]execute_script... [11:25: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)673222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:02]POST & json_proto [11:25:02]process_json_proto [11:25:02]json parsed OK: [11:25:02]protocol is kg_v1.0 [11:25:02]action value=close_receipt [11:25:02]process_action close_receipt [11:25:02]cmd_close_receipt [11:25:02]MH_GetDate [11:25:02]Write to MH i2c: F0 00 00 B8 13 BA [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: F0 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: F0 09 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: F0 09 00 B8 13 00 90 11 74 66 BD 8F 7C 64 6A [11:25:02]GetLastDocTimeStamp 1718882621 [11:25:02]current date 1718882704 [11:25:02]FM_GetShiftState [11:25:02]SAM_PROTO_GetShiftState [11:25:02]wFMCommunicate request_size=4 [11:25:02]MH_SAM_APDU [11:25:02]CAPDU: 80 13 01 00 [11:25:02]Write to MH i2c: E2 08 00 B9 13 80 13 01 00 00 00 00 00 49 [11:25:02]Write i2c OK [11:25:02]MH_I2C_Read... [11:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:02]Read from MH i2c: E2 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 0E 00 [11:25:02]MH_I2C_Read... [11:25:02]Read from MH i2c: E2 0E 00 B9 13 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 98 [11:25:02]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:25:02]wFMCommunicate OK [11:25:02]SAM_PROTO_GetShiftState done [11:25:02]FM_GetShiftState done [11:25:02]opened in 1718843124 [11:25:02]opened+sec_in_day 1718929524 [11:25:02]quantity*price = 67064 [11:25:02]sum+1 = 67065 [11:25:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.22 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 73 20.06.2024 11:25 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103888 ФПД: 19482547680988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112504&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103888&fm=19482547680988&tin=02508201610067®Number=0000000000092785&sum=67000 [11:25:03]StoreToDocumentArchive [11:25:03]shift 354 fd 103888 [11:25:03]save to /storage/0354/doc_00103888 [11:25:03]save last doc name /storage/0354/doc_00103888 to /storage/kkm_last_doc_name [11:25:03]save OK [11:25:03]Clear old archive folders... [11:25:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:03]tlvbuf is B6EFF180 [11:25:03]SAM_PROTO_ClearQueue [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 09 00 00 [11:25:03]Write to MH i2c: E2 08 00 C6 13 80 09 00 00 00 00 00 00 4B [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:03]Read from MH i2c: E2 03 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 C6 13 00 90 00 4D [11:25:03]RAPDU: 90 00 [11:25:03]wFMCommunicate OK [11:25:03]SAM_PROTO_ClearQueue done [11:25:03]KKMCreateOFDPacket [11:25:03]OFDProtocolAddRootSTLVToBuf [11:25:03]FM_MakeSignedData [11:25:03]FM_MakeSignedData [11:25:03]SAM_PROTO_SignData [11:25:03]wFMCommunicate request_size=4 [11:25:03]MH_SAM_APDU [11:25:03]CAPDU: 80 0D 01 02 [11:25:03]Write to MH i2c: E2 08 00 C7 13 80 0D 01 02 00 00 00 00 53 [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:03]Read from MH i2c: E2 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 [11:25:03]MH_I2C_Read... [11:25:03]Read from MH i2c: E2 03 00 C7 13 00 90 00 4E [11:25:03]RAPDU: 90 00 [11:25:03]wFMCommunicate OK [11:25:03]wFMCommunicate request_size=255 [11:25:03]MH_SAM_APDU [11:25: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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 90 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 95 01 00 35 04 06 00 11 [11:25:03]Write to MH i2c: E2 02 01 C8 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 90 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 95 01 00 35 04 06 00 11 00 00 5F [11:25:03]Write i2c OK [11:25:03]MH_I2C_Read... [11:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:04]Read from MH i2c: E2 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 03 00 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 03 00 C8 13 00 90 00 4F [11:25:04]RAPDU: 90 00 [11:25:04]wFMCommunicate OK [11:25:04]wFMCommunicate request_size=10 [11:25:04]MH_SAM_APDU [11:25:04]CAPDU: 80 0D 02 02 05 B8 22 55 76 DC [11:25:04]Write to MH i2c: E2 0D 00 C9 13 80 0D 02 02 05 00 B8 22 55 76 DC 00 00 E1 [11:25:04]Write i2c OK [11:25:04]MH_I2C_Read... [11:25:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:04]Read from MH i2c: E2 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 03 00 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 03 00 C9 13 00 90 00 50 [11:25:04]RAPDU: 90 00 [11:25:04]wFMCommunicate OK [11:25:04]wFMCommunicate request_size=4 [11:25:04]MH_SAM_APDU [11:25:04]CAPDU: 80 0D 03 02 [11:25:04]Write to MH i2c: E2 08 00 CA 13 80 0D 03 02 00 00 00 00 58 [11:25:04]Write i2c OK [11:25:04]MH_I2C_Read... [11:25:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:04]Read from MH i2c: E2 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 0B 00 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 0B 00 CA 13 00 FB FC 75 9F AB 6C CE 76 90 00 BF [11:25:04]RAPDU: FB FC 75 9F AB 6C CE 76 90 00 [11:25:04]wFMCommunicate OK [11:25:04]SAM_PROTO_SignData done [11:25:04]FM_MakeSignedData done [11:25:04]CreateOFDProtocolMessage [11:25:04]wFMCommunicate request_size=4 [11:25:04]MH_SAM_APDU [11:25:04]CAPDU: 80 11 00 00 [11:25:04]Write to MH i2c: E2 08 00 CB 13 80 11 00 00 00 00 00 00 58 [11:25:04]Write i2c OK [11:25:04]MH_I2C_Read... [11:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:04]Read from MH i2c: E2 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 17 00 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: E2 17 00 CB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AB [11:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:25:04]wFMCommunicate OK [11:25:04]CreateOFDProtocolMessage done [11:25:04]OFDSenderStorePacket 103888 [11:25:04]StoreOFDPacket docnum=103888 [11:25:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 35 39 07 01 7F 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 90 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 95 01 00 35 04 06 00 11 B8 22 55 76 DC FB FC 75 9F AB 6C CE 76 [11:25:04]CheckFolder [11:25:04]dirname=/storage/ofd_packets [11:25:04]CheckFolder done [11:25:04]ProducePacketName [11:25:04]name=ofd_packets/00103888 [11:25:04]NVStorageSaveData ofd_packets/00103888 [11:25:04]File name is /storage/ofd_packets/00103888 [11:25:04]Write 301 bytes [11:25:04]NVStorageSaveData done [11:25:04]OFDSenderStorePacket done [11:25:04]KKMCreateOFDPacket done [11:25:04]NVStorageSaveData kkm_last_timestamp [11:25:04]File name is /storage/kkm_last_timestamp [11:25:04]Write 4 bytes [11:25:04]NVStorageSaveData done [11:25:04]ExternCall_PrintAddStr [11:25:04]wPrintStart [11:25:04]Write to MH i2c: 01 00 00 CC 13 DF [11:25:04]Write i2c OK [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: 01 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: 01 07 00 [11:25:04]MH_I2C_Read... [11:25:04]Read from MH i2c: 01 07 00 CC 13 00 00 00 00 00 FF 0F F4 [11:25:04]RasterBufferAndPrint [11:25:04]line Счет N : (1)673222 [11:25:04]line ИНН: 02508201610067 [11:25:04]line Контрольно-Кассовый Чек [11:25:04]line ПРОДАЖА [11:25:04]line ТРК (МРК, ГНК) : 32 [11:25:04]line Товар: 2710124130 [11:25:04]line Аи-92-К-5 [11:25:04]line 10.100 * 66.40 [11:25:04]line = 670.64 [11:25:04]line НДС 12% НСП 1% [11:25:04]line > о реализуемом товаре [11:25:04]line ОКРУГЛЕНИЕ: -0.64 [11:25:04]line ИТОГО: 670.00 [11:25:04]line Внесено: 670.00 [11:25:04]line СДАЧА: 0.00 [11:25:04]line НСП 1% : 5.93 [11:25:04]line НДС 12% : 71.22 [11:25:04]line Наличными: 670.00 [11:25:04]line Безнал.: 0.00 [11:25:04]line Место: АЗС № 120 "Партнер Нефть" [11:25:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:25:04]line СНО: Общий режим [11:25:04]line Чек 73 20.06.2024 11:25 [11:25:04]line Смена: 354 ФФД: 1.0 [11:25:04]line ЗНМ: 0300000164 [11:25:04]line РНМ: 0000000000092785 [11:25:04]line Версия ККМ: 001 [11:25:04]line ФМ: 0000000000875093 [11:25:04]line ФД: 103888 [11:25:04]line ФПД: 19482547680988 [11:25:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112504&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103888&fm=19482547680988&tin=02508201610067®Number=0000000000092785&sum=67000 [11:25:04]OFD Sender: Processing packet 103888 [packets to send 17, broken 16] [11:25:04]ProducePacketName [11:25:04]name=ofd_packets/00103888 [11:25:04]OFD Sender: To server: pG, [11:25:04]CommunicateWithHost lk.salyk.kg:30040 [11:25:04]ConnectInit lk.salyk.kg [11:25:04]written 0, free lines is 4095 [11:25:04]Connected sock=10 [11:25:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 35 39 07 01 7F 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 90 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 95 01 00 35 04 06 00 11 B8 22 55 76 DC FB FC 75 9F AB 6C CE 76 [11:25:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 21 41 47 00 93 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D0 95 01 00 F4 03 04 00 15 B8 73 66 B6 04 01 00 00 55 48 17 61 43 A3 91 22 [11:25:04]CommunicateWithHost err = 0 [11:25:04]CheckOFDResponse [11:25:04]1017 (14) - 77093643461234 [11:25:04]1041 (16) - 0000000000875093 [11:25:04]1040 (4) - 103888 [11:25:04]1012 (4) - 20.06.2024 05:03 [11:25:04]1206 (1) - 0 [11:25:04]OFD Sender: Remove packet 103888 [11:25:04]ProducePacketName [11:25:04]name=ofd_packets/00103888 [11:25:04]NVStorageDeleteData [11:25:05]Write to MH i2c: 01 00 00 F7 13 0A [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: 01 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: 01 07 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: 01 07 00 F7 13 00 00 00 00 00 F0 0C 0D [11:25:05]RasterBufferAndPrint [11:25:05]line [11:25:05]line [11:25:05]line [11:25:05]line [11:25:05]line [11:25:05]written 0, free lines is 3321 [11:25:05]MH_Cut [11:25:05]Write to MH i2c: D1 01 00 FE 13 01 E3 [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: D1 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: D1 01 00 [11:25:05]MH_I2C_Read... [11:25:05]Read from MH i2c: D1 01 00 FE 13 00 E2 [11:25:05]Write to MH i2c: 01 00 00 FF 13 12 [11:25:05]Write i2c OK [11:25:05]MH_I2C_Read... [11:25:05]OFD Sender: No OFD packet to send [11:25:05]*** Cut start [11:25:05]*** Partial cut [11:25:05]*** CUTSNS_PIN = 1 [11:25:05]*** CUTSNS_PIN = 0 [11:25:06]*** Brake cut motor [11:25:06]Read from MH i2c: 01 [11:25:06]MH_I2C_Read... [11:25:06]*** Stop cut motor [11:25:06]*** Cut end [11:25:06]Read from MH i2c: 01 07 00 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: 01 07 00 FF 13 00 00 00 00 00 FF 0F 27 [11:25:06]process_action close_receipt done [11:25:06]requested_data is exist [11:25:06]produce_requested_data [11:25:06]requested_item fm.sn is exist - process it [11:25:06]wFMCommunicate request_size=4 [11:25:06]MH_SAM_APDU [11:25:06]CAPDU: 80 11 00 00 [11:25:06]Write to MH i2c: E2 08 00 00 14 80 11 00 00 00 00 00 00 8E [11:25:06]Write i2c OK [11:25:06]MH_I2C_Read... [11:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:06]Read from MH i2c: E2 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: E2 17 00 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: E2 17 00 00 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E1 [11:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:25:06]wFMCommunicate OK [11:25:06]requested_item fd.num is exist - process it [11:25:06]SAM_PROTO_GetFieldsCounters [11:25:06]wFMCommunicate request_size=4 [11:25:06]MH_SAM_APDU [11:25:06]CAPDU: 80 13 00 00 [11:25:06]Write to MH i2c: E2 08 00 01 14 80 13 00 00 00 00 00 00 91 [11:25:06]Write i2c OK [11:25:06]MH_I2C_Read... [11:25:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:06]Read from MH i2c: E2 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: E2 62 00 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: E2 62 00 01 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D0 95 01 00 0E 04 04 00 62 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 5C [11:25:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D0 95 01 00 0E 04 04 00 62 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 [11:25:06]wFMCommunicate OK [11:25:06]SAM_PROTO_GetFieldsCounters done [11:25:06]requested_item shift.num is exist - process it [11:25:06]requested_item shift.opened is exist - process it [11:25:06]req_shift_opened [11:25:06]FM_GetShiftState [11:25:06]SAM_PROTO_GetShiftState [11:25:06]wFMCommunicate request_size=4 [11:25:06]MH_SAM_APDU [11:25:06]CAPDU: 80 13 01 00 [11:25:06]Write to MH i2c: E2 08 00 02 14 80 13 01 00 00 00 00 00 93 [11:25:06]Write i2c OK [11:25:06]MH_I2C_Read... [11:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:06]Read from MH i2c: E2 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: E2 0E 00 [11:25:06]MH_I2C_Read... [11:25:06]Read from MH i2c: E2 0E 00 02 14 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E2 [11:25:06]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:25:06]wFMCommunicate OK [11:25:06]SAM_PROTO_GetShiftState done [11:25:06]FM_GetShiftState done [11:25:06]req_shift_opened done [11:25:06]requested_item shift.open_date is exist - process it [11:25:06]req_shift_open_date [11:25:06]req_shift_open_date done [11:25:06]produce_requested_data done [11:25:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103888,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:25:06]process_action_free close_receipt [11:25:06]json_value_free [11:25:06]json_value_free done [11:25:06]process_json_proto returns [11:25:06]Send response to host [11:25:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103888,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:25:06]free response buf [11:25:06]execute_script done [11:25:06]execute_script returns [11:25:06]free content buf [11:25:06]Sock 9.Close socket [11:25:06]Sock 9.Thread stoped [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:24]accept exits with 7 [11:26:24]New connection [11:26:24]New thread 3067063652 created [11:26:24]Thread 3067207012 joined [11:26:24]Waiting for new connection... [11:26:24] Sock 7.Parse request [11:26:24]Sock 7.Check first char [11:26:24]Sock 7.First char is OK [11:26:24]request: POST /json_proto HTTP/1.0 [11:26:24]Method: POST [11:26:24]URL: /json_proto [11:26:24]Method is POST - this is cgi request [11:26:24]url: /json_proto [11:26:24]query_string will be loaded in cgi processing [11:26:24]execute_cgi json_proto POST (null) [11:26:24]execute_cgi path=json_proto method=POST [11:26:24]POST find Content-Length [11:26:24]Host: 172.17.38.133:8080 [11:26:24]Content-Length: 682 [11:26:24]Content-Type: application/json [11:26:24] [11:26:24]POST finish read [11:26:24]Found Content-Length = 682 [11:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:26:24]execute_script... [11:26: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)673223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:26:24]POST & json_proto [11:26:24]process_json_proto [11:26:24]json parsed OK: [11:26:24]protocol is kg_v1.0 [11:26:24]action value=close_receipt [11:26:24]process_action close_receipt [11:26:24]cmd_close_receipt [11:26:24]MH_GetDate [11:26:24]Write to MH i2c: F0 00 00 03 14 06 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: F0 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: F0 09 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: F0 09 00 03 14 00 E2 11 74 66 BD 8F 7C 64 08 [11:26:24]GetLastDocTimeStamp 1718882704 [11:26:24]current date 1718882786 [11:26:24]FM_GetShiftState [11:26:24]SAM_PROTO_GetShiftState [11:26:24]wFMCommunicate request_size=4 [11:26:24]MH_SAM_APDU [11:26:24]CAPDU: 80 13 01 00 [11:26:24]Write to MH i2c: E2 08 00 04 14 80 13 01 00 00 00 00 00 95 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:24]Read from MH i2c: E2 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 0E 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 0E 00 04 14 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E4 [11:26:24]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:26:24]wFMCommunicate OK [11:26:24]SAM_PROTO_GetShiftState done [11:26:24]FM_GetShiftState done [11:26:24]opened in 1718843124 [11:26:24]opened+sec_in_day 1718929524 [11:26:24]quantity*price = 200063 [11:26:24]sum+1 = 200064 [11:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 74 20.06.2024 11:26 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103889 ФПД: 167312072193996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112626&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103889&fm=167312072193996&tin=02508201610067®Number=0000000000092785&sum=200000 [11:26:26]StoreToDocumentArchive [11:26:26]shift 354 fd 103889 [11:26:26]save to /storage/0354/doc_00103889 [11:26:26]save last doc name /storage/0354/doc_00103889 to /storage/kkm_last_doc_name [11:26:26]save OK [11:26:26]Clear old archive folders... [11:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:26]tlvbuf is B6EFF0E0 [11:26:26]SAM_PROTO_ClearQueue [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 09 00 00 [11:26:26]Write to MH i2c: E2 08 00 11 14 80 09 00 00 00 00 00 00 97 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 11 14 00 90 00 99 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_ClearQueue done [11:26:26]KKMCreateOFDPacket [11:26:26]OFDProtocolAddRootSTLVToBuf [11:26:26]FM_MakeSignedData [11:26:26]FM_MakeSignedData [11:26:26]SAM_PROTO_SignData [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 01 02 [11:26:26]Write to MH i2c: E2 08 00 12 14 80 0D 01 02 00 00 00 00 9F [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 12 14 00 90 00 9A [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=255 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 4A 00 00 00 F4 03 04 00 E2 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 95 01 00 35 04 06 00 98 [11:26:26]Write to MH i2c: E2 02 01 13 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 4A 00 00 00 F4 03 04 00 E2 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 95 01 00 35 04 06 00 98 00 00 C7 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 13 14 00 90 00 9B [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=10 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 02 02 05 2B 60 A1 37 CC [11:26:26]Write to MH i2c: E2 0D 00 14 14 80 0D 02 02 05 00 2B 60 A1 37 CC 00 00 DB [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 14 14 00 90 00 9C [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 03 02 [11:26:26]Write to MH i2c: E2 08 00 15 14 80 0D 03 02 00 00 00 00 A4 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0B 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0B 00 15 14 00 8E 2F 35 37 2A D3 91 69 90 00 C5 [11:26:26]RAPDU: 8E 2F 35 37 2A D3 91 69 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_SignData done [11:26:26]FM_MakeSignedData done [11:26:26]CreateOFDProtocolMessage [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 11 00 00 [11:26:26]Write to MH i2c: E2 08 00 16 14 80 11 00 00 00 00 00 00 A4 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 17 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 17 00 16 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F7 [11:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:26:26]wFMCommunicate OK [11:26:26]CreateOFDProtocolMessage done [11:26:26]OFDSenderStorePacket 103889 [11:26:26]StoreOFDPacket docnum=103889 [11:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DA 79 07 01 BF 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 4A 00 00 00 F4 03 04 00 E2 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 95 01 00 35 04 06 00 98 2B 60 A1 37 CC 8E 2F 35 37 2A D3 91 69 [11:26:26]CheckFolder [11:26:26]dirname=/storage/ofd_packets [11:26:26]CheckFolder done [11:26:26]ProducePacketName [11:26:26]name=ofd_packets/00103889 [11:26:26]NVStorageSaveData ofd_packets/00103889 [11:26:26]File name is /storage/ofd_packets/00103889 [11:26:26]Write 301 bytes [11:26:26]NVStorageSaveData done [11:26:26]OFDSenderStorePacket done [11:26:26]KKMCreateOFDPacket done [11:26:26]NVStorageSaveData kkm_last_timestamp [11:26:26]File name is /storage/kkm_last_timestamp [11:26:26]Write 4 bytes [11:26:26]NVStorageSaveData done [11:26:26]ExternCall_PrintAddStr [11:26:26]wPrintStart [11:26:26]Write to MH i2c: 01 00 00 17 14 2B [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 17 14 00 00 00 00 00 FF 0F 40 [11:26:26]RasterBufferAndPrint [11:26:26]line Счет N : (1)673223 [11:26:26]line ИНН: 02508201610067 [11:26:26]line Контрольно-Кассовый Чек [11:26:26]line ПРОДАЖА [11:26:26]line ТРК (МРК, ГНК) : 42 [11:26:26]line Товар: 2710124130 [11:26:26]line Аи-92-К-5 [11:26:26]line 30.130 * 66.40 [11:26:26]line = 2000.63 [11:26:26]line НДС 12% НСП 1% [11:26:26]line > о реализуемом товаре [11:26:26]line ОКРУГЛЕНИЕ: -0.63 [11:26:26]line ИТОГО: 2000.00 [11:26:26]line Внесено: 2000.00 [11:26:26]line СДАЧА: 0.00 [11:26:26]line НСП 1% : 17.70 [11:26:26]line НДС 12% : 212.46 [11:26:26]line Наличными: 2000.00 [11:26:26]line Безнал.: 0.00 [11:26:26]line Место: АЗС № 120 "Партнер Нефть" [11:26:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:26:26]line СНО: Общий режим [11:26:26]line Чек 74 20.06.2024 11:26 [11:26:26]line Смена: 354 ФФД: 1.0 [11:26:26]line ЗНМ: 0300000164 [11:26:26]line РНМ: 0000000000092785 [11:26:26]line Версия ККМ: 001 [11:26:26]line ФМ: 0000000000875093 [11:26:26]line ФД: 103889 [11:26:26]line ФПД: 167312072193996 [11:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112626&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103889&fm=167312072193996&tin=02508201610067®Number=0000000000092785&sum=200000 [11:26:26]OFD Sender: Processing packet 103889 [packets to send 17, broken 16] [11:26:26]ProducePacketName [11:26:26]name=ofd_packets/00103889 [11:26:26]OFD Sender: To server: pG, [11:26:26]CommunicateWithHost lk.salyk.kg:30040 [11:26:26]ConnectInit lk.salyk.kg [11:26:26]written 0, free lines is 4095 [11:26:27]Connected sock=11 [11:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DA 79 07 01 BF 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 4A 00 00 00 F4 03 04 00 E2 11 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D1 95 01 00 35 04 06 00 98 2B 60 A1 37 CC 8E 2F 35 37 2A D3 91 69 [11:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 55 F0 47 00 6A 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 35 30 39 33 10 04 04 00 D1 95 01 00 F4 03 04 00 68 B8 73 66 B6 04 01 00 00 E6 3F 17 BE BC 0F 15 8C [11:26:27]CommunicateWithHost err = 0 [11:26:27]CheckOFDResponse [11:26:27]1017 (14) - 77093643461234 [11:26:27]1041 (16) - 0000000000875093 [11:26:27]1040 (4) - 103889 [11:26:27]1012 (4) - 20.06.2024 05:04 [11:26:27]1206 (1) - 0 [11:26:27]OFD Sender: Remove packet 103889 [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00103889 [11:26:27]NVStorageDeleteData [11:26:27]Write to MH i2c: 01 00 00 42 14 56 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 42 14 00 00 00 00 00 EB 0C 54 [11:26:27]RasterBufferAndPrint [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]written 0, free lines is 3313 [11:26:27]MH_Cut [11:26:27]Write to MH i2c: D1 01 00 49 14 01 2F [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 01 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 01 00 49 14 00 2E [11:26:27]Write to MH i2c: 01 00 00 4A 14 5E [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]OFD Sender: No OFD packet to send [11:26:28]*** Cut start [11:26:28]*** Partial cut [11:26:28]*** CUTSNS_PIN = 1 [11:26:28]*** CUTSNS_PIN = 0 [11:26:28]*** Brake cut motor [11:26:28]Read from MH i2c: 01 [11:26:28]MH_I2C_Read... [11:26:28]*** Stop cut motor [11:26:28]*** Cut end [11:26:28]Read from MH i2c: 01 07 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: 01 07 00 4A 14 00 00 00 00 00 FF 0F 73 [11:26:28]process_action close_receipt done [11:26:28]requested_data is exist [11:26:28]produce_requested_data [11:26:28]requested_item fm.sn is exist - process it [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 11 00 00 [11:26:28]Write to MH i2c: E2 08 00 4B 14 80 11 00 00 00 00 00 00 D9 [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 17 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 17 00 4B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2C [11:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:26:28]wFMCommunicate OK [11:26:28]requested_item fd.num is exist - process it [11:26:28]SAM_PROTO_GetFieldsCounters [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 13 00 00 [11:26:28]Write to MH i2c: E2 08 00 4C 14 80 13 00 00 00 00 00 00 DC [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 62 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 62 00 4C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D1 95 01 00 0E 04 04 00 62 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 AB [11:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D1 95 01 00 0E 04 04 00 62 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 [11:26:28]wFMCommunicate OK [11:26:28]SAM_PROTO_GetFieldsCounters done [11:26:28]requested_item shift.num is exist - process it [11:26:28]requested_item shift.opened is exist - process it [11:26:28]req_shift_opened [11:26:28]FM_GetShiftState [11:26:28]SAM_PROTO_GetShiftState [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 13 01 00 [11:26:28]Write to MH i2c: E2 08 00 4D 14 80 13 01 00 00 00 00 00 DE [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 0E 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 0E 00 4D 14 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 2D [11:26:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:26:28]wFMCommunicate OK [11:26:28]SAM_PROTO_GetShiftState done [11:26:28]FM_GetShiftState done [11:26:28]req_shift_opened done [11:26:28]requested_item shift.open_date is exist - process it [11:26:28]req_shift_open_date [11:26:28]req_shift_open_date done [11:26:28]produce_requested_data done [11:26:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103889,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:26:28]process_action_free close_receipt [11:26:28]json_value_free [11:26:28]json_value_free done [11:26:28]process_json_proto returns [11:26:28]Send response to host [11:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103889,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:26:28]free response buf [11:26:28]execute_script done [11:26:28]execute_script returns [11:26:28]free content buf [11:26:28]Sock 7.Close socket [11:26:28]Sock 7.Thread stoped [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:30]accept exits with 9 [11:28:30]New connection [11:28:30]New thread 3067207012 created [11:28:30]Thread 3067063652 joined [11:28:30]Waiting for new connection... [11:28:30] Sock 9.Parse request [11:28:30]Sock 9.Check first char [11:28:30]Sock 9.First char is OK [11:28:30]request: POST /json_proto HTTP/1.0 [11:28:30]Method: POST [11:28:30]URL: /json_proto [11:28:30]Method is POST - this is cgi request [11:28:30]url: /json_proto [11:28:30]query_string will be loaded in cgi processing [11:28:30]execute_cgi json_proto POST (null) [11:28:30]execute_cgi path=json_proto method=POST [11:28:30]POST find Content-Length [11:28:30]Host: 172.17.38.133:8080 [11:28:30]Content-Length: 677 [11:28:30]Content-Type: application/json [11:28:30] [11:28:30]POST finish read [11:28:30]Found Content-Length = 677 [11:28:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:30]execute_script... [11:28: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)673224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:30]POST & json_proto [11:28:30]process_json_proto [11:28:30]json parsed OK: [11:28:30]protocol is kg_v1.0 [11:28:30]action value=close_receipt [11:28:30]process_action close_receipt [11:28:30]cmd_close_receipt [11:28:30]MH_GetDate [11:28:30]Write to MH i2c: F0 00 00 4E 14 51 [11:28:30]Write i2c OK [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: F0 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: F0 09 00 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: F0 09 00 4E 14 00 60 12 74 66 BD 8F 7C 64 D2 [11:28:30]GetLastDocTimeStamp 1718882786 [11:28:30]current date 1718882912 [11:28:30]FM_GetShiftState [11:28:30]SAM_PROTO_GetShiftState [11:28:30]wFMCommunicate request_size=4 [11:28:30]MH_SAM_APDU [11:28:30]CAPDU: 80 13 01 00 [11:28:30]Write to MH i2c: E2 08 00 4F 14 80 13 01 00 00 00 00 00 E0 [11:28:30]Write i2c OK [11:28:30]MH_I2C_Read... [11:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:30]Read from MH i2c: E2 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: E2 0E 00 [11:28:30]MH_I2C_Read... [11:28:30]Read from MH i2c: E2 0E 00 4F 14 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 2F [11:28:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:28:30]wFMCommunicate OK [11:28:30]SAM_PROTO_GetShiftState done [11:28:30]FM_GetShiftState done [11:28:30]opened in 1718843124 [11:28:30]opened+sec_in_day 1718929524 [11:28:30]quantity*price = 50065 [11:28:30]sum+1 = 50067 [11:28:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 75 20.06.2024 11:28 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103890 ФПД: 232350258111928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112832&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103890&fm=232350258111928&tin=02508201610067®Number=0000000000092785&sum=50000 [11:28:31]StoreToDocumentArchive [11:28:31]shift 354 fd 103890 [11:28:31]save to /storage/0354/doc_00103890 [11:28:31]save last doc name /storage/0354/doc_00103890 to /storage/kkm_last_doc_name [11:28:31]save OK [11:28:31]Clear old archive folders... [11:28:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:31]tlvbuf is B6F18400 [11:28:31]SAM_PROTO_ClearQueue [11:28:31]wFMCommunicate request_size=4 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 09 00 00 [11:28:31]Write to MH i2c: E2 08 00 5C 14 80 09 00 00 00 00 00 00 E2 [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:31]Read from MH i2c: E2 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 5C 14 00 90 00 E4 [11:28:31]RAPDU: 90 00 [11:28:31]wFMCommunicate OK [11:28:31]SAM_PROTO_ClearQueue done [11:28:31]KKMCreateOFDPacket [11:28:31]OFDProtocolAddRootSTLVToBuf [11:28:31]FM_MakeSignedData [11:28:31]FM_MakeSignedData [11:28:31]SAM_PROTO_SignData [11:28:31]wFMCommunicate request_size=4 [11:28:31]MH_SAM_APDU [11:28:31]CAPDU: 80 0D 01 02 [11:28:31]Write to MH i2c: E2 08 00 5D 14 80 0D 01 02 00 00 00 00 EA [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:31]Read from MH i2c: E2 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 [11:28:31]MH_I2C_Read... [11:28:31]Read from MH i2c: E2 03 00 5D 14 00 90 00 E5 [11:28:31]RAPDU: 90 00 [11:28:31]wFMCommunicate OK [11:28:31]wFMCommunicate request_size=255 [11:28:31]MH_SAM_APDU [11:28: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 60 12 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 95 01 00 35 04 06 00 D3 [11:28:31]Write to MH i2c: E2 02 01 5E 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 60 12 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 95 01 00 35 04 06 00 D3 00 00 D9 [11:28:31]Write i2c OK [11:28:31]MH_I2C_Read... [11:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:32]Read from MH i2c: E2 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 03 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 03 00 5E 14 00 90 00 E6 [11:28:32]RAPDU: 90 00 [11:28:32]wFMCommunicate OK [11:28:32]wFMCommunicate request_size=10 [11:28:32]MH_SAM_APDU [11:28:32]CAPDU: 80 0D 02 02 05 52 42 99 25 B8 [11:28:32]Write to MH i2c: E2 0D 00 5F 14 80 0D 02 02 05 00 52 42 99 25 B8 00 00 01 [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:32]Read from MH i2c: E2 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 03 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 03 00 5F 14 00 90 00 E7 [11:28:32]RAPDU: 90 00 [11:28:32]wFMCommunicate OK [11:28:32]wFMCommunicate request_size=4 [11:28:32]MH_SAM_APDU [11:28:32]CAPDU: 80 0D 03 02 [11:28:32]Write to MH i2c: E2 08 00 60 14 80 0D 03 02 00 00 00 00 EF [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:32]Read from MH i2c: E2 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 0B 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 0B 00 60 14 00 3B 62 72 9E 89 9E F2 FE 90 00 B4 [11:28:32]RAPDU: 3B 62 72 9E 89 9E F2 FE 90 00 [11:28:32]wFMCommunicate OK [11:28:32]SAM_PROTO_SignData done [11:28:32]FM_MakeSignedData done [11:28:32]CreateOFDProtocolMessage [11:28:32]wFMCommunicate request_size=4 [11:28:32]MH_SAM_APDU [11:28:32]CAPDU: 80 11 00 00 [11:28:32]Write to MH i2c: E2 08 00 61 14 80 11 00 00 00 00 00 00 EF [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:32]Read from MH i2c: E2 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 17 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: E2 17 00 61 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 42 [11:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:28:32]wFMCommunicate OK [11:28:32]CreateOFDProtocolMessage done [11:28:32]OFDSenderStorePacket 103890 [11:28:32]StoreOFDPacket docnum=103890 [11:28:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 86 2F 07 01 28 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 60 12 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 95 01 00 35 04 06 00 D3 52 42 99 25 B8 3B 62 72 9E 89 9E F2 FE [11:28:32]CheckFolder [11:28:32]dirname=/storage/ofd_packets [11:28:32]CheckFolder done [11:28:32]ProducePacketName [11:28:32]name=ofd_packets/00103890 [11:28:32]NVStorageSaveData ofd_packets/00103890 [11:28:32]File name is /storage/ofd_packets/00103890 [11:28:32]Write 301 bytes [11:28:32]NVStorageSaveData done [11:28:32]OFDSenderStorePacket done [11:28:32]KKMCreateOFDPacket done [11:28:32]NVStorageSaveData kkm_last_timestamp [11:28:32]File name is /storage/kkm_last_timestamp [11:28:32]Write 4 bytes [11:28:32]NVStorageSaveData done [11:28:32]ExternCall_PrintAddStr [11:28:32]wPrintStart [11:28:32]Write to MH i2c: 01 00 00 62 14 76 [11:28:32]Write i2c OK [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: 01 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: 01 07 00 [11:28:32]MH_I2C_Read... [11:28:32]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 FF 0F 8B [11:28:32]RasterBufferAndPrint [11:28:32]line Счет N : (1)673224 [11:28:32]line ИНН: 02508201610067 [11:28:32]line Контрольно-Кассовый Чек [11:28:32]line ПРОДАЖА [11:28:32]line ТРК (МРК, ГНК) : 42 [11:28:32]line Товар: 2710124130 [11:28:32]line Аи-92-К-5 [11:28:32]line 7.540 * 66.40 [11:28:32]line = 500.66 [11:28:32]line НДС 12% НСП 1% [11:28:32]line > о реализуемом товаре [11:28:32]line ОКРУГЛЕНИЕ: -0.66 [11:28:32]line ИТОГО: 500.00 [11:28:32]line Внесено: 500.00 [11:28:32]line СДАЧА: 0.00 [11:28:32]line НСП 1% : 4.43 [11:28:32]line НДС 12% : 53.17 [11:28:32]line Наличными: 500.00 [11:28:32]line Безнал.: 0.00 [11:28:32]line Место: АЗС № 120 "Партнер Нефть" [11:28:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:28:32]line СНО: Общий режим [11:28:32]line Чек 75 20.06.2024 11:28 [11:28:32]line Смена: 354 ФФД: 1.0 [11:28:32]line ЗНМ: 0300000164 [11:28:32]line РНМ: 0000000000092785 [11:28:32]line Версия ККМ: 001 [11:28:32]line ФМ: 0000000000875093 [11:28:32]line ФД: 103890 [11:28:32]line ФПД: 232350258111928 [11:28:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T112832&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103890&fm=232350258111928&tin=02508201610067®Number=0000000000092785&sum=50000 [11:28:32]written 0, free lines is 4095 [11:28:32]OFD Sender: Processing packet 103890 [packets to send 17, broken 16] [11:28:32]ProducePacketName [11:28:32]name=ofd_packets/00103890 [11:28:32]OFD Sender: To server: pG, [11:28:32]CommunicateWithHost lk.salyk.kg:30040 [11:28:32]ConnectInit lk.salyk.kg [11:28:32]Connected sock=10 [11:28:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 86 2F 07 01 28 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 60 12 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 95 01 00 35 04 06 00 D3 52 42 99 25 B8 3B 62 72 9E 89 9E F2 FE [11:28:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 33 35 47 00 56 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D2 95 01 00 F4 03 04 00 E6 B8 73 66 B6 04 01 00 00 3E 74 62 14 ED 02 45 39 [11:28:33]CommunicateWithHost err = 0 [11:28:33]CheckOFDResponse [11:28:33]1017 (14) - 77093643461234 [11:28:33]1041 (16) - 0000000000875093 [11:28:33]1040 (4) - 103890 [11:28:33]1012 (4) - 20.06.2024 05:06 [11:28:33]1206 (1) - 0 [11:28:33]OFD Sender: Remove packet 103890 [11:28:33]ProducePacketName [11:28:33]name=ofd_packets/00103890 [11:28:33]NVStorageDeleteData [11:28:33]Write to MH i2c: 01 00 00 8D 14 A1 [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: 01 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: 01 07 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: 01 07 00 8D 14 00 00 00 00 00 F3 0C A7 [11:28:33]RasterBufferAndPrint [11:28:33]line [11:28:33]line [11:28:33]line [11:28:33]line [11:28:33]line [11:28:33]written 0, free lines is 3324 [11:28:33]MH_Cut [11:28:33]Write to MH i2c: D1 01 00 94 14 01 7A [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: D1 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: D1 01 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: D1 01 00 94 14 00 79 [11:28:33]Write to MH i2c: 01 00 00 95 14 A9 [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]OFD Sender: No OFD packet to send [11:28:33]*** Cut start [11:28:33]*** Partial cut [11:28:33]*** CUTSNS_PIN = 1 [11:28:33]*** CUTSNS_PIN = 0 [11:28:34]*** Brake cut motor [11:28:34]Read from MH i2c: 01 [11:28:34]MH_I2C_Read... [11:28:34]*** Stop cut motor [11:28:34]*** Cut end [11:28:34]Read from MH i2c: 01 07 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: 01 07 00 95 14 00 00 00 00 00 FF 0F BE [11:28:34]process_action close_receipt done [11:28:34]requested_data is exist [11:28:34]produce_requested_data [11:28:34]requested_item fm.sn is exist - process it [11:28:34]wFMCommunicate request_size=4 [11:28:34]MH_SAM_APDU [11:28:34]CAPDU: 80 11 00 00 [11:28:34]Write to MH i2c: E2 08 00 96 14 80 11 00 00 00 00 00 00 24 [11:28:34]Write i2c OK [11:28:34]MH_I2C_Read... [11:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:34]Read from MH i2c: E2 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 17 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 17 00 96 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 77 [11:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:28:34]wFMCommunicate OK [11:28:34]requested_item fd.num is exist - process it [11:28:34]SAM_PROTO_GetFieldsCounters [11:28:34]wFMCommunicate request_size=4 [11:28:34]MH_SAM_APDU [11:28:34]CAPDU: 80 13 00 00 [11:28:34]Write to MH i2c: E2 08 00 97 14 80 13 00 00 00 00 00 00 27 [11:28:34]Write i2c OK [11:28:34]MH_I2C_Read... [11:28:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:34]Read from MH i2c: E2 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 62 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 62 00 97 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D2 95 01 00 0E 04 04 00 62 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 FA [11:28:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D2 95 01 00 0E 04 04 00 62 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:28:34]wFMCommunicate OK [11:28:34]SAM_PROTO_GetFieldsCounters done [11:28:34]requested_item shift.num is exist - process it [11:28:34]requested_item shift.opened is exist - process it [11:28:34]req_shift_opened [11:28:34]FM_GetShiftState [11:28:34]SAM_PROTO_GetShiftState [11:28:34]wFMCommunicate request_size=4 [11:28:34]MH_SAM_APDU [11:28:34]CAPDU: 80 13 01 00 [11:28:34]Write to MH i2c: E2 08 00 98 14 80 13 01 00 00 00 00 00 29 [11:28:34]Write i2c OK [11:28:34]MH_I2C_Read... [11:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:34]Read from MH i2c: E2 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 0E 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 0E 00 98 14 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 78 [11:28:34]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:28:34]wFMCommunicate OK [11:28:34]SAM_PROTO_GetShiftState done [11:28:34]FM_GetShiftState done [11:28:34]req_shift_opened done [11:28:34]requested_item shift.open_date is exist - process it [11:28:34]req_shift_open_date [11:28:34]req_shift_open_date done [11:28:34]produce_requested_data done [11:28:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103890,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:28:34]process_action_free close_receipt [11:28:34]json_value_free [11:28:34]json_value_free done [11:28:34]process_json_proto returns [11:28:34]Send response to host [11:28:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103890,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:28:34]free response buf [11:28:34]execute_script done [11:28:34]execute_script returns [11:28:34]free content buf [11:28:34]Sock 9.Close socket [11:28:34]Sock 9.Thread stoped [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:24]accept exits with 7 [11:30:24]New connection [11:30:24]New thread 3067063652 created [11:30:24]Thread 3067207012 joined [11:30:24]Waiting for new connection... [11:30:24] Sock 7.Parse request [11:30:24]Sock 7.Check first char [11:30:24]Sock 7.First char is OK [11:30:24]request: POST /json_proto HTTP/1.0 [11:30:24]Method: POST [11:30:24]URL: /json_proto [11:30:24]Method is POST - this is cgi request [11:30:24]url: /json_proto [11:30:24]query_string will be loaded in cgi processing [11:30:24]execute_cgi json_proto POST (null) [11:30:24]execute_cgi path=json_proto method=POST [11:30:24]POST find Content-Length [11:30:24]Host: 172.17.38.133:8080 [11:30:24]Content-Length: 678 [11:30:24]Content-Type: application/json [11:30:24] [11:30:24]POST finish read [11:30:24]Found Content-Length = 678 [11:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673225", "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" : 73.90, "quantity" : 10.830, "sum" : 800.34, "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" ] } } [11:30:24]execute_script... [11:30: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)673225", "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" : 73.90, "quantity" : 10.830, "sum" : 800.34, "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" ] } } [11:30:24]POST & json_proto [11:30:24]process_json_proto [11:30:24]json parsed OK: [11:30:24]protocol is kg_v1.0 [11:30:24]action value=close_receipt [11:30:24]process_action close_receipt [11:30:24]cmd_close_receipt [11:30:24]MH_GetDate [11:30:24]Write to MH i2c: F0 00 00 99 14 9C [11:30:24]Write i2c OK [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: F0 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: F0 09 00 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: F0 09 00 99 14 00 D1 12 74 66 BD 8F 7C 64 8E [11:30:24]GetLastDocTimeStamp 1718882912 [11:30:24]current date 1718883025 [11:30:24]FM_GetShiftState [11:30:24]SAM_PROTO_GetShiftState [11:30:24]wFMCommunicate request_size=4 [11:30:24]MH_SAM_APDU [11:30:24]CAPDU: 80 13 01 00 [11:30:24]Write to MH i2c: E2 08 00 9A 14 80 13 01 00 00 00 00 00 2B [11:30:24]Write i2c OK [11:30:24]MH_I2C_Read... [11:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:24]Read from MH i2c: E2 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: E2 0E 00 [11:30:24]MH_I2C_Read... [11:30:24]Read from MH i2c: E2 0E 00 9A 14 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 7A [11:30:24]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:30:24]wFMCommunicate OK [11:30:24]SAM_PROTO_GetShiftState done [11:30:24]FM_GetShiftState done [11:30:24]opened in 1718843124 [11:30:24]opened+sec_in_day 1718929524 [11:30:24]quantity*price = 80033 [11:30:24]sum+1 = 80035 [11:30:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.99 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 76 20.06.2024 11:30 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103891 ФПД: 1597348265868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113025&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103891&fm=1597348265868&tin=02508201610067®Number=0000000000092785&sum=80000 [11:30:25]StoreToDocumentArchive [11:30:25]shift 354 fd 103891 [11:30:25]save to /storage/0354/doc_00103891 [11:30:25]save last doc name /storage/0354/doc_00103891 to /storage/kkm_last_doc_name [11:30:25]save OK [11:30:25]Clear old archive folders... [11:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:25]tlvbuf is B6F18C30 [11:30:25]SAM_PROTO_ClearQueue [11:30:25]wFMCommunicate request_size=4 [11:30:25]MH_SAM_APDU [11:30:25]CAPDU: 80 09 00 00 [11:30:25]Write to MH i2c: E2 08 00 A7 14 80 09 00 00 00 00 00 00 2D [11:30:25]Write i2c OK [11:30:25]MH_I2C_Read... [11:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:25]Read from MH i2c: E2 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 03 00 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 03 00 A7 14 00 90 00 2F [11:30:25]RAPDU: 90 00 [11:30:25]wFMCommunicate OK [11:30:25]SAM_PROTO_ClearQueue done [11:30:25]KKMCreateOFDPacket [11:30:25]OFDProtocolAddRootSTLVToBuf [11:30:25]FM_MakeSignedData [11:30:25]FM_MakeSignedData [11:30:25]SAM_PROTO_SignData [11:30:25]wFMCommunicate request_size=4 [11:30:25]MH_SAM_APDU [11:30:25]CAPDU: 80 0D 01 02 [11:30:25]Write to MH i2c: E2 08 00 A8 14 80 0D 01 02 00 00 00 00 35 [11:30:25]Write i2c OK [11:30:25]MH_I2C_Read... [11:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:25]Read from MH i2c: E2 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 03 00 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 03 00 A8 14 00 90 00 30 [11:30:25]RAPDU: 90 00 [11:30:25]wFMCommunicate OK [11:30:25]wFMCommunicate request_size=255 [11:30:25]MH_SAM_APDU [11:30:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 4C 00 00 00 F4 03 04 00 D1 12 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 95 01 00 35 04 06 00 01 [11:30:25]Write to MH i2c: E2 02 01 A9 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 4C 00 00 00 F4 03 04 00 D1 12 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 95 01 00 35 04 06 00 01 00 00 F8 [11:30:25]Write i2c OK [11:30:25]MH_I2C_Read... [11:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:25]Read from MH i2c: E2 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 03 00 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 03 00 A9 14 00 90 00 31 [11:30:25]RAPDU: 90 00 [11:30:25]wFMCommunicate OK [11:30:25]wFMCommunicate request_size=10 [11:30:25]MH_SAM_APDU [11:30:25]CAPDU: 80 0D 02 02 05 73 E9 60 3F 8C [11:30:25]Write to MH i2c: E2 0D 00 AA 14 80 0D 02 02 05 00 73 E9 60 3F 8C 00 00 C9 [11:30:25]Write i2c OK [11:30:25]MH_I2C_Read... [11:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:25]Read from MH i2c: E2 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 03 00 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 03 00 AA 14 00 90 00 32 [11:30:25]RAPDU: 90 00 [11:30:25]wFMCommunicate OK [11:30:25]wFMCommunicate request_size=4 [11:30:25]MH_SAM_APDU [11:30:25]CAPDU: 80 0D 03 02 [11:30:25]Write to MH i2c: E2 08 00 AB 14 80 0D 03 02 00 00 00 00 3A [11:30:25]Write i2c OK [11:30:25]MH_I2C_Read... [11:30:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:25]Read from MH i2c: E2 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 0B 00 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 0B 00 AB 14 00 EA F5 D5 BA A3 EF 0C F6 90 00 3D [11:30:25]RAPDU: EA F5 D5 BA A3 EF 0C F6 90 00 [11:30:25]wFMCommunicate OK [11:30:25]SAM_PROTO_SignData done [11:30:25]FM_MakeSignedData done [11:30:25]CreateOFDProtocolMessage [11:30:25]wFMCommunicate request_size=4 [11:30:25]MH_SAM_APDU [11:30:25]CAPDU: 80 11 00 00 [11:30:25]Write to MH i2c: E2 08 00 AC 14 80 11 00 00 00 00 00 00 3A [11:30:25]Write i2c OK [11:30:25]MH_I2C_Read... [11:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:25]Read from MH i2c: E2 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 17 00 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: E2 17 00 AC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8D [11:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:30:25]wFMCommunicate OK [11:30:25]CreateOFDProtocolMessage done [11:30:25]OFDSenderStorePacket 103891 [11:30:25]StoreOFDPacket docnum=103891 [11:30:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2F E5 07 01 74 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 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 4C 00 00 00 F4 03 04 00 D1 12 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 95 01 00 35 04 06 00 01 73 E9 60 3F 8C EA F5 D5 BA A3 EF 0C F6 [11:30:25]CheckFolder [11:30:25]dirname=/storage/ofd_packets [11:30:25]CheckFolder done [11:30:25]ProducePacketName [11:30:25]name=ofd_packets/00103891 [11:30:25]NVStorageSaveData ofd_packets/00103891 [11:30:25]File name is /storage/ofd_packets/00103891 [11:30:25]Write 301 bytes [11:30:25]NVStorageSaveData done [11:30:25]OFDSenderStorePacket done [11:30:25]KKMCreateOFDPacket done [11:30:25]NVStorageSaveData kkm_last_timestamp [11:30:25]File name is /storage/kkm_last_timestamp [11:30:25]Write 4 bytes [11:30:25]NVStorageSaveData done [11:30:25]ExternCall_PrintAddStr [11:30:25]wPrintStart [11:30:25]Write to MH i2c: 01 00 00 AD 14 C1 [11:30:25]Write i2c OK [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: 01 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: 01 07 00 [11:30:25]MH_I2C_Read... [11:30:25]Read from MH i2c: 01 07 00 AD 14 00 00 00 00 00 FF 0F D6 [11:30:25]RasterBufferAndPrint [11:30:25]line Счет N : (1)673225 [11:30:25]line ИНН: 02508201610067 [11:30:25]line Контрольно-Кассовый Чек [11:30:25]line ПРОДАЖА [11:30:25]line ТРК (МРК, ГНК) : 31 [11:30:25]line Товар: 2710124500 [11:30:25]line Аи-95-К-5 [11:30:25]line 10.830 * 73.90 [11:30:25]line = 800.34 [11:30:25]line НДС 12% НСП 1% [11:30:25]line > о реализуемом товаре [11:30:25]line ОКРУГЛЕНИЕ: -0.34 [11:30:25]line ИТОГО: 800.00 [11:30:25]line Внесено: 800.00 [11:30:25]line СДАЧА: 0.00 [11:30:25]line НСП 1% : 7.08 [11:30:25]line НДС 12% : 84.99 [11:30:25]line Наличными: 800.00 [11:30:25]line Безнал.: 0.00 [11:30:25]line Место: АЗС № 120 "Партнер Нефть" [11:30:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:30:25]line СНО: Общий режим [11:30:25]line Чек 76 20.06.2024 11:30 [11:30:25]line Смена: 354 ФФД: 1.0 [11:30:25]line ЗНМ: 0300000164 [11:30:25]line РНМ: 0000000000092785 [11:30:25]line Версия ККМ: 001 [11:30:25]line ФМ: 0000000000875093 [11:30:25]line ФД: 103891 [11:30:25]line ФПД: 1597348265868 [11:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113025&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103891&fm=1597348265868&tin=02508201610067®Number=0000000000092785&sum=80000 [11:30:26]written 0, free lines is 4095 [11:30:26]OFD Sender: Processing packet 103891 [packets to send 17, broken 16] [11:30:26]ProducePacketName [11:30:26]name=ofd_packets/00103891 [11:30:26]OFD Sender: To server: pG, [11:30:26]CommunicateWithHost lk.salyk.kg:30040 [11:30:26]ConnectInit lk.salyk.kg [11:30:26]Connected sock=10 [11:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2F E5 07 01 74 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 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 4C 00 00 00 F4 03 04 00 D1 12 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D3 95 01 00 35 04 06 00 01 73 E9 60 3F 8C EA F5 D5 BA A3 EF 0C F6 [11:30:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2A DA 47 00 E8 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 35 30 39 33 10 04 04 00 D3 95 01 00 F4 03 04 00 57 B9 73 66 B6 04 01 00 00 D8 A6 E3 4B 34 B4 2A 71 [11:30:26]CommunicateWithHost err = 0 [11:30:26]CheckOFDResponse [11:30:26]1017 (14) - 77093643461234 [11:30:26]1041 (16) - 0000000000875093 [11:30:26]1040 (4) - 103891 [11:30:26]1012 (4) - 20.06.2024 05:08 [11:30:26]1206 (1) - 0 [11:30:26]OFD Sender: Remove packet 103891 [11:30:26]ProducePacketName [11:30:26]name=ofd_packets/00103891 [11:30:26]NVStorageDeleteData [11:30:26]Write to MH i2c: 01 00 00 D8 14 EC [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: 01 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: 01 07 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: 01 07 00 D8 14 00 00 00 00 00 E7 0C E6 [11:30:26]RasterBufferAndPrint [11:30:26]line [11:30:26]line [11:30:26]line [11:30:26]line [11:30:26]line [11:30:26]written 0, free lines is 3312 [11:30:26]MH_Cut [11:30:26]Write to MH i2c: D1 01 00 DF 14 01 C5 [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: D1 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: D1 01 00 [11:30:26]MH_I2C_Read... [11:30:26]Read from MH i2c: D1 01 00 DF 14 00 C4 [11:30:26]Write to MH i2c: 01 00 00 E0 14 F4 [11:30:26]Write i2c OK [11:30:26]MH_I2C_Read... [11:30:27]OFD Sender: No OFD packet to send [11:30:27]*** Cut start [11:30:27]*** Partial cut [11:30:27]*** CUTSNS_PIN = 1 [11:30:27]*** CUTSNS_PIN = 0 [11:30:27]*** Brake cut motor [11:30:27]Read from MH i2c: 01 [11:30:27]MH_I2C_Read... [11:30:27]*** Stop cut motor [11:30:27]*** Cut end [11:30:27]Read from MH i2c: 01 07 00 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: 01 07 00 E0 14 00 00 00 00 00 FF 0F 09 [11:30:27]process_action close_receipt done [11:30:27]requested_data is exist [11:30:27]produce_requested_data [11:30:27]requested_item fm.sn is exist - process it [11:30:27]wFMCommunicate request_size=4 [11:30:27]MH_SAM_APDU [11:30:27]CAPDU: 80 11 00 00 [11:30:27]Write to MH i2c: E2 08 00 E1 14 80 11 00 00 00 00 00 00 6F [11:30:27]Write i2c OK [11:30:27]MH_I2C_Read... [11:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:27]Read from MH i2c: E2 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 17 00 [11:30:27]MH_I2C_Read... [11:30:27]Read from MH i2c: E2 17 00 E1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C2 [11:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:30:27]wFMCommunicate OK [11:30:27]requested_item fd.num is exist - process it [11:30:27]SAM_PROTO_GetFieldsCounters [11:30:27]wFMCommunicate request_size=4 [11:30:27]MH_SAM_APDU [11:30:27]CAPDU: 80 13 00 00 [11:30:27]Write to MH i2c: E2 08 00 E2 14 80 13 00 00 00 00 00 00 72 [11:30:27]Write i2c OK [11:30:27]MH_I2C_Read... [11:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:28]Read from MH i2c: E2 [11:30:28]MH_I2C_Read... [11:30:28]Read from MH i2c: E2 62 00 [11:30:28]MH_I2C_Read... [11:30:28]Read from MH i2c: E2 62 00 E2 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D3 95 01 00 0E 04 04 00 62 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 49 [11:30:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D3 95 01 00 0E 04 04 00 62 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:30:28]wFMCommunicate OK [11:30:28]SAM_PROTO_GetFieldsCounters done [11:30:28]requested_item shift.num is exist - process it [11:30:28]requested_item shift.opened is exist - process it [11:30:28]req_shift_opened [11:30:28]FM_GetShiftState [11:30:28]SAM_PROTO_GetShiftState [11:30:28]wFMCommunicate request_size=4 [11:30:28]MH_SAM_APDU [11:30:28]CAPDU: 80 13 01 00 [11:30:28]Write to MH i2c: E2 08 00 E3 14 80 13 01 00 00 00 00 00 74 [11:30:28]Write i2c OK [11:30:28]MH_I2C_Read... [11:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:28]Read from MH i2c: E2 [11:30:28]MH_I2C_Read... [11:30:28]Read from MH i2c: E2 0E 00 [11:30:28]MH_I2C_Read... [11:30:28]Read from MH i2c: E2 0E 00 E3 14 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C3 [11:30:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:30:28]wFMCommunicate OK [11:30:28]SAM_PROTO_GetShiftState done [11:30:28]FM_GetShiftState done [11:30:28]req_shift_opened done [11:30:28]requested_item shift.open_date is exist - process it [11:30:28]req_shift_open_date [11:30:28]req_shift_open_date done [11:30:28]produce_requested_data done [11:30:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103891,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:30:28]process_action_free close_receipt [11:30:28]json_value_free [11:30:28]json_value_free done [11:30:28]process_json_proto returns [11:30:28]Send response to host [11:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103891,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:30:28]free response buf [11:30:28]execute_script done [11:30:28]execute_script returns [11:30:28]free content buf [11:30:28]Sock 7.Close socket [11:30:28]Sock 7.Thread stoped [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:44]accept exits with 9 [11:31:44]New connection [11:31:44]New thread 3067207012 created [11:31:44]Thread 3067063652 joined [11:31:44]Waiting for new connection... [11:31:44] Sock 9.Parse request [11:31:44]Sock 9.Check first char [11:31:44]Sock 9.First char is OK [11:31:44]request: POST /json_proto HTTP/1.0 [11:31:44]Method: POST [11:31:44]URL: /json_proto [11:31:44]Method is POST - this is cgi request [11:31:44]url: /json_proto [11:31:44]query_string will be loaded in cgi processing [11:31:44]execute_cgi json_proto POST (null) [11:31:44]execute_cgi path=json_proto method=POST [11:31:44]POST find Content-Length [11:31:44]Host: 172.17.38.133:8080 [11:31:44]Content-Length: 1168 [11:31:44]Content-Type: application/json [11:31:44] [11:31:44]POST finish read [11:31:44]Found Content-Length = 1168 [11:31: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673226\u000A20.06.2024 11:09\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 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101630\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:44]execute_script... [11:31: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673226\u000A20.06.2024 11:09\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 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101630\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:44]POST & json_proto [11:31:44]process_json_proto [11:31:44]json parsed OK: [11:31:44]protocol is kg_v1.0 [11:31:44]action value=print_text [11:31:44]process_action print_text [11:31:44]cmd_print_text [11:31:44]ExternCall_PrintAddStr [11:31:44]wPrintStart [11:31:44]Write to MH i2c: 01 00 00 E4 14 F8 [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 07 00 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 07 00 E4 14 00 00 00 00 00 FF 0F 0D [11:31:44]RasterBufferAndPrint [11:31:44]line *****ТОВАРНЫЙ ЧЕК***** [11:31:44]line АЗС 120 [11:31:44]line Партнер нефть [11:31:44]line 02508201610067 [11:31:44]line Кассир : Дуйшенбиев А. [11:31:44]line Счет N : (1)673226 [11:31:44]line 20.06.2024 11:09 [11:31:44]line ПРОДАЖА [11:31:44]line ТРК (МРК, ГНК): 42 [11:31:44]line Вид ГСМ : 2710124130 [11:31:44]line Аи-92-К-5 [11:31:44]line 10.000 x 66.40 [11:31:44]line ИТОГ: 664.00 [11:31:44]line Тип оплаты: Талоны: ТК ГПНА Online [11:31:44]line 30101630 [11:31:44]line ______________________ [11:31:44]line (подпись) [11:31:44]written 0, free lines is 4095 [11:31:44]Write to MH i2c: 01 00 00 F8 14 0C [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 07 00 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 07 00 F8 14 00 00 00 00 00 12 0E 33 [11:31:44]RasterBufferAndPrint [11:31:44]line [11:31:44]line [11:31:44]line [11:31:44]line [11:31:44]line [11:31:44]written 0, free lines is 3604 [11:31:44]MH_Cut [11:31:44]Write to MH i2c: D1 01 00 FF 14 01 E5 [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: D1 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: D1 01 00 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: D1 01 00 FF 14 00 E4 [11:31:44]Write to MH i2c: 01 00 00 00 15 15 [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:45]*** Cut start [11:31:45]*** Partial cut [11:31:45]*** CUTSNS_PIN = 1 [11:31:45]*** CUTSNS_PIN = 0 [11:31:45]*** Brake cut motor [11:31:45]Read from MH i2c: 01 [11:31:45]MH_I2C_Read... [11:31:45]*** Stop cut motor [11:31:45]*** Cut end [11:31:45]Read from MH i2c: 01 07 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: 01 07 00 00 15 00 00 00 00 00 FF 0F 2A [11:31:45]process_action print_text done [11:31:45]requested_data is exist [11:31:45]produce_requested_data [11:31:45]requested_item fm.sn is exist - process it [11:31:45]wFMCommunicate request_size=4 [11:31:45]MH_SAM_APDU [11:31:45]CAPDU: 80 11 00 00 [11:31:45]Write to MH i2c: E2 08 00 01 15 80 11 00 00 00 00 00 00 90 [11:31:45]Write i2c OK [11:31:45]MH_I2C_Read... [11:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:45]Read from MH i2c: E2 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 17 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 17 00 01 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [11:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:31:45]wFMCommunicate OK [11:31:45]requested_item fd.num is exist - process it [11:31:45]SAM_PROTO_GetFieldsCounters [11:31:45]wFMCommunicate request_size=4 [11:31:45]MH_SAM_APDU [11:31:45]CAPDU: 80 13 00 00 [11:31:45]Write to MH i2c: E2 08 00 02 15 80 13 00 00 00 00 00 00 93 [11:31:45]Write i2c OK [11:31:45]MH_I2C_Read... [11:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:45]Read from MH i2c: E2 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 62 00 [11:31:45]MH_I2C_Read... [11:31:45]Read from MH i2c: E2 62 00 02 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D3 95 01 00 0E 04 04 00 62 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 6A [11:31:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D3 95 01 00 0E 04 04 00 62 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:31:45]wFMCommunicate OK [11:31:45]SAM_PROTO_GetFieldsCounters done [11:31:45]requested_item shift.num is exist - process it [11:31:45]requested_item shift.opened is exist - process it [11:31:45]req_shift_opened [11:31:45]FM_GetShiftState [11:31:45]SAM_PROTO_GetShiftState [11:31:45]wFMCommunicate request_size=4 [11:31:45]MH_SAM_APDU [11:31:45]CAPDU: 80 13 01 00 [11:31:45]Write to MH i2c: E2 08 00 03 15 80 13 01 00 00 00 00 00 95 [11:31:45]Write i2c OK [11:31:45]MH_I2C_Read... [11:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:46]Read from MH i2c: E2 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 0E 00 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 0E 00 03 15 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E4 [11:31:46]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:31:46]wFMCommunicate OK [11:31:46]SAM_PROTO_GetShiftState done [11:31:46]FM_GetShiftState done [11:31:46]req_shift_opened done [11:31:46]requested_item shift.open_date is exist - process it [11:31:46]req_shift_open_date [11:31:46]req_shift_open_date done [11:31:46]produce_requested_data done [11:31:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103891,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:31:46]process_action_free print_text [11:31:46]json_value_free [11:31:46]json_value_free done [11:31:46]process_json_proto returns [11:31:46]Send response to host [11:31:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103891,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:31:46]free response buf [11:31:46]execute_script done [11:31:46]execute_script returns [11:31:46]free content buf [11:31:46]Sock 9.Close socket [11:31:46]Sock 9.Thread stoped [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:02]accept exits with 7 [11:33:02]New connection [11:33:02]New thread 3067063652 created [11:33:02]Thread 3067207012 joined [11:33:02]Waiting for new connection... [11:33:02] Sock 7.Parse request [11:33:02]Sock 7.Check first char [11:33:02]Sock 7.First char is OK [11:33:02]request: POST /json_proto HTTP/1.0 [11:33:02]Method: POST [11:33:02]URL: /json_proto [11:33:02]Method is POST - this is cgi request [11:33:02]url: /json_proto [11:33:02]query_string will be loaded in cgi processing [11:33:02]execute_cgi json_proto POST (null) [11:33:02]execute_cgi path=json_proto method=POST [11:33:02]POST find Content-Length [11:33:02]Host: 172.17.38.133:8080 [11:33:02]Content-Length: 677 [11:33:02]Content-Type: application/json [11:33:02] [11:33:02]POST finish read [11:33:02]Found Content-Length = 677 [11:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:02]execute_script... [11:33: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)673227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:02]POST & json_proto [11:33:02]process_json_proto [11:33:02]json parsed OK: [11:33:02]protocol is kg_v1.0 [11:33:02]action value=close_receipt [11:33:02]process_action close_receipt [11:33:02]cmd_close_receipt [11:33:02]MH_GetDate [11:33:02]Write to MH i2c: F0 00 00 04 15 08 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: F0 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: F0 09 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: F0 09 00 04 15 00 70 13 74 66 BD 8F 7C 64 9A [11:33:02]GetLastDocTimeStamp 1718883025 [11:33:02]current date 1718883184 [11:33:02]FM_GetShiftState [11:33:02]SAM_PROTO_GetShiftState [11:33:02]wFMCommunicate request_size=4 [11:33:02]MH_SAM_APDU [11:33:02]CAPDU: 80 13 01 00 [11:33:02]Write to MH i2c: E2 08 00 05 15 80 13 01 00 00 00 00 00 97 [11:33:02]Write i2c OK [11:33:02]MH_I2C_Read... [11:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:02]Read from MH i2c: E2 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 0E 00 [11:33:02]MH_I2C_Read... [11:33:02]Read from MH i2c: E2 0E 00 05 15 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E6 [11:33:02]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:33:02]wFMCommunicate OK [11:33:02]SAM_PROTO_GetShiftState done [11:33:02]FM_GetShiftState done [11:33:02]opened in 1718843124 [11:33:02]opened+sec_in_day 1718929524 [11:33:02]quantity*price = 60025 [11:33:02]sum+1 = 60027 [11:33:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 77 20.06.2024 11:33 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103892 ФПД: 231612166904976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113304&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103892&fm=231612166904976&tin=02508201610067®Number=0000000000092785&sum=60000 [11:33:03]StoreToDocumentArchive [11:33:03]shift 354 fd 103892 [11:33:03]save to /storage/0354/doc_00103892 [11:33:03]save last doc name /storage/0354/doc_00103892 to /storage/kkm_last_doc_name [11:33:03]save OK [11:33:03]Clear old archive folders... [11:33:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:03]tlvbuf is 0087C700 [11:33:03]SAM_PROTO_ClearQueue [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 09 00 00 [11:33:03]Write to MH i2c: E2 08 00 12 15 80 09 00 00 00 00 00 00 99 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:03]Read from MH i2c: E2 03 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 03 00 12 15 00 90 00 9B [11:33:03]RAPDU: 90 00 [11:33:03]wFMCommunicate OK [11:33:03]SAM_PROTO_ClearQueue done [11:33:03]KKMCreateOFDPacket [11:33:03]OFDProtocolAddRootSTLVToBuf [11:33:03]FM_MakeSignedData [11:33:03]FM_MakeSignedData [11:33:03]SAM_PROTO_SignData [11:33:03]wFMCommunicate request_size=4 [11:33:03]MH_SAM_APDU [11:33:03]CAPDU: 80 0D 01 02 [11:33:03]Write to MH i2c: E2 08 00 13 15 80 0D 01 02 00 00 00 00 A1 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:03]Read from MH i2c: E2 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 03 00 [11:33:03]MH_I2C_Read... [11:33:03]Read from MH i2c: E2 03 00 13 15 00 90 00 9C [11:33:03]RAPDU: 90 00 [11:33:03]wFMCommunicate OK [11:33:03]wFMCommunicate request_size=255 [11:33:03]MH_SAM_APDU [11:33: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 70 13 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 95 01 00 35 04 06 00 D2 [11:33:03]Write to MH i2c: E2 02 01 14 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 70 13 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 95 01 00 35 04 06 00 D2 00 00 81 [11:33:03]Write i2c OK [11:33:03]MH_I2C_Read... [11:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 03 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 03 00 14 15 00 90 00 9D [11:33:04]RAPDU: 90 00 [11:33:04]wFMCommunicate OK [11:33:04]wFMCommunicate request_size=10 [11:33:04]MH_SAM_APDU [11:33:04]CAPDU: 80 0D 02 02 05 A6 68 EF 1C 90 [11:33:04]Write to MH i2c: E2 0D 00 15 15 80 0D 02 02 05 00 A6 68 EF 1C 90 00 00 57 [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 03 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 03 00 15 15 00 90 00 9E [11:33:04]RAPDU: 90 00 [11:33:04]wFMCommunicate OK [11:33:04]wFMCommunicate request_size=4 [11:33:04]MH_SAM_APDU [11:33:04]CAPDU: 80 0D 03 02 [11:33:04]Write to MH i2c: E2 08 00 16 15 80 0D 03 02 00 00 00 00 A6 [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 0B 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 0B 00 16 15 00 17 1A 8C 17 F8 2E 6D A2 90 00 B0 [11:33:04]RAPDU: 17 1A 8C 17 F8 2E 6D A2 90 00 [11:33:04]wFMCommunicate OK [11:33:04]SAM_PROTO_SignData done [11:33:04]FM_MakeSignedData done [11:33:04]CreateOFDProtocolMessage [11:33:04]wFMCommunicate request_size=4 [11:33:04]MH_SAM_APDU [11:33:04]CAPDU: 80 11 00 00 [11:33:04]Write to MH i2c: E2 08 00 17 15 80 11 00 00 00 00 00 00 A6 [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:04]Read from MH i2c: E2 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 17 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: E2 17 00 17 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F9 [11:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:33:04]wFMCommunicate OK [11:33:04]CreateOFDProtocolMessage done [11:33:04]OFDSenderStorePacket 103892 [11:33:04]StoreOFDPacket docnum=103892 [11:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7A 2F 07 01 42 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 70 13 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 95 01 00 35 04 06 00 D2 A6 68 EF 1C 90 17 1A 8C 17 F8 2E 6D A2 [11:33:04]CheckFolder [11:33:04]dirname=/storage/ofd_packets [11:33:04]CheckFolder done [11:33:04]ProducePacketName [11:33:04]name=ofd_packets/00103892 [11:33:04]NVStorageSaveData ofd_packets/00103892 [11:33:04]File name is /storage/ofd_packets/00103892 [11:33:04]Write 301 bytes [11:33:04]NVStorageSaveData done [11:33:04]OFDSenderStorePacket done [11:33:04]KKMCreateOFDPacket done [11:33:04]NVStorageSaveData kkm_last_timestamp [11:33:04]File name is /storage/kkm_last_timestamp [11:33:04]Write 4 bytes [11:33:04]NVStorageSaveData done [11:33:04]ExternCall_PrintAddStr [11:33:04]wPrintStart [11:33:04]Write to MH i2c: 01 00 00 18 15 2D [11:33:04]Write i2c OK [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: 01 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: 01 07 00 [11:33:04]MH_I2C_Read... [11:33:04]Read from MH i2c: 01 07 00 18 15 00 00 00 00 00 FF 0F 42 [11:33:04]RasterBufferAndPrint [11:33:04]line Счет N : (1)673227 [11:33:04]line ИНН: 02508201610067 [11:33:04]line Контрольно-Кассовый Чек [11:33:04]line ПРОДАЖА [11:33:04]line ТРК (МРК, ГНК) : 32 [11:33:04]line Товар: 2710124130 [11:33:04]line Аи-92-К-5 [11:33:04]line 9.040 * 66.40 [11:33:04]line = 600.26 [11:33:04]line НДС 12% НСП 1% [11:33:04]line > о реализуемом товаре [11:33:04]line ОКРУГЛЕНИЕ: -0.26 [11:33:04]line ИТОГО: 600.00 [11:33:04]line Внесено: 600.00 [11:33:04]line СДАЧА: 0.00 [11:33:04]line НСП 1% : 5.31 [11:33:04]line НДС 12% : 63.74 [11:33:04]line Наличными: 600.00 [11:33:04]line Безнал.: 0.00 [11:33:04]line Место: АЗС № 120 "Партнер Нефть" [11:33:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:33:04]line СНО: Общий режим [11:33:04]line Чек 77 20.06.2024 11:33 [11:33:04]line Смена: 354 ФФД: 1.0 [11:33:04]line ЗНМ: 0300000164 [11:33:04]line РНМ: 0000000000092785 [11:33:04]line Версия ККМ: 001 [11:33:04]line ФМ: 0000000000875093 [11:33:04]line ФД: 103892 [11:33:04]line ФПД: 231612166904976 [11:33:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T113304&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103892&fm=231612166904976&tin=02508201610067®Number=0000000000092785&sum=60000 [11:33:04]OFD Sender: Processing packet 103892 [packets to send 17, broken 16] [11:33:04]ProducePacketName [11:33:04]name=ofd_packets/00103892 [11:33:04]OFD Sender: To server: pG, [11:33:04]CommunicateWithHost lk.salyk.kg:30040 [11:33:04]ConnectInit lk.salyk.kg [11:33:04]written 0, free lines is 4095 [11:33:04]Connected sock=10 [11:33:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7A 2F 07 01 42 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 70 13 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 95 01 00 35 04 06 00 D2 A6 68 EF 1C 90 17 1A 8C 17 F8 2E 6D A2 [11:33:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2A 07 47 00 34 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D4 95 01 00 F4 03 04 00 F5 B9 73 66 B6 04 01 00 00 22 1C BC CB 9F E1 77 98 [11:33:04]CommunicateWithHost err = 0 [11:33:04]CheckOFDResponse [11:33:04]1017 (14) - 77093643461234 [11:33:04]1041 (16) - 0000000000875093 [11:33:04]1040 (4) - 103892 [11:33:04]1012 (4) - 20.06.2024 05:11 [11:33:04]1206 (1) - 0 [11:33:04]OFD Sender: Remove packet 103892 [11:33:04]ProducePacketName [11:33:04]name=ofd_packets/00103892 [11:33:04]NVStorageDeleteData [11:33:05]Write to MH i2c: 01 00 00 43 15 58 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: 01 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: 01 07 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: 01 07 00 43 15 00 00 00 00 00 E4 0C 4F [11:33:05]RasterBufferAndPrint [11:33:05]line [11:33:05]line [11:33:05]line [11:33:05]line [11:33:05]line [11:33:05]written 0, free lines is 3306 [11:33:05]MH_Cut [11:33:05]Write to MH i2c: D1 01 00 4A 15 01 31 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: D1 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: D1 01 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: D1 01 00 4A 15 00 30 [11:33:05]Write to MH i2c: 01 00 00 4B 15 60 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]OFD Sender: No OFD packet to send [11:33:05]*** Cut start [11:33:05]*** Partial cut [11:33:05]*** CUTSNS_PIN = 1 [11:33:05]*** CUTSNS_PIN = 0 [11:33:06]*** Brake cut motor [11:33:06]Read from MH i2c: 01 [11:33:06]MH_I2C_Read... [11:33:06]*** Stop cut motor [11:33:06]*** Cut end [11:33:06]Read from MH i2c: 01 07 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: 01 07 00 4B 15 00 00 00 00 00 FF 0F 75 [11:33:06]process_action close_receipt done [11:33:06]requested_data is exist [11:33:06]produce_requested_data [11:33:06]requested_item fm.sn is exist - process it [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 11 00 00 [11:33:06]Write to MH i2c: E2 08 00 4C 15 80 11 00 00 00 00 00 00 DB [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 17 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 17 00 4C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [11:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:33:06]wFMCommunicate OK [11:33:06]requested_item fd.num is exist - process it [11:33:06]SAM_PROTO_GetFieldsCounters [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 13 00 00 [11:33:06]Write to MH i2c: E2 08 00 4D 15 80 13 00 00 00 00 00 00 DE [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 62 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 62 00 4D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D4 95 01 00 0E 04 04 00 62 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 B9 [11:33:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D4 95 01 00 0E 04 04 00 62 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:33:06]wFMCommunicate OK [11:33:06]SAM_PROTO_GetFieldsCounters done [11:33:06]requested_item shift.num is exist - process it [11:33:06]requested_item shift.opened is exist - process it [11:33:06]req_shift_opened [11:33:06]FM_GetShiftState [11:33:06]SAM_PROTO_GetShiftState [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 13 01 00 [11:33:06]Write to MH i2c: E2 08 00 4E 15 80 13 01 00 00 00 00 00 E0 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 0E 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 0E 00 4E 15 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 2F [11:33:06]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:33:06]wFMCommunicate OK [11:33:06]SAM_PROTO_GetShiftState done [11:33:06]FM_GetShiftState done [11:33:06]req_shift_opened done [11:33:06]requested_item shift.open_date is exist - process it [11:33:06]req_shift_open_date [11:33:06]req_shift_open_date done [11:33:06]produce_requested_data done [11:33:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103892,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:33:06]process_action_free close_receipt [11:33:06]json_value_free [11:33:06]json_value_free done [11:33:06]process_json_proto returns [11:33:06]Send response to host [11:33:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103892,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:33:06]free response buf [11:33:06]execute_script done [11:33:06]execute_script returns [11:33:06]free content buf [11:33:06]Sock 7.Close socket [11:33:06]Sock 7.Thread stoped [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:47]int [11:41:47]Write to MH i2c: 01 00 00 4F 15 64 [11:41:47]*** FLAG_PRN_PAP1 set [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 4F 15 00 01 00 00 00 FF 0F 7A [11:41:47]state=0 [11:41:47]No paper [11:41:47]int [11:41:47]Write to MH i2c: 01 00 00 50 15 65 [11:41:47]*** FLAG_PRN_PAP2 set [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 50 15 00 03 00 00 00 FF 0F 7D [11:41:47]state=0 [11:41:47]No paper [11:41:47]Cover opened [11:41:50]OFD Sender: No OFD packet to send [11:41:52]Write to MH i2c: 01 00 00 51 15 66 [11:41:52]Write i2c OK [11:41:52]MH_I2C_Read... [11:41:52]Read from MH i2c: 01 [11:41:52]MH_I2C_Read... [11:41:52]Read from MH i2c: 01 07 00 [11:41:52]MH_I2C_Read... [11:41:52]Read from MH i2c: 01 07 00 51 15 00 03 00 00 00 FF 0F 7E [11:41:52]state=3 [11:41:52]No paper [11:41:52]Cover opened [11:41:53]int [11:41:53]Write to MH i2c: 01 00 00 52 15 67 [11:41:53]Write i2c OK [11:41:53]MH_I2C_Read... [11:41:53]Read from MH i2c: 01 [11:41:53]MH_I2C_Read... [11:41:53]Read from MH i2c: 01 07 00 [11:41:53]MH_I2C_Read... [11:41:53]*** FLAG_PRN_PAP1 reset [11:41:53]*** FLAG_PRN_PAP2 reset [11:41:53]Read from MH i2c: 01 07 00 52 15 00 00 00 00 00 FF 0F 7C [11:41:53]state=3 [11:41:53]Cover closed [11:41:54]int [11:41:54]Write to MH i2c: 01 00 00 53 15 68 [11:41:54]*** FLAG_PRN_KEY set [11:41:54]Write i2c OK [11:41:54]MH_I2C_Read... [11:41:54]Read from MH i2c: 01 [11:41:54]MH_I2C_Read... [11:41:54]Read from MH i2c: 01 07 00 [11:41:54]MH_I2C_Read... [11:41:54]Read from MH i2c: 01 07 00 53 15 00 08 00 00 00 FF 0F 85 [11:41:54]state=0 [11:41:54]Key pressed [11:41:54]Feed [11:41:54]Write to MH i2c: D8 00 00 54 15 40 [11:41:54]Write i2c OK [11:41:54]MH_I2C_Read... [11:41:54]Read from MH i2c: D8 [11:41:54]MH_I2C_Read... [11:41:54]Read from MH i2c: D8 01 00 [11:41:54]MH_I2C_Read... [11:41:54]Read from MH i2c: D8 01 00 54 15 00 41 [11:41:54]int [11:41:54]Write to MH i2c: 01 00 00 55 15 6A [11:41:54]Write i2c OK [11:41:54]MH_I2C_Read... [11:41:54]Read from MH i2c: 01 [11:41:54]MH_I2C_Read... [11:41:54]Read from MH i2c: 01 07 00 [11:41:54]MH_I2C_Read... [11:41:54]Read from MH i2c: 01 07 00 55 15 00 48 00 00 00 3C 00 F5 [11:41:54]state=2 [11:41:54]Key pressed [11:41:55]int [11:41:55]Write to MH i2c: 01 00 00 56 15 6B [11:41:55]*** FLAG_PRN_KEY reset [11:41:55]Write i2c OK [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: 01 [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: 01 07 00 [11:41:55]MH_I2C_Read... [11:41:55]Read from MH i2c: 01 07 00 56 15 00 00 00 00 00 FD 0F 7E [11:41:55]state=2 [11:41:55]Stop feed [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:07]accept exits with 9 [11:43:07]New connection [11:43:07]New thread 3067207012 created [11:43:07]Thread 3067063652 joined [11:43:07]Waiting for new connection... [11:43:07] Sock 9.Parse request [11:43:07]Sock 9.Check first char [11:43:07]Sock 9.First char is OK [11:43:07]request: POST /json_proto HTTP/1.0 [11:43:07]Method: POST [11:43:07]URL: /json_proto [11:43:07]Method is POST - this is cgi request [11:43:07]url: /json_proto [11:43:07]query_string will be loaded in cgi processing [11:43:07]execute_cgi json_proto POST (null) [11:43:07]execute_cgi path=json_proto method=POST [11:43:07]POST find Content-Length [11:43:07]Host: 172.17.38.133:8080 [11:43:07]Content-Length: 682 [11:43:07]Content-Type: application/json [11:43:07] [11:43:07]POST finish read [11:43:07]Found Content-Length = 682 [11:43:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:43:07]execute_script... [11:43: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)673229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:43:07]POST & json_proto [11:43:07]process_json_proto [11:43:07]json parsed OK: [11:43:07]protocol is kg_v1.0 [11:43:07]action value=close_receipt [11:43:07]process_action close_receipt [11:43:07]cmd_close_receipt [11:43:07]MH_GetDate [11:43:07]Write to MH i2c: F0 00 00 57 15 5B [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: F0 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: F0 09 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: F0 09 00 57 15 00 CC 15 74 66 BD 8F 7C 64 4B [11:43:07]GetLastDocTimeStamp 1718883184 [11:43:07]current date 1718883788 [11:43:07]FM_GetShiftState [11:43:07]SAM_PROTO_GetShiftState [11:43:07]wFMCommunicate request_size=4 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 13 01 00 [11:43:07]Write to MH i2c: E2 08 00 58 15 80 13 01 00 00 00 00 00 EA [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 0E 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 0E 00 58 15 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 39 [11:43:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:43:07]wFMCommunicate OK [11:43:07]SAM_PROTO_GetShiftState done [11:43:07]FM_GetShiftState done [11:43:07]opened in 1718843124 [11:43:07]opened+sec_in_day 1718929524 [11:43:07]quantity*price = 200063 [11:43:07]sum+1 = 200064 [11:43:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 78 20.06.2024 11:43 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103893 ФПД: 70191969251145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114309&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103893&fm=70191969251145&tin=02508201610067®Number=0000000000092785&sum=200000 [11:43:08]StoreToDocumentArchive [11:43:08]shift 354 fd 103893 [11:43:08]save to /storage/0354/doc_00103893 [11:43:08]save last doc name /storage/0354/doc_00103893 to /storage/kkm_last_doc_name [11:43:08]save OK [11:43:08]Clear old archive folders... [11:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:08]tlvbuf is B6EFF3D0 [11:43:08]SAM_PROTO_ClearQueue [11:43:08]wFMCommunicate request_size=4 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 09 00 00 [11:43:08]Write to MH i2c: E2 08 00 65 15 80 09 00 00 00 00 00 00 EC [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:08]Read from MH i2c: E2 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 03 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 03 00 65 15 00 90 00 EE [11:43:08]RAPDU: 90 00 [11:43:08]wFMCommunicate OK [11:43:08]SAM_PROTO_ClearQueue done [11:43:08]KKMCreateOFDPacket [11:43:08]OFDProtocolAddRootSTLVToBuf [11:43:08]FM_MakeSignedData [11:43:08]FM_MakeSignedData [11:43:08]SAM_PROTO_SignData [11:43:08]wFMCommunicate request_size=4 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 0D 01 02 [11:43:08]Write to MH i2c: E2 08 00 66 15 80 0D 01 02 00 00 00 00 F4 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:08]Read from MH i2c: E2 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 03 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [11:43:08]RAPDU: 90 00 [11:43:08]wFMCommunicate OK [11:43:08]wFMCommunicate request_size=255 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 4E 00 00 00 F4 03 04 00 CD 15 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 95 01 00 35 04 06 00 3F [11:43:08]Write to MH i2c: E2 02 01 67 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 4E 00 00 00 F4 03 04 00 CD 15 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 95 01 00 35 04 06 00 3F 00 00 BA [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:08]Read from MH i2c: E2 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 03 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 03 00 67 15 00 90 00 F0 [11:43:08]RAPDU: 90 00 [11:43:08]wFMCommunicate OK [11:43:08]wFMCommunicate request_size=10 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 0D 02 02 05 D6 D7 64 AF 49 [11:43:08]Write to MH i2c: E2 0D 00 68 15 80 0D 02 02 05 00 D6 D7 64 AF 49 00 00 0A [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:08]Read from MH i2c: E2 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 03 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 03 00 68 15 00 90 00 F1 [11:43:08]RAPDU: 90 00 [11:43:08]wFMCommunicate OK [11:43:08]wFMCommunicate request_size=4 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 0D 03 02 [11:43:08]Write to MH i2c: E2 08 00 69 15 80 0D 03 02 00 00 00 00 F9 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:08]Read from MH i2c: E2 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 0B 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 0B 00 69 15 00 AE FC AC 88 0D 3C 62 BE 90 00 41 [11:43:08]RAPDU: AE FC AC 88 0D 3C 62 BE 90 00 [11:43:08]wFMCommunicate OK [11:43:08]SAM_PROTO_SignData done [11:43:08]FM_MakeSignedData done [11:43:08]CreateOFDProtocolMessage [11:43:08]wFMCommunicate request_size=4 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 11 00 00 [11:43:08]Write to MH i2c: E2 08 00 6A 15 80 11 00 00 00 00 00 00 F9 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 17 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 17 00 6A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4C [11:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:43:09]wFMCommunicate OK [11:43:09]CreateOFDProtocolMessage done [11:43:09]OFDSenderStorePacket 103893 [11:43:09]StoreOFDPacket docnum=103893 [11:43:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 80 0E 07 01 7C DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 4E 00 00 00 F4 03 04 00 CD 15 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 95 01 00 35 04 06 00 3F D6 D7 64 AF 49 AE FC AC 88 0D 3C 62 BE [11:43:09]CheckFolder [11:43:09]dirname=/storage/ofd_packets [11:43:09]CheckFolder done [11:43:09]ProducePacketName [11:43:09]name=ofd_packets/00103893 [11:43:09]NVStorageSaveData ofd_packets/00103893 [11:43:09]File name is /storage/ofd_packets/00103893 [11:43:09]Write 301 bytes [11:43:09]NVStorageSaveData done [11:43:09]OFDSenderStorePacket done [11:43:09]KKMCreateOFDPacket done [11:43:09]NVStorageSaveData kkm_last_timestamp [11:43:09]File name is /storage/kkm_last_timestamp [11:43:09]Write 4 bytes [11:43:09]NVStorageSaveData done [11:43:09]ExternCall_PrintAddStr [11:43:09]wPrintStart [11:43:09]Write to MH i2c: 01 00 00 6B 15 80 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: 01 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: 01 07 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: 01 07 00 6B 15 00 00 00 00 00 FF 0F 95 [11:43:09]RasterBufferAndPrint [11:43:09]line Счет N : (1)673229 [11:43:09]line ИНН: 02508201610067 [11:43:09]line Контрольно-Кассовый Чек [11:43:09]line ПРОДАЖА [11:43:09]line ТРК (МРК, ГНК) : 32 [11:43:09]line Товар: 2710124130 [11:43:09]line Аи-92-К-5 [11:43:09]line 30.130 * 66.40 [11:43:09]line = 2000.63 [11:43:09]line НДС 12% НСП 1% [11:43:09]line > о реализуемом товаре [11:43:09]line ОКРУГЛЕНИЕ: -0.63 [11:43:09]line ИТОГО: 2000.00 [11:43:09]line Внесено: 2000.00 [11:43:09]line СДАЧА: 0.00 [11:43:09]line НСП 1% : 17.70 [11:43:09]line НДС 12% : 212.46 [11:43:09]line Наличными: 2000.00 [11:43:09]line Безнал.: 0.00 [11:43:09]line Место: АЗС № 120 "Партнер Нефть" [11:43:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:43:09]line СНО: Общий режим [11:43:09]line Чек 78 20.06.2024 11:43 [11:43:09]line Смена: 354 ФФД: 1.0 [11:43:09]line ЗНМ: 0300000164 [11:43:09]line РНМ: 0000000000092785 [11:43:09]line Версия ККМ: 001 [11:43:09]line ФМ: 0000000000875093 [11:43:09]line ФД: 103893 [11:43:09]line ФПД: 70191969251145 [11:43:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114309&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103893&fm=70191969251145&tin=02508201610067®Number=0000000000092785&sum=200000 [11:43:09]OFD Sender: Processing packet 103893 [packets to send 17, broken 16] [11:43:09]ProducePacketName [11:43:09]name=ofd_packets/00103893 [11:43:09]OFD Sender: To server: pG, [11:43:09]CommunicateWithHost lk.salyk.kg:30040 [11:43:09]ConnectInit lk.salyk.kg [11:43:09]written 0, free lines is 4095 [11:43:09]Connected sock=10 [11:43:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 80 0E 07 01 7C DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 4E 00 00 00 F4 03 04 00 CD 15 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D5 95 01 00 35 04 06 00 3F D6 D7 64 AF 49 AE FC AC 88 0D 3C 62 BE [11:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6F 4B 47 00 22 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 35 30 39 33 10 04 04 00 D5 95 01 00 F4 03 04 00 52 BC 73 66 B6 04 01 00 00 D9 DD 12 09 FF D4 7E B3 [11:43:09]CommunicateWithHost err = 0 [11:43:09]CheckOFDResponse [11:43:09]1017 (14) - 77093643461234 [11:43:09]1041 (16) - 0000000000875093 [11:43:09]1040 (4) - 103893 [11:43:09]1012 (4) - 20.06.2024 05:21 [11:43:09]1206 (1) - 0 [11:43:09]OFD Sender: Remove packet 103893 [11:43:09]ProducePacketName [11:43:09]name=ofd_packets/00103893 [11:43:09]NVStorageDeleteData [11:43:09]Write to MH i2c: 01 00 00 96 15 AB [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: 01 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: 01 07 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: 01 07 00 96 15 00 00 00 00 00 F9 0C B7 [11:43:09]RasterBufferAndPrint [11:43:09]line [11:43:09]line [11:43:09]line [11:43:09]line [11:43:09]line [11:43:09]written 0, free lines is 3331 [11:43:09]MH_Cut [11:43:09]Write to MH i2c: D1 01 00 9D 15 01 84 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: D1 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: D1 01 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: D1 01 00 9D 15 00 83 [11:43:09]Write to MH i2c: 01 00 00 9E 15 B3 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:10]OFD Sender: No OFD packet to send [11:43:10]*** Cut start [11:43:10]*** Partial cut [11:43:10]*** CUTSNS_PIN = 1 [11:43:10]*** CUTSNS_PIN = 0 [11:43:10]*** Brake cut motor [11:43:11]Read from MH i2c: 01 [11:43:11]MH_I2C_Read... [11:43:11]*** Stop cut motor [11:43:11]*** Cut end [11:43:11]Read from MH i2c: 01 07 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: 01 07 00 9E 15 00 00 00 00 00 FF 0F C8 [11:43:11]process_action close_receipt done [11:43:11]requested_data is exist [11:43:11]produce_requested_data [11:43:11]requested_item fm.sn is exist - process it [11:43:11]wFMCommunicate request_size=4 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 11 00 00 [11:43:11]Write to MH i2c: E2 08 00 9F 15 80 11 00 00 00 00 00 00 2E [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 17 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 17 00 9F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 81 [11:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:43:11]wFMCommunicate OK [11:43:11]requested_item fd.num is exist - process it [11:43:11]SAM_PROTO_GetFieldsCounters [11:43:11]wFMCommunicate request_size=4 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 13 00 00 [11:43:11]Write to MH i2c: E2 08 00 A0 15 80 13 00 00 00 00 00 00 31 [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 62 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 62 00 A0 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D5 95 01 00 0E 04 04 00 62 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 10 [11:43:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D5 95 01 00 0E 04 04 00 62 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:43:11]wFMCommunicate OK [11:43:11]SAM_PROTO_GetFieldsCounters done [11:43:11]requested_item shift.num is exist - process it [11:43:11]requested_item shift.opened is exist - process it [11:43:11]req_shift_opened [11:43:11]FM_GetShiftState [11:43:11]SAM_PROTO_GetShiftState [11:43:11]wFMCommunicate request_size=4 [11:43:11]MH_SAM_APDU [11:43:11]CAPDU: 80 13 01 00 [11:43:11]Write to MH i2c: E2 08 00 A1 15 80 13 01 00 00 00 00 00 33 [11:43:11]Write i2c OK [11:43:11]MH_I2C_Read... [11:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:11]Read from MH i2c: E2 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 0E 00 [11:43:11]MH_I2C_Read... [11:43:11]Read from MH i2c: E2 0E 00 A1 15 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 82 [11:43:11]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:43:11]wFMCommunicate OK [11:43:11]SAM_PROTO_GetShiftState done [11:43:11]FM_GetShiftState done [11:43:11]req_shift_opened done [11:43:11]requested_item shift.open_date is exist - process it [11:43:11]req_shift_open_date [11:43:11]req_shift_open_date done [11:43:11]produce_requested_data done [11:43:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103893,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:43:11]process_action_free close_receipt [11:43:11]json_value_free [11:43:11]json_value_free done [11:43:11]process_json_proto returns [11:43:11]Send response to host [11:43:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103893,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:43:11]free response buf [11:43:11]execute_script done [11:43:11]execute_script returns [11:43:11]free content buf [11:43:11]Sock 9.Close socket [11:43:11]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:47]accept exits with 7 [11:47:47]New connection [11:47:47]New thread 3067063652 created [11:47:47]Thread 3067207012 joined [11:47:47]Waiting for new connection... [11:47:47] Sock 7.Parse request [11:47:47]Sock 7.Check first char [11:47:47]Sock 7.First char is OK [11:47:47]request: POST /json_proto HTTP/1.0 [11:47:47]Method: POST [11:47:47]URL: /json_proto [11:47:47]Method is POST - this is cgi request [11:47:47]url: /json_proto [11:47:47]query_string will be loaded in cgi processing [11:47:47]execute_cgi json_proto POST (null) [11:47:47]execute_cgi path=json_proto method=POST [11:47:47]POST find Content-Length [11:47:47]Host: 172.17.38.133:8080 [11:47:47]Content-Length: 682 [11:47:47]Content-Type: application/json [11:47:47] [11:47:47]POST finish read [11:47:47]Found Content-Length = 682 [11:47:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673230", "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" : 73.90, "quantity" : 54.130, "sum" : 4000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:47]execute_script... [11:47:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673230", "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" : 73.90, "quantity" : 54.130, "sum" : 4000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:47]POST & json_proto [11:47:47]process_json_proto [11:47:47]json parsed OK: [11:47:47]protocol is kg_v1.0 [11:47:47]action value=close_receipt [11:47:47]process_action close_receipt [11:47:47]cmd_close_receipt [11:47:47]MH_GetDate [11:47:47]Write to MH i2c: F0 00 00 A2 15 A6 [11:47:47]Write i2c OK [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: F0 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: F0 09 00 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: F0 09 00 A2 15 00 E5 16 74 66 BD 8F 7C 64 B0 [11:47:47]GetLastDocTimeStamp 1718883789 [11:47:47]current date 1718884069 [11:47:47]FM_GetShiftState [11:47:47]SAM_PROTO_GetShiftState [11:47:47]wFMCommunicate request_size=4 [11:47:47]MH_SAM_APDU [11:47:47]CAPDU: 80 13 01 00 [11:47:47]Write to MH i2c: E2 08 00 A3 15 80 13 01 00 00 00 00 00 35 [11:47:47]Write i2c OK [11:47:47]MH_I2C_Read... [11:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:47]Read from MH i2c: E2 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: E2 0E 00 [11:47:47]MH_I2C_Read... [11:47:47]Read from MH i2c: E2 0E 00 A3 15 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 84 [11:47:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:47:47]wFMCommunicate OK [11:47:47]SAM_PROTO_GetShiftState done [11:47:47]FM_GetShiftState done [11:47:47]opened in 1718843124 [11:47:47]opened+sec_in_day 1718929524 [11:47:47]quantity*price = 400020 [11:47:47]sum+1 = 400022 [11:47:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 79 20.06.2024 11:47 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103894 ФПД: 28404957813266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114749&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103894&fm=28404957813266&tin=02508201610067®Number=0000000000092785&sum=400000 [11:47:48]StoreToDocumentArchive [11:47:48]shift 354 fd 103894 [11:47:48]save to /storage/0354/doc_00103894 [11:47:48]save last doc name /storage/0354/doc_00103894 to /storage/kkm_last_doc_name [11:47:48]save OK [11:47:48]Clear old archive folders... [11:47:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:48]tlvbuf is B6F18900 [11:47:48]SAM_PROTO_ClearQueue [11:47:48]wFMCommunicate request_size=4 [11:47:48]MH_SAM_APDU [11:47:48]CAPDU: 80 09 00 00 [11:47:48]Write to MH i2c: E2 08 00 B0 15 80 09 00 00 00 00 00 00 37 [11:47:48]Write i2c OK [11:47:48]MH_I2C_Read... [11:47:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:48]Read from MH i2c: E2 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: E2 03 00 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: E2 03 00 B0 15 00 90 00 39 [11:47:48]RAPDU: 90 00 [11:47:48]wFMCommunicate OK [11:47:48]SAM_PROTO_ClearQueue done [11:47:48]KKMCreateOFDPacket [11:47:48]OFDProtocolAddRootSTLVToBuf [11:47:48]FM_MakeSignedData [11:47:48]FM_MakeSignedData [11:47:48]SAM_PROTO_SignData [11:47:48]wFMCommunicate request_size=4 [11:47:48]MH_SAM_APDU [11:47:48]CAPDU: 80 0D 01 02 [11:47:48]Write to MH i2c: E2 08 00 B1 15 80 0D 01 02 00 00 00 00 3F [11:47:48]Write i2c OK [11:47:48]MH_I2C_Read... [11:47:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:48]Read from MH i2c: E2 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: E2 03 00 [11:47:48]MH_I2C_Read... [11:47:48]Read from MH i2c: E2 03 00 B1 15 00 90 00 3A [11:47:48]RAPDU: 90 00 [11:47:48]wFMCommunicate OK [11:47:48]wFMCommunicate request_size=255 [11:47:48]MH_SAM_APDU [11:47: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 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E5 16 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 95 01 00 35 04 06 00 19 [11:47:48]Write to MH i2c: E2 02 01 B2 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E5 16 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 95 01 00 35 04 06 00 19 00 00 09 [11:47:48]Write i2c OK [11:47:48]MH_I2C_Read... [11:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:49]Read from MH i2c: E2 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: E2 03 00 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [11:47:49]RAPDU: 90 00 [11:47:49]wFMCommunicate OK [11:47:49]wFMCommunicate request_size=10 [11:47:49]MH_SAM_APDU [11:47:49]CAPDU: 80 0D 02 02 05 D5 8B 6B 9A 12 [11:47:49]Write to MH i2c: E2 0D 00 B3 15 80 0D 02 02 05 00 D5 8B 6B 9A 12 00 00 C3 [11:47:49]Write i2c OK [11:47:49]MH_I2C_Read... [11:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:49]Read from MH i2c: E2 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: E2 03 00 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [11:47:49]RAPDU: 90 00 [11:47:49]wFMCommunicate OK [11:47:49]wFMCommunicate request_size=4 [11:47:49]MH_SAM_APDU [11:47:49]CAPDU: 80 0D 03 02 [11:47:49]Write to MH i2c: E2 08 00 B4 15 80 0D 03 02 00 00 00 00 44 [11:47:49]Write i2c OK [11:47:49]MH_I2C_Read... [11:47:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:49]Read from MH i2c: E2 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: E2 0B 00 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: E2 0B 00 B4 15 00 14 7E 9C 4A DF 2B E4 C7 90 00 72 [11:47:49]RAPDU: 14 7E 9C 4A DF 2B E4 C7 90 00 [11:47:49]wFMCommunicate OK [11:47:49]SAM_PROTO_SignData done [11:47:49]FM_MakeSignedData done [11:47:49]CreateOFDProtocolMessage [11:47:49]wFMCommunicate request_size=4 [11:47:49]MH_SAM_APDU [11:47:49]CAPDU: 80 11 00 00 [11:47:49]Write to MH i2c: E2 08 00 B5 15 80 11 00 00 00 00 00 00 44 [11:47:49]Write i2c OK [11:47:49]MH_I2C_Read... [11:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:49]Read from MH i2c: E2 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: E2 17 00 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: E2 17 00 B5 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 97 [11:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:47:49]wFMCommunicate OK [11:47:49]CreateOFDProtocolMessage done [11:47:49]OFDSenderStorePacket 103894 [11:47:49]StoreOFDPacket docnum=103894 [11:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 36 E4 07 01 BC AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E5 16 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 95 01 00 35 04 06 00 19 D5 8B 6B 9A 12 14 7E 9C 4A DF 2B E4 C7 [11:47:49]CheckFolder [11:47:49]dirname=/storage/ofd_packets [11:47:49]CheckFolder done [11:47:49]ProducePacketName [11:47:49]name=ofd_packets/00103894 [11:47:49]NVStorageSaveData ofd_packets/00103894 [11:47:49]File name is /storage/ofd_packets/00103894 [11:47:49]Write 301 bytes [11:47:49]NVStorageSaveData done [11:47:49]OFDSenderStorePacket done [11:47:49]KKMCreateOFDPacket done [11:47:49]NVStorageSaveData kkm_last_timestamp [11:47:49]File name is /storage/kkm_last_timestamp [11:47:49]Write 4 bytes [11:47:49]NVStorageSaveData done [11:47:49]ExternCall_PrintAddStr [11:47:49]wPrintStart [11:47:49]Write to MH i2c: 01 00 00 B6 15 CB [11:47:49]Write i2c OK [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: 01 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: 01 07 00 [11:47:49]MH_I2C_Read... [11:47:49]Read from MH i2c: 01 07 00 B6 15 00 00 00 00 00 FF 0F E0 [11:47:49]RasterBufferAndPrint [11:47:49]line Счет N : (1)673230 [11:47:49]line ИНН: 02508201610067 [11:47:49]line Контрольно-Кассовый Чек [11:47:49]line ПРОДАЖА [11:47:49]line ТРК (МРК, ГНК) : 41 [11:47:49]line Товар: 2710124500 [11:47:49]line Аи-95-К-5 [11:47:49]line 54.130 * 73.90 [11:47:49]line = 4000.21 [11:47:49]line НДС 12% НСП 1% [11:47:49]line > о реализуемом товаре [11:47:49]line ОКРУГЛЕНИЕ: -0.21 [11:47:49]line ИТОГО: 4000.00 [11:47:49]line Внесено: 4000.00 [11:47:49]line СДАЧА: 0.00 [11:47:49]line НСП 1% : 35.40 [11:47:49]line НДС 12% : 424.80 [11:47:49]line Наличными: 4000.00 [11:47:49]line Безнал.: 0.00 [11:47:49]line Место: АЗС № 120 "Партнер Нефть" [11:47:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:47:49]line СНО: Общий режим [11:47:49]line Чек 79 20.06.2024 11:47 [11:47:49]line Смена: 354 ФФД: 1.0 [11:47:49]line ЗНМ: 0300000164 [11:47:49]line РНМ: 0000000000092785 [11:47:49]line Версия ККМ: 001 [11:47:49]line ФМ: 0000000000875093 [11:47:49]line ФД: 103894 [11:47:49]line ФПД: 28404957813266 [11:47:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T114749&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103894&fm=28404957813266&tin=02508201610067®Number=0000000000092785&sum=400000 [11:47:49]OFD Sender: Processing packet 103894 [packets to send 17, broken 16] [11:47:49]ProducePacketName [11:47:49]name=ofd_packets/00103894 [11:47:49]OFD Sender: To server: pG, [11:47:49]CommunicateWithHost lk.salyk.kg:30040 [11:47:49]ConnectInit lk.salyk.kg [11:47:49]written 0, free lines is 4095 [11:47:49]Connected sock=10 [11:47:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 36 E4 07 01 BC AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 72 D3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 95 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E5 16 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 95 01 00 35 04 06 00 19 D5 8B 6B 9A 12 14 7E 9C 4A DF 2B E4 C7 [11:47:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 66 3F 47 00 AA 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D6 95 01 00 F4 03 04 00 6B BD 73 66 B6 04 01 00 00 3F F3 7E 91 B4 12 C5 82 [11:47:50]CommunicateWithHost err = 0 [11:47:50]CheckOFDResponse [11:47:50]1017 (14) - 77093643461234 [11:47:50]1041 (16) - 0000000000875093 [11:47:50]1040 (4) - 103894 [11:47:50]1012 (4) - 20.06.2024 05:26 [11:47:50]1206 (1) - 0 [11:47:50]OFD Sender: Remove packet 103894 [11:47:50]ProducePacketName [11:47:50]name=ofd_packets/00103894 [11:47:50]NVStorageDeleteData [11:47:50]Write to MH i2c: 01 00 00 E1 15 F6 [11:47:50]Write i2c OK [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: 01 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: 01 07 00 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: 01 07 00 E1 15 00 00 00 00 00 EA 0C F3 [11:47:50]RasterBufferAndPrint [11:47:50]line [11:47:50]line [11:47:50]line [11:47:50]line [11:47:50]line [11:47:50]written 0, free lines is 3312 [11:47:50]MH_Cut [11:47:50]Write to MH i2c: D1 01 00 E8 15 01 CF [11:47:50]Write i2c OK [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: D1 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: D1 01 00 [11:47:50]MH_I2C_Read... [11:47:50]Read from MH i2c: D1 01 00 E8 15 00 CE [11:47:50]Write to MH i2c: 01 00 00 E9 15 FE [11:47:50]Write i2c OK [11:47:50]MH_I2C_Read... [11:47:50]OFD Sender: No OFD packet to send [11:47:50]*** Cut start [11:47:50]*** Partial cut [11:47:50]*** CUTSNS_PIN = 1 [11:47:50]*** CUTSNS_PIN = 0 [11:47:51]*** Brake cut motor [11:47:51]Read from MH i2c: 01 [11:47:51]MH_I2C_Read... [11:47:51]*** Stop cut motor [11:47:51]*** Cut end [11:47:51]Read from MH i2c: 01 07 00 [11:47:51]MH_I2C_Read... [11:47:51]Read from MH i2c: 01 07 00 E9 15 00 00 00 00 00 FF 0F 13 [11:47:51]process_action close_receipt done [11:47:51]requested_data is exist [11:47:51]produce_requested_data [11:47:51]requested_item fm.sn is exist - process it [11:47:51]wFMCommunicate request_size=4 [11:47:51]MH_SAM_APDU [11:47:51]CAPDU: 80 11 00 00 [11:47:51]Write to MH i2c: E2 08 00 EA 15 80 11 00 00 00 00 00 00 79 [11:47:51]Write i2c OK [11:47:51]MH_I2C_Read... [11:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:51]Read from MH i2c: E2 [11:47:51]MH_I2C_Read... [11:47:51]Read from MH i2c: E2 17 00 [11:47:51]MH_I2C_Read... [11:47:51]Read from MH i2c: E2 17 00 EA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CC [11:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:47:51]wFMCommunicate OK [11:47:51]requested_item fd.num is exist - process it [11:47:51]SAM_PROTO_GetFieldsCounters [11:47:51]wFMCommunicate request_size=4 [11:47:51]MH_SAM_APDU [11:47:51]CAPDU: 80 13 00 00 [11:47:51]Write to MH i2c: E2 08 00 EB 15 80 13 00 00 00 00 00 00 7C [11:47:51]Write i2c OK [11:47:51]MH_I2C_Read... [11:47:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:51]Read from MH i2c: E2 [11:47:51]MH_I2C_Read... [11:47:51]Read from MH i2c: E2 62 00 [11:47:51]MH_I2C_Read... [11:47:51]Read from MH i2c: E2 62 00 EB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D6 95 01 00 0E 04 04 00 62 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 5F [11:47:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D6 95 01 00 0E 04 04 00 62 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:47:51]wFMCommunicate OK [11:47:51]SAM_PROTO_GetFieldsCounters done [11:47:51]requested_item shift.num is exist - process it [11:47:51]requested_item shift.opened is exist - process it [11:47:51]req_shift_opened [11:47:51]FM_GetShiftState [11:47:51]SAM_PROTO_GetShiftState [11:47:51]wFMCommunicate request_size=4 [11:47:51]MH_SAM_APDU [11:47:51]CAPDU: 80 13 01 00 [11:47:51]Write to MH i2c: E2 08 00 EC 15 80 13 01 00 00 00 00 00 7E [11:47:51]Write i2c OK [11:47:51]MH_I2C_Read... [11:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:51]Read from MH i2c: E2 [11:47:51]MH_I2C_Read... [11:47:51]Read from MH i2c: E2 0E 00 [11:47:51]MH_I2C_Read... [11:47:51]Read from MH i2c: E2 0E 00 EC 15 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CD [11:47:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:47:51]wFMCommunicate OK [11:47:51]SAM_PROTO_GetShiftState done [11:47:51]FM_GetShiftState done [11:47:51]req_shift_opened done [11:47:51]requested_item shift.open_date is exist - process it [11:47:51]req_shift_open_date [11:47:51]req_shift_open_date done [11:47:51]produce_requested_data done [11:47:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103894,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:47:51]process_action_free close_receipt [11:47:51]json_value_free [11:47:51]json_value_free done [11:47:51]process_json_proto returns [11:47:51]Send response to host [11:47:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103894,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:47:51]free response buf [11:47:51]execute_script done [11:47:51]execute_script returns [11:47:51]free content buf [11:47:51]Sock 7.Close socket [11:47:51]Sock 7.Thread stoped [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:31]accept exits with 9 [11:54:31]New connection [11:54:31]New thread 3067207012 created [11:54:31]Thread 3067063652 joined [11:54:31]Waiting for new connection... [11:54:31] Sock 9.Parse request [11:54:31]Sock 9.Check first char [11:54:31]Sock 9.First char is OK [11:54:31]request: POST /json_proto HTTP/1.0 [11:54:31]Method: POST [11:54:31]URL: /json_proto [11:54:31]Method is POST - this is cgi request [11:54:31]url: /json_proto [11:54:31]query_string will be loaded in cgi processing [11:54:31]execute_cgi json_proto POST (null) [11:54:31]execute_cgi path=json_proto method=POST [11:54:31]POST find Content-Length [11:54:31]Host: 172.17.38.133:8080 [11:54:31]Content-Length: 682 [11:54:31]Content-Type: application/json [11:54:31] [11:54:31]POST finish read [11:54:31]Found Content-Length = 682 [11:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:54:31]execute_script... [11:54: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)673231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:54:31]POST & json_proto [11:54:31]process_json_proto [11:54:31]json parsed OK: [11:54:31]protocol is kg_v1.0 [11:54:31]action value=close_receipt [11:54:31]process_action close_receipt [11:54:31]cmd_close_receipt [11:54:31]MH_GetDate [11:54:31]Write to MH i2c: F0 00 00 ED 15 F1 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: F0 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: F0 09 00 [11:54:31]MH_I2C_Read... [11:54:31]Read from MH i2c: F0 09 00 ED 15 00 79 18 74 66 BD 8F 7C 64 91 [11:54:31]GetLastDocTimeStamp 1718884069 [11:54:31]current date 1718884473 [11:54:31]FM_GetShiftState [11:54:31]SAM_PROTO_GetShiftState [11:54:31]wFMCommunicate request_size=4 [11:54:31]MH_SAM_APDU [11:54:31]CAPDU: 80 13 01 00 [11:54:31]Write to MH i2c: E2 08 00 EE 15 80 13 01 00 00 00 00 00 80 [11:54:31]Write i2c OK [11:54:31]MH_I2C_Read... [11:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:32]Read from MH i2c: E2 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: E2 0E 00 [11:54:32]MH_I2C_Read... [11:54:32]Read from MH i2c: E2 0E 00 EE 15 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CF [11:54:32]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:54:32]wFMCommunicate OK [11:54:32]SAM_PROTO_GetShiftState done [11:54:32]FM_GetShiftState done [11:54:32]opened in 1718843124 [11:54:32]opened+sec_in_day 1718929524 [11:54:32]quantity*price = 100064 [11:54:32]sum+1 = 100066 [11:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 80 20.06.2024 11:54 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103895 ФПД: 153209719705794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115433&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103895&fm=153209719705794&tin=02508201610067®Number=0000000000092785&sum=100000 [11:54:33]StoreToDocumentArchive [11:54:33]shift 354 fd 103895 [11:54:33]save to /storage/0354/doc_00103895 [11:54:33]save last doc name /storage/0354/doc_00103895 to /storage/kkm_last_doc_name [11:54:33]save OK [11:54:33]Clear old archive folders... [11:54:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:33]tlvbuf is 0086A7F0 [11:54:33]SAM_PROTO_ClearQueue [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 09 00 00 [11:54:33]Write to MH i2c: E2 08 00 FB 15 80 09 00 00 00 00 00 00 82 [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:33]Read from MH i2c: E2 03 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 FB 15 00 90 00 84 [11:54:33]RAPDU: 90 00 [11:54:33]wFMCommunicate OK [11:54:33]SAM_PROTO_ClearQueue done [11:54:33]KKMCreateOFDPacket [11:54:33]OFDProtocolAddRootSTLVToBuf [11:54:33]FM_MakeSignedData [11:54:33]FM_MakeSignedData [11:54:33]SAM_PROTO_SignData [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 0D 01 02 [11:54:33]Write to MH i2c: E2 08 00 FC 15 80 0D 01 02 00 00 00 00 8A [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [11:54:33]RAPDU: 90 00 [11:54:33]wFMCommunicate OK [11:54:33]wFMCommunicate request_size=255 [11:54:33]MH_SAM_APDU [11:54: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 79 18 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 95 01 00 35 04 06 00 8B [11:54:33]Write to MH i2c: E2 02 01 FD 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 79 18 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 95 01 00 35 04 06 00 8B 00 00 AA [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [11:54:33]RAPDU: 90 00 [11:54:33]wFMCommunicate OK [11:54:33]wFMCommunicate request_size=10 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 0D 02 02 05 57 EA EB 50 C2 [11:54:33]Write to MH i2c: E2 0D 00 FE 15 80 0D 02 02 05 00 57 EA EB 50 C2 00 00 D5 [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 03 00 FE 15 00 90 00 87 [11:54:33]RAPDU: 90 00 [11:54:33]wFMCommunicate OK [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 0D 03 02 [11:54:33]Write to MH i2c: E2 08 00 FF 15 80 0D 03 02 00 00 00 00 8F [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 0B 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 0B 00 FF 15 00 44 9E F0 86 C4 1F FD 9C 90 00 64 [11:54:33]RAPDU: 44 9E F0 86 C4 1F FD 9C 90 00 [11:54:33]wFMCommunicate OK [11:54:33]SAM_PROTO_SignData done [11:54:33]FM_MakeSignedData done [11:54:33]CreateOFDProtocolMessage [11:54:33]wFMCommunicate request_size=4 [11:54:33]MH_SAM_APDU [11:54:33]CAPDU: 80 11 00 00 [11:54:33]Write to MH i2c: E2 08 00 00 16 80 11 00 00 00 00 00 00 90 [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:33]Read from MH i2c: E2 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 17 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: E2 17 00 00 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [11:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:54:33]wFMCommunicate OK [11:54:33]CreateOFDProtocolMessage done [11:54:33]OFDSenderStorePacket 103895 [11:54:33]StoreOFDPacket docnum=103895 [11:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D7 2E 07 01 7A 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 79 18 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 95 01 00 35 04 06 00 8B 57 EA EB 50 C2 44 9E F0 86 C4 1F FD 9C [11:54:33]CheckFolder [11:54:33]dirname=/storage/ofd_packets [11:54:33]CheckFolder done [11:54:33]ProducePacketName [11:54:33]name=ofd_packets/00103895 [11:54:33]NVStorageSaveData ofd_packets/00103895 [11:54:33]File name is /storage/ofd_packets/00103895 [11:54:33]Write 301 bytes [11:54:33]NVStorageSaveData done [11:54:33]OFDSenderStorePacket done [11:54:33]KKMCreateOFDPacket done [11:54:33]NVStorageSaveData kkm_last_timestamp [11:54:33]File name is /storage/kkm_last_timestamp [11:54:33]Write 4 bytes [11:54:33]NVStorageSaveData done [11:54:33]ExternCall_PrintAddStr [11:54:33]wPrintStart [11:54:33]Write to MH i2c: 01 00 00 01 16 17 [11:54:33]Write i2c OK [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: 01 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: 01 07 00 [11:54:33]MH_I2C_Read... [11:54:33]Read from MH i2c: 01 07 00 01 16 00 00 00 00 00 FF 0F 2C [11:54:33]RasterBufferAndPrint [11:54:33]line Счет N : (1)673231 [11:54:33]line ИНН: 02508201610067 [11:54:33]line Контрольно-Кассовый Чек [11:54:33]line ПРОДАЖА [11:54:33]line ТРК (МРК, ГНК) : 32 [11:54:33]line Товар: 2710124130 [11:54:33]line Аи-92-К-5 [11:54:33]line 15.070 * 66.40 [11:54:33]line = 1000.65 [11:54:33]line НДС 12% НСП 1% [11:54:33]line > о реализуемом товаре [11:54:33]line ОКРУГЛЕНИЕ: -0.65 [11:54:33]line ИТОГО: 1000.00 [11:54:33]line Внесено: 1000.00 [11:54:33]line СДАЧА: 0.00 [11:54:33]line НСП 1% : 8.85 [11:54:33]line НДС 12% : 106.26 [11:54:33]line Наличными: 1000.00 [11:54:33]line Безнал.: 0.00 [11:54:33]line Место: АЗС № 120 "Партнер Нефть" [11:54:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:54:33]line СНО: Общий режим [11:54:33]line Чек 80 20.06.2024 11:54 [11:54:33]line Смена: 354 ФФД: 1.0 [11:54:33]line ЗНМ: 0300000164 [11:54:33]line РНМ: 0000000000092785 [11:54:33]line Версия ККМ: 001 [11:54:33]line ФМ: 0000000000875093 [11:54:33]line ФД: 103895 [11:54:33]line ФПД: 153209719705794 [11:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115433&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103895&fm=153209719705794&tin=02508201610067®Number=0000000000092785&sum=100000 [11:54:33]OFD Sender: Processing packet 103895 [packets to send 17, broken 16] [11:54:33]ProducePacketName [11:54:33]name=ofd_packets/00103895 [11:54:33]OFD Sender: To server: pG, [11:54:33]CommunicateWithHost lk.salyk.kg:30040 [11:54:33]ConnectInit lk.salyk.kg [11:54:33]written 0, free lines is 4095 [11:54:34]Connected sock=11 [11:54:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D7 2E 07 01 7A 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 79 18 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 95 01 00 35 04 06 00 8B 57 EA EB 50 C2 44 9E F0 86 C4 1F FD 9C [11:54:34]Write to MH i2c: 01 00 00 2C 16 42 [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 2C 16 00 00 00 00 00 E4 0C 39 [11:54:34]RasterBufferAndPrint [11:54:34]line [11:54:34]line [11:54:34]line [11:54:34]line [11:54:34]line [11:54:34]written 0, free lines is 3306 [11:54:34]MH_Cut [11:54:34]Write to MH i2c: D1 01 00 33 16 01 1B [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: D1 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: D1 01 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: D1 01 00 33 16 00 1A [11:54:34]Write to MH i2c: 01 00 00 34 16 4A [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2C DF 47 00 D9 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D7 95 01 00 F4 03 04 00 FF BE 73 66 B6 04 01 00 00 DB C6 90 26 6D 48 18 0E [11:54:34]CommunicateWithHost err = 0 [11:54:34]CheckOFDResponse [11:54:34]1017 (14) - 77093643461234 [11:54:34]1041 (16) - 0000000000875093 [11:54:34]1040 (4) - 103895 [11:54:34]1012 (4) - 20.06.2024 05:32 [11:54:34]1206 (1) - 0 [11:54:34]OFD Sender: Remove packet 103895 [11:54:34]ProducePacketName [11:54:34]name=ofd_packets/00103895 [11:54:34]NVStorageDeleteData [11:54:35]OFD Sender: No OFD packet to send [11:54:35]*** Cut start [11:54:35]*** Partial cut [11:54:35]*** CUTSNS_PIN = 1 [11:54:35]*** CUTSNS_PIN = 0 [11:54:35]*** Brake cut motor [11:54:35]Read from MH i2c: 01 [11:54:35]MH_I2C_Read... [11:54:35]*** Stop cut motor [11:54:35]*** Cut end [11:54:35]Read from MH i2c: 01 07 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: 01 07 00 34 16 00 00 00 00 00 FF 0F 5F [11:54:35]process_action close_receipt done [11:54:35]requested_data is exist [11:54:35]produce_requested_data [11:54:35]requested_item fm.sn is exist - process it [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 11 00 00 [11:54:35]Write to MH i2c: E2 08 00 35 16 80 11 00 00 00 00 00 00 C5 [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 17 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 17 00 35 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 18 [11:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:54:35]wFMCommunicate OK [11:54:35]requested_item fd.num is exist - process it [11:54:35]SAM_PROTO_GetFieldsCounters [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 13 00 00 [11:54:35]Write to MH i2c: E2 08 00 36 16 80 13 00 00 00 00 00 00 C8 [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:36]Read from MH i2c: E2 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: E2 62 00 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: E2 62 00 36 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D7 95 01 00 0E 04 04 00 62 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 AF [11:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D7 95 01 00 0E 04 04 00 62 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:54:36]wFMCommunicate OK [11:54:36]SAM_PROTO_GetFieldsCounters done [11:54:36]requested_item shift.num is exist - process it [11:54:36]requested_item shift.opened is exist - process it [11:54:36]req_shift_opened [11:54:36]FM_GetShiftState [11:54:36]SAM_PROTO_GetShiftState [11:54:36]wFMCommunicate request_size=4 [11:54:36]MH_SAM_APDU [11:54:36]CAPDU: 80 13 01 00 [11:54:36]Write to MH i2c: E2 08 00 37 16 80 13 01 00 00 00 00 00 CA [11:54:36]Write i2c OK [11:54:36]MH_I2C_Read... [11:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:36]Read from MH i2c: E2 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: E2 0E 00 [11:54:36]MH_I2C_Read... [11:54:36]Read from MH i2c: E2 0E 00 37 16 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 19 [11:54:36]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:54:36]wFMCommunicate OK [11:54:36]SAM_PROTO_GetShiftState done [11:54:36]FM_GetShiftState done [11:54:36]req_shift_opened done [11:54:36]requested_item shift.open_date is exist - process it [11:54:36]req_shift_open_date [11:54:36]req_shift_open_date done [11:54:36]produce_requested_data done [11:54:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103895,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:54:36]process_action_free close_receipt [11:54:36]json_value_free [11:54:36]json_value_free done [11:54:36]process_json_proto returns [11:54:36]Send response to host [11:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103895,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:54:36]free response buf [11:54:36]execute_script done [11:54:36]execute_script returns [11:54:36]free content buf [11:54:36]Sock 9.Close socket [11:54:36]Sock 9.Thread stoped [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:50]accept exits with 7 [11:56:50]New connection [11:56:50]New thread 3067063652 created [11:56:50]Thread 3067207012 joined [11:56:50]Waiting for new connection... [11:56:50] Sock 7.Parse request [11:56:50]Sock 7.Check first char [11:56:50]Sock 7.First char is OK [11:56:50]request: POST /json_proto HTTP/1.0 [11:56:50]Method: POST [11:56:50]URL: /json_proto [11:56:50]Method is POST - this is cgi request [11:56:50]url: /json_proto [11:56:50]query_string will be loaded in cgi processing [11:56:50]execute_cgi json_proto POST (null) [11:56:50]execute_cgi path=json_proto method=POST [11:56:50]POST find Content-Length [11:56:50]Host: 172.17.38.133:8080 [11:56:50]Content-Length: 687 [11:56:50]Content-Type: application/json [11:56:50] [11:56:50]POST finish read [11:56:50]Found Content-Length = 687 [11:56:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.040, "sum" : 2991.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 2991.00, "payments": [ { "type": 0, "sum" : 2991.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:50]execute_script... [11:56: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)673232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.040, "sum" : 2991.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 2991.00, "payments": [ { "type": 0, "sum" : 2991.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:50]POST & json_proto [11:56:50]process_json_proto [11:56:50]json parsed OK: [11:56:50]protocol is kg_v1.0 [11:56:50]action value=close_receipt [11:56:50]process_action close_receipt [11:56:50]cmd_close_receipt [11:56:50]MH_GetDate [11:56:50]Write to MH i2c: F0 00 00 38 16 3D [11:56:50]Write i2c OK [11:56:50]MH_I2C_Read... [11:56:50]Read from MH i2c: F0 [11:56:50]MH_I2C_Read... [11:56:50]Read from MH i2c: F0 09 00 [11:56:50]MH_I2C_Read... [11:56:50]Read from MH i2c: F0 09 00 38 16 00 04 19 74 66 BD 8F 7C 64 69 [11:56:50]GetLastDocTimeStamp 1718884473 [11:56:50]current date 1718884612 [11:56:50]FM_GetShiftState [11:56:50]SAM_PROTO_GetShiftState [11:56:50]wFMCommunicate request_size=4 [11:56:50]MH_SAM_APDU [11:56:50]CAPDU: 80 13 01 00 [11:56:50]Write to MH i2c: E2 08 00 39 16 80 13 01 00 00 00 00 00 CC [11:56:50]Write i2c OK [11:56:50]MH_I2C_Read... [11:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:50]Read from MH i2c: E2 [11:56:50]MH_I2C_Read... [11:56:50]Read from MH i2c: E2 0E 00 [11:56:50]MH_I2C_Read... [11:56:50]Read from MH i2c: E2 0E 00 39 16 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [11:56:50]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:56:50]wFMCommunicate OK [11:56:50]SAM_PROTO_GetShiftState done [11:56:50]FM_GetShiftState done [11:56:50]opened in 1718843124 [11:56:50]opened+sec_in_day 1718929524 [11:56:50]quantity*price = 299181 [11:56:50]sum+1 = 299183 [11:56:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 2991.00 Внесено: 6000.00 СДАЧА: 3009.00 НСП 1% : 26.48 НДС 12% : 317.71 Наличными: 2991.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 81 20.06.2024 11:56 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103896 ФПД: 118721691573134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115652&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103896&fm=118721691573134&tin=02508201610067®Number=0000000000092785&sum=299100 [11:56:51]StoreToDocumentArchive [11:56:51]shift 354 fd 103896 [11:56:51]save to /storage/0354/doc_00103896 [11:56:51]save last doc name /storage/0354/doc_00103896 to /storage/kkm_last_doc_name [11:56:51]save OK [11:56:51]Clear old archive folders... [11:56:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:56:51]tlvbuf is 0081C5D0 [11:56:51]SAM_PROTO_ClearQueue [11:56:51]wFMCommunicate request_size=4 [11:56:51]MH_SAM_APDU [11:56:51]CAPDU: 80 09 00 00 [11:56:51]Write to MH i2c: E2 08 00 46 16 80 09 00 00 00 00 00 00 CE [11:56:51]Write i2c OK [11:56:51]MH_I2C_Read... [11:56:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:51]Read from MH i2c: E2 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: E2 03 00 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [11:56:51]RAPDU: 90 00 [11:56:51]wFMCommunicate OK [11:56:51]SAM_PROTO_ClearQueue done [11:56:51]KKMCreateOFDPacket [11:56:51]OFDProtocolAddRootSTLVToBuf [11:56:51]FM_MakeSignedData [11:56:51]FM_MakeSignedData [11:56:51]SAM_PROTO_SignData [11:56:51]wFMCommunicate request_size=4 [11:56:51]MH_SAM_APDU [11:56:51]CAPDU: 80 0D 01 02 [11:56:51]Write to MH i2c: E2 08 00 47 16 80 0D 01 02 00 00 00 00 D6 [11:56:51]Write i2c OK [11:56:51]MH_I2C_Read... [11:56:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:51]Read from MH i2c: E2 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: E2 03 00 [11:56:51]MH_I2C_Read... [11:56:51]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [11:56:51]RAPDU: 90 00 [11:56:51]wFMCommunicate OK [11:56:51]wFMCommunicate request_size=255 [11:56:51]MH_SAM_APDU [11:56:51]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AE 90 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 90 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 7C 00 00 00 00 07 04 06 00 5C 90 04 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 04 19 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 95 01 00 35 04 06 00 [11:56:51]Write to MH i2c: E2 02 01 48 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AE 90 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 90 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 7C 00 00 00 00 07 04 06 00 5C 90 04 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 04 19 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 95 01 00 35 04 06 00 00 00 DB [11:56:51]Write i2c OK [11:56:51]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 48 16 00 90 00 D2 [11:56:52]RAPDU: 90 00 [11:56:52]wFMCommunicate OK [11:56:52]wFMCommunicate request_size=11 [11:56:52]MH_SAM_APDU [11:56:52]CAPDU: 80 0D 02 02 06 6B FA 0C 40 DB 8E [11:56:52]Write to MH i2c: E2 0E 00 49 16 80 0D 02 02 06 00 6B FA 0C 40 DB 8E 00 00 FF [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 03 00 49 16 00 90 00 D3 [11:56:52]RAPDU: 90 00 [11:56:52]wFMCommunicate OK [11:56:52]wFMCommunicate request_size=4 [11:56:52]MH_SAM_APDU [11:56:52]CAPDU: 80 0D 03 02 [11:56:52]Write to MH i2c: E2 08 00 4A 16 80 0D 03 02 00 00 00 00 DB [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 0B 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 0B 00 4A 16 00 E3 4C 65 75 CA 9E DC D5 90 00 FE [11:56:52]RAPDU: E3 4C 65 75 CA 9E DC D5 90 00 [11:56:52]wFMCommunicate OK [11:56:52]SAM_PROTO_SignData done [11:56:52]FM_MakeSignedData done [11:56:52]CreateOFDProtocolMessage [11:56:52]wFMCommunicate request_size=4 [11:56:52]MH_SAM_APDU [11:56:52]CAPDU: 80 11 00 00 [11:56:52]Write to MH i2c: E2 08 00 4B 16 80 11 00 00 00 00 00 00 DB [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:52]Read from MH i2c: E2 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 17 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: E2 17 00 4B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [11:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:56:52]wFMCommunicate OK [11:56:52]CreateOFDProtocolMessage done [11:56:52]OFDSenderStorePacket 103896 [11:56:52]StoreOFDPacket docnum=103896 [11:56:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 4C DD 08 01 86 0D 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AE 90 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 90 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 7C 00 00 00 00 07 04 06 00 5C 90 04 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 04 19 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 95 01 00 35 04 06 00 6B FA 0C 40 DB 8E E3 4C 65 75 CA 9E DC D5 [11:56:52]CheckFolder [11:56:52]dirname=/storage/ofd_packets [11:56:52]CheckFolder done [11:56:52]ProducePacketName [11:56:52]name=ofd_packets/00103896 [11:56:52]NVStorageSaveData ofd_packets/00103896 [11:56:52]File name is /storage/ofd_packets/00103896 [11:56:52]Write 302 bytes [11:56:52]NVStorageSaveData done [11:56:52]OFDSenderStorePacket done [11:56:52]KKMCreateOFDPacket done [11:56:52]NVStorageSaveData kkm_last_timestamp [11:56:52]File name is /storage/kkm_last_timestamp [11:56:52]Write 4 bytes [11:56:52]NVStorageSaveData done [11:56:52]ExternCall_PrintAddStr [11:56:52]wPrintStart [11:56:52]Write to MH i2c: 01 00 00 4C 16 62 [11:56:52]Write i2c OK [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: 01 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: 01 07 00 [11:56:52]MH_I2C_Read... [11:56:52]Read from MH i2c: 01 07 00 4C 16 00 00 00 00 00 FF 0F 77 [11:56:52]RasterBufferAndPrint [11:56:52]line Счет N : (1)673232 [11:56:52]line ИНН: 02508201610067 [11:56:52]line Контрольно-Кассовый Чек [11:56:52]line ПРОДАЖА [11:56:52]line ТРК (МРК, ГНК) : 11 [11:56:52]line Товар: 2710194210 [11:56:52]line ДТ(л)-К-5 [11:56:52]line 41.040 * 72.90 [11:56:52]line = 2991.82 [11:56:52]line НДС 12% НСП 1% [11:56:52]line > о реализуемом товаре [11:56:52]line ОКРУГЛЕНИЕ: -0.82 [11:56:52]line ИТОГО: 2991.00 [11:56:52]line Внесено: 6000.00 [11:56:52]line СДАЧА: 3009.00 [11:56:52]line НСП 1% : 26.48 [11:56:52]line НДС 12% : 317.71 [11:56:52]line Наличными: 2991.00 [11:56:52]line Безнал.: 0.00 [11:56:52]line Место: АЗС № 120 "Партнер Нефть" [11:56:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:56:52]line СНО: Общий режим [11:56:52]line Чек 81 20.06.2024 11:56 [11:56:52]line Смена: 354 ФФД: 1.0 [11:56:52]line ЗНМ: 0300000164 [11:56:52]line РНМ: 0000000000092785 [11:56:52]line Версия ККМ: 001 [11:56:52]line ФМ: 0000000000875093 [11:56:52]line ФД: 103896 [11:56:52]line ФПД: 118721691573134 [11:56:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115652&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103896&fm=118721691573134&tin=02508201610067®Number=0000000000092785&sum=299100 [11:56:52]OFD Sender: Processing packet 103896 [packets to send 17, broken 16] [11:56:52]ProducePacketName [11:56:52]name=ofd_packets/00103896 [11:56:52]OFD Sender: To server: pG, [11:56:52]CommunicateWithHost lk.salyk.kg:30040 [11:56:52]ConnectInit lk.salyk.kg [11:56:52]written 0, free lines is 4095 [11:56:52]Connected sock=10 [11:56:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 4C DD 08 01 86 0D 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AE 90 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 90 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 7C 00 00 00 00 07 04 06 00 5C 90 04 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 04 19 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D8 95 01 00 35 04 06 00 6B FA 0C 40 DB 8E E3 4C 65 75 CA 9E DC D5 [11:56:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C0 00 47 00 84 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 35 30 39 33 10 04 04 00 D8 95 01 00 F4 03 04 00 8A BF 73 66 B6 04 01 00 00 AC CA 27 7F C4 A2 2F 7D [11:56:53]CommunicateWithHost err = 0 [11:56:53]CheckOFDResponse [11:56:53]1017 (14) - 77093643461234 [11:56:53]1041 (16) - 0000000000875093 [11:56:53]1040 (4) - 103896 [11:56:53]1012 (4) - 20.06.2024 05:35 [11:56:53]1206 (1) - 0 [11:56:53]OFD Sender: Remove packet 103896 [11:56:53]ProducePacketName [11:56:53]name=ofd_packets/00103896 [11:56:53]NVStorageDeleteData [11:56:53]Write to MH i2c: 01 00 00 77 16 8D [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 07 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: 01 07 00 77 16 00 00 00 00 00 E4 0C 84 [11:56:53]RasterBufferAndPrint [11:56:53]line [11:56:53]line [11:56:53]line [11:56:53]line [11:56:53]line [11:56:53]written 0, free lines is 3307 [11:56:53]MH_Cut [11:56:53]Write to MH i2c: D1 01 00 7E 16 01 66 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: D1 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: D1 01 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: D1 01 00 7E 16 00 65 [11:56:53]Write to MH i2c: 01 00 00 7F 16 95 [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]OFD Sender: No OFD packet to send [11:56:53]*** Cut start [11:56:53]*** Partial cut [11:56:53]*** CUTSNS_PIN = 1 [11:56:53]*** CUTSNS_PIN = 0 [11:56:54]*** Brake cut motor [11:56:54]Read from MH i2c: 01 [11:56:54]MH_I2C_Read... [11:56:54]*** Stop cut motor [11:56:54]*** Cut end [11:56:54]Read from MH i2c: 01 07 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: 01 07 00 7F 16 00 00 00 00 00 FF 0F AA [11:56:54]process_action close_receipt done [11:56:54]requested_data is exist [11:56:54]produce_requested_data [11:56:54]requested_item fm.sn is exist - process it [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 11 00 00 [11:56:54]Write to MH i2c: E2 08 00 80 16 80 11 00 00 00 00 00 00 10 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 17 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 17 00 80 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [11:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:56:54]wFMCommunicate OK [11:56:54]requested_item fd.num is exist - process it [11:56:54]SAM_PROTO_GetFieldsCounters [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 13 00 00 [11:56:54]Write to MH i2c: E2 08 00 81 16 80 13 00 00 00 00 00 00 13 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 62 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 62 00 81 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D8 95 01 00 0E 04 04 00 62 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 FE [11:56:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D8 95 01 00 0E 04 04 00 62 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:56:54]wFMCommunicate OK [11:56:54]SAM_PROTO_GetFieldsCounters done [11:56:54]requested_item shift.num is exist - process it [11:56:54]requested_item shift.opened is exist - process it [11:56:54]req_shift_opened [11:56:54]FM_GetShiftState [11:56:54]SAM_PROTO_GetShiftState [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 13 01 00 [11:56:54]Write to MH i2c: E2 08 00 82 16 80 13 01 00 00 00 00 00 15 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 0E 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 0E 00 82 16 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 64 [11:56:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:56:54]wFMCommunicate OK [11:56:54]SAM_PROTO_GetShiftState done [11:56:54]FM_GetShiftState done [11:56:54]req_shift_opened done [11:56:54]requested_item shift.open_date is exist - process it [11:56:54]req_shift_open_date [11:56:54]req_shift_open_date done [11:56:54]produce_requested_data done [11:56:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103896,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:56:54]process_action_free close_receipt [11:56:54]json_value_free [11:56:54]json_value_free done [11:56:54]process_json_proto returns [11:56:54]Send response to host [11:56:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103896,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:56:54]free response buf [11:56:54]execute_script done [11:56:54]execute_script returns [11:56:54]free content buf [11:56:54]Sock 7.Close socket [11:56:54]Sock 7.Thread stoped [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:36]accept exits with 9 [11:59:36]New connection [11:59:36]New thread 3067207012 created [11:59:36]Thread 3067063652 joined [11:59:36]Waiting for new connection... [11:59:36] Sock 9.Parse request [11:59:36]Sock 9.Check first char [11:59:36]Sock 9.First char is OK [11:59:36]request: POST /json_proto HTTP/1.0 [11:59:36]Method: POST [11:59:36]URL: /json_proto [11:59:36]Method is POST - this is cgi request [11:59:36]url: /json_proto [11:59:36]query_string will be loaded in cgi processing [11:59:36]execute_cgi json_proto POST (null) [11:59:36]execute_cgi path=json_proto method=POST [11:59:36]POST find Content-Length [11:59:36]Host: 172.17.38.133:8080 [11:59:36]Content-Length: 678 [11:59:36]Content-Type: application/json [11:59:36] [11:59:36]POST finish read [11:59:36]Found Content-Length = 678 [11:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:36]execute_script... [11:59: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)673233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:36]POST & json_proto [11:59:36]process_json_proto [11:59:36]json parsed OK: [11:59:36]protocol is kg_v1.0 [11:59:36]action value=close_receipt [11:59:36]process_action close_receipt [11:59:36]cmd_close_receipt [11:59:36]MH_GetDate [11:59:36]Write to MH i2c: F0 00 00 83 16 88 [11:59:36]Write i2c OK [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: F0 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: F0 09 00 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: F0 09 00 83 16 00 AA 19 74 66 BD 8F 7C 64 5A [11:59:36]GetLastDocTimeStamp 1718884612 [11:59:36]current date 1718884778 [11:59:36]FM_GetShiftState [11:59:36]SAM_PROTO_GetShiftState [11:59:36]wFMCommunicate request_size=4 [11:59:36]MH_SAM_APDU [11:59:36]CAPDU: 80 13 01 00 [11:59:36]Write to MH i2c: E2 08 00 84 16 80 13 01 00 00 00 00 00 17 [11:59:36]Write i2c OK [11:59:36]MH_I2C_Read... [11:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:36]Read from MH i2c: E2 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 0E 00 [11:59:36]MH_I2C_Read... [11:59:36]Read from MH i2c: E2 0E 00 84 16 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 66 [11:59:36]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:59:36]wFMCommunicate OK [11:59:36]SAM_PROTO_GetShiftState done [11:59:36]FM_GetShiftState done [11:59:36]opened in 1718843124 [11:59:36]opened+sec_in_day 1718929524 [11:59:36]quantity*price = 70052 [11:59:36]sum+1 = 70053 [11:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 82 20.06.2024 11:59 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103897 ФПД: 147008935905468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115938&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103897&fm=147008935905468&tin=02508201610067®Number=0000000000092785&sum=70000 [11:59:37]StoreToDocumentArchive [11:59:37]shift 354 fd 103897 [11:59:37]save to /storage/0354/doc_00103897 [11:59:37]save last doc name /storage/0354/doc_00103897 to /storage/kkm_last_doc_name [11:59:37]save OK [11:59:37]Clear old archive folders... [11:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:37]tlvbuf is B6EFF8C0 [11:59:37]SAM_PROTO_ClearQueue [11:59:37]wFMCommunicate request_size=4 [11:59:37]MH_SAM_APDU [11:59:37]CAPDU: 80 09 00 00 [11:59:37]Write to MH i2c: E2 08 00 91 16 80 09 00 00 00 00 00 00 19 [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:37]Read from MH i2c: E2 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 03 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 03 00 91 16 00 90 00 1B [11:59:37]RAPDU: 90 00 [11:59:37]wFMCommunicate OK [11:59:37]SAM_PROTO_ClearQueue done [11:59:37]KKMCreateOFDPacket [11:59:37]OFDProtocolAddRootSTLVToBuf [11:59:37]FM_MakeSignedData [11:59:37]FM_MakeSignedData [11:59:37]SAM_PROTO_SignData [11:59:37]wFMCommunicate request_size=4 [11:59:37]MH_SAM_APDU [11:59:37]CAPDU: 80 0D 01 02 [11:59:37]Write to MH i2c: E2 08 00 92 16 80 0D 01 02 00 00 00 00 21 [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:37]Read from MH i2c: E2 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 03 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 03 00 92 16 00 90 00 1C [11:59:37]RAPDU: 90 00 [11:59:37]wFMCommunicate OK [11:59:37]wFMCommunicate request_size=255 [11:59:37]MH_SAM_APDU [11:59: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 52 00 00 00 F4 03 04 00 AA 19 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 95 01 00 35 04 06 00 85 [11:59:37]Write to MH i2c: E2 02 01 93 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 52 00 00 00 F4 03 04 00 AA 19 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 95 01 00 35 04 06 00 85 00 00 33 [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:37]Read from MH i2c: E2 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 03 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 03 00 93 16 00 90 00 1D [11:59:37]RAPDU: 90 00 [11:59:37]wFMCommunicate OK [11:59:37]wFMCommunicate request_size=10 [11:59:37]MH_SAM_APDU [11:59:37]CAPDU: 80 0D 02 02 05 B4 2F 67 48 BC [11:59:37]Write to MH i2c: E2 0D 00 94 16 80 0D 02 02 05 00 B4 2F 67 48 BC 00 00 7C [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:38]Read from MH i2c: E2 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: E2 03 00 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: E2 03 00 94 16 00 90 00 1E [11:59:38]RAPDU: 90 00 [11:59:38]wFMCommunicate OK [11:59:38]wFMCommunicate request_size=4 [11:59:38]MH_SAM_APDU [11:59:38]CAPDU: 80 0D 03 02 [11:59:38]Write to MH i2c: E2 08 00 95 16 80 0D 03 02 00 00 00 00 26 [11:59:38]Write i2c OK [11:59:38]MH_I2C_Read... [11:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:38]Read from MH i2c: E2 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: E2 0B 00 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: E2 0B 00 95 16 00 4B 3C D7 0B 14 0B 30 0B 90 00 EA [11:59:38]RAPDU: 4B 3C D7 0B 14 0B 30 0B 90 00 [11:59:38]wFMCommunicate OK [11:59:38]SAM_PROTO_SignData done [11:59:38]FM_MakeSignedData done [11:59:38]CreateOFDProtocolMessage [11:59:38]wFMCommunicate request_size=4 [11:59:38]MH_SAM_APDU [11:59:38]CAPDU: 80 11 00 00 [11:59:38]Write to MH i2c: E2 08 00 96 16 80 11 00 00 00 00 00 00 26 [11:59:38]Write i2c OK [11:59:38]MH_I2C_Read... [11:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:38]Read from MH i2c: E2 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: E2 17 00 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: E2 17 00 96 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 79 [11:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:59:38]wFMCommunicate OK [11:59:38]CreateOFDProtocolMessage done [11:59:38]OFDSenderStorePacket 103897 [11:59:38]StoreOFDPacket docnum=103897 [11:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CF 5F 07 01 9E 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 52 00 00 00 F4 03 04 00 AA 19 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 95 01 00 35 04 06 00 85 B4 2F 67 48 BC 4B 3C D7 0B 14 0B 30 0B [11:59:38]CheckFolder [11:59:38]dirname=/storage/ofd_packets [11:59:38]CheckFolder done [11:59:38]ProducePacketName [11:59:38]name=ofd_packets/00103897 [11:59:38]NVStorageSaveData ofd_packets/00103897 [11:59:38]File name is /storage/ofd_packets/00103897 [11:59:38]Write 301 bytes [11:59:38]NVStorageSaveData done [11:59:38]OFDSenderStorePacket done [11:59:38]KKMCreateOFDPacket done [11:59:38]NVStorageSaveData kkm_last_timestamp [11:59:38]File name is /storage/kkm_last_timestamp [11:59:38]Write 4 bytes [11:59:38]NVStorageSaveData done [11:59:38]ExternCall_PrintAddStr [11:59:38]wPrintStart [11:59:38]Write to MH i2c: 01 00 00 97 16 AD [11:59:38]Write i2c OK [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: 01 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: 01 07 00 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: 01 07 00 97 16 00 00 00 00 00 FF 0F C2 [11:59:38]RasterBufferAndPrint [11:59:38]line Счет N : (1)673233 [11:59:38]line ИНН: 02508201610067 [11:59:38]line Контрольно-Кассовый Чек [11:59:38]line ПРОДАЖА [11:59:38]line ТРК (МРК, ГНК) : 32 [11:59:38]line Товар: 2710124130 [11:59:38]line Аи-92-К-5 [11:59:38]line 10.550 * 66.40 [11:59:38]line = 700.52 [11:59:38]line НДС 12% НСП 1% [11:59:38]line > о реализуемом товаре [11:59:38]line ОКРУГЛЕНИЕ: -0.52 [11:59:38]line ИТОГО: 700.00 [11:59:38]line Внесено: 700.00 [11:59:38]line СДАЧА: 0.00 [11:59:38]line НСП 1% : 6.20 [11:59:38]line НДС 12% : 74.39 [11:59:38]line Наличными: 700.00 [11:59:38]line Безнал.: 0.00 [11:59:38]line Место: АЗС № 120 "Партнер Нефть" [11:59:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [11:59:38]line СНО: Общий режим [11:59:38]line Чек 82 20.06.2024 11:59 [11:59:38]line Смена: 354 ФФД: 1.0 [11:59:38]line ЗНМ: 0300000164 [11:59:38]line РНМ: 0000000000092785 [11:59:38]line Версия ККМ: 001 [11:59:38]line ФМ: 0000000000875093 [11:59:38]line ФД: 103897 [11:59:38]line ФПД: 147008935905468 [11:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T115938&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103897&fm=147008935905468&tin=02508201610067®Number=0000000000092785&sum=70000 [11:59:38]OFD Sender: Processing packet 103897 [packets to send 17, broken 16] [11:59:38]ProducePacketName [11:59:38]name=ofd_packets/00103897 [11:59:38]OFD Sender: To server: pG, [11:59:38]CommunicateWithHost lk.salyk.kg:30040 [11:59:38]ConnectInit lk.salyk.kg [11:59:38]written 0, free lines is 4095 [11:59:38]Connected sock=11 [11:59:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CF 5F 07 01 9E 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 52 00 00 00 F4 03 04 00 AA 19 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 D9 95 01 00 35 04 06 00 85 B4 2F 67 48 BC 4B 3C D7 0B 14 0B 30 0B [11:59:38]Write to MH i2c: 01 00 00 C2 16 D8 [11:59:38]Write i2c OK [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: 01 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: 01 07 00 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: 01 07 00 C2 16 00 00 00 00 00 E6 0C D1 [11:59:38]RasterBufferAndPrint [11:59:38]line [11:59:38]line [11:59:38]line [11:59:38]line [11:59:38]line [11:59:38]written 0, free lines is 3308 [11:59:38]MH_Cut [11:59:38]Write to MH i2c: D1 01 00 C9 16 01 B1 [11:59:38]Write i2c OK [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: D1 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: D1 01 00 [11:59:38]MH_I2C_Read... [11:59:38]Read from MH i2c: D1 01 00 C9 16 00 B0 [11:59:38]Write to MH i2c: 01 00 00 CA 16 E0 [11:59:38]Write i2c OK [11:59:38]MH_I2C_Read... [11:59:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 36 CA 47 00 AA 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 35 30 39 33 10 04 04 00 D9 95 01 00 F4 03 04 00 30 C0 73 66 B6 04 01 00 00 EA 60 6C 66 F4 8B 64 BE [11:59:39]CommunicateWithHost err = 0 [11:59:39]CheckOFDResponse [11:59:39]1017 (14) - 77093643461234 [11:59:39]1041 (16) - 0000000000875093 [11:59:39]1040 (4) - 103897 [11:59:39]1012 (4) - 20.06.2024 05:37 [11:59:39]1206 (1) - 0 [11:59:39]OFD Sender: Remove packet 103897 [11:59:39]ProducePacketName [11:59:39]name=ofd_packets/00103897 [11:59:39]NVStorageDeleteData [11:59:39]OFD Sender: No OFD packet to send [11:59:39]*** Cut start [11:59:39]*** Partial cut [11:59:39]*** CUTSNS_PIN = 1 [11:59:39]*** CUTSNS_PIN = 0 [11:59:39]*** Brake cut motor [11:59:40]Read from MH i2c: 01 [11:59:40]MH_I2C_Read... [11:59:40]*** Stop cut motor [11:59:40]*** Cut end [11:59:40]Read from MH i2c: 01 07 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: 01 07 00 CA 16 00 00 00 00 00 FF 0F F5 [11:59:40]process_action close_receipt done [11:59:40]requested_data is exist [11:59:40]produce_requested_data [11:59:40]requested_item fm.sn is exist - process it [11:59:40]wFMCommunicate request_size=4 [11:59:40]MH_SAM_APDU [11:59:40]CAPDU: 80 11 00 00 [11:59:40]Write to MH i2c: E2 08 00 CB 16 80 11 00 00 00 00 00 00 5B [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:40]Read from MH i2c: E2 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: E2 17 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: E2 17 00 CB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AE [11:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [11:59:40]wFMCommunicate OK [11:59:40]requested_item fd.num is exist - process it [11:59:40]SAM_PROTO_GetFieldsCounters [11:59:40]wFMCommunicate request_size=4 [11:59:40]MH_SAM_APDU [11:59:40]CAPDU: 80 13 00 00 [11:59:40]Write to MH i2c: E2 08 00 CC 16 80 13 00 00 00 00 00 00 5E [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:40]Read from MH i2c: E2 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: E2 62 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: E2 62 00 CC 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D9 95 01 00 0E 04 04 00 62 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 4D [11:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 D9 95 01 00 0E 04 04 00 62 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:59:40]wFMCommunicate OK [11:59:40]SAM_PROTO_GetFieldsCounters done [11:59:40]requested_item shift.num is exist - process it [11:59:40]requested_item shift.opened is exist - process it [11:59:40]req_shift_opened [11:59:40]FM_GetShiftState [11:59:40]SAM_PROTO_GetShiftState [11:59:40]wFMCommunicate request_size=4 [11:59:40]MH_SAM_APDU [11:59:40]CAPDU: 80 13 01 00 [11:59:40]Write to MH i2c: E2 08 00 CD 16 80 13 01 00 00 00 00 00 60 [11:59:40]Write i2c OK [11:59:40]MH_I2C_Read... [11:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:40]Read from MH i2c: E2 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: E2 0E 00 [11:59:40]MH_I2C_Read... [11:59:40]Read from MH i2c: E2 0E 00 CD 16 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AF [11:59:40]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [11:59:40]wFMCommunicate OK [11:59:40]SAM_PROTO_GetShiftState done [11:59:40]FM_GetShiftState done [11:59:40]req_shift_opened done [11:59:40]requested_item shift.open_date is exist - process it [11:59:40]req_shift_open_date [11:59:40]req_shift_open_date done [11:59:40]produce_requested_data done [11:59:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103897,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [11:59:40]process_action_free close_receipt [11:59:40]json_value_free [11:59:40]json_value_free done [11:59:40]process_json_proto returns [11:59:40]Send response to host [11:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103897,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [11:59:40]free response buf [11:59:40]execute_script done [11:59:40]execute_script returns [11:59:40]free content buf [11:59:40]Sock 9.Close socket [11:59:40]Sock 9.Thread stoped [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:15]accept exits with 7 [12:02:15]New connection [12:02:15]New thread 3067063652 created [12:02:15]Thread 3067207012 joined [12:02:15]Waiting for new connection... [12:02:15] Sock 7.Parse request [12:02:15]Sock 7.Check first char [12:02:15]Sock 7.First char is OK [12:02:15]request: POST /json_proto HTTP/1.0 [12:02:15]Method: POST [12:02:15]URL: /json_proto [12:02:15]Method is POST - this is cgi request [12:02:15]url: /json_proto [12:02:15]query_string will be loaded in cgi processing [12:02:15]execute_cgi json_proto POST (null) [12:02:15]execute_cgi path=json_proto method=POST [12:02:15]POST find Content-Length [12:02:15]Host: 172.17.38.133:8080 [12:02:15]Content-Length: 682 [12:02:15]Content-Type: application/json [12:02:15] [12:02:15]POST finish read [12:02:15]Found Content-Length = 682 [12:02:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673234", "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" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:02:15]execute_script... [12:02: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)673234", "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" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:02:15]POST & json_proto [12:02:15]process_json_proto [12:02:15]json parsed OK: [12:02:15]protocol is kg_v1.0 [12:02:15]action value=close_receipt [12:02:15]process_action close_receipt [12:02:15]cmd_close_receipt [12:02:15]MH_GetDate [12:02:15]Write to MH i2c: F0 00 00 CE 16 D3 [12:02:15]Write i2c OK [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: F0 [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: F0 09 00 [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: F0 09 00 CE 16 00 49 1A 74 66 BD 8F 7C 64 45 [12:02:15]GetLastDocTimeStamp 1718884778 [12:02:15]current date 1718884937 [12:02:15]FM_GetShiftState [12:02:15]SAM_PROTO_GetShiftState [12:02:15]wFMCommunicate request_size=4 [12:02:15]MH_SAM_APDU [12:02:15]CAPDU: 80 13 01 00 [12:02:15]Write to MH i2c: E2 08 00 CF 16 80 13 01 00 00 00 00 00 62 [12:02:15]Write i2c OK [12:02:15]MH_I2C_Read... [12:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:15]Read from MH i2c: E2 [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: E2 0E 00 [12:02:15]MH_I2C_Read... [12:02:15]Read from MH i2c: E2 0E 00 CF 16 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B1 [12:02:15]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:02:15]wFMCommunicate OK [12:02:15]SAM_PROTO_GetShiftState done [12:02:15]FM_GetShiftState done [12:02:15]opened in 1718843124 [12:02:15]opened+sec_in_day 1718929524 [12:02:15]quantity*price = 100060 [12:02:15]sum+1 = 100062 [12:02:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 83 20.06.2024 12:02 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103898 ФПД: 92395532776159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120217&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103898&fm=92395532776159&tin=02508201610067®Number=0000000000092785&sum=100000 [12:02:16]StoreToDocumentArchive [12:02:16]shift 354 fd 103898 [12:02:16]save to /storage/0354/doc_00103898 [12:02:16]save last doc name /storage/0354/doc_00103898 to /storage/kkm_last_doc_name [12:02:16]save OK [12:02:16]Clear old archive folders... [12:02:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:16]tlvbuf is B6F937C0 [12:02:16]SAM_PROTO_ClearQueue [12:02:16]wFMCommunicate request_size=4 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 09 00 00 [12:02:16]Write to MH i2c: E2 08 00 DC 16 80 09 00 00 00 00 00 00 64 [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 03 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 03 00 DC 16 00 90 00 66 [12:02:16]RAPDU: 90 00 [12:02:16]wFMCommunicate OK [12:02:16]SAM_PROTO_ClearQueue done [12:02:16]KKMCreateOFDPacket [12:02:16]OFDProtocolAddRootSTLVToBuf [12:02:16]FM_MakeSignedData [12:02:16]FM_MakeSignedData [12:02:16]SAM_PROTO_SignData [12:02:16]wFMCommunicate request_size=4 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 0D 01 02 [12:02:16]Write to MH i2c: E2 08 00 DD 16 80 0D 01 02 00 00 00 00 6C [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 03 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 03 00 DD 16 00 90 00 67 [12:02:16]RAPDU: 90 00 [12:02:16]wFMCommunicate OK [12:02:16]wFMCommunicate request_size=255 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 1A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 95 01 00 35 04 06 00 54 [12:02:16]Write to MH i2c: E2 02 01 DE 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 1A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 95 01 00 35 04 06 00 54 00 00 1E [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 03 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 03 00 DE 16 00 90 00 68 [12:02:16]RAPDU: 90 00 [12:02:16]wFMCommunicate OK [12:02:16]wFMCommunicate request_size=10 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 0D 02 02 05 08 82 E8 F2 DF [12:02:16]Write to MH i2c: E2 0D 00 DF 16 80 0D 02 02 05 00 08 82 E8 F2 DF 00 00 BC [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:16]Read from MH i2c: E2 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 03 00 [12:02:16]MH_I2C_Read... [12:02:16]Read from MH i2c: E2 03 00 DF 16 00 90 00 69 [12:02:16]RAPDU: 90 00 [12:02:16]wFMCommunicate OK [12:02:16]wFMCommunicate request_size=4 [12:02:16]MH_SAM_APDU [12:02:16]CAPDU: 80 0D 03 02 [12:02:16]Write to MH i2c: E2 08 00 E0 16 80 0D 03 02 00 00 00 00 71 [12:02:16]Write i2c OK [12:02:16]MH_I2C_Read... [12:02:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:17]Read from MH i2c: E2 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 0B 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 0B 00 E0 16 00 15 59 BC BF 62 E3 19 0C 90 00 C5 [12:02:17]RAPDU: 15 59 BC BF 62 E3 19 0C 90 00 [12:02:17]wFMCommunicate OK [12:02:17]SAM_PROTO_SignData done [12:02:17]FM_MakeSignedData done [12:02:17]CreateOFDProtocolMessage [12:02:17]wFMCommunicate request_size=4 [12:02:17]MH_SAM_APDU [12:02:17]CAPDU: 80 11 00 00 [12:02:17]Write to MH i2c: E2 08 00 E1 16 80 11 00 00 00 00 00 00 71 [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:17]Read from MH i2c: E2 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 17 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: E2 17 00 E1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C4 [12:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:02:17]wFMCommunicate OK [12:02:17]CreateOFDProtocolMessage done [12:02:17]OFDSenderStorePacket 103898 [12:02:17]StoreOFDPacket docnum=103898 [12:02:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CC 84 07 01 E6 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 1A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 95 01 00 35 04 06 00 54 08 82 E8 F2 DF 15 59 BC BF 62 E3 19 0C [12:02:17]CheckFolder [12:02:17]dirname=/storage/ofd_packets [12:02:17]CheckFolder done [12:02:17]ProducePacketName [12:02:17]name=ofd_packets/00103898 [12:02:17]NVStorageSaveData ofd_packets/00103898 [12:02:17]File name is /storage/ofd_packets/00103898 [12:02:17]Write 301 bytes [12:02:17]NVStorageSaveData done [12:02:17]OFDSenderStorePacket done [12:02:17]KKMCreateOFDPacket done [12:02:17]NVStorageSaveData kkm_last_timestamp [12:02:17]File name is /storage/kkm_last_timestamp [12:02:17]Write 4 bytes [12:02:17]NVStorageSaveData done [12:02:17]ExternCall_PrintAddStr [12:02:17]wPrintStart [12:02:17]Write to MH i2c: 01 00 00 E2 16 F8 [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: 01 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: 01 07 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: 01 07 00 E2 16 00 00 00 00 00 FF 0F 0D [12:02:17]RasterBufferAndPrint [12:02:17]line Счет N : (1)673234 [12:02:17]line ИНН: 02508201610067 [12:02:17]line Контрольно-Кассовый Чек [12:02:17]line ПРОДАЖА [12:02:17]line ТРК (МРК, ГНК) : 31 [12:02:17]line Товар: 2710124500 [12:02:17]line Аи-95-К-5 [12:02:17]line 13.540 * 73.90 [12:02:17]line = 1000.61 [12:02:17]line НДС 12% НСП 1% [12:02:17]line > о реализуемом товаре [12:02:17]line ОКРУГЛЕНИЕ: -0.61 [12:02:17]line ИТОГО: 1000.00 [12:02:17]line Внесено: 1000.00 [12:02:17]line СДАЧА: 0.00 [12:02:17]line НСП 1% : 8.85 [12:02:17]line НДС 12% : 106.26 [12:02:17]line Наличными: 1000.00 [12:02:17]line Безнал.: 0.00 [12:02:17]line Место: АЗС № 120 "Партнер Нефть" [12:02:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:02:17]line СНО: Общий режим [12:02:17]line Чек 83 20.06.2024 12:02 [12:02:17]line Смена: 354 ФФД: 1.0 [12:02:17]line ЗНМ: 0300000164 [12:02:17]line РНМ: 0000000000092785 [12:02:17]line Версия ККМ: 001 [12:02:17]line ФМ: 0000000000875093 [12:02:17]line ФД: 103898 [12:02:17]line ФПД: 92395532776159 [12:02:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120217&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103898&fm=92395532776159&tin=02508201610067®Number=0000000000092785&sum=100000 [12:02:17]OFD Sender: Processing packet 103898 [packets to send 17, broken 16] [12:02:17]ProducePacketName [12:02:17]name=ofd_packets/00103898 [12:02:17]OFD Sender: To server: pG, [12:02:17]CommunicateWithHost lk.salyk.kg:30040 [12:02:17]ConnectInit lk.salyk.kg [12:02:17]written 0, free lines is 4095 [12:02:17]Connected sock=10 [12:02:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CC 84 07 01 E6 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 1A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 95 01 00 35 04 06 00 54 08 82 E8 F2 DF 15 59 BC BF 62 E3 19 0C [12:02:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 87 D8 47 00 1E CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DA 95 01 00 F4 03 04 00 CE C0 73 66 B6 04 01 00 00 D1 AF C0 7C 5E 00 AD AE [12:02:17]CommunicateWithHost err = 0 [12:02:17]CheckOFDResponse [12:02:17]1017 (14) - 77093643461234 [12:02:17]1041 (16) - 0000000000875093 [12:02:17]1040 (4) - 103898 [12:02:17]1012 (4) - 20.06.2024 05:40 [12:02:17]1206 (1) - 0 [12:02:17]OFD Sender: Remove packet 103898 [12:02:17]ProducePacketName [12:02:17]name=ofd_packets/00103898 [12:02:17]NVStorageDeleteData [12:02:17]Write to MH i2c: 01 00 00 0D 17 24 [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: 01 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: 01 07 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: 01 07 00 0D 17 00 00 00 00 00 EE 0C 25 [12:02:17]RasterBufferAndPrint [12:02:17]line [12:02:17]line [12:02:17]line [12:02:17]line [12:02:17]line [12:02:17]written 0, free lines is 3319 [12:02:17]MH_Cut [12:02:17]Write to MH i2c: D1 01 00 14 17 01 FD [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: D1 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: D1 01 00 [12:02:17]MH_I2C_Read... [12:02:17]Read from MH i2c: D1 01 00 14 17 00 FC [12:02:17]Write to MH i2c: 01 00 00 15 17 2C [12:02:17]Write i2c OK [12:02:17]MH_I2C_Read... [12:02:18]OFD Sender: No OFD packet to send [12:02:18]*** Cut start [12:02:18]*** Partial cut [12:02:18]*** CUTSNS_PIN = 1 [12:02:18]*** CUTSNS_PIN = 0 [12:02:18]*** Brake cut motor [12:02:19]Read from MH i2c: 01 [12:02:19]MH_I2C_Read... [12:02:19]*** Stop cut motor [12:02:19]*** Cut end [12:02:19]Read from MH i2c: 01 07 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: 01 07 00 15 17 00 00 00 00 00 FF 0F 41 [12:02:19]process_action close_receipt done [12:02:19]requested_data is exist [12:02:19]produce_requested_data [12:02:19]requested_item fm.sn is exist - process it [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 11 00 00 [12:02:19]Write to MH i2c: E2 08 00 16 17 80 11 00 00 00 00 00 00 A7 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 17 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 17 00 16 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FA [12:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:02:19]wFMCommunicate OK [12:02:19]requested_item fd.num is exist - process it [12:02:19]SAM_PROTO_GetFieldsCounters [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 13 00 00 [12:02:19]Write to MH i2c: E2 08 00 17 17 80 13 00 00 00 00 00 00 AA [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 62 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 62 00 17 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DA 95 01 00 0E 04 04 00 62 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 9D [12:02:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DA 95 01 00 0E 04 04 00 62 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 [12:02:19]wFMCommunicate OK [12:02:19]SAM_PROTO_GetFieldsCounters done [12:02:19]requested_item shift.num is exist - process it [12:02:19]requested_item shift.opened is exist - process it [12:02:19]req_shift_opened [12:02:19]FM_GetShiftState [12:02:19]SAM_PROTO_GetShiftState [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 13 01 00 [12:02:19]Write to MH i2c: E2 08 00 18 17 80 13 01 00 00 00 00 00 AC [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 0E 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 0E 00 18 17 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FB [12:02:19]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:02:19]wFMCommunicate OK [12:02:19]SAM_PROTO_GetShiftState done [12:02:19]FM_GetShiftState done [12:02:19]req_shift_opened done [12:02:19]requested_item shift.open_date is exist - process it [12:02:19]req_shift_open_date [12:02:19]req_shift_open_date done [12:02:19]produce_requested_data done [12:02:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103898,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:02:19]process_action_free close_receipt [12:02:19]json_value_free [12:02:19]json_value_free done [12:02:19]process_json_proto returns [12:02:19]Send response to host [12:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103898,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:02:19]free response buf [12:02:19]execute_script done [12:02:19]execute_script returns [12:02:19]free content buf [12:02:19]Sock 7.Close socket [12:02:19]Sock 7.Thread stoped [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:44]accept exits with 9 [12:03:44]New connection [12:03:44]New thread 3067207012 created [12:03:44]Thread 3067063652 joined [12:03:44]Waiting for new connection... [12:03:44] Sock 9.Parse request [12:03:44]Sock 9.Check first char [12:03:44]Sock 9.First char is OK [12:03:44]request: POST /json_proto HTTP/1.0 [12:03:44]Method: POST [12:03:44]URL: /json_proto [12:03:44]Method is POST - this is cgi request [12:03:44]url: /json_proto [12:03:44]query_string will be loaded in cgi processing [12:03:44]execute_cgi json_proto POST (null) [12:03:44]execute_cgi path=json_proto method=POST [12:03:44]POST find Content-Length [12:03:44]Host: 172.17.38.133:8080 [12:03:44]Content-Length: 678 [12:03:44]Content-Type: application/json [12:03:44] [12:03:44]POST finish read [12:03:44]Found Content-Length = 678 [12:03:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:44]execute_script... [12:03: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)673235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:44]POST & json_proto [12:03:44]process_json_proto [12:03:44]json parsed OK: [12:03:44]protocol is kg_v1.0 [12:03:44]action value=close_receipt [12:03:44]process_action close_receipt [12:03:44]cmd_close_receipt [12:03:44]MH_GetDate [12:03:44]Write to MH i2c: F0 00 00 19 17 1F [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: F0 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: F0 09 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: F0 09 00 19 17 00 A2 1A 74 66 BD 8F 7C 64 EA [12:03:44]GetLastDocTimeStamp 1718884937 [12:03:44]current date 1718885026 [12:03:44]FM_GetShiftState [12:03:44]SAM_PROTO_GetShiftState [12:03:44]wFMCommunicate request_size=4 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 13 01 00 [12:03:44]Write to MH i2c: E2 08 00 1A 17 80 13 01 00 00 00 00 00 AE [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 0E 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 0E 00 1A 17 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FD [12:03:44]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:03:44]wFMCommunicate OK [12:03:44]SAM_PROTO_GetShiftState done [12:03:44]FM_GetShiftState done [12:03:44]opened in 1718843124 [12:03:44]opened+sec_in_day 1718929524 [12:03:44]quantity*price = 70052 [12:03:44]sum+1 = 70053 [12:03:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 84 20.06.2024 12:03 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103899 ФПД: 279699850796510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103899&fm=279699850796510&tin=02508201610067®Number=0000000000092785&sum=70000 [12:03:46]StoreToDocumentArchive [12:03:46]shift 354 fd 103899 [12:03:46]save to /storage/0354/doc_00103899 [12:03:46]save last doc name /storage/0354/doc_00103899 to /storage/kkm_last_doc_name [12:03:46]save OK [12:03:46]Clear old archive folders... [12:03:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:46]tlvbuf is 008554A0 [12:03:46]SAM_PROTO_ClearQueue [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 09 00 00 [12:03:46]Write to MH i2c: E2 08 00 27 17 80 09 00 00 00 00 00 00 B0 [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 27 17 00 90 00 B2 [12:03:46]RAPDU: 90 00 [12:03:46]wFMCommunicate OK [12:03:46]SAM_PROTO_ClearQueue done [12:03:46]KKMCreateOFDPacket [12:03:46]OFDProtocolAddRootSTLVToBuf [12:03:46]FM_MakeSignedData [12:03:46]FM_MakeSignedData [12:03:46]SAM_PROTO_SignData [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 0D 01 02 [12:03:46]Write to MH i2c: E2 08 00 28 17 80 0D 01 02 00 00 00 00 B8 [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 28 17 00 90 00 B3 [12:03:46]RAPDU: 90 00 [12:03:46]wFMCommunicate OK [12:03:46]wFMCommunicate request_size=255 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 54 00 00 00 F4 03 04 00 A2 1A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 95 01 00 35 04 06 00 FE [12:03:46]Write to MH i2c: E2 02 01 29 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 54 00 00 00 F4 03 04 00 A2 1A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 95 01 00 35 04 06 00 FE 00 00 40 [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 29 17 00 90 00 B4 [12:03:46]RAPDU: 90 00 [12:03:46]wFMCommunicate OK [12:03:46]wFMCommunicate request_size=10 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 0D 02 02 05 62 B2 40 1D DE [12:03:46]Write to MH i2c: E2 0D 00 2A 17 80 0D 02 02 05 00 62 B2 40 1D DE 00 00 14 [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 03 00 2A 17 00 90 00 B5 [12:03:46]RAPDU: 90 00 [12:03:46]wFMCommunicate OK [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 0D 03 02 [12:03:46]Write to MH i2c: E2 08 00 2B 17 80 0D 03 02 00 00 00 00 BD [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 0B 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 0B 00 2B 17 00 3A 2D 0D CA 5C 11 E8 26 90 00 77 [12:03:46]RAPDU: 3A 2D 0D CA 5C 11 E8 26 90 00 [12:03:46]wFMCommunicate OK [12:03:46]SAM_PROTO_SignData done [12:03:46]FM_MakeSignedData done [12:03:46]CreateOFDProtocolMessage [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 11 00 00 [12:03:46]Write to MH i2c: E2 08 00 2C 17 80 11 00 00 00 00 00 00 BD [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 17 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 17 00 2C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 10 [12:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:03:46]wFMCommunicate OK [12:03:46]CreateOFDProtocolMessage done [12:03:46]OFDSenderStorePacket 103899 [12:03:46]StoreOFDPacket docnum=103899 [12:03:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6C BB 07 01 A5 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 54 00 00 00 F4 03 04 00 A2 1A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 95 01 00 35 04 06 00 FE 62 B2 40 1D DE 3A 2D 0D CA 5C 11 E8 26 [12:03:46]CheckFolder [12:03:46]dirname=/storage/ofd_packets [12:03:46]CheckFolder done [12:03:46]ProducePacketName [12:03:46]name=ofd_packets/00103899 [12:03:46]NVStorageSaveData ofd_packets/00103899 [12:03:46]File name is /storage/ofd_packets/00103899 [12:03:46]Write 301 bytes [12:03:46]NVStorageSaveData done [12:03:46]OFDSenderStorePacket done [12:03:46]KKMCreateOFDPacket done [12:03:46]NVStorageSaveData kkm_last_timestamp [12:03:46]File name is /storage/kkm_last_timestamp [12:03:46]Write 4 bytes [12:03:46]NVStorageSaveData done [12:03:46]ExternCall_PrintAddStr [12:03:46]wPrintStart [12:03:46]Write to MH i2c: 01 00 00 2D 17 44 [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: 01 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: 01 07 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: 01 07 00 2D 17 00 00 00 00 00 FF 0F 59 [12:03:46]RasterBufferAndPrint [12:03:46]line Счет N : (1)673235 [12:03:46]line ИНН: 02508201610067 [12:03:46]line Контрольно-Кассовый Чек [12:03:46]line ПРОДАЖА [12:03:46]line ТРК (МРК, ГНК) : 42 [12:03:46]line Товар: 2710124130 [12:03:46]line Аи-92-К-5 [12:03:46]line 10.550 * 66.40 [12:03:46]line = 700.52 [12:03:46]line НДС 12% НСП 1% [12:03:46]line > о реализуемом товаре [12:03:46]line ОКРУГЛЕНИЕ: -0.52 [12:03:46]line ИТОГО: 700.00 [12:03:46]line Внесено: 700.00 [12:03:46]line СДАЧА: 0.00 [12:03:46]line НСП 1% : 6.20 [12:03:46]line НДС 12% : 74.39 [12:03:46]line Наличными: 700.00 [12:03:46]line Безнал.: 0.00 [12:03:46]line Место: АЗС № 120 "Партнер Нефть" [12:03:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:03:46]line СНО: Общий режим [12:03:46]line Чек 84 20.06.2024 12:03 [12:03:46]line Смена: 354 ФФД: 1.0 [12:03:46]line ЗНМ: 0300000164 [12:03:46]line РНМ: 0000000000092785 [12:03:46]line Версия ККМ: 001 [12:03:46]line ФМ: 0000000000875093 [12:03:46]line ФД: 103899 [12:03:46]line ФПД: 279699850796510 [12:03:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103899&fm=279699850796510&tin=02508201610067®Number=0000000000092785&sum=70000 [12:03:46]OFD Sender: Processing packet 103899 [packets to send 17, broken 16] [12:03:46]ProducePacketName [12:03:46]name=ofd_packets/00103899 [12:03:46]OFD Sender: To server: pG, [12:03:46]CommunicateWithHost lk.salyk.kg:30040 [12:03:46]ConnectInit lk.salyk.kg [12:03:46]written 0, free lines is 4095 [12:03:46]Connected sock=10 [12:03:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6C BB 07 01 A5 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 54 00 00 00 F4 03 04 00 A2 1A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 95 01 00 35 04 06 00 FE 62 B2 40 1D DE 3A 2D 0D CA 5C 11 E8 26 [12:03:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9D 2C 47 00 A3 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DB 95 01 00 F4 03 04 00 28 C1 73 66 B6 04 01 00 00 87 81 F7 78 05 16 A9 31 [12:03:47]CommunicateWithHost err = 0 [12:03:47]CheckOFDResponse [12:03:47]1017 (14) - 77093643461234 [12:03:47]1041 (16) - 0000000000875093 [12:03:47]1040 (4) - 103899 [12:03:47]1012 (4) - 20.06.2024 05:42 [12:03:47]1206 (1) - 0 [12:03:47]OFD Sender: Remove packet 103899 [12:03:47]ProducePacketName [12:03:47]name=ofd_packets/00103899 [12:03:47]NVStorageDeleteData [12:03:47]Write to MH i2c: 01 00 00 58 17 6F [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: 01 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: 01 07 00 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: 01 07 00 58 17 00 00 00 00 00 F2 0C 74 [12:03:47]RasterBufferAndPrint [12:03:47]line [12:03:47]line [12:03:47]line [12:03:47]line [12:03:47]line [12:03:47]written 0, free lines is 3323 [12:03:47]MH_Cut [12:03:47]Write to MH i2c: D1 01 00 5F 17 01 48 [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: D1 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: D1 01 00 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: D1 01 00 5F 17 00 47 [12:03:47]Write to MH i2c: 01 00 00 60 17 77 [12:03:47]Write i2c OK [12:03:47]MH_I2C_Read... [12:03:47]OFD Sender: No OFD packet to send [12:03:48]*** Cut start [12:03:48]*** Partial cut [12:03:48]*** CUTSNS_PIN = 1 [12:03:48]*** CUTSNS_PIN = 0 [12:03:48]*** Brake cut motor [12:03:48]Read from MH i2c: 01 [12:03:48]MH_I2C_Read... [12:03:48]*** Stop cut motor [12:03:48]*** Cut end [12:03:48]Read from MH i2c: 01 07 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: 01 07 00 60 17 00 00 00 00 00 FF 0F 8C [12:03:48]process_action close_receipt done [12:03:48]requested_data is exist [12:03:48]produce_requested_data [12:03:48]requested_item fm.sn is exist - process it [12:03:48]wFMCommunicate request_size=4 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 11 00 00 [12:03:48]Write to MH i2c: E2 08 00 61 17 80 11 00 00 00 00 00 00 F2 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 17 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 17 00 61 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [12:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:03:48]wFMCommunicate OK [12:03:48]requested_item fd.num is exist - process it [12:03:48]SAM_PROTO_GetFieldsCounters [12:03:48]wFMCommunicate request_size=4 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 13 00 00 [12:03:48]Write to MH i2c: E2 08 00 62 17 80 13 00 00 00 00 00 00 F5 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 62 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 62 00 62 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DB 95 01 00 0E 04 04 00 62 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 EC [12:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DB 95 01 00 0E 04 04 00 62 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 [12:03:48]wFMCommunicate OK [12:03:48]SAM_PROTO_GetFieldsCounters done [12:03:48]requested_item shift.num is exist - process it [12:03:48]requested_item shift.opened is exist - process it [12:03:48]req_shift_opened [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 63 17 80 13 01 00 00 00 00 00 F7 [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 63 17 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 46 [12:03:48]RAPDU: 09 00 01 F4 76 73 66 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]req_shift_opened done [12:03:48]requested_item shift.open_date is exist - process it [12:03:48]req_shift_open_date [12:03:48]req_shift_open_date done [12:03:48]produce_requested_data done [12:03:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103899,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:03:48]process_action_free close_receipt [12:03:48]json_value_free [12:03:48]json_value_free done [12:03:48]process_json_proto returns [12:03:48]Send response to host [12:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103899,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:03:48]free response buf [12:03:48]execute_script done [12:03:48]execute_script returns [12:03:48]free content buf [12:03:48]Sock 9.Close socket [12:03:48]Sock 9.Thread stoped [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:25]accept exits with 7 [12:05:25]New connection [12:05:25]New thread 3067063652 created [12:05:25]Thread 3067207012 joined [12:05:25]Waiting for new connection... [12:05:25] Sock 7.Parse request [12:05:25]Sock 7.Check first char [12:05:25]Sock 7.First char is OK [12:05:25]request: POST /json_proto HTTP/1.0 [12:05:25]Method: POST [12:05:25]URL: /json_proto [12:05:25]Method is POST - this is cgi request [12:05:25]url: /json_proto [12:05:25]query_string will be loaded in cgi processing [12:05:25]execute_cgi json_proto POST (null) [12:05:25]execute_cgi path=json_proto method=POST [12:05:25]POST find Content-Length [12:05:25]Host: 172.17.38.133:8080 [12:05:25]Content-Length: 677 [12:05:25]Content-Type: application/json [12:05:25] [12:05:25]POST finish read [12:05:25]Found Content-Length = 677 [12:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:25]execute_script... [12:05: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)673236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:25]POST & json_proto [12:05:25]process_json_proto [12:05:25]json parsed OK: [12:05:25]protocol is kg_v1.0 [12:05:25]action value=close_receipt [12:05:25]process_action close_receipt [12:05:25]cmd_close_receipt [12:05:25]MH_GetDate [12:05:25]Write to MH i2c: F0 00 00 64 17 6A [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: F0 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: F0 09 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: F0 09 00 64 17 00 06 1B 74 66 BD 8F 7C 64 9A [12:05:25]GetLastDocTimeStamp 1718885026 [12:05:25]current date 1718885126 [12:05:25]FM_GetShiftState [12:05:25]SAM_PROTO_GetShiftState [12:05:25]wFMCommunicate request_size=4 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 13 01 00 [12:05:25]Write to MH i2c: E2 08 00 65 17 80 13 01 00 00 00 00 00 F9 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0E 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0E 00 65 17 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 48 [12:05:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:05:25]wFMCommunicate OK [12:05:25]SAM_PROTO_GetShiftState done [12:05:25]FM_GetShiftState done [12:05:25]opened in 1718843124 [12:05:25]opened+sec_in_day 1718929524 [12:05:25]quantity*price = 40039 [12:05:25]sum+1 = 40040 [12:05:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 85 20.06.2024 12:05 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103900 ФПД: 77706691853336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120526&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103900&fm=77706691853336&tin=02508201610067®Number=0000000000092785&sum=40000 [12:05:26]StoreToDocumentArchive [12:05:26]shift 354 fd 103900 [12:05:26]save to /storage/0354/doc_00103900 [12:05:26]save last doc name /storage/0354/doc_00103900 to /storage/kkm_last_doc_name [12:05:26]save OK [12:05:26]Clear old archive folders... [12:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:26]tlvbuf is B6DE6170 [12:05:26]SAM_PROTO_ClearQueue [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 09 00 00 [12:05:26]Write to MH i2c: E2 08 00 72 17 80 09 00 00 00 00 00 00 FB [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 72 17 00 90 00 FD [12:05:26]RAPDU: 90 00 [12:05:26]wFMCommunicate OK [12:05:26]SAM_PROTO_ClearQueue done [12:05:26]KKMCreateOFDPacket [12:05:26]OFDProtocolAddRootSTLVToBuf [12:05:26]FM_MakeSignedData [12:05:26]FM_MakeSignedData [12:05:26]SAM_PROTO_SignData [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 0D 01 02 [12:05:26]Write to MH i2c: E2 08 00 73 17 80 0D 01 02 00 00 00 00 03 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 73 17 00 90 00 FE [12:05:26]RAPDU: 90 00 [12:05:26]wFMCommunicate OK [12:05:26]wFMCommunicate request_size=255 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 55 00 00 00 F4 03 04 00 06 1B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 95 01 00 35 04 06 00 46 [12:05:26]Write to MH i2c: E2 02 01 74 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 55 00 00 00 F4 03 04 00 06 1B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 95 01 00 35 04 06 00 46 00 00 F6 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 74 17 00 90 00 FF [12:05:26]RAPDU: 90 00 [12:05:26]wFMCommunicate OK [12:05:26]wFMCommunicate request_size=10 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 0D 02 02 05 AC 7F C3 BC 18 [12:05:26]Write to MH i2c: E2 0D 00 75 17 80 0D 02 02 05 00 AC 7F C3 BC 18 00 00 D2 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 03 00 75 17 00 90 00 00 [12:05:26]RAPDU: 90 00 [12:05:26]wFMCommunicate OK [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 0D 03 02 [12:05:26]Write to MH i2c: E2 08 00 76 17 80 0D 03 02 00 00 00 00 08 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 0B 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 0B 00 76 17 00 A8 B0 36 51 63 0E 32 14 90 00 9F [12:05:26]RAPDU: A8 B0 36 51 63 0E 32 14 90 00 [12:05:26]wFMCommunicate OK [12:05:26]SAM_PROTO_SignData done [12:05:26]FM_MakeSignedData done [12:05:26]CreateOFDProtocolMessage [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 11 00 00 [12:05:26]Write to MH i2c: E2 08 00 77 17 80 11 00 00 00 00 00 00 08 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 17 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 17 00 77 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [12:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:05:26]wFMCommunicate OK [12:05:26]CreateOFDProtocolMessage done [12:05:26]OFDSenderStorePacket 103900 [12:05:26]StoreOFDPacket docnum=103900 [12:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B9 13 07 01 CD 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 55 00 00 00 F4 03 04 00 06 1B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 95 01 00 35 04 06 00 46 AC 7F C3 BC 18 A8 B0 36 51 63 0E 32 14 [12:05:26]CheckFolder [12:05:26]dirname=/storage/ofd_packets [12:05:26]CheckFolder done [12:05:26]ProducePacketName [12:05:26]name=ofd_packets/00103900 [12:05:26]NVStorageSaveData ofd_packets/00103900 [12:05:26]File name is /storage/ofd_packets/00103900 [12:05:26]Write 301 bytes [12:05:26]NVStorageSaveData done [12:05:26]OFDSenderStorePacket done [12:05:26]KKMCreateOFDPacket done [12:05:26]NVStorageSaveData kkm_last_timestamp [12:05:26]File name is /storage/kkm_last_timestamp [12:05:26]Write 4 bytes [12:05:26]NVStorageSaveData done [12:05:26]ExternCall_PrintAddStr [12:05:26]wPrintStart [12:05:26]Write to MH i2c: 01 00 00 78 17 8F [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 78 17 00 00 00 00 00 FF 0F A4 [12:05:26]RasterBufferAndPrint [12:05:26]line Счет N : (1)673236 [12:05:26]line ИНН: 02508201610067 [12:05:26]line Контрольно-Кассовый Чек [12:05:26]line ПРОДАЖА [12:05:26]line ТРК (МРК, ГНК) : 32 [12:05:26]line Товар: 2710124130 [12:05:26]line Аи-92-К-5 [12:05:26]line 6.030 * 66.40 [12:05:26]line = 400.39 [12:05:26]line НДС 12% НСП 1% [12:05:26]line > о реализуемом товаре [12:05:26]line ОКРУГЛЕНИЕ: -0.39 [12:05:26]line ИТОГО: 400.00 [12:05:26]line Внесено: 400.00 [12:05:26]line СДАЧА: 0.00 [12:05:26]line НСП 1% : 3.54 [12:05:26]line НДС 12% : 42.52 [12:05:26]line Наличными: 400.00 [12:05:26]line Безнал.: 0.00 [12:05:26]line Место: АЗС № 120 "Партнер Нефть" [12:05:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:05:26]line СНО: Общий режим [12:05:26]line Чек 85 20.06.2024 12:05 [12:05:26]line Смена: 354 ФФД: 1.0 [12:05:26]line ЗНМ: 0300000164 [12:05:26]line РНМ: 0000000000092785 [12:05:26]line Версия ККМ: 001 [12:05:26]line ФМ: 0000000000875093 [12:05:26]line ФД: 103900 [12:05:26]line ФПД: 77706691853336 [12:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120526&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103900&fm=77706691853336&tin=02508201610067®Number=0000000000092785&sum=40000 [12:05:27]OFD Sender: Processing packet 103900 [packets to send 17, broken 16] [12:05:27]ProducePacketName [12:05:27]name=ofd_packets/00103900 [12:05:27]OFD Sender: To server: pG, [12:05:27]CommunicateWithHost lk.salyk.kg:30040 [12:05:27]ConnectInit lk.salyk.kg [12:05:27]written 0, free lines is 4095 [12:05:27]Connected sock=10 [12:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B9 13 07 01 CD 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 55 00 00 00 F4 03 04 00 06 1B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 95 01 00 35 04 06 00 46 AC 7F C3 BC 18 A8 B0 36 51 63 0E 32 14 [12:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FD 32 47 00 A5 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DC 95 01 00 F4 03 04 00 8C C1 73 66 B6 04 01 00 00 9B 72 FA 6A 3A D7 C0 6C [12:05:27]CommunicateWithHost err = 0 [12:05:27]CheckOFDResponse [12:05:27]1017 (14) - 77093643461234 [12:05:27]1041 (16) - 0000000000875093 [12:05:27]1040 (4) - 103900 [12:05:27]1012 (4) - 20.06.2024 05:43 [12:05:27]1206 (1) - 0 [12:05:27]OFD Sender: Remove packet 103900 [12:05:27]ProducePacketName [12:05:27]name=ofd_packets/00103900 [12:05:27]NVStorageDeleteData [12:05:27]Write to MH i2c: 01 00 00 A3 17 BA [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: 01 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: 01 07 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: 01 07 00 A3 17 00 00 00 00 00 EC 0C B9 [12:05:27]RasterBufferAndPrint [12:05:27]line [12:05:27]line [12:05:27]line [12:05:27]line [12:05:27]line [12:05:27]written 0, free lines is 3314 [12:05:27]MH_Cut [12:05:27]Write to MH i2c: D1 01 00 AA 17 01 93 [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: D1 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: D1 01 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: D1 01 00 AA 17 00 92 [12:05:27]Write to MH i2c: 01 00 00 AB 17 C2 [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:28]OFD Sender: No OFD packet to send [12:05:28]*** Cut start [12:05:28]*** Partial cut [12:05:28]*** CUTSNS_PIN = 1 [12:05:28]*** CUTSNS_PIN = 0 [12:05:28]*** Brake cut motor [12:05:28]Read from MH i2c: 01 [12:05:29]MH_I2C_Read... [12:05:29]*** Stop cut motor [12:05:29]*** Cut end [12:05:29]Read from MH i2c: 01 07 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: 01 07 00 AB 17 00 00 00 00 00 FF 0F D7 [12:05:29]process_action close_receipt done [12:05:29]requested_data is exist [12:05:29]produce_requested_data [12:05:29]requested_item fm.sn is exist - process it [12:05:29]wFMCommunicate request_size=4 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 11 00 00 [12:05:29]Write to MH i2c: E2 08 00 AC 17 80 11 00 00 00 00 00 00 3D [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 17 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 17 00 AC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 90 [12:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:05:29]wFMCommunicate OK [12:05:29]requested_item fd.num is exist - process it [12:05:29]SAM_PROTO_GetFieldsCounters [12:05:29]wFMCommunicate request_size=4 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 13 00 00 [12:05:29]Write to MH i2c: E2 08 00 AD 17 80 13 00 00 00 00 00 00 40 [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 62 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 62 00 AD 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DC 95 01 00 0E 04 04 00 62 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 3B [12:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DC 95 01 00 0E 04 04 00 62 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 [12:05:29]wFMCommunicate OK [12:05:29]SAM_PROTO_GetFieldsCounters done [12:05:29]requested_item shift.num is exist - process it [12:05:29]requested_item shift.opened is exist - process it [12:05:29]req_shift_opened [12:05:29]FM_GetShiftState [12:05:29]SAM_PROTO_GetShiftState [12:05:29]wFMCommunicate request_size=4 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 13 01 00 [12:05:29]Write to MH i2c: E2 08 00 AE 17 80 13 01 00 00 00 00 00 42 [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 0E 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 0E 00 AE 17 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 91 [12:05:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:05:29]wFMCommunicate OK [12:05:29]SAM_PROTO_GetShiftState done [12:05:29]FM_GetShiftState done [12:05:29]req_shift_opened done [12:05:29]requested_item shift.open_date is exist - process it [12:05:29]req_shift_open_date [12:05:29]req_shift_open_date done [12:05:29]produce_requested_data done [12:05:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103900,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:05:29]process_action_free close_receipt [12:05:29]json_value_free [12:05:29]json_value_free done [12:05:29]process_json_proto returns [12:05:29]Send response to host [12:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103900,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:05:29]free response buf [12:05:29]execute_script done [12:05:29]execute_script returns [12:05:29]free content buf [12:05:29]Sock 7.Close socket [12:05:29]Sock 7.Thread stoped [12:05:33]OFD Sender: No OFD packet to send [12:05:37]accept exits with 9 [12:05:37]New connection [12:05:37]New thread 3067207012 created [12:05:37]Thread 3067063652 joined [12:05:37]Waiting for new connection... [12:05:37] Sock 9.Parse request [12:05:37]Sock 9.Check first char [12:05:37]Sock 9.First char is OK [12:05:37]request: POST /json_proto HTTP/1.0 [12:05:37]Method: POST [12:05:37]URL: /json_proto [12:05:37]Method is POST - this is cgi request [12:05:37]url: /json_proto [12:05:37]query_string will be loaded in cgi processing [12:05:37]execute_cgi json_proto POST (null) [12:05:37]execute_cgi path=json_proto method=POST [12:05:37]POST find Content-Length [12:05:37]Host: 172.17.38.133:8080 [12:05:37]Content-Length: 661 [12:05:37]Content-Type: application/json [12:05:37] [12:05:37]POST finish read [12:05:37]Found Content-Length = 661 [12:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:37]execute_script... [12:05: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)673237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:37]POST & json_proto [12:05:37]process_json_proto [12:05:37]json parsed OK: [12:05:37]protocol is kg_v1.0 [12:05:37]action value=close_receipt [12:05:37]process_action close_receipt [12:05:37]cmd_close_receipt [12:05:37]MH_GetDate [12:05:37]Write to MH i2c: F0 00 00 AF 17 B5 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: F0 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: F0 09 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: F0 09 00 AF 17 00 12 1B 74 66 BD 8F 7C 64 F1 [12:05:37]GetLastDocTimeStamp 1718885126 [12:05:37]current date 1718885138 [12:05:37]FM_GetShiftState [12:05:37]SAM_PROTO_GetShiftState [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 13 01 00 [12:05:37]Write to MH i2c: E2 08 00 B0 17 80 13 01 00 00 00 00 00 44 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 0E 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 0E 00 B0 17 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 93 [12:05:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:05:37]wFMCommunicate OK [12:05:37]SAM_PROTO_GetShiftState done [12:05:37]FM_GetShiftState done [12:05:37]opened in 1718843124 [12:05:37]opened+sec_in_day 1718929524 [12:05:37]quantity*price = 66400 [12:05:37]sum+1 = 66401 [12:05:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 Внесено: 1000.00 СДАЧА: 336.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 86 20.06.2024 12:05 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103901 ФПД: 109901269683270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103901&fm=109901269683270&tin=02508201610067®Number=0000000000092785&sum=66400 [12:05:38]StoreToDocumentArchive [12:05:38]shift 354 fd 103901 [12:05:38]save to /storage/0354/doc_00103901 [12:05:38]save last doc name /storage/0354/doc_00103901 to /storage/kkm_last_doc_name [12:05:38]save OK [12:05:38]Clear old archive folders... [12:05:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:38]tlvbuf is 00854FF0 [12:05:38]SAM_PROTO_ClearQueue [12:05:38]wFMCommunicate request_size=4 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 09 00 00 [12:05:38]Write to MH i2c: E2 08 00 BD 17 80 09 00 00 00 00 00 00 46 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 BD 17 00 90 00 48 [12:05:38]RAPDU: 90 00 [12:05:38]wFMCommunicate OK [12:05:38]SAM_PROTO_ClearQueue done [12:05:38]KKMCreateOFDPacket [12:05:38]OFDProtocolAddRootSTLVToBuf [12:05:38]FM_MakeSignedData [12:05:38]FM_MakeSignedData [12:05:38]SAM_PROTO_SignData [12:05:38]wFMCommunicate request_size=4 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 0D 01 02 [12:05:38]Write to MH i2c: E2 08 00 BE 17 80 0D 01 02 00 00 00 00 4E [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 BE 17 00 90 00 49 [12:05:38]RAPDU: 90 00 [12:05:38]wFMCommunicate OK [12:05:38]wFMCommunicate request_size=255 [12:05:38]MH_SAM_APDU [12:05: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 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 12 1B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 95 01 00 35 04 06 00 63 [12:05:38]Write to MH i2c: E2 02 01 BF 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 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 12 1B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 95 01 00 35 04 06 00 63 00 00 54 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 BF 17 00 90 00 4A [12:05:38]RAPDU: 90 00 [12:05:38]wFMCommunicate OK [12:05:38]wFMCommunicate request_size=10 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 0D 02 02 05 F4 62 23 CC 46 [12:05:38]Write to MH i2c: E2 0D 00 C0 17 80 0D 02 02 05 00 F4 62 23 CC 46 00 00 E6 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 03 00 C0 17 00 90 00 4B [12:05:38]RAPDU: 90 00 [12:05:38]wFMCommunicate OK [12:05:38]wFMCommunicate request_size=4 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 0D 03 02 [12:05:38]Write to MH i2c: E2 08 00 C1 17 80 0D 03 02 00 00 00 00 53 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 0B 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 0B 00 C1 17 00 F4 2B 44 27 E3 98 BC 24 90 00 39 [12:05:38]RAPDU: F4 2B 44 27 E3 98 BC 24 90 00 [12:05:38]wFMCommunicate OK [12:05:38]SAM_PROTO_SignData done [12:05:38]FM_MakeSignedData done [12:05:38]CreateOFDProtocolMessage [12:05:38]wFMCommunicate request_size=4 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 11 00 00 [12:05:38]Write to MH i2c: E2 08 00 C2 17 80 11 00 00 00 00 00 00 53 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 17 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 17 00 C2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [12:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:05:38]wFMCommunicate OK [12:05:38]CreateOFDProtocolMessage done [12:05:38]OFDSenderStorePacket 103901 [12:05:38]StoreOFDPacket docnum=103901 [12:05:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BD 14 07 01 4F 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 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 12 1B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 95 01 00 35 04 06 00 63 F4 62 23 CC 46 F4 2B 44 27 E3 98 BC 24 [12:05:38]CheckFolder [12:05:38]dirname=/storage/ofd_packets [12:05:38]CheckFolder done [12:05:38]ProducePacketName [12:05:38]name=ofd_packets/00103901 [12:05:38]NVStorageSaveData ofd_packets/00103901 [12:05:38]File name is /storage/ofd_packets/00103901 [12:05:38]Write 301 bytes [12:05:38]NVStorageSaveData done [12:05:38]OFDSenderStorePacket done [12:05:38]KKMCreateOFDPacket done [12:05:38]NVStorageSaveData kkm_last_timestamp [12:05:38]File name is /storage/kkm_last_timestamp [12:05:38]Write 4 bytes [12:05:38]NVStorageSaveData done [12:05:38]ExternCall_PrintAddStr [12:05:38]wPrintStart [12:05:38]Write to MH i2c: 01 00 00 C3 17 DA [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: 01 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: 01 07 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: 01 07 00 C3 17 00 00 00 00 00 FF 0F EF [12:05:38]RasterBufferAndPrint [12:05:38]line Счет N : (1)673237 [12:05:38]line ИНН: 02508201610067 [12:05:38]line Контрольно-Кассовый Чек [12:05:38]line ПРОДАЖА [12:05:38]line ТРК (МРК, ГНК) : 42 [12:05:38]line Товар: 2710124130 [12:05:38]line Аи-92-К-5 [12:05:38]line 10.000 * 66.40 [12:05:38]line = 664.00 [12:05:38]line НДС 12% НСП 1% [12:05:38]line > о реализуемом товаре [12:05:38]line ИТОГО: 664.00 [12:05:38]line Внесено: 1000.00 [12:05:38]line СДАЧА: 336.00 [12:05:38]line НСП 1% : 5.88 [12:05:38]line НДС 12% : 70.51 [12:05:38]line Наличными: 664.00 [12:05:38]line Безнал.: 0.00 [12:05:38]line Место: АЗС № 120 "Партнер Нефть" [12:05:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:05:38]line СНО: Общий режим [12:05:38]line Чек 86 20.06.2024 12:05 [12:05:38]line Смена: 354 ФФД: 1.0 [12:05:38]line ЗНМ: 0300000164 [12:05:38]line РНМ: 0000000000092785 [12:05:38]line Версия ККМ: 001 [12:05:38]line ФМ: 0000000000875093 [12:05:38]line ФД: 103901 [12:05:38]line ФПД: 109901269683270 [12:05:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T120538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103901&fm=109901269683270&tin=02508201610067®Number=0000000000092785&sum=66400 [12:05:39]written 0, free lines is 4095 [12:05:39]OFD Sender: Processing packet 103901 [packets to send 17, broken 16] [12:05:39]ProducePacketName [12:05:39]name=ofd_packets/00103901 [12:05:39]OFD Sender: To server: pG, [12:05:39]CommunicateWithHost lk.salyk.kg:30040 [12:05:39]ConnectInit lk.salyk.kg [12:05:39]Connected sock=10 [12:05:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BD 14 07 01 4F 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 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 12 1B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 95 01 00 35 04 06 00 63 F4 62 23 CC 46 F4 2B 44 27 E3 98 BC 24 [12:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 7B BB 47 00 E3 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DD 95 01 00 F4 03 04 00 98 C1 73 66 B6 04 01 00 00 E8 6F 60 71 75 AA B1 3A [12:05:39]CommunicateWithHost err = 0 [12:05:39]CheckOFDResponse [12:05:39]1017 (14) - 77093643461234 [12:05:39]1041 (16) - 0000000000875093 [12:05:39]1040 (4) - 103901 [12:05:39]1012 (4) - 20.06.2024 05:43 [12:05:39]1206 (1) - 0 [12:05:39]OFD Sender: Remove packet 103901 [12:05:39]ProducePacketName [12:05:39]name=ofd_packets/00103901 [12:05:39]NVStorageDeleteData [12:05:39]Write to MH i2c: 01 00 00 ED 17 04 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 ED 17 00 00 00 00 00 FB 0C 12 [12:05:39]RasterBufferAndPrint [12:05:39]line [12:05:39]line [12:05:39]line [12:05:39]line [12:05:39]line [12:05:39]written 0, free lines is 3332 [12:05:39]MH_Cut [12:05:39]Write to MH i2c: D1 01 00 F4 17 01 DD [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: D1 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: D1 01 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: D1 01 00 F4 17 00 DC [12:05:39]Write to MH i2c: 01 00 00 F5 17 0C [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:40]OFD Sender: No OFD packet to send [12:05:40]*** Cut start [12:05:40]*** Partial cut [12:05:40]*** CUTSNS_PIN = 1 [12:05:40]*** CUTSNS_PIN = 0 [12:05:40]*** Brake cut motor [12:05:40]Read from MH i2c: 01 [12:05:40]MH_I2C_Read... [12:05:40]*** Stop cut motor [12:05:40]*** Cut end [12:05:40]Read from MH i2c: 01 07 00 [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: 01 07 00 F5 17 00 00 00 00 00 FF 0F 21 [12:05:40]process_action close_receipt done [12:05:40]requested_data is exist [12:05:40]produce_requested_data [12:05:40]requested_item fm.sn is exist - process it [12:05:40]wFMCommunicate request_size=4 [12:05:40]MH_SAM_APDU [12:05:40]CAPDU: 80 11 00 00 [12:05:40]Write to MH i2c: E2 08 00 F6 17 80 11 00 00 00 00 00 00 87 [12:05:40]Write i2c OK [12:05:40]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 17 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 17 00 F6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [12:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:05:41]wFMCommunicate OK [12:05:41]requested_item fd.num is exist - process it [12:05:41]SAM_PROTO_GetFieldsCounters [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 13 00 00 [12:05:41]Write to MH i2c: E2 08 00 F7 17 80 13 00 00 00 00 00 00 8A [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:41]Read from MH i2c: E2 62 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 62 00 F7 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 95 01 00 0E 04 04 00 62 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 89 [12:05:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 95 01 00 0E 04 04 00 62 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:05:41]wFMCommunicate OK [12:05:41]SAM_PROTO_GetFieldsCounters done [12:05:41]requested_item shift.num is exist - process it [12:05:41]requested_item shift.opened is exist - process it [12:05:41]req_shift_opened [12:05:41]FM_GetShiftState [12:05:41]SAM_PROTO_GetShiftState [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 13 01 00 [12:05:41]Write to MH i2c: E2 08 00 F8 17 80 13 01 00 00 00 00 00 8C [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:41]Read from MH i2c: E2 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 0E 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: E2 0E 00 F8 17 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DB [12:05:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:05:41]wFMCommunicate OK [12:05:41]SAM_PROTO_GetShiftState done [12:05:41]FM_GetShiftState done [12:05:41]req_shift_opened done [12:05:41]requested_item shift.open_date is exist - process it [12:05:41]req_shift_open_date [12:05:41]req_shift_open_date done [12:05:41]produce_requested_data done [12:05:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103901,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:05:41]process_action_free close_receipt [12:05:41]json_value_free [12:05:41]json_value_free done [12:05:41]process_json_proto returns [12:05:41]Send response to host [12:05:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103901,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:05:41]free response buf [12:05:41]execute_script done [12:05:41]execute_script returns [12:05:41]free content buf [12:05:41]Sock 9.Close socket [12:05:41]Sock 9.Thread stoped [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:31]accept exits with 7 [12:08:31]New connection [12:08:31]New thread 3067063652 created [12:08:31]Thread 3067207012 joined [12:08:31]Waiting for new connection... [12:08:31] Sock 7.Parse request [12:08:31]Sock 7.Check first char [12:08:31]Sock 7.First char is OK [12:08:31]request: POST /json_proto HTTP/1.0 [12:08:31]Method: POST [12:08:31]URL: /json_proto [12:08:31]Method is POST - this is cgi request [12:08:31]url: /json_proto [12:08:31]query_string will be loaded in cgi processing [12:08:31]execute_cgi json_proto POST (null) [12:08:31]execute_cgi path=json_proto method=POST [12:08:31]POST find Content-Length [12:08:31]Host: 172.17.38.133:8080 [12:08:31]Content-Length: 1212 [12:08:31]Content-Type: application/json [12:08:31] [12:08:31]POST finish read [12:08:31]Found Content-Length = 1212 [12:08: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673238\u000A20.06.2024 11:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:31]execute_script... [12:08: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673238\u000A20.06.2024 11:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:31]POST & json_proto [12:08:31]process_json_proto [12:08:31]json parsed OK: [12:08:31]protocol is kg_v1.0 [12:08:31]action value=print_text [12:08:31]process_action print_text [12:08:31]cmd_print_text [12:08:31]ExternCall_PrintAddStr [12:08:31]wPrintStart [12:08:31]Write to MH i2c: 01 00 00 F9 17 10 [12:08:31]Write i2c OK [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: 01 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: 01 07 00 [12:08:31]MH_I2C_Read... [12:08:31]Read from MH i2c: 01 07 00 F9 17 00 00 00 00 00 FF 0F 25 [12:08:31]RasterBufferAndPrint [12:08:31]line *****ТОВАРНЫЙ ЧЕК***** [12:08:31]line АЗС 120 [12:08:31]line Партнер нефть [12:08:31]line 02508201610067 [12:08:31]line Кассир : Дуйшенбиев А. [12:08:31]line Счет N : (1)673238 [12:08:31]line 20.06.2024 11:45 [12:08:31]line ПРОДАЖА [12:08:31]line ТРК (МРК, ГНК): 11 [12:08:31]line Вид ГСМ : 2710194210 [12:08:31]line ДТ(л)-К-5 [12:08:31]line 20.000 x 72.90 [12:08:31]line ИТОГ: 1458.00 [12:08:31]line Тип оплаты: Талоны: Топливная Карта [12:08:31]line 00562 [12:08:31]line ______________________ [12:08:31]line (подпись) [12:08:31]written 0, free lines is 4095 [12:08:32]Write to MH i2c: 01 00 00 0D 18 25 [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: 01 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: 01 07 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: 01 07 00 0D 18 00 00 00 00 00 11 0E 4B [12:08:32]RasterBufferAndPrint [12:08:32]line [12:08:32]line [12:08:32]line [12:08:32]line [12:08:32]line [12:08:32]written 0, free lines is 3603 [12:08:32]MH_Cut [12:08:32]Write to MH i2c: D1 01 00 14 18 01 FE [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: D1 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: D1 01 00 [12:08:32]MH_I2C_Read... [12:08:32]Read from MH i2c: D1 01 00 14 18 00 FD [12:08:32]Write to MH i2c: 01 00 00 15 18 2D [12:08:32]Write i2c OK [12:08:32]MH_I2C_Read... [12:08:32]*** Cut start [12:08:32]*** Partial cut [12:08:32]*** CUTSNS_PIN = 1 [12:08:32]*** CUTSNS_PIN = 0 [12:08:32]*** Brake cut motor [12:08:33]Read from MH i2c: 01 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: 01 07 00 [12:08:33]MH_I2C_Read... [12:08:33]*** Stop cut motor [12:08:33]*** Cut end [12:08:33]Read from MH i2c: 01 07 00 15 18 00 00 00 00 00 FF 0F 42 [12:08:33]process_action print_text done [12:08:33]requested_data is exist [12:08:33]produce_requested_data [12:08:33]requested_item fm.sn is exist - process it [12:08:33]wFMCommunicate request_size=4 [12:08:33]MH_SAM_APDU [12:08:33]CAPDU: 80 11 00 00 [12:08:33]Write to MH i2c: E2 08 00 16 18 80 11 00 00 00 00 00 00 A8 [12:08:33]Write i2c OK [12:08:33]MH_I2C_Read... [12:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:33]Read from MH i2c: E2 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: E2 17 00 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: E2 17 00 16 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FB [12:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:08:33]wFMCommunicate OK [12:08:33]requested_item fd.num is exist - process it [12:08:33]SAM_PROTO_GetFieldsCounters [12:08:33]wFMCommunicate request_size=4 [12:08:33]MH_SAM_APDU [12:08:33]CAPDU: 80 13 00 00 [12:08:33]Write to MH i2c: E2 08 00 17 18 80 13 00 00 00 00 00 00 AB [12:08:33]Write i2c OK [12:08:33]MH_I2C_Read... [12:08:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:33]Read from MH i2c: E2 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: E2 62 00 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: E2 62 00 17 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 95 01 00 0E 04 04 00 62 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 AA [12:08:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 95 01 00 0E 04 04 00 62 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:08:33]wFMCommunicate OK [12:08:33]SAM_PROTO_GetFieldsCounters done [12:08:33]requested_item shift.num is exist - process it [12:08:33]requested_item shift.opened is exist - process it [12:08:33]req_shift_opened [12:08:33]FM_GetShiftState [12:08:33]SAM_PROTO_GetShiftState [12:08:33]wFMCommunicate request_size=4 [12:08:33]MH_SAM_APDU [12:08:33]CAPDU: 80 13 01 00 [12:08:33]Write to MH i2c: E2 08 00 18 18 80 13 01 00 00 00 00 00 AD [12:08:33]Write i2c OK [12:08:33]MH_I2C_Read... [12:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:33]Read from MH i2c: E2 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: E2 0E 00 [12:08:33]MH_I2C_Read... [12:08:33]Read from MH i2c: E2 0E 00 18 18 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FC [12:08:33]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:08:33]wFMCommunicate OK [12:08:33]SAM_PROTO_GetShiftState done [12:08:33]FM_GetShiftState done [12:08:33]req_shift_opened done [12:08:33]requested_item shift.open_date is exist - process it [12:08:33]req_shift_open_date [12:08:33]req_shift_open_date done [12:08:33]produce_requested_data done [12:08:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103901,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:08:33]process_action_free print_text [12:08:33]json_value_free [12:08:33]json_value_free done [12:08:33]process_json_proto returns [12:08:33]Send response to host [12:08:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103901,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:08:33]free response buf [12:08:33]execute_script done [12:08:33]execute_script returns [12:08:33]free content buf [12:08:33]Sock 7.Close socket [12:08:33]Sock 7.Thread stoped [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:28]accept exits with 9 [12:12:28]New connection [12:12:28]New thread 3067207012 created [12:12:28]Thread 3067063652 joined [12:12:28]Waiting for new connection... [12:12:28] Sock 9.Parse request [12:12:28]Sock 9.Check first char [12:12:28]Sock 9.First char is OK [12:12:28]request: POST /json_proto HTTP/1.0 [12:12:28]Method: POST [12:12:28]URL: /json_proto [12:12:28]Method is POST - this is cgi request [12:12:28]url: /json_proto [12:12:28]query_string will be loaded in cgi processing [12:12:28]execute_cgi json_proto POST (null) [12:12:28]execute_cgi path=json_proto method=POST [12:12:28]POST find Content-Length [12:12:28]Host: 172.17.38.133:8080 [12:12:28]Content-Length: 1196 [12:12:28]Content-Type: application/json [12:12:28] [12:12:28]POST finish read [12:12:28]Found Content-Length = 1196 [12:12: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673239\u000A20.06.2024 11:49\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 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.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\u000A4104034\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:28]execute_script... [12:12: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673239\u000A20.06.2024 11:49\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 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.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\u000A4104034\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:28]POST & json_proto [12:12:28]process_json_proto [12:12:28]json parsed OK: [12:12:28]protocol is kg_v1.0 [12:12:28]action value=print_text [12:12:28]process_action print_text [12:12:28]cmd_print_text [12:12:28]ExternCall_PrintAddStr [12:12:28]wPrintStart [12:12:28]Write to MH i2c: 01 00 00 19 18 31 [12:12:28]Write i2c OK [12:12:28]MH_I2C_Read... [12:12:28]Read from MH i2c: 01 [12:12:28]MH_I2C_Read... [12:12:28]Read from MH i2c: 01 07 00 [12:12:28]MH_I2C_Read... [12:12:28]Read from MH i2c: 01 07 00 19 18 00 00 00 00 00 FF 0F 46 [12:12:28]RasterBufferAndPrint [12:12:28]line *****ТОВАРНЫЙ ЧЕК***** [12:12:28]line АЗС 120 [12:12:28]line Партнер нефть [12:12:28]line 02508201610067 [12:12:28]line Кассир : Дуйшенбиев А. [12:12:28]line Счет N : (1)673239 [12:12:28]line 20.06.2024 11:49 [12:12:28]line ПРОДАЖА [12:12:28]line ТРК (МРК, ГНК): 32 [12:12:28]line Вид ГСМ : 2710124130 [12:12:28]line Аи-92-К-5 [12:12:28]line 10.000 x 66.40 [12:12:28]line ИТОГ: 664.00 [12:12:28]line Тип оплаты: Талоны: Партнер нефть [12:12:28]line 4104034 [12:12:28]line ______________________ [12:12:28]line (подпись) [12:12:28]written 0, free lines is 4095 [12:12:28]Write to MH i2c: 01 00 00 2D 18 45 [12:12:28]Write i2c OK [12:12:28]MH_I2C_Read... [12:12:28]Read from MH i2c: 01 [12:12:28]MH_I2C_Read... [12:12:28]Read from MH i2c: 01 07 00 [12:12:28]MH_I2C_Read... [12:12:28]Read from MH i2c: 01 07 00 2D 18 00 00 00 00 00 13 0E 6D [12:12:28]RasterBufferAndPrint [12:12:28]line [12:12:28]line [12:12:28]line [12:12:28]line [12:12:28]line [12:12:28]written 0, free lines is 3605 [12:12:28]MH_Cut [12:12:28]Write to MH i2c: D1 01 00 34 18 01 1E [12:12:28]Write i2c OK [12:12:28]MH_I2C_Read... [12:12:28]Read from MH i2c: D1 [12:12:28]MH_I2C_Read... [12:12:28]Read from MH i2c: D1 01 00 [12:12:28]MH_I2C_Read... [12:12:28]Read from MH i2c: D1 01 00 34 18 00 1D [12:12:28]Write to MH i2c: 01 00 00 35 18 4D [12:12:28]Write i2c OK [12:12:28]MH_I2C_Read... [12:12:29]*** Cut start [12:12:29]*** Partial cut [12:12:29]*** CUTSNS_PIN = 1 [12:12:29]*** CUTSNS_PIN = 0 [12:12:29]*** Brake cut motor [12:12:29]Read from MH i2c: 01 [12:12:29]MH_I2C_Read... [12:12:29]*** Stop cut motor [12:12:29]*** Cut end [12:12:29]Read from MH i2c: 01 07 00 [12:12:29]MH_I2C_Read... [12:12:29]Read from MH i2c: 01 07 00 35 18 00 00 00 00 00 FF 0F 62 [12:12:29]process_action print_text done [12:12:29]requested_data is exist [12:12:29]produce_requested_data [12:12:29]requested_item fm.sn is exist - process it [12:12:29]wFMCommunicate request_size=4 [12:12:29]MH_SAM_APDU [12:12:29]CAPDU: 80 11 00 00 [12:12:29]Write to MH i2c: E2 08 00 36 18 80 11 00 00 00 00 00 00 C8 [12:12:29]Write i2c OK [12:12:29]MH_I2C_Read... [12:12:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:29]Read from MH i2c: E2 [12:12:29]MH_I2C_Read... [12:12:29]Read from MH i2c: E2 17 00 [12:12:29]MH_I2C_Read... [12:12:29]Read from MH i2c: E2 17 00 36 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [12:12:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:12:29]wFMCommunicate OK [12:12:29]requested_item fd.num is exist - process it [12:12:29]SAM_PROTO_GetFieldsCounters [12:12:29]wFMCommunicate request_size=4 [12:12:29]MH_SAM_APDU [12:12:29]CAPDU: 80 13 00 00 [12:12:29]Write to MH i2c: E2 08 00 37 18 80 13 00 00 00 00 00 00 CB [12:12:29]Write i2c OK [12:12:29]MH_I2C_Read... [12:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:30]Read from MH i2c: E2 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: E2 62 00 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: E2 62 00 37 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 95 01 00 0E 04 04 00 62 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 CA [12:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 95 01 00 0E 04 04 00 62 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:12:30]wFMCommunicate OK [12:12:30]SAM_PROTO_GetFieldsCounters done [12:12:30]requested_item shift.num is exist - process it [12:12:30]requested_item shift.opened is exist - process it [12:12:30]req_shift_opened [12:12:30]FM_GetShiftState [12:12:30]SAM_PROTO_GetShiftState [12:12:30]wFMCommunicate request_size=4 [12:12:30]MH_SAM_APDU [12:12:30]CAPDU: 80 13 01 00 [12:12:30]Write to MH i2c: E2 08 00 38 18 80 13 01 00 00 00 00 00 CD [12:12:30]Write i2c OK [12:12:30]MH_I2C_Read... [12:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:30]Read from MH i2c: E2 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: E2 0E 00 [12:12:30]MH_I2C_Read... [12:12:30]Read from MH i2c: E2 0E 00 38 18 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1C [12:12:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:12:30]wFMCommunicate OK [12:12:30]SAM_PROTO_GetShiftState done [12:12:30]FM_GetShiftState done [12:12:30]req_shift_opened done [12:12:30]requested_item shift.open_date is exist - process it [12:12:30]req_shift_open_date [12:12:30]req_shift_open_date done [12:12:30]produce_requested_data done [12:12:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103901,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:12:30]process_action_free print_text [12:12:30]json_value_free [12:12:30]json_value_free done [12:12:30]process_json_proto returns [12:12:30]Send response to host [12:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103901,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:12:30]free response buf [12:12:30]execute_script done [12:12:30]execute_script returns [12:12:30]free content buf [12:12:30]Sock 9.Close socket [12:12:30]Sock 9.Thread stoped [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:12]accept exits with 7 [12:27:12]New connection [12:27:12]New thread 3067063652 created [12:27:12]Thread 3067207012 joined [12:27:12]Waiting for new connection... [12:27:12] Sock 7.Parse request [12:27:12]Sock 7.Check first char [12:27:12]Sock 7.First char is OK [12:27:12]request: POST /json_proto HTTP/1.0 [12:27:12]Method: POST [12:27:12]URL: /json_proto [12:27:12]Method is POST - this is cgi request [12:27:12]url: /json_proto [12:27:12]query_string will be loaded in cgi processing [12:27:12]execute_cgi json_proto POST (null) [12:27:12]execute_cgi path=json_proto method=POST [12:27:12]POST find Content-Length [12:27:12]Host: 172.17.38.133:8080 [12:27:12]Content-Length: 1213 [12:27:12]Content-Type: application/json [12:27:12] [12:27:12]POST finish read [12:27:12]Found Content-Length = 1213 [12:27: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673240\u000A20.06.2024 12:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.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\u000A00561\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:12]execute_script... [12:27: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673240\u000A20.06.2024 12:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.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\u000A00561\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:12]POST & json_proto [12:27:12]process_json_proto [12:27:12]json parsed OK: [12:27:12]protocol is kg_v1.0 [12:27:12]action value=print_text [12:27:12]process_action print_text [12:27:12]cmd_print_text [12:27:12]ExternCall_PrintAddStr [12:27:12]wPrintStart [12:27:12]Write to MH i2c: 01 00 00 39 18 51 [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: 01 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: 01 07 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: 01 07 00 39 18 00 00 00 00 00 FF 0F 66 [12:27:12]RasterBufferAndPrint [12:27:12]line *****ТОВАРНЫЙ ЧЕК***** [12:27:12]line АЗС 120 [12:27:12]line Партнер нефть [12:27:12]line 02508201610067 [12:27:12]line Кассир : Дуйшенбиев А. [12:27:12]line Счет N : (1)673240 [12:27:12]line 20.06.2024 12:04 [12:27:12]line ПРОДАЖА [12:27:12]line ТРК (МРК, ГНК): 11 [12:27:12]line Вид ГСМ : 2710194210 [12:27:12]line ДТ(л)-К-5 [12:27:12]line 100.000 x 72.90 [12:27:12]line ИТОГ: 7290.00 [12:27:12]line Тип оплаты: Талоны: Топливная Карта [12:27:12]line 00561 [12:27:12]line ______________________ [12:27:12]line (подпись) [12:27:12]written 0, free lines is 4095 [12:27:12]Write to MH i2c: 01 00 00 4D 18 65 [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: 01 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: 01 07 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: 01 07 00 4D 18 00 00 00 00 00 12 0E 8C [12:27:12]RasterBufferAndPrint [12:27:12]line [12:27:12]line [12:27:12]line [12:27:12]line [12:27:12]line [12:27:12]written 0, free lines is 3604 [12:27:12]MH_Cut [12:27:12]Write to MH i2c: D1 01 00 54 18 01 3E [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: D1 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: D1 01 00 [12:27:12]MH_I2C_Read... [12:27:12]Read from MH i2c: D1 01 00 54 18 00 3D [12:27:12]Write to MH i2c: 01 00 00 55 18 6D [12:27:12]Write i2c OK [12:27:12]MH_I2C_Read... [12:27:12]*** Cut start [12:27:12]*** Partial cut [12:27:12]*** CUTSNS_PIN = 1 [12:27:12]*** CUTSNS_PIN = 0 [12:27:13]*** Brake cut motor [12:27:13]Read from MH i2c: 01 [12:27:13]MH_I2C_Read... [12:27:13]*** Stop cut motor [12:27:13]*** Cut end [12:27:13]Read from MH i2c: 01 07 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: 01 07 00 55 18 00 00 00 00 00 FF 0F 82 [12:27:13]process_action print_text done [12:27:13]requested_data is exist [12:27:13]produce_requested_data [12:27:13]requested_item fm.sn is exist - process it [12:27:13]wFMCommunicate request_size=4 [12:27:13]MH_SAM_APDU [12:27:13]CAPDU: 80 11 00 00 [12:27:13]Write to MH i2c: E2 08 00 56 18 80 11 00 00 00 00 00 00 E8 [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:13]Read from MH i2c: E2 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 17 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 17 00 56 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [12:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:27:13]wFMCommunicate OK [12:27:13]requested_item fd.num is exist - process it [12:27:13]SAM_PROTO_GetFieldsCounters [12:27:13]wFMCommunicate request_size=4 [12:27:13]MH_SAM_APDU [12:27:13]CAPDU: 80 13 00 00 [12:27:13]Write to MH i2c: E2 08 00 57 18 80 13 00 00 00 00 00 00 EB [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:13]Read from MH i2c: E2 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 62 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 62 00 57 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 95 01 00 0E 04 04 00 62 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 EA [12:27:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DD 95 01 00 0E 04 04 00 62 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:27:13]wFMCommunicate OK [12:27:13]SAM_PROTO_GetFieldsCounters done [12:27:13]requested_item shift.num is exist - process it [12:27:13]requested_item shift.opened is exist - process it [12:27:13]req_shift_opened [12:27:13]FM_GetShiftState [12:27:13]SAM_PROTO_GetShiftState [12:27:13]wFMCommunicate request_size=4 [12:27:13]MH_SAM_APDU [12:27:13]CAPDU: 80 13 01 00 [12:27:13]Write to MH i2c: E2 08 00 58 18 80 13 01 00 00 00 00 00 ED [12:27:13]Write i2c OK [12:27:13]MH_I2C_Read... [12:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:13]Read from MH i2c: E2 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 0E 00 [12:27:13]MH_I2C_Read... [12:27:13]Read from MH i2c: E2 0E 00 58 18 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3C [12:27:13]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:27:13]wFMCommunicate OK [12:27:13]SAM_PROTO_GetShiftState done [12:27:13]FM_GetShiftState done [12:27:13]req_shift_opened done [12:27:13]requested_item shift.open_date is exist - process it [12:27:13]req_shift_open_date [12:27:13]req_shift_open_date done [12:27:13]produce_requested_data done [12:27:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103901,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:27:13]process_action_free print_text [12:27:13]json_value_free [12:27:13]json_value_free done [12:27:13]process_json_proto returns [12:27:13]Send response to host [12:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103901,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:27:13]free response buf [12:27:13]execute_script done [12:27:13]execute_script returns [12:27:13]free content buf [12:27:13]Sock 7.Close socket [12:27:13]Sock 7.Thread stoped [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:53]accept exits with 10 [12:27:53]New connection [12:27:53]New thread 3067207012 created [12:27:53]Thread 3067063652 joined [12:27:53]Waiting for new connection... [12:27:53] Sock 10.Parse request [12:27:53]Sock 10.Check first char [12:27:53]Sock 10.First char is OK [12:27:53]request: POST /json_proto HTTP/1.0 [12:27:53]Method: POST [12:27:53]URL: /json_proto [12:27:53]Method is POST - this is cgi request [12:27:53]url: /json_proto [12:27:53]query_string will be loaded in cgi processing [12:27:53]execute_cgi json_proto POST (null) [12:27:53]execute_cgi path=json_proto method=POST [12:27:53]POST find Content-Length [12:27:53]Host: 172.17.38.133:8080 [12:27:53]Content-Length: 682 [12:27:53]Content-Type: application/json [12:27:53] [12:27:53]POST finish read [12:27:53]Found Content-Length = 682 [12:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:27:53]execute_script... [12:27: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)673242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:27:53]POST & json_proto [12:27:53]process_json_proto [12:27:53]json parsed OK: [12:27:53]protocol is kg_v1.0 [12:27:53]action value=close_receipt [12:27:53]process_action close_receipt [12:27:53]cmd_close_receipt [12:27:53]MH_GetDate [12:27:53]Write to MH i2c: F0 00 00 59 18 60 [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: F0 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: F0 09 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: F0 09 00 59 18 00 4B 20 74 66 BD 8F 7C 64 DA [12:27:53]GetLastDocTimeStamp 1718885138 [12:27:53]current date 1718886475 [12:27:53]FM_GetShiftState [12:27:53]SAM_PROTO_GetShiftState [12:27:53]wFMCommunicate request_size=4 [12:27:53]MH_SAM_APDU [12:27:53]CAPDU: 80 13 01 00 [12:27:53]Write to MH i2c: E2 08 00 5A 18 80 13 01 00 00 00 00 00 EF [12:27:53]Write i2c OK [12:27:53]MH_I2C_Read... [12:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:53]Read from MH i2c: E2 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 0E 00 [12:27:53]MH_I2C_Read... [12:27:53]Read from MH i2c: E2 0E 00 5A 18 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3E [12:27:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:27:53]wFMCommunicate OK [12:27:53]SAM_PROTO_GetShiftState done [12:27:53]FM_GetShiftState done [12:27:53]opened in 1718843124 [12:27:53]opened+sec_in_day 1718929524 [12:27:53]quantity*price = 100064 [12:27:53]sum+1 = 100066 [12:27:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 87 20.06.2024 12:27 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103902 ФПД: 236686890244157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122755&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103902&fm=236686890244157&tin=02508201610067®Number=0000000000092785&sum=100000 [12:27:55]StoreToDocumentArchive [12:27:55]shift 354 fd 103902 [12:27:55]save to /storage/0354/doc_00103902 [12:27:55]save last doc name /storage/0354/doc_00103902 to /storage/kkm_last_doc_name [12:27:55]save OK [12:27:55]Clear old archive folders... [12:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:55]tlvbuf is 00878920 [12:27:55]SAM_PROTO_ClearQueue [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 09 00 00 [12:27:55]Write to MH i2c: E2 08 00 67 18 80 09 00 00 00 00 00 00 F1 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 67 18 00 90 00 F3 [12:27:55]RAPDU: 90 00 [12:27:55]wFMCommunicate OK [12:27:55]SAM_PROTO_ClearQueue done [12:27:55]KKMCreateOFDPacket [12:27:55]OFDProtocolAddRootSTLVToBuf [12:27:55]FM_MakeSignedData [12:27:55]FM_MakeSignedData [12:27:55]SAM_PROTO_SignData [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 0D 01 02 [12:27:55]Write to MH i2c: E2 08 00 68 18 80 0D 01 02 00 00 00 00 F9 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 68 18 00 90 00 F4 [12:27:55]RAPDU: 90 00 [12:27:55]wFMCommunicate OK [12:27:55]wFMCommunicate request_size=255 [12:27:55]MH_SAM_APDU [12:27: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 4B 20 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 95 01 00 35 04 06 00 D7 [12:27:55]Write to MH i2c: E2 02 01 69 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 4B 20 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 95 01 00 35 04 06 00 D7 00 00 4D [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 69 18 00 90 00 F5 [12:27:55]RAPDU: 90 00 [12:27:55]wFMCommunicate OK [12:27:55]wFMCommunicate request_size=10 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 0D 02 02 05 43 F6 04 18 3D [12:27:55]Write to MH i2c: E2 0D 00 6A 18 80 0D 02 02 05 00 43 F6 04 18 3D 00 00 98 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 03 00 6A 18 00 90 00 F6 [12:27:55]RAPDU: 90 00 [12:27:55]wFMCommunicate OK [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 0D 03 02 [12:27:55]Write to MH i2c: E2 08 00 6B 18 80 0D 03 02 00 00 00 00 FE [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 0B 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 0B 00 6B 18 00 18 4E BF 21 36 E5 22 0B 90 00 8D [12:27:55]RAPDU: 18 4E BF 21 36 E5 22 0B 90 00 [12:27:55]wFMCommunicate OK [12:27:55]SAM_PROTO_SignData done [12:27:55]FM_MakeSignedData done [12:27:55]CreateOFDProtocolMessage [12:27:55]wFMCommunicate request_size=4 [12:27:55]MH_SAM_APDU [12:27:55]CAPDU: 80 11 00 00 [12:27:55]Write to MH i2c: E2 08 00 6C 18 80 11 00 00 00 00 00 00 FE [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:55]Read from MH i2c: E2 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 17 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: E2 17 00 6C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [12:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:27:55]wFMCommunicate OK [12:27:55]CreateOFDProtocolMessage done [12:27:55]OFDSenderStorePacket 103902 [12:27:55]StoreOFDPacket docnum=103902 [12:27:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 98 83 07 01 0C DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 4B 20 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 95 01 00 35 04 06 00 D7 43 F6 04 18 3D 18 4E BF 21 36 E5 22 0B [12:27:55]CheckFolder [12:27:55]dirname=/storage/ofd_packets [12:27:55]CheckFolder done [12:27:55]ProducePacketName [12:27:55]name=ofd_packets/00103902 [12:27:55]NVStorageSaveData ofd_packets/00103902 [12:27:55]File name is /storage/ofd_packets/00103902 [12:27:55]Write 301 bytes [12:27:55]NVStorageSaveData done [12:27:55]OFDSenderStorePacket done [12:27:55]KKMCreateOFDPacket done [12:27:55]NVStorageSaveData kkm_last_timestamp [12:27:55]File name is /storage/kkm_last_timestamp [12:27:55]Write 4 bytes [12:27:55]NVStorageSaveData done [12:27:55]ExternCall_PrintAddStr [12:27:55]wPrintStart [12:27:55]Write to MH i2c: 01 00 00 6D 18 85 [12:27:55]Write i2c OK [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: 01 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: 01 07 00 [12:27:55]MH_I2C_Read... [12:27:55]Read from MH i2c: 01 07 00 6D 18 00 00 00 00 00 FF 0F 9A [12:27:55]RasterBufferAndPrint [12:27:55]line Счет N : (1)673242 [12:27:55]line ИНН: 02508201610067 [12:27:55]line Контрольно-Кассовый Чек [12:27:55]line ПРОДАЖА [12:27:55]line ТРК (МРК, ГНК) : 32 [12:27:55]line Товар: 2710124130 [12:27:55]line Аи-92-К-5 [12:27:55]line 15.070 * 66.40 [12:27:55]line = 1000.65 [12:27:55]line НДС 12% НСП 1% [12:27:55]line > о реализуемом товаре [12:27:55]line ОКРУГЛЕНИЕ: -0.65 [12:27:55]line ИТОГО: 1000.00 [12:27:55]line Внесено: 1000.00 [12:27:55]line СДАЧА: 0.00 [12:27:55]line НСП 1% : 8.85 [12:27:55]line НДС 12% : 106.26 [12:27:55]line Наличными: 1000.00 [12:27:55]line Безнал.: 0.00 [12:27:55]line Место: АЗС № 120 "Партнер Нефть" [12:27:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:27:55]line СНО: Общий режим [12:27:55]line Чек 87 20.06.2024 12:27 [12:27:55]line Смена: 354 ФФД: 1.0 [12:27:55]line ЗНМ: 0300000164 [12:27:55]line РНМ: 0000000000092785 [12:27:55]line Версия ККМ: 001 [12:27:55]line ФМ: 0000000000875093 [12:27:55]line ФД: 103902 [12:27:55]line ФПД: 236686890244157 [12:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122755&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103902&fm=236686890244157&tin=02508201610067®Number=0000000000092785&sum=100000 [12:27:55]OFD Sender: Processing packet 103902 [packets to send 17, broken 16] [12:27:55]ProducePacketName [12:27:55]name=ofd_packets/00103902 [12:27:55]OFD Sender: To server: pG, [12:27:55]CommunicateWithHost lk.salyk.kg:30040 [12:27:55]ConnectInit lk.salyk.kg [12:27:55]written 0, free lines is 4095 [12:27:56]Connected sock=9 [12:27:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 98 83 07 01 0C DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 4B 20 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 95 01 00 35 04 06 00 D7 43 F6 04 18 3D 18 4E BF 21 36 E5 22 0B [12:27:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A9 9C 47 00 1D A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DE 95 01 00 F4 03 04 00 D1 C6 73 66 B6 04 01 00 00 74 0A B8 5E 6B BE F1 C8 [12:27:56]CommunicateWithHost err = 0 [12:27:56]CheckOFDResponse [12:27:56]1017 (14) - 77093643461234 [12:27:56]1041 (16) - 0000000000875093 [12:27:56]1040 (4) - 103902 [12:27:56]1012 (4) - 20.06.2024 06:06 [12:27:56]1206 (1) - 0 [12:27:56]OFD Sender: Remove packet 103902 [12:27:56]ProducePacketName [12:27:56]name=ofd_packets/00103902 [12:27:56]NVStorageDeleteData [12:27:56]Write to MH i2c: 01 00 00 98 18 B0 [12:27:56]Write i2c OK [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: 01 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: 01 07 00 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: 01 07 00 98 18 00 00 00 00 00 EC 0C AF [12:27:56]RasterBufferAndPrint [12:27:56]line [12:27:56]line [12:27:56]line [12:27:56]line [12:27:56]line [12:27:56]written 0, free lines is 3314 [12:27:56]MH_Cut [12:27:56]Write to MH i2c: D1 01 00 9F 18 01 89 [12:27:56]Write i2c OK [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: D1 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: D1 01 00 [12:27:56]MH_I2C_Read... [12:27:56]Read from MH i2c: D1 01 00 9F 18 00 88 [12:27:56]Write to MH i2c: 01 00 00 A0 18 B8 [12:27:56]Write i2c OK [12:27:56]MH_I2C_Read... [12:27:56]OFD Sender: No OFD packet to send [12:27:57]*** Cut start [12:27:57]*** Partial cut [12:27:57]*** CUTSNS_PIN = 1 [12:27:57]*** CUTSNS_PIN = 0 [12:27:57]*** Brake cut motor [12:27:57]Read from MH i2c: 01 [12:27:57]MH_I2C_Read... [12:27:57]*** Stop cut motor [12:27:57]*** Cut end [12:27:57]Read from MH i2c: 01 07 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: 01 07 00 A0 18 00 00 00 00 00 FF 0F CD [12:27:57]process_action close_receipt done [12:27:57]requested_data is exist [12:27:57]produce_requested_data [12:27:57]requested_item fm.sn is exist - process it [12:27:57]wFMCommunicate request_size=4 [12:27:57]MH_SAM_APDU [12:27:57]CAPDU: 80 11 00 00 [12:27:57]Write to MH i2c: E2 08 00 A1 18 80 11 00 00 00 00 00 00 33 [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:57]Read from MH i2c: E2 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 17 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 17 00 A1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [12:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:27:57]wFMCommunicate OK [12:27:57]requested_item fd.num is exist - process it [12:27:57]SAM_PROTO_GetFieldsCounters [12:27:57]wFMCommunicate request_size=4 [12:27:57]MH_SAM_APDU [12:27:57]CAPDU: 80 13 00 00 [12:27:57]Write to MH i2c: E2 08 00 A2 18 80 13 00 00 00 00 00 00 36 [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:57]Read from MH i2c: E2 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 62 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 62 00 A2 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DE 95 01 00 0E 04 04 00 62 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 39 [12:27:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DE 95 01 00 0E 04 04 00 62 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:27:57]wFMCommunicate OK [12:27:57]SAM_PROTO_GetFieldsCounters done [12:27:57]requested_item shift.num is exist - process it [12:27:57]requested_item shift.opened is exist - process it [12:27:57]req_shift_opened [12:27:57]FM_GetShiftState [12:27:57]SAM_PROTO_GetShiftState [12:27:57]wFMCommunicate request_size=4 [12:27:57]MH_SAM_APDU [12:27:57]CAPDU: 80 13 01 00 [12:27:57]Write to MH i2c: E2 08 00 A3 18 80 13 01 00 00 00 00 00 38 [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:57]Read from MH i2c: E2 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 0E 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 0E 00 A3 18 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 87 [12:27:57]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:27:57]wFMCommunicate OK [12:27:57]SAM_PROTO_GetShiftState done [12:27:57]FM_GetShiftState done [12:27:57]req_shift_opened done [12:27:57]requested_item shift.open_date is exist - process it [12:27:57]req_shift_open_date [12:27:57]req_shift_open_date done [12:27:57]produce_requested_data done [12:27:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103902,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:27:57]process_action_free close_receipt [12:27:57]json_value_free [12:27:57]json_value_free done [12:27:57]process_json_proto returns [12:27:57]Send response to host [12:27:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103902,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:27:57]free response buf [12:27:57]execute_script done [12:27:57]execute_script returns [12:27:57]free content buf [12:27:57]Sock 10.Close socket [12:27:57]Sock 10.Thread stoped [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:04]accept exits with 7 [12:29:04]New connection [12:29:04]New thread 3067063652 created [12:29:04]Thread 3067207012 joined [12:29:04]Waiting for new connection... [12:29:04] Sock 7.Parse request [12:29:04]Sock 7.Check first char [12:29:04]Sock 7.First char is OK [12:29:04]request: POST /json_proto HTTP/1.0 [12:29:04]Method: POST [12:29:04]URL: /json_proto [12:29:04]Method is POST - this is cgi request [12:29:04]url: /json_proto [12:29:04]query_string will be loaded in cgi processing [12:29:04]execute_cgi json_proto POST (null) [12:29:04]execute_cgi path=json_proto method=POST [12:29:04]POST find Content-Length [12:29:04]Host: 172.17.38.133:8080 [12:29:04]Content-Length: 801 [12:29:04]Content-Type: application/json [12:29:04] [12:29:04]POST finish read [12:29:04]Found Content-Length = 801 [12:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:04]execute_script... [12:29: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)673243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:04]POST & json_proto [12:29:04]process_json_proto [12:29:04]json parsed OK: [12:29:04]protocol is kg_v1.0 [12:29:04]action value=close_receipt [12:29:04]process_action close_receipt [12:29:04]cmd_close_receipt [12:29:04]MH_GetDate [12:29:04]Write to MH i2c: F0 00 00 A4 18 AB [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: F0 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: F0 09 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: F0 09 00 A4 18 00 92 20 74 66 BD 8F 7C 64 6C [12:29:04]GetLastDocTimeStamp 1718886475 [12:29:04]current date 1718886546 [12:29:04]FM_GetShiftState [12:29:04]SAM_PROTO_GetShiftState [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 13 01 00 [12:29:04]Write to MH i2c: E2 08 00 A5 18 80 13 01 00 00 00 00 00 3A [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 0E 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 0E 00 A5 18 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 89 [12:29:04]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:29:04]wFMCommunicate OK [12:29:04]SAM_PROTO_GetShiftState done [12:29:04]FM_GetShiftState done [12:29:04]opened in 1718843124 [12:29:04]opened+sec_in_day 1718929524 [12:29:04]quantity*price = 66400 [12:29:04]sum+1 = 66401 [12:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 0.00 Безнал.: 664.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 88 20.06.2024 12:29 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103903 ФПД: 134089817196101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122906&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103903&fm=134089817196101&tin=02508201610067®Number=0000000000092785&sum=66400 [12:29:05]StoreToDocumentArchive [12:29:05]shift 354 fd 103903 [12:29:05]save to /storage/0354/doc_00103903 [12:29:05]save last doc name /storage/0354/doc_00103903 to /storage/kkm_last_doc_name [12:29:05]save OK [12:29:05]Clear old archive folders... [12:29:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:05]tlvbuf is B6EE6350 [12:29:05]SAM_PROTO_ClearQueue [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 09 00 00 [12:29:05]Write to MH i2c: E2 08 00 B2 18 80 09 00 00 00 00 00 00 3C [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 B2 18 00 90 00 3E [12:29:05]RAPDU: 90 00 [12:29:05]wFMCommunicate OK [12:29:05]SAM_PROTO_ClearQueue done [12:29:05]KKMCreateOFDPacket [12:29:05]OFDProtocolAddRootSTLVToBuf [12:29:05]FM_MakeSignedData [12:29:05]FM_MakeSignedData [12:29:05]SAM_PROTO_SignData [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 0D 01 02 [12:29:05]Write to MH i2c: E2 08 00 B3 18 80 0D 01 02 00 00 00 00 44 [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 03 00 B3 18 00 90 00 3F [12:29:05]RAPDU: 90 00 [12:29:05]wFMCommunicate OK [12:29:05]wFMCommunicate request_size=255 [12:29:05]MH_SAM_APDU [12:29: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 92 20 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 95 01 00 35 04 06 00 79 [12:29:05]Write to MH i2c: E2 02 01 B4 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 92 20 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 95 01 00 35 04 06 00 79 00 00 E9 [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:06]Read from MH i2c: E2 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 B4 18 00 90 00 40 [12:29:06]RAPDU: 90 00 [12:29:06]wFMCommunicate OK [12:29:06]wFMCommunicate request_size=10 [12:29:06]MH_SAM_APDU [12:29:06]CAPDU: 80 0D 02 02 05 F4 37 EC 06 45 [12:29:06]Write to MH i2c: E2 0D 00 B5 18 80 0D 02 02 05 00 F4 37 EC 06 45 00 00 B3 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:06]Read from MH i2c: E2 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 B5 18 00 90 00 41 [12:29:06]RAPDU: 90 00 [12:29:06]wFMCommunicate OK [12:29:06]wFMCommunicate request_size=4 [12:29:06]MH_SAM_APDU [12:29:06]CAPDU: 80 0D 03 02 [12:29:06]Write to MH i2c: E2 08 00 B6 18 80 0D 03 02 00 00 00 00 49 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:06]Read from MH i2c: E2 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 0B 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 0B 00 B6 18 00 59 7E E5 E5 EA BA 9A D2 90 00 FB [12:29:06]RAPDU: 59 7E E5 E5 EA BA 9A D2 90 00 [12:29:06]wFMCommunicate OK [12:29:06]SAM_PROTO_SignData done [12:29:06]FM_MakeSignedData done [12:29:06]CreateOFDProtocolMessage [12:29:06]wFMCommunicate request_size=4 [12:29:06]MH_SAM_APDU [12:29:06]CAPDU: 80 11 00 00 [12:29:06]Write to MH i2c: E2 08 00 B7 18 80 11 00 00 00 00 00 00 49 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:06]Read from MH i2c: E2 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 17 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 17 00 B7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [12:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:29:06]wFMCommunicate OK [12:29:06]CreateOFDProtocolMessage done [12:29:06]OFDSenderStorePacket 103903 [12:29:06]StoreOFDPacket docnum=103903 [12:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9B EC 07 01 F2 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 92 20 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 95 01 00 35 04 06 00 79 F4 37 EC 06 45 59 7E E5 E5 EA BA 9A D2 [12:29:06]CheckFolder [12:29:06]dirname=/storage/ofd_packets [12:29:06]CheckFolder done [12:29:06]ProducePacketName [12:29:06]name=ofd_packets/00103903 [12:29:06]NVStorageSaveData ofd_packets/00103903 [12:29:06]File name is /storage/ofd_packets/00103903 [12:29:06]Write 301 bytes [12:29:06]NVStorageSaveData done [12:29:06]OFDSenderStorePacket done [12:29:06]KKMCreateOFDPacket done [12:29:06]NVStorageSaveData kkm_last_timestamp [12:29:06]File name is /storage/kkm_last_timestamp [12:29:06]Write 4 bytes [12:29:06]NVStorageSaveData done [12:29:06]ExternCall_PrintAddStr [12:29:06]wPrintStart [12:29:06]Write to MH i2c: 01 00 00 B8 18 D0 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 B8 18 00 00 00 00 00 FF 0F E5 [12:29:06]RasterBufferAndPrint [12:29:06]line Счет N : (1)673243 [12:29:06]line ИНН: 02508201610067 [12:29:06]line Контрольно-Кассовый Чек [12:29:06]line ПРОДАЖА [12:29:06]line ТРК (МРК, ГНК) : 42 [12:29:06]line Товар: 2710124130 [12:29:06]line Аи-92-К-5 [12:29:06]line 10.000 * 66.40 [12:29:06]line = 664.00 [12:29:06]line НДС 12% НСП 1% [12:29:06]line > о реализуемом товаре [12:29:06]line ИТОГО: 664.00 [12:29:06]line НСП 1% : 5.88 [12:29:06]line НДС 12% : 70.51 [12:29:06]line Наличными: 0.00 [12:29:06]line Безнал.: 664.00 [12:29:06]line Место: АЗС № 120 "Партнер Нефть" [12:29:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:29:06]line СНО: Общий режим [12:29:06]line Чек 88 20.06.2024 12:29 [12:29:06]line Смена: 354 ФФД: 1.0 [12:29:06]line ЗНМ: 0300000164 [12:29:06]line РНМ: 0000000000092785 [12:29:06]line Версия ККМ: 001 [12:29:06]line Платежная система: O! деньги [12:29:06]line ФМ: 0000000000875093 [12:29:06]line ФД: 103903 [12:29:06]line ФПД: 134089817196101 [12:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T122906&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103903&fm=134089817196101&tin=02508201610067®Number=0000000000092785&sum=66400 [12:29:06]written 0, free lines is 4095 [12:29:06]OFD Sender: Processing packet 103903 [packets to send 17, broken 16] [12:29:06]ProducePacketName [12:29:06]name=ofd_packets/00103903 [12:29:06]OFD Sender: To server: pG, [12:29:06]CommunicateWithHost lk.salyk.kg:30040 [12:29:06]ConnectInit lk.salyk.kg [12:29:06]Connected sock=10 [12:29:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9B EC 07 01 F2 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 92 20 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 95 01 00 35 04 06 00 79 F4 37 EC 06 45 59 7E E5 E5 EA BA 9A D2 [12:29:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8C BA 47 00 F8 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 DF 95 01 00 F4 03 04 00 17 C7 73 66 B6 04 01 00 00 0F 25 19 62 0F 68 A9 AB [12:29:06]CommunicateWithHost err = 0 [12:29:06]CheckOFDResponse [12:29:06]1017 (14) - 77093643461234 [12:29:06]1041 (16) - 0000000000875093 [12:29:06]1040 (4) - 103903 [12:29:06]1012 (4) - 20.06.2024 06:07 [12:29:06]1206 (1) - 0 [12:29:06]OFD Sender: Remove packet 103903 [12:29:06]ProducePacketName [12:29:06]name=ofd_packets/00103903 [12:29:06]NVStorageDeleteData [12:29:06]Write to MH i2c: 01 00 00 E2 18 FA [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: 01 07 00 E2 18 00 00 00 00 00 F5 0C 02 [12:29:06]RasterBufferAndPrint [12:29:06]line [12:29:06]line [12:29:06]line [12:29:06]line [12:29:06]line [12:29:06]written 0, free lines is 3324 [12:29:07]MH_Cut [12:29:07]Write to MH i2c: D1 01 00 E9 18 01 D3 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: D1 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: D1 01 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: D1 01 00 E9 18 00 D2 [12:29:07]Write to MH i2c: 01 00 00 EA 18 02 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]OFD Sender: No OFD packet to send [12:29:07]*** Cut start [12:29:07]*** Partial cut [12:29:07]*** CUTSNS_PIN = 1 [12:29:07]*** CUTSNS_PIN = 0 [12:29:07]*** Brake cut motor [12:29:08]Read from MH i2c: 01 [12:29:08]MH_I2C_Read... [12:29:08]*** Stop cut motor [12:29:08]*** Cut end [12:29:08]Read from MH i2c: 01 07 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: 01 07 00 EA 18 00 00 00 00 00 FF 0F 17 [12:29:08]process_action close_receipt done [12:29:08]requested_data is exist [12:29:08]produce_requested_data [12:29:08]requested_item fm.sn is exist - process it [12:29:08]wFMCommunicate request_size=4 [12:29:08]MH_SAM_APDU [12:29:08]CAPDU: 80 11 00 00 [12:29:08]Write to MH i2c: E2 08 00 EB 18 80 11 00 00 00 00 00 00 7D [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:08]Read from MH i2c: E2 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 17 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 17 00 EB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [12:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:29:08]wFMCommunicate OK [12:29:08]requested_item fd.num is exist - process it [12:29:08]SAM_PROTO_GetFieldsCounters [12:29:08]wFMCommunicate request_size=4 [12:29:08]MH_SAM_APDU [12:29:08]CAPDU: 80 13 00 00 [12:29:08]Write to MH i2c: E2 08 00 EC 18 80 13 00 00 00 00 00 00 80 [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:08]Read from MH i2c: E2 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 62 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 62 00 EC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DF 95 01 00 0E 04 04 00 62 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 87 [12:29:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 DF 95 01 00 0E 04 04 00 62 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:29:08]wFMCommunicate OK [12:29:08]SAM_PROTO_GetFieldsCounters done [12:29:08]requested_item shift.num is exist - process it [12:29:08]requested_item shift.opened is exist - process it [12:29:08]req_shift_opened [12:29:08]FM_GetShiftState [12:29:08]SAM_PROTO_GetShiftState [12:29:08]wFMCommunicate request_size=4 [12:29:08]MH_SAM_APDU [12:29:08]CAPDU: 80 13 01 00 [12:29:08]Write to MH i2c: E2 08 00 ED 18 80 13 01 00 00 00 00 00 82 [12:29:08]Write i2c OK [12:29:08]MH_I2C_Read... [12:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:08]Read from MH i2c: E2 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 0E 00 [12:29:08]MH_I2C_Read... [12:29:08]Read from MH i2c: E2 0E 00 ED 18 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D1 [12:29:08]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:29:08]wFMCommunicate OK [12:29:08]SAM_PROTO_GetShiftState done [12:29:08]FM_GetShiftState done [12:29:08]req_shift_opened done [12:29:08]requested_item shift.open_date is exist - process it [12:29:08]req_shift_open_date [12:29:08]req_shift_open_date done [12:29:08]produce_requested_data done [12:29:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103903,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:29:08]process_action_free close_receipt [12:29:08]json_value_free [12:29:08]json_value_free done [12:29:08]process_json_proto returns [12:29:08]Send response to host [12:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103903,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:29:08]free response buf [12:29:08]execute_script done [12:29:08]execute_script returns [12:29:08]free content buf [12:29:08]Sock 7.Close socket [12:29:08]Sock 7.Thread stoped [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:35]accept exits with 9 [12:32:35]New connection [12:32:35]New thread 3067207012 created [12:32:35]Thread 3067063652 joined [12:32:35]Waiting for new connection... [12:32:35] Sock 9.Parse request [12:32:35]Sock 9.Check first char [12:32:35]Sock 9.First char is OK [12:32:35]request: POST /json_proto HTTP/1.0 [12:32:35]Method: POST [12:32:35]URL: /json_proto [12:32:35]Method is POST - this is cgi request [12:32:35]url: /json_proto [12:32:35]query_string will be loaded in cgi processing [12:32:35]execute_cgi json_proto POST (null) [12:32:35]execute_cgi path=json_proto method=POST [12:32:35]POST find Content-Length [12:32:35]Host: 172.17.38.133:8080 [12:32:35]Content-Length: 677 [12:32:35]Content-Type: application/json [12:32:35] [12:32:35]POST finish read [12:32:35]Found Content-Length = 677 [12:32:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:35]execute_script... [12:32: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)673244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:35]POST & json_proto [12:32:35]process_json_proto [12:32:35]json parsed OK: [12:32:35]protocol is kg_v1.0 [12:32:35]action value=close_receipt [12:32:35]process_action close_receipt [12:32:35]cmd_close_receipt [12:32:35]MH_GetDate [12:32:35]Write to MH i2c: F0 00 00 EE 18 F5 [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: F0 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: F0 09 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: F0 09 00 EE 18 00 65 21 74 66 BD 8F 7C 64 8A [12:32:35]GetLastDocTimeStamp 1718886546 [12:32:35]current date 1718886757 [12:32:35]FM_GetShiftState [12:32:35]SAM_PROTO_GetShiftState [12:32:35]wFMCommunicate request_size=4 [12:32:35]MH_SAM_APDU [12:32:35]CAPDU: 80 13 01 00 [12:32:35]Write to MH i2c: E2 08 00 EF 18 80 13 01 00 00 00 00 00 84 [12:32:35]Write i2c OK [12:32:35]MH_I2C_Read... [12:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:35]Read from MH i2c: E2 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 0E 00 [12:32:35]MH_I2C_Read... [12:32:35]Read from MH i2c: E2 0E 00 EF 18 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D3 [12:32:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:32:35]wFMCommunicate OK [12:32:35]SAM_PROTO_GetShiftState done [12:32:35]FM_GetShiftState done [12:32:35]opened in 1718843124 [12:32:35]opened+sec_in_day 1718929524 [12:32:35]quantity*price = 50065 [12:32:35]sum+1 = 50067 [12:32:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 89 20.06.2024 12:32 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103904 ФПД: 63714119278569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T123237&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103904&fm=63714119278569&tin=02508201610067®Number=0000000000092785&sum=50000 [12:32:37]StoreToDocumentArchive [12:32:37]shift 354 fd 103904 [12:32:37]save to /storage/0354/doc_00103904 [12:32:37]save last doc name /storage/0354/doc_00103904 to /storage/kkm_last_doc_name [12:32:37]save OK [12:32:37]Clear old archive folders... [12:32:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:37]tlvbuf is 00855050 [12:32:37]SAM_PROTO_ClearQueue [12:32:37]wFMCommunicate request_size=4 [12:32:37]MH_SAM_APDU [12:32:37]CAPDU: 80 09 00 00 [12:32:37]Write to MH i2c: E2 08 00 FC 18 80 09 00 00 00 00 00 00 86 [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 03 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 03 00 FC 18 00 90 00 88 [12:32:37]RAPDU: 90 00 [12:32:37]wFMCommunicate OK [12:32:37]SAM_PROTO_ClearQueue done [12:32:37]KKMCreateOFDPacket [12:32:37]OFDProtocolAddRootSTLVToBuf [12:32:37]FM_MakeSignedData [12:32:37]FM_MakeSignedData [12:32:37]SAM_PROTO_SignData [12:32:37]wFMCommunicate request_size=4 [12:32:37]MH_SAM_APDU [12:32:37]CAPDU: 80 0D 01 02 [12:32:37]Write to MH i2c: E2 08 00 FD 18 80 0D 01 02 00 00 00 00 8E [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 03 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 03 00 FD 18 00 90 00 89 [12:32:37]RAPDU: 90 00 [12:32:37]wFMCommunicate OK [12:32:37]wFMCommunicate request_size=255 [12:32:37]MH_SAM_APDU [12:32: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 65 21 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 95 01 00 35 04 06 00 39 [12:32:37]Write to MH i2c: E2 02 01 FE 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 65 21 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 95 01 00 35 04 06 00 39 00 00 13 [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 03 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 03 00 FE 18 00 90 00 8A [12:32:37]RAPDU: 90 00 [12:32:37]wFMCommunicate OK [12:32:37]wFMCommunicate request_size=10 [12:32:37]MH_SAM_APDU [12:32:37]CAPDU: 80 0D 02 02 05 F2 99 72 5F E9 [12:32:37]Write to MH i2c: E2 0D 00 FF 18 80 0D 02 02 05 00 F2 99 72 5F E9 00 00 E0 [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 03 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 03 00 FF 18 00 90 00 8B [12:32:37]RAPDU: 90 00 [12:32:37]wFMCommunicate OK [12:32:37]wFMCommunicate request_size=4 [12:32:37]MH_SAM_APDU [12:32:37]CAPDU: 80 0D 03 02 [12:32:37]Write to MH i2c: E2 08 00 00 19 80 0D 03 02 00 00 00 00 94 [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:37]OFD Sender: No OFD packet to send [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 0B 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 0B 00 00 19 00 23 7E 05 6F 8F 39 00 6F 90 00 E1 [12:32:37]RAPDU: 23 7E 05 6F 8F 39 00 6F 90 00 [12:32:37]wFMCommunicate OK [12:32:37]SAM_PROTO_SignData done [12:32:37]FM_MakeSignedData done [12:32:37]CreateOFDProtocolMessage [12:32:37]wFMCommunicate request_size=4 [12:32:37]MH_SAM_APDU [12:32:37]CAPDU: 80 11 00 00 [12:32:37]Write to MH i2c: E2 08 00 01 19 80 11 00 00 00 00 00 00 94 [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:37]Read from MH i2c: E2 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 17 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: E2 17 00 01 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [12:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:32:37]wFMCommunicate OK [12:32:37]CreateOFDProtocolMessage done [12:32:37]OFDSenderStorePacket 103904 [12:32:37]StoreOFDPacket docnum=103904 [12:32:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C8 1F 07 01 38 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 65 21 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 95 01 00 35 04 06 00 39 F2 99 72 5F E9 23 7E 05 6F 8F 39 00 6F [12:32:37]CheckFolder [12:32:37]dirname=/storage/ofd_packets [12:32:37]CheckFolder done [12:32:37]ProducePacketName [12:32:37]name=ofd_packets/00103904 [12:32:37]NVStorageSaveData ofd_packets/00103904 [12:32:37]File name is /storage/ofd_packets/00103904 [12:32:37]Write 301 bytes [12:32:37]NVStorageSaveData done [12:32:37]OFDSenderStorePacket done [12:32:37]KKMCreateOFDPacket done [12:32:37]NVStorageSaveData kkm_last_timestamp [12:32:37]File name is /storage/kkm_last_timestamp [12:32:37]Write 4 bytes [12:32:37]NVStorageSaveData done [12:32:37]ExternCall_PrintAddStr [12:32:37]wPrintStart [12:32:37]Write to MH i2c: 01 00 00 02 19 1B [12:32:37]Write i2c OK [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: 01 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: 01 07 00 [12:32:37]MH_I2C_Read... [12:32:37]Read from MH i2c: 01 07 00 02 19 00 00 00 00 00 FF 0F 30 [12:32:37]RasterBufferAndPrint [12:32:37]line Счет N : (1)673244 [12:32:37]line ИНН: 02508201610067 [12:32:37]line Контрольно-Кассовый Чек [12:32:37]line ПРОДАЖА [12:32:37]line ТРК (МРК, ГНК) : 42 [12:32:37]line Товар: 2710124130 [12:32:37]line Аи-92-К-5 [12:32:37]line 7.540 * 66.40 [12:32:37]line = 500.66 [12:32:37]line НДС 12% НСП 1% [12:32:37]line > о реализуемом товаре [12:32:37]line ОКРУГЛЕНИЕ: -0.66 [12:32:37]line ИТОГО: 500.00 [12:32:37]line Внесено: 500.00 [12:32:37]line СДАЧА: 0.00 [12:32:37]line НСП 1% : 4.43 [12:32:37]line НДС 12% : 53.17 [12:32:37]line Наличными: 500.00 [12:32:37]line Безнал.: 0.00 [12:32:37]line Место: АЗС № 120 "Партнер Нефть" [12:32:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:32:37]line СНО: Общий режим [12:32:37]line Чек 89 20.06.2024 12:32 [12:32:37]line Смена: 354 ФФД: 1.0 [12:32:37]line ЗНМ: 0300000164 [12:32:37]line РНМ: 0000000000092785 [12:32:37]line Версия ККМ: 001 [12:32:37]line ФМ: 0000000000875093 [12:32:37]line ФД: 103904 [12:32:37]line ФПД: 63714119278569 [12:32:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T123237&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103904&fm=63714119278569&tin=02508201610067®Number=0000000000092785&sum=50000 [12:32:37]written 0, free lines is 4095 [12:32:37]OFD Sender: Processing packet 103904 [packets to send 17, broken 16] [12:32:37]ProducePacketName [12:32:37]name=ofd_packets/00103904 [12:32:37]OFD Sender: To server: pG, [12:32:37]CommunicateWithHost lk.salyk.kg:30040 [12:32:37]ConnectInit lk.salyk.kg [12:32:37]Connected sock=11 [12:32:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C8 1F 07 01 38 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 65 21 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 95 01 00 35 04 06 00 39 F2 99 72 5F E9 23 7E 05 6F 8F 39 00 6F [12:32:38]Write to MH i2c: 01 00 00 2D 19 46 [12:32:38]Write i2c OK [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: 01 [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: 01 07 00 [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: 01 07 00 2D 19 00 00 00 00 00 EA 0C 43 [12:32:38]RasterBufferAndPrint [12:32:38]line [12:32:38]line [12:32:38]line [12:32:38]line [12:32:38]line [12:32:38]written 0, free lines is 3312 [12:32:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B6 62 47 00 DA D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E0 95 01 00 F4 03 04 00 EB C7 73 66 B6 04 01 00 00 AE 01 27 D3 E8 90 13 E1 [12:32:38]CommunicateWithHost err = 0 [12:32:38]CheckOFDResponse [12:32:38]1017 (14) - 77093643461234 [12:32:38]1041 (16) - 0000000000875093 [12:32:38]1040 (4) - 103904 [12:32:38]1012 (4) - 20.06.2024 06:10 [12:32:38]1206 (1) - 0 [12:32:38]OFD Sender: Remove packet 103904 [12:32:38]ProducePacketName [12:32:38]name=ofd_packets/00103904 [12:32:38]NVStorageDeleteData [12:32:38]MH_Cut [12:32:38]Write to MH i2c: D1 01 00 34 19 01 1F [12:32:38]Write i2c OK [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: D1 [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: D1 01 00 [12:32:38]MH_I2C_Read... [12:32:38]Read from MH i2c: D1 01 00 34 19 00 1E [12:32:38]Write to MH i2c: 01 00 00 35 19 4E [12:32:38]Write i2c OK [12:32:38]MH_I2C_Read... [12:32:38]OFD Sender: No OFD packet to send [12:32:38]*** Cut start [12:32:38]*** Partial cut [12:32:38]*** CUTSNS_PIN = 1 [12:32:38]*** CUTSNS_PIN = 0 [12:32:39]*** Brake cut motor [12:32:39]Read from MH i2c: 01 [12:32:39]MH_I2C_Read... [12:32:39]*** Stop cut motor [12:32:39]*** Cut end [12:32:39]Read from MH i2c: 01 07 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: 01 07 00 35 19 00 00 00 00 00 FF 0F 63 [12:32:39]process_action close_receipt done [12:32:39]requested_data is exist [12:32:39]produce_requested_data [12:32:39]requested_item fm.sn is exist - process it [12:32:39]wFMCommunicate request_size=4 [12:32:39]MH_SAM_APDU [12:32:39]CAPDU: 80 11 00 00 [12:32:39]Write to MH i2c: E2 08 00 36 19 80 11 00 00 00 00 00 00 C9 [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:39]Read from MH i2c: E2 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 17 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 17 00 36 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [12:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:32:39]wFMCommunicate OK [12:32:39]requested_item fd.num is exist - process it [12:32:39]SAM_PROTO_GetFieldsCounters [12:32:39]wFMCommunicate request_size=4 [12:32:39]MH_SAM_APDU [12:32:39]CAPDU: 80 13 00 00 [12:32:39]Write to MH i2c: E2 08 00 37 19 80 13 00 00 00 00 00 00 CC [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:39]Read from MH i2c: E2 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 62 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 62 00 37 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 95 01 00 0E 04 04 00 62 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 D7 [12:32:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 95 01 00 0E 04 04 00 62 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:32:39]wFMCommunicate OK [12:32:39]SAM_PROTO_GetFieldsCounters done [12:32:39]requested_item shift.num is exist - process it [12:32:39]requested_item shift.opened is exist - process it [12:32:39]req_shift_opened [12:32:39]FM_GetShiftState [12:32:39]SAM_PROTO_GetShiftState [12:32:39]wFMCommunicate request_size=4 [12:32:39]MH_SAM_APDU [12:32:39]CAPDU: 80 13 01 00 [12:32:39]Write to MH i2c: E2 08 00 38 19 80 13 01 00 00 00 00 00 CE [12:32:39]Write i2c OK [12:32:39]MH_I2C_Read... [12:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:39]Read from MH i2c: E2 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 0E 00 [12:32:39]MH_I2C_Read... [12:32:39]Read from MH i2c: E2 0E 00 38 19 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1D [12:32:39]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:32:39]wFMCommunicate OK [12:32:39]SAM_PROTO_GetShiftState done [12:32:39]FM_GetShiftState done [12:32:39]req_shift_opened done [12:32:39]requested_item shift.open_date is exist - process it [12:32:39]req_shift_open_date [12:32:39]req_shift_open_date done [12:32:39]produce_requested_data done [12:32:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103904,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:32:39]process_action_free close_receipt [12:32:39]json_value_free [12:32:39]json_value_free done [12:32:39]process_json_proto returns [12:32:39]Send response to host [12:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103904,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:32:39]free response buf [12:32:39]execute_script done [12:32:39]execute_script returns [12:32:39]free content buf [12:32:39]Sock 9.Close socket [12:32:39]Sock 9.Thread stoped [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:36]accept exits with 7 [12:34:36]New connection [12:34:36]New thread 3067063652 created [12:34:36]Thread 3067207012 joined [12:34:36]Waiting for new connection... [12:34:36] Sock 7.Parse request [12:34:36]Sock 7.Check first char [12:34:36]Sock 7.First char is OK [12:34:36]request: POST /json_proto HTTP/1.0 [12:34:36]Method: POST [12:34:36]URL: /json_proto [12:34:36]Method is POST - this is cgi request [12:34:36]url: /json_proto [12:34:36]query_string will be loaded in cgi processing [12:34:36]execute_cgi json_proto POST (null) [12:34:36]execute_cgi path=json_proto method=POST [12:34:36]POST find Content-Length [12:34:36]Host: 172.17.38.133:8080 [12:34:36]Content-Length: 1214 [12:34:36]Content-Type: application/json [12:34:36] [12:34:36]POST finish read [12:34:36]Found Content-Length = 1214 [12:34:36]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673241\u000A20.06.2024 12:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 150.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 10935.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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:36]execute_script... [12:34:36]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673241\u000A20.06.2024 12:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 150.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 10935.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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:36]POST & json_proto [12:34:36]process_json_proto [12:34:36]json parsed OK: [12:34:36]protocol is kg_v1.0 [12:34:36]action value=print_text [12:34:36]process_action print_text [12:34:36]cmd_print_text [12:34:36]ExternCall_PrintAddStr [12:34:36]wPrintStart [12:34:36]Write to MH i2c: 01 00 00 39 19 52 [12:34:36]Write i2c OK [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: 01 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: 01 07 00 [12:34:36]MH_I2C_Read... [12:34:36]Read from MH i2c: 01 07 00 39 19 00 00 00 00 00 FF 0F 67 [12:34:36]RasterBufferAndPrint [12:34:36]line *****ТОВАРНЫЙ ЧЕК***** [12:34:36]line АЗС 120 [12:34:36]line Партнер нефть [12:34:36]line 02508201610067 [12:34:36]line Кассир : Дуйшенбиев А. [12:34:36]line Счет N : (1)673241 [12:34:36]line 20.06.2024 12:11 [12:34:36]line ПРОДАЖА [12:34:36]line ТРК (МРК, ГНК): 11 [12:34:36]line Вид ГСМ : 2710194210 [12:34:36]line ДТ(л)-К-5 [12:34:36]line 150.000 x 72.90 [12:34:36]line ИТОГ: 10935.00 [12:34:36]line Тип оплаты: Талоны: Топливная Карта [12:34:36]line 72637 [12:34:36]line ______________________ [12:34:36]line (подпись) [12:34:36]written 0, free lines is 4095 [12:34:37]Write to MH i2c: 01 00 00 4D 19 66 [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 07 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: 01 07 00 4D 19 00 00 00 00 00 11 0E 8C [12:34:37]RasterBufferAndPrint [12:34:37]line [12:34:37]line [12:34:37]line [12:34:37]line [12:34:37]line [12:34:37]written 0, free lines is 3603 [12:34:37]MH_Cut [12:34:37]Write to MH i2c: D1 01 00 54 19 01 3F [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: D1 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: D1 01 00 [12:34:37]MH_I2C_Read... [12:34:37]Read from MH i2c: D1 01 00 54 19 00 3E [12:34:37]Write to MH i2c: 01 00 00 55 19 6E [12:34:37]Write i2c OK [12:34:37]MH_I2C_Read... [12:34:37]*** Cut start [12:34:37]*** Partial cut [12:34:37]*** CUTSNS_PIN = 1 [12:34:37]*** CUTSNS_PIN = 0 [12:34:37]*** Brake cut motor [12:34:38]Read from MH i2c: 01 [12:34:38]MH_I2C_Read... [12:34:38]*** Stop cut motor [12:34:38]*** Cut end [12:34:38]Read from MH i2c: 01 07 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: 01 07 00 55 19 00 00 00 00 00 FF 0F 83 [12:34:38]process_action print_text done [12:34:38]requested_data is exist [12:34:38]produce_requested_data [12:34:38]requested_item fm.sn is exist - process it [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 11 00 00 [12:34:38]Write to MH i2c: E2 08 00 56 19 80 11 00 00 00 00 00 00 E9 [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 17 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 17 00 56 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3C [12:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:34:38]wFMCommunicate OK [12:34:38]requested_item fd.num is exist - process it [12:34:38]SAM_PROTO_GetFieldsCounters [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 13 00 00 [12:34:38]Write to MH i2c: E2 08 00 57 19 80 13 00 00 00 00 00 00 EC [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 62 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 62 00 57 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 95 01 00 0E 04 04 00 62 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 F7 [12:34:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 95 01 00 0E 04 04 00 62 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:34:38]wFMCommunicate OK [12:34:38]SAM_PROTO_GetFieldsCounters done [12:34:38]requested_item shift.num is exist - process it [12:34:38]requested_item shift.opened is exist - process it [12:34:38]req_shift_opened [12:34:38]FM_GetShiftState [12:34:38]SAM_PROTO_GetShiftState [12:34:38]wFMCommunicate request_size=4 [12:34:38]MH_SAM_APDU [12:34:38]CAPDU: 80 13 01 00 [12:34:38]Write to MH i2c: E2 08 00 58 19 80 13 01 00 00 00 00 00 EE [12:34:38]Write i2c OK [12:34:38]MH_I2C_Read... [12:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:38]Read from MH i2c: E2 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 0E 00 [12:34:38]MH_I2C_Read... [12:34:38]Read from MH i2c: E2 0E 00 58 19 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3D [12:34:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:34:38]wFMCommunicate OK [12:34:38]SAM_PROTO_GetShiftState done [12:34:38]FM_GetShiftState done [12:34:38]req_shift_opened done [12:34:38]requested_item shift.open_date is exist - process it [12:34:38]req_shift_open_date [12:34:38]req_shift_open_date done [12:34:38]produce_requested_data done [12:34:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103904,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:34:38]process_action_free print_text [12:34:38]json_value_free [12:34:38]json_value_free done [12:34:38]process_json_proto returns [12:34:38]Send response to host [12:34:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103904,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:34:38]free response buf [12:34:38]execute_script done [12:34:38]execute_script returns [12:34:38]free content buf [12:34:38]Sock 7.Close socket [12:34:38]Sock 7.Thread stoped [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]accept exits with 9 [12:37:28]New connection [12:37:28]New thread 3067207012 created [12:37:28]Thread 3067063652 joined [12:37:28]Waiting for new connection... [12:37:28] Sock 9.Parse request [12:37:28]Sock 9.Check first char [12:37:28]Sock 9.First char is OK [12:37:28]request: POST /json_proto HTTP/1.0 [12:37:28]Method: POST [12:37:28]URL: /json_proto [12:37:28]Method is POST - this is cgi request [12:37:28]url: /json_proto [12:37:28]query_string will be loaded in cgi processing [12:37:28]execute_cgi json_proto POST (null) [12:37:28]execute_cgi path=json_proto method=POST [12:37:28]POST find Content-Length [12:37:28]Host: 172.17.38.133:8080 [12:37:28]Content-Length: 1212 [12:37:28]Content-Type: application/json [12:37:28] [12:37:28]POST finish read [12:37:28]Found Content-Length = 1212 [12:37: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673245\u000A20.06.2024 12:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:28]execute_script... [12:37: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673245\u000A20.06.2024 12:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:28]POST & json_proto [12:37:28]process_json_proto [12:37:28]json parsed OK: [12:37:28]protocol is kg_v1.0 [12:37:28]action value=print_text [12:37:28]process_action print_text [12:37:28]cmd_print_text [12:37:28]ExternCall_PrintAddStr [12:37:28]wPrintStart [12:37:28]Write to MH i2c: 01 00 00 59 19 72 [12:37:28]Write i2c OK [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: 01 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: 01 07 00 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 FF 0F 87 [12:37:28]RasterBufferAndPrint [12:37:28]line *****ТОВАРНЫЙ ЧЕК***** [12:37:28]line АЗС 120 [12:37:28]line Партнер нефть [12:37:28]line 02508201610067 [12:37:28]line Кассир : Дуйшенбиев А. [12:37:28]line Счет N : (1)673245 [12:37:28]line 20.06.2024 12:14 [12:37:28]line ПРОДАЖА [12:37:28]line ТРК (МРК, ГНК): 11 [12:37:28]line Вид ГСМ : 2710194210 [12:37:28]line ДТ(л)-К-5 [12:37:28]line 40.000 x 72.90 [12:37:28]line ИТОГ: 2916.00 [12:37:28]line Тип оплаты: Талоны: Топливная Карта [12:37:28]line 72637 [12:37:28]line ______________________ [12:37:28]line (подпись) [12:37:28]written 0, free lines is 4095 [12:37:28]Write to MH i2c: 01 00 00 6D 19 86 [12:37:28]Write i2c OK [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: 01 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: 01 07 00 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: 01 07 00 6D 19 00 00 00 00 00 12 0E AD [12:37:28]RasterBufferAndPrint [12:37:28]line [12:37:28]line [12:37:28]line [12:37:28]line [12:37:28]line [12:37:28]written 0, free lines is 3604 [12:37:28]MH_Cut [12:37:28]Write to MH i2c: D1 01 00 74 19 01 5F [12:37:28]Write i2c OK [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: D1 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: D1 01 00 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: D1 01 00 74 19 00 5E [12:37:28]Write to MH i2c: 01 00 00 75 19 8E [12:37:28]Write i2c OK [12:37:28]MH_I2C_Read... [12:37:28]OFD Sender: No OFD packet to send [12:37:29]*** Cut start [12:37:29]*** Partial cut [12:37:29]*** CUTSNS_PIN = 1 [12:37:29]*** CUTSNS_PIN = 0 [12:37:29]*** Brake cut motor [12:37:29]Read from MH i2c: 01 [12:37:29]MH_I2C_Read... [12:37:29]*** Stop cut motor [12:37:29]*** Cut end [12:37:29]Read from MH i2c: 01 07 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: 01 07 00 75 19 00 00 00 00 00 FF 0F A3 [12:37:29]process_action print_text done [12:37:29]requested_data is exist [12:37:29]produce_requested_data [12:37:29]requested_item fm.sn is exist - process it [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 11 00 00 [12:37:29]Write to MH i2c: E2 08 00 76 19 80 11 00 00 00 00 00 00 09 [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:30]Read from MH i2c: E2 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 17 00 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 17 00 76 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5C [12:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:37:30]wFMCommunicate OK [12:37:30]requested_item fd.num is exist - process it [12:37:30]SAM_PROTO_GetFieldsCounters [12:37:30]wFMCommunicate request_size=4 [12:37:30]MH_SAM_APDU [12:37:30]CAPDU: 80 13 00 00 [12:37:30]Write to MH i2c: E2 08 00 77 19 80 13 00 00 00 00 00 00 0C [12:37:30]Write i2c OK [12:37:30]MH_I2C_Read... [12:37:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:30]Read from MH i2c: E2 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 62 00 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 62 00 77 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 95 01 00 0E 04 04 00 62 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 17 [12:37:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E0 95 01 00 0E 04 04 00 62 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:37:30]wFMCommunicate OK [12:37:30]SAM_PROTO_GetFieldsCounters done [12:37:30]requested_item shift.num is exist - process it [12:37:30]requested_item shift.opened is exist - process it [12:37:30]req_shift_opened [12:37:30]FM_GetShiftState [12:37:30]SAM_PROTO_GetShiftState [12:37:30]wFMCommunicate request_size=4 [12:37:30]MH_SAM_APDU [12:37:30]CAPDU: 80 13 01 00 [12:37:30]Write to MH i2c: E2 08 00 78 19 80 13 01 00 00 00 00 00 0E [12:37:30]Write i2c OK [12:37:30]MH_I2C_Read... [12:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:30]Read from MH i2c: E2 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 0E 00 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: E2 0E 00 78 19 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5D [12:37:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:37:30]wFMCommunicate OK [12:37:30]SAM_PROTO_GetShiftState done [12:37:30]FM_GetShiftState done [12:37:30]req_shift_opened done [12:37:30]requested_item shift.open_date is exist - process it [12:37:30]req_shift_open_date [12:37:30]req_shift_open_date done [12:37:30]produce_requested_data done [12:37:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103904,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:37:30]process_action_free print_text [12:37:30]json_value_free [12:37:30]json_value_free done [12:37:30]process_json_proto returns [12:37:30]Send response to host [12:37:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103904,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:37:30]free response buf [12:37:30]execute_script done [12:37:30]execute_script returns [12:37:30]free content buf [12:37:30]Sock 9.Close socket [12:37:30]Sock 9.Thread stoped [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:15]accept exits with 7 [12:40:15]New connection [12:40:15]New thread 3067063652 created [12:40:15]Thread 3067207012 joined [12:40:15]Waiting for new connection... [12:40:15] Sock 7.Parse request [12:40:15]Sock 7.Check first char [12:40:15]Sock 7.First char is OK [12:40:15]request: POST /json_proto HTTP/1.0 [12:40:15]Method: POST [12:40:15]URL: /json_proto [12:40:15]Method is POST - this is cgi request [12:40:15]url: /json_proto [12:40:15]query_string will be loaded in cgi processing [12:40:15]execute_cgi json_proto POST (null) [12:40:15]execute_cgi path=json_proto method=POST [12:40:15]POST find Content-Length [12:40:15]Host: 172.17.38.133:8080 [12:40:15]Content-Length: 640 [12:40:15]Content-Type: application/json [12:40:15] [12:40:15]POST finish read [12:40:15]Found Content-Length = 640 [12:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:15]execute_script... [12:40: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)673246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:15]POST & json_proto [12:40:15]process_json_proto [12:40:15]json parsed OK: [12:40:15]protocol is kg_v1.0 [12:40:15]action value=close_receipt [12:40:15]process_action close_receipt [12:40:15]cmd_close_receipt [12:40:15]MH_GetDate [12:40:15]Write to MH i2c: F0 00 00 79 19 81 [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: F0 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: F0 09 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: F0 09 00 79 19 00 31 23 74 66 BD 8F 7C 64 E4 [12:40:15]GetLastDocTimeStamp 1718886757 [12:40:15]current date 1718887217 [12:40:15]FM_GetShiftState [12:40:15]SAM_PROTO_GetShiftState [12:40:15]wFMCommunicate request_size=4 [12:40:15]MH_SAM_APDU [12:40:15]CAPDU: 80 13 01 00 [12:40:15]Write to MH i2c: E2 08 00 7A 19 80 13 01 00 00 00 00 00 10 [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:15]Read from MH i2c: E2 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 0E 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 0E 00 7A 19 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5F [12:40:15]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:40:15]wFMCommunicate OK [12:40:15]SAM_PROTO_GetShiftState done [12:40:15]FM_GetShiftState done [12:40:15]opened in 1718843124 [12:40:15]opened+sec_in_day 1718929524 [12:40:15]quantity*price = 66400 [12:40:15]sum+1 = 66401 [12:40:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 90 20.06.2024 12:40 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103905 ФПД: 255639922604746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124017&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103905&fm=255639922604746&tin=02508201610067®Number=0000000000092785&sum=66400 [12:40:16]StoreToDocumentArchive [12:40:16]shift 354 fd 103905 [12:40:16]save to /storage/0354/doc_00103905 [12:40:16]save last doc name /storage/0354/doc_00103905 to /storage/kkm_last_doc_name [12:40:16]save OK [12:40:16]Clear old archive folders... [12:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:16]tlvbuf is B6F96D70 [12:40:16]SAM_PROTO_ClearQueue [12:40:16]wFMCommunicate request_size=4 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 09 00 00 [12:40:16]Write to MH i2c: E2 08 00 87 19 80 09 00 00 00 00 00 00 12 [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 03 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 03 00 87 19 00 90 00 14 [12:40:16]RAPDU: 90 00 [12:40:16]wFMCommunicate OK [12:40:16]SAM_PROTO_ClearQueue done [12:40:16]KKMCreateOFDPacket [12:40:16]OFDProtocolAddRootSTLVToBuf [12:40:16]FM_MakeSignedData [12:40:16]FM_MakeSignedData [12:40:16]SAM_PROTO_SignData [12:40:16]wFMCommunicate request_size=4 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 0D 01 02 [12:40:16]Write to MH i2c: E2 08 00 88 19 80 0D 01 02 00 00 00 00 1A [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 03 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 03 00 88 19 00 90 00 15 [12:40:16]RAPDU: 90 00 [12:40:16]wFMCommunicate OK [12:40:16]wFMCommunicate request_size=255 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 31 23 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 95 01 00 35 04 06 00 E8 [12:40:16]Write to MH i2c: E2 02 01 89 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 31 23 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 95 01 00 35 04 06 00 E8 00 00 D4 [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 03 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 03 00 89 19 00 90 00 16 [12:40:16]RAPDU: 90 00 [12:40:16]wFMCommunicate OK [12:40:16]wFMCommunicate request_size=10 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 0D 02 02 05 80 CE C6 FA CA [12:40:16]Write to MH i2c: E2 0D 00 8A 19 80 0D 02 02 05 00 80 CE C6 FA CA 00 00 FF [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 03 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 03 00 8A 19 00 90 00 17 [12:40:16]RAPDU: 90 00 [12:40:16]wFMCommunicate OK [12:40:16]wFMCommunicate request_size=4 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 0D 03 02 [12:40:16]Write to MH i2c: E2 08 00 8B 19 80 0D 03 02 00 00 00 00 1F [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 0B 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 0B 00 8B 19 00 53 57 1F CC 28 DF 32 E3 90 00 D1 [12:40:16]RAPDU: 53 57 1F CC 28 DF 32 E3 90 00 [12:40:16]wFMCommunicate OK [12:40:16]SAM_PROTO_SignData done [12:40:16]FM_MakeSignedData done [12:40:16]CreateOFDProtocolMessage [12:40:16]wFMCommunicate request_size=4 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 11 00 00 [12:40:16]Write to MH i2c: E2 08 00 8C 19 80 11 00 00 00 00 00 00 1F [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 17 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 17 00 8C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 72 [12:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:40:16]wFMCommunicate OK [12:40:16]CreateOFDProtocolMessage done [12:40:16]OFDSenderStorePacket 103905 [12:40:16]StoreOFDPacket docnum=103905 [12:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9D 23 07 01 F2 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 31 23 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 95 01 00 35 04 06 00 E8 80 CE C6 FA CA 53 57 1F CC 28 DF 32 E3 [12:40:16]CheckFolder [12:40:16]dirname=/storage/ofd_packets [12:40:16]CheckFolder done [12:40:16]ProducePacketName [12:40:16]name=ofd_packets/00103905 [12:40:16]NVStorageSaveData ofd_packets/00103905 [12:40:16]File name is /storage/ofd_packets/00103905 [12:40:16]Write 301 bytes [12:40:16]NVStorageSaveData done [12:40:16]OFDSenderStorePacket done [12:40:16]KKMCreateOFDPacket done [12:40:16]NVStorageSaveData kkm_last_timestamp [12:40:16]File name is /storage/kkm_last_timestamp [12:40:16]Write 4 bytes [12:40:16]NVStorageSaveData done [12:40:16]ExternCall_PrintAddStr [12:40:16]wPrintStart [12:40:16]Write to MH i2c: 01 00 00 8D 19 A6 [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: 01 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: 01 07 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: 01 07 00 8D 19 00 00 00 00 00 FF 0F BB [12:40:16]RasterBufferAndPrint [12:40:16]line Счет N : (1)673246 [12:40:16]line ИНН: 02508201610067 [12:40:16]line Контрольно-Кассовый Чек [12:40:16]line ПРОДАЖА [12:40:16]line ТРК (МРК, ГНК) : 42 [12:40:16]line Товар: 2710124130 [12:40:16]line Аи-92-К-5 [12:40:16]line 10.000 * 66.40 [12:40:16]line = 664.00 [12:40:16]line НДС 12% НСП 1% [12:40:16]line > о реализуемом товаре [12:40:16]line ИТОГО: 664.00 [12:40:16]line НСП 1% : 5.88 [12:40:16]line НДС 12% : 70.51 [12:40:16]line Наличными: 664.00 [12:40:16]line Безнал.: 0.00 [12:40:16]line Место: АЗС № 120 "Партнер Нефть" [12:40:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:40:16]line СНО: Общий режим [12:40:16]line Чек 90 20.06.2024 12:40 [12:40:16]line Смена: 354 ФФД: 1.0 [12:40:16]line ЗНМ: 0300000164 [12:40:16]line РНМ: 0000000000092785 [12:40:16]line Версия ККМ: 001 [12:40:16]line ФМ: 0000000000875093 [12:40:16]line ФД: 103905 [12:40:16]line ФПД: 255639922604746 [12:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124017&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103905&fm=255639922604746&tin=02508201610067®Number=0000000000092785&sum=66400 [12:40:17]OFD Sender: Processing packet 103905 [packets to send 17, broken 16] [12:40:17]ProducePacketName [12:40:17]name=ofd_packets/00103905 [12:40:17]OFD Sender: To server: pG, [12:40:17]CommunicateWithHost lk.salyk.kg:30040 [12:40:17]ConnectInit lk.salyk.kg [12:40:17]written 0, free lines is 4095 [12:40:17]Connected sock=10 [12:40:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9D 23 07 01 F2 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 31 23 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 95 01 00 35 04 06 00 E8 80 CE C6 FA CA 53 57 1F CC 28 DF 32 E3 [12:40:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 11 2B 47 00 A0 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E1 95 01 00 F4 03 04 00 B6 C9 73 66 B6 04 01 00 00 49 A7 78 EA 54 91 84 01 [12:40:17]CommunicateWithHost err = 0 [12:40:17]CheckOFDResponse [12:40:17]1017 (14) - 77093643461234 [12:40:17]1041 (16) - 0000000000875093 [12:40:17]1040 (4) - 103905 [12:40:17]1012 (4) - 20.06.2024 06:18 [12:40:17]1206 (1) - 0 [12:40:17]OFD Sender: Remove packet 103905 [12:40:17]ProducePacketName [12:40:17]name=ofd_packets/00103905 [12:40:17]NVStorageDeleteData [12:40:17]Write to MH i2c: 01 00 00 B5 19 CE [12:40:17]Write i2c OK [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: 01 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: 01 07 00 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: 01 07 00 B5 19 00 00 00 00 00 18 0D FA [12:40:17]RasterBufferAndPrint [12:40:17]line [12:40:17]line [12:40:17]line [12:40:17]line [12:40:17]line [12:40:17]written 0, free lines is 3357 [12:40:17]MH_Cut [12:40:17]Write to MH i2c: D1 01 00 BC 19 01 A7 [12:40:17]Write i2c OK [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: D1 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: D1 01 00 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: D1 01 00 BC 19 00 A6 [12:40:17]Write to MH i2c: 01 00 00 BD 19 D6 [12:40:17]Write i2c OK [12:40:17]MH_I2C_Read... [12:40:18]OFD Sender: No OFD packet to send [12:40:18]*** Cut start [12:40:18]*** Partial cut [12:40:18]*** CUTSNS_PIN = 1 [12:40:18]*** CUTSNS_PIN = 0 [12:40:18]*** Brake cut motor [12:40:18]Read from MH i2c: 01 [12:40:18]MH_I2C_Read... [12:40:18]*** Stop cut motor [12:40:18]*** Cut end [12:40:18]Read from MH i2c: 01 07 00 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: 01 07 00 BD 19 00 00 00 00 00 FF 0F EB [12:40:18]process_action close_receipt done [12:40:18]requested_data is exist [12:40:18]produce_requested_data [12:40:18]requested_item fm.sn is exist - process it [12:40:18]wFMCommunicate request_size=4 [12:40:18]MH_SAM_APDU [12:40:18]CAPDU: 80 11 00 00 [12:40:18]Write to MH i2c: E2 08 00 BE 19 80 11 00 00 00 00 00 00 51 [12:40:18]Write i2c OK [12:40:18]MH_I2C_Read... [12:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:18]Read from MH i2c: E2 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: E2 17 00 [12:40:18]MH_I2C_Read... [12:40:18]Read from MH i2c: E2 17 00 BE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [12:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:40:19]wFMCommunicate OK [12:40:19]requested_item fd.num is exist - process it [12:40:19]SAM_PROTO_GetFieldsCounters [12:40:19]wFMCommunicate request_size=4 [12:40:19]MH_SAM_APDU [12:40:19]CAPDU: 80 13 00 00 [12:40:19]Write to MH i2c: E2 08 00 BF 19 80 13 00 00 00 00 00 00 54 [12:40:19]Write i2c OK [12:40:19]MH_I2C_Read... [12:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:19]Read from MH i2c: E2 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 62 00 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 62 00 BF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E1 95 01 00 0E 04 04 00 62 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 63 [12:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E1 95 01 00 0E 04 04 00 62 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:40:19]wFMCommunicate OK [12:40:19]SAM_PROTO_GetFieldsCounters done [12:40:19]requested_item shift.num is exist - process it [12:40:19]requested_item shift.opened is exist - process it [12:40:19]req_shift_opened [12:40:19]FM_GetShiftState [12:40:19]SAM_PROTO_GetShiftState [12:40:19]wFMCommunicate request_size=4 [12:40:19]MH_SAM_APDU [12:40:19]CAPDU: 80 13 01 00 [12:40:19]Write to MH i2c: E2 08 00 C0 19 80 13 01 00 00 00 00 00 56 [12:40:19]Write i2c OK [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 [12:40:19]MH_I2C_Read... [12:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:19]Read from MH i2c: E2 0E 00 [12:40:19]MH_I2C_Read... [12:40:19]Read from MH i2c: E2 0E 00 C0 19 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A5 [12:40:19]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:40:19]wFMCommunicate OK [12:40:19]SAM_PROTO_GetShiftState done [12:40:19]FM_GetShiftState done [12:40:19]req_shift_opened done [12:40:19]requested_item shift.open_date is exist - process it [12:40:19]req_shift_open_date [12:40:19]req_shift_open_date done [12:40:19]produce_requested_data done [12:40:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103905,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:40:19]process_action_free close_receipt [12:40:19]json_value_free [12:40:19]json_value_free done [12:40:19]process_json_proto returns [12:40:19]Send response to host [12:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103905,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:40:19]free response buf [12:40:19]execute_script done [12:40:19]execute_script returns [12:40:19]free content buf [12:40:19]Sock 7.Close socket [12:40:19]Sock 7.Thread stoped [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:30]accept exits with 9 [12:41:30]New connection [12:41:30]New thread 3067207012 created [12:41:30]Thread 3067063652 joined [12:41:30]Waiting for new connection... [12:41:30] Sock 9.Parse request [12:41:30]Sock 9.Check first char [12:41:30]Sock 9.First char is OK [12:41:30]request: POST /json_proto HTTP/1.0 [12:41:30]Method: POST [12:41:30]URL: /json_proto [12:41:30]Method is POST - this is cgi request [12:41:30]url: /json_proto [12:41:30]query_string will be loaded in cgi processing [12:41:30]execute_cgi json_proto POST (null) [12:41:30]execute_cgi path=json_proto method=POST [12:41:30]POST find Content-Length [12:41:30]Host: 172.17.38.133:8080 [12:41:30]Content-Length: 1197 [12:41:30]Content-Type: application/json [12:41:30] [12:41:30]POST finish read [12:41:30]Found Content-Length = 1197 [12:41:30]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673247\u000A20.06.2024 12:18\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 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3592851\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:30]execute_script... [12:41:30]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673247\u000A20.06.2024 12:18\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 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3592851\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:30]POST & json_proto [12:41:30]process_json_proto [12:41:30]json parsed OK: [12:41:30]protocol is kg_v1.0 [12:41:30]action value=print_text [12:41:30]process_action print_text [12:41:30]cmd_print_text [12:41:30]ExternCall_PrintAddStr [12:41:30]wPrintStart [12:41:30]Write to MH i2c: 01 00 00 C1 19 DA [12:41:30]Write i2c OK [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: 01 [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: 01 07 00 [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: 01 07 00 C1 19 00 00 00 00 00 FF 0F EF [12:41:30]RasterBufferAndPrint [12:41:30]line *****ТОВАРНЫЙ ЧЕК***** [12:41:30]line АЗС 120 [12:41:30]line Партнер нефть [12:41:30]line 02508201610067 [12:41:30]line Кассир : Дуйшенбиев А. [12:41:30]line Счет N : (1)673247 [12:41:30]line 20.06.2024 12:18 [12:41:30]line ПРОДАЖА [12:41:30]line ТРК (МРК, ГНК): 32 [12:41:30]line Вид ГСМ : 2710124130 [12:41:30]line Аи-92-К-5 [12:41:30]line 20.000 x 66.40 [12:41:30]line ИТОГ: 1328.00 [12:41:30]line Тип оплаты: Талоны: Партнер нефть [12:41:30]line 3592851 [12:41:30]line ______________________ [12:41:30]line (подпись) [12:41:30]written 0, free lines is 4095 [12:41:30]Write to MH i2c: 01 00 00 D5 19 EE [12:41:30]Write i2c OK [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: 01 [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: 01 07 00 [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: 01 07 00 D5 19 00 00 00 00 00 13 0E 16 [12:41:30]RasterBufferAndPrint [12:41:30]line [12:41:30]line [12:41:30]line [12:41:30]line [12:41:30]line [12:41:30]written 0, free lines is 3605 [12:41:30]MH_Cut [12:41:30]Write to MH i2c: D1 01 00 DC 19 01 C7 [12:41:30]Write i2c OK [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: D1 [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: D1 01 00 [12:41:30]MH_I2C_Read... [12:41:30]Read from MH i2c: D1 01 00 DC 19 00 C6 [12:41:30]Write to MH i2c: 01 00 00 DD 19 F6 [12:41:30]Write i2c OK [12:41:30]MH_I2C_Read... [12:41:30]*** Cut start [12:41:30]*** Partial cut [12:41:30]*** CUTSNS_PIN = 1 [12:41:30]*** CUTSNS_PIN = 0 [12:41:31]*** Brake cut motor [12:41:31]Read from MH i2c: 01 [12:41:31]MH_I2C_Read... [12:41:31]*** Stop cut motor [12:41:31]*** Cut end [12:41:31]Read from MH i2c: 01 07 00 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: 01 07 00 DD 19 00 00 00 00 00 FF 0F 0B [12:41:31]process_action print_text done [12:41:31]requested_data is exist [12:41:31]produce_requested_data [12:41:31]requested_item fm.sn is exist - process it [12:41:31]wFMCommunicate request_size=4 [12:41:31]MH_SAM_APDU [12:41:31]CAPDU: 80 11 00 00 [12:41:31]Write to MH i2c: E2 08 00 DE 19 80 11 00 00 00 00 00 00 71 [12:41:31]Write i2c OK [12:41:31]MH_I2C_Read... [12:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:31]Read from MH i2c: E2 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: E2 17 00 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: E2 17 00 DE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C4 [12:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:41:31]wFMCommunicate OK [12:41:31]requested_item fd.num is exist - process it [12:41:31]SAM_PROTO_GetFieldsCounters [12:41:31]wFMCommunicate request_size=4 [12:41:31]MH_SAM_APDU [12:41:31]CAPDU: 80 13 00 00 [12:41:31]Write to MH i2c: E2 08 00 DF 19 80 13 00 00 00 00 00 00 74 [12:41:31]Write i2c OK [12:41:31]MH_I2C_Read... [12:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:31]Read from MH i2c: E2 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: E2 62 00 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: E2 62 00 DF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E1 95 01 00 0E 04 04 00 62 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 83 [12:41:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E1 95 01 00 0E 04 04 00 62 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:41:31]wFMCommunicate OK [12:41:31]SAM_PROTO_GetFieldsCounters done [12:41:31]requested_item shift.num is exist - process it [12:41:31]requested_item shift.opened is exist - process it [12:41:31]req_shift_opened [12:41:31]FM_GetShiftState [12:41:31]SAM_PROTO_GetShiftState [12:41:31]wFMCommunicate request_size=4 [12:41:31]MH_SAM_APDU [12:41:31]CAPDU: 80 13 01 00 [12:41:31]Write to MH i2c: E2 08 00 E0 19 80 13 01 00 00 00 00 00 76 [12:41:31]Write i2c OK [12:41:31]MH_I2C_Read... [12:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:31]Read from MH i2c: E2 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: E2 0E 00 [12:41:31]MH_I2C_Read... [12:41:31]Read from MH i2c: E2 0E 00 E0 19 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C5 [12:41:31]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:41:31]wFMCommunicate OK [12:41:31]SAM_PROTO_GetShiftState done [12:41:31]FM_GetShiftState done [12:41:31]req_shift_opened done [12:41:31]requested_item shift.open_date is exist - process it [12:41:31]req_shift_open_date [12:41:31]req_shift_open_date done [12:41:31]produce_requested_data done [12:41:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103905,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:41:31]process_action_free print_text [12:41:31]json_value_free [12:41:31]json_value_free done [12:41:31]process_json_proto returns [12:41:31]Send response to host [12:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103905,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:41:31]free response buf [12:41:31]execute_script done [12:41:31]execute_script returns [12:41:31]free content buf [12:41:31]Sock 9.Close socket [12:41:31]Sock 9.Thread stoped [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:51]accept exits with 7 [12:48:51]New connection [12:48:51]New thread 3067063652 created [12:48:51]Thread 3067207012 joined [12:48:51]Waiting for new connection... [12:48:51] Sock 7.Parse request [12:48:51]Sock 7.Check first char [12:48:51]Sock 7.First char is OK [12:48:51]request: POST /json_proto HTTP/1.0 [12:48:51]Method: POST [12:48:51]URL: /json_proto [12:48:51]Method is POST - this is cgi request [12:48:51]url: /json_proto [12:48:51]query_string will be loaded in cgi processing [12:48:51]execute_cgi json_proto POST (null) [12:48:51]execute_cgi path=json_proto method=POST [12:48:51]POST find Content-Length [12:48:51]Host: 172.17.38.133:8080 [12:48:51]Content-Length: 677 [12:48:51]Content-Type: application/json [12:48:51] [12:48:51]POST finish read [12:48:51]Found Content-Length = 677 [12:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:48:51]execute_script... [12:48: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)673248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:48:51]POST & json_proto [12:48:51]process_json_proto [12:48:51]json parsed OK: [12:48:51]protocol is kg_v1.0 [12:48:51]action value=close_receipt [12:48:51]process_action close_receipt [12:48:51]cmd_close_receipt [12:48:51]MH_GetDate [12:48:51]Write to MH i2c: F0 00 00 E1 19 E9 [12:48:51]Write i2c OK [12:48:51]MH_I2C_Read... [12:48:51]Read from MH i2c: F0 [12:48:51]MH_I2C_Read... [12:48:51]Read from MH i2c: F0 09 00 [12:48:51]MH_I2C_Read... [12:48:51]Read from MH i2c: F0 09 00 E1 19 00 35 25 74 66 BD 8F 7C 64 52 [12:48:51]GetLastDocTimeStamp 1718887217 [12:48:51]current date 1718887733 [12:48:51]FM_GetShiftState [12:48:51]SAM_PROTO_GetShiftState [12:48:51]wFMCommunicate request_size=4 [12:48:51]MH_SAM_APDU [12:48:51]CAPDU: 80 13 01 00 [12:48:51]Write to MH i2c: E2 08 00 E2 19 80 13 01 00 00 00 00 00 78 [12:48:51]Write i2c OK [12:48:51]MH_I2C_Read... [12:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:51]Read from MH i2c: E2 [12:48:51]MH_I2C_Read... [12:48:51]Read from MH i2c: E2 0E 00 [12:48:51]MH_I2C_Read... [12:48:51]Read from MH i2c: E2 0E 00 E2 19 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C7 [12:48:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:48:51]wFMCommunicate OK [12:48:51]SAM_PROTO_GetShiftState done [12:48:51]FM_GetShiftState done [12:48:51]opened in 1718843124 [12:48:51]opened+sec_in_day 1718929524 [12:48:51]quantity*price = 60025 [12:48:51]sum+1 = 60027 [12:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 91 20.06.2024 12:48 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103906 ФПД: 186865197155824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124853&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103906&fm=186865197155824&tin=02508201610067®Number=0000000000092785&sum=60000 [12:48:52]StoreToDocumentArchive [12:48:52]shift 354 fd 103906 [12:48:52]save to /storage/0354/doc_00103906 [12:48:52]save last doc name /storage/0354/doc_00103906 to /storage/kkm_last_doc_name [12:48:52]save OK [12:48:52]Clear old archive folders... [12:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:52]tlvbuf is B6F96AE0 [12:48:52]SAM_PROTO_ClearQueue [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 09 00 00 [12:48:52]Write to MH i2c: E2 08 00 EF 19 80 09 00 00 00 00 00 00 7A [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 EF 19 00 90 00 7C [12:48:52]RAPDU: 90 00 [12:48:52]wFMCommunicate OK [12:48:52]SAM_PROTO_ClearQueue done [12:48:52]KKMCreateOFDPacket [12:48:52]OFDProtocolAddRootSTLVToBuf [12:48:52]FM_MakeSignedData [12:48:52]FM_MakeSignedData [12:48:52]SAM_PROTO_SignData [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 0D 01 02 [12:48:52]Write to MH i2c: E2 08 00 F0 19 80 0D 01 02 00 00 00 00 82 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 F0 19 00 90 00 7D [12:48:52]RAPDU: 90 00 [12:48:52]wFMCommunicate OK [12:48:52]wFMCommunicate request_size=255 [12:48:52]MH_SAM_APDU [12:48: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 35 25 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 95 01 00 35 04 06 00 A9 [12:48:52]Write to MH i2c: E2 02 01 F1 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 35 25 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 95 01 00 35 04 06 00 A9 00 00 2C [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 F1 19 00 90 00 7E [12:48:52]RAPDU: 90 00 [12:48:52]wFMCommunicate OK [12:48:52]wFMCommunicate request_size=10 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 0D 02 02 05 F3 F1 B2 85 F0 [12:48:52]Write to MH i2c: E2 0D 00 F2 19 80 0D 02 02 05 00 F3 F1 B2 85 F0 00 00 9A [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 F2 19 00 90 00 7F [12:48:52]RAPDU: 90 00 [12:48:52]wFMCommunicate OK [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 0D 03 02 [12:48:52]Write to MH i2c: E2 08 00 F3 19 80 0D 03 02 00 00 00 00 87 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 0B 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 0B 00 F3 19 00 7E F2 54 6E 39 7F D2 02 90 00 46 [12:48:52]RAPDU: 7E F2 54 6E 39 7F D2 02 90 00 [12:48:52]wFMCommunicate OK [12:48:52]SAM_PROTO_SignData done [12:48:52]FM_MakeSignedData done [12:48:52]CreateOFDProtocolMessage [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 11 00 00 [12:48:52]Write to MH i2c: E2 08 00 F4 19 80 11 00 00 00 00 00 00 87 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 17 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 17 00 F4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [12:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:48:52]wFMCommunicate OK [12:48:52]CreateOFDProtocolMessage done [12:48:52]OFDSenderStorePacket 103906 [12:48:52]StoreOFDPacket docnum=103906 [12:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 17 4D 07 01 79 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 35 25 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 95 01 00 35 04 06 00 A9 F3 F1 B2 85 F0 7E F2 54 6E 39 7F D2 02 [12:48:52]CheckFolder [12:48:52]dirname=/storage/ofd_packets [12:48:52]CheckFolder done [12:48:52]ProducePacketName [12:48:52]name=ofd_packets/00103906 [12:48:52]NVStorageSaveData ofd_packets/00103906 [12:48:52]File name is /storage/ofd_packets/00103906 [12:48:52]Write 301 bytes [12:48:52]NVStorageSaveData done [12:48:52]OFDSenderStorePacket done [12:48:52]KKMCreateOFDPacket done [12:48:52]NVStorageSaveData kkm_last_timestamp [12:48:52]File name is /storage/kkm_last_timestamp [12:48:52]Write 4 bytes [12:48:52]NVStorageSaveData done [12:48:52]ExternCall_PrintAddStr [12:48:52]wPrintStart [12:48:52]Write to MH i2c: 01 00 00 F5 19 0E [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 07 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 07 00 F5 19 00 00 00 00 00 FF 0F 23 [12:48:52]RasterBufferAndPrint [12:48:52]line Счет N : (1)673248 [12:48:52]line ИНН: 02508201610067 [12:48:52]line Контрольно-Кассовый Чек [12:48:52]line ПРОДАЖА [12:48:52]line ТРК (МРК, ГНК) : 42 [12:48:52]line Товар: 2710124130 [12:48:52]line Аи-92-К-5 [12:48:52]line 9.040 * 66.40 [12:48:52]line = 600.26 [12:48:52]line НДС 12% НСП 1% [12:48:52]line > о реализуемом товаре [12:48:52]line ОКРУГЛЕНИЕ: -0.26 [12:48:52]line ИТОГО: 600.00 [12:48:52]line Внесено: 600.00 [12:48:52]line СДАЧА: 0.00 [12:48:52]line НСП 1% : 5.31 [12:48:52]line НДС 12% : 63.74 [12:48:52]line Наличными: 600.00 [12:48:52]line Безнал.: 0.00 [12:48:52]line Место: АЗС № 120 "Партнер Нефть" [12:48:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:48:52]line СНО: Общий режим [12:48:52]line Чек 91 20.06.2024 12:48 [12:48:52]line Смена: 354 ФФД: 1.0 [12:48:52]line ЗНМ: 0300000164 [12:48:52]line РНМ: 0000000000092785 [12:48:52]line Версия ККМ: 001 [12:48:52]line ФМ: 0000000000875093 [12:48:52]line ФД: 103906 [12:48:52]line ФПД: 186865197155824 [12:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T124853&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103906&fm=186865197155824&tin=02508201610067®Number=0000000000092785&sum=60000 [12:48:53]written 0, free lines is 4095 [12:48:53]OFD Sender: Processing packet 103906 [packets to send 17, broken 16] [12:48:53]ProducePacketName [12:48:53]name=ofd_packets/00103906 [12:48:53]OFD Sender: To server: pG, [12:48:53]CommunicateWithHost lk.salyk.kg:30040 [12:48:53]ConnectInit lk.salyk.kg [12:48:53]Connected sock=10 [12:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 17 4D 07 01 79 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 35 25 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 95 01 00 35 04 06 00 A9 F3 F1 B2 85 F0 7E F2 54 6E 39 7F D2 02 [12:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 36 0C 47 00 97 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E2 95 01 00 F4 03 04 00 BA CB 73 66 B6 04 01 00 00 6E 14 74 8A 4A F2 88 09 [12:48:53]CommunicateWithHost err = 0 [12:48:53]CheckOFDResponse [12:48:53]1017 (14) - 77093643461234 [12:48:53]1041 (16) - 0000000000875093 [12:48:53]1040 (4) - 103906 [12:48:53]1012 (4) - 20.06.2024 06:27 [12:48:53]1206 (1) - 0 [12:48:53]OFD Sender: Remove packet 103906 [12:48:53]ProducePacketName [12:48:53]name=ofd_packets/00103906 [12:48:53]NVStorageDeleteData [12:48:53]Write to MH i2c: 01 00 00 20 1A 3A [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: 01 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: 01 07 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: 01 07 00 20 1A 00 00 00 00 00 F2 0C 3F [12:48:53]RasterBufferAndPrint [12:48:53]line [12:48:53]line [12:48:53]line [12:48:53]line [12:48:53]line [12:48:53]written 0, free lines is 3320 [12:48:53]MH_Cut [12:48:53]Write to MH i2c: D1 01 00 27 1A 01 13 [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: D1 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: D1 01 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: D1 01 00 27 1A 00 12 [12:48:53]Write to MH i2c: 01 00 00 28 1A 42 [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:54]OFD Sender: No OFD packet to send [12:48:54]*** Cut start [12:48:54]*** Partial cut [12:48:54]*** CUTSNS_PIN = 1 [12:48:54]*** CUTSNS_PIN = 0 [12:48:54]*** Brake cut motor [12:48:54]Read from MH i2c: 01 [12:48:54]MH_I2C_Read... [12:48:54]*** Stop cut motor [12:48:54]*** Cut end [12:48:54]Read from MH i2c: 01 07 00 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: 01 07 00 28 1A 00 00 00 00 00 FF 0F 57 [12:48:54]process_action close_receipt done [12:48:54]requested_data is exist [12:48:54]produce_requested_data [12:48:54]requested_item fm.sn is exist - process it [12:48:54]wFMCommunicate request_size=4 [12:48:54]MH_SAM_APDU [12:48:54]CAPDU: 80 11 00 00 [12:48:54]Write to MH i2c: E2 08 00 29 1A 80 11 00 00 00 00 00 00 BD [12:48:54]Write i2c OK [12:48:54]MH_I2C_Read... [12:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:55]Read from MH i2c: E2 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: E2 17 00 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: E2 17 00 29 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 10 [12:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:48:55]wFMCommunicate OK [12:48:55]requested_item fd.num is exist - process it [12:48:55]SAM_PROTO_GetFieldsCounters [12:48:55]wFMCommunicate request_size=4 [12:48:55]MH_SAM_APDU [12:48:55]CAPDU: 80 13 00 00 [12:48:55]Write to MH i2c: E2 08 00 2A 1A 80 13 00 00 00 00 00 00 C0 [12:48:55]Write i2c OK [12:48:55]MH_I2C_Read... [12:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:55]Read from MH i2c: E2 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: E2 62 00 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: E2 62 00 2A 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 95 01 00 0E 04 04 00 62 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 D3 [12:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 95 01 00 0E 04 04 00 62 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:48:55]wFMCommunicate OK [12:48:55]SAM_PROTO_GetFieldsCounters done [12:48:55]requested_item shift.num is exist - process it [12:48:55]requested_item shift.opened is exist - process it [12:48:55]req_shift_opened [12:48:55]FM_GetShiftState [12:48:55]SAM_PROTO_GetShiftState [12:48:55]wFMCommunicate request_size=4 [12:48:55]MH_SAM_APDU [12:48:55]CAPDU: 80 13 01 00 [12:48:55]Write to MH i2c: E2 08 00 2B 1A 80 13 01 00 00 00 00 00 C2 [12:48:55]Write i2c OK [12:48:55]MH_I2C_Read... [12:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:55]Read from MH i2c: E2 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: E2 0E 00 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: E2 0E 00 2B 1A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 11 [12:48:55]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:48:55]wFMCommunicate OK [12:48:55]SAM_PROTO_GetShiftState done [12:48:55]FM_GetShiftState done [12:48:55]req_shift_opened done [12:48:55]requested_item shift.open_date is exist - process it [12:48:55]req_shift_open_date [12:48:55]req_shift_open_date done [12:48:55]produce_requested_data done [12:48:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103906,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:48:55]process_action_free close_receipt [12:48:55]json_value_free [12:48:55]json_value_free done [12:48:55]process_json_proto returns [12:48:55]Send response to host [12:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103906,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:48:55]free response buf [12:48:55]execute_script done [12:48:55]execute_script returns [12:48:55]free content buf [12:48:55]Sock 7.Close socket [12:48:55]Sock 7.Thread stoped [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [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:47]accept exits with 9 [12:51:47]New connection [12:51:47]New thread 3067207012 created [12:51:47]Thread 3067063652 joined [12:51:47]Waiting for new connection... [12:51:47] Sock 9.Parse request [12:51:47]Sock 9.Check first char [12:51:47]Sock 9.First char is OK [12:51:47]request: POST /json_proto HTTP/1.0 [12:51:47]Method: POST [12:51:47]URL: /json_proto [12:51:47]Method is POST - this is cgi request [12:51:47]url: /json_proto [12:51:47]query_string will be loaded in cgi processing [12:51:47]execute_cgi json_proto POST (null) [12:51:47]execute_cgi path=json_proto method=POST [12:51:47]POST find Content-Length [12:51:47]Host: 172.17.38.133:8080 [12:51:47]Content-Length: 1169 [12:51:47]Content-Type: application/json [12:51:47] [12:51:47]POST finish read [12:51:47]Found Content-Length = 1169 [12:51:47]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673249\u000A20.06.2024 12:29\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 15.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30099420\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:47]execute_script... [12:51:47]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673249\u000A20.06.2024 12:29\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 15.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30099420\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:47]POST & json_proto [12:51:47]process_json_proto [12:51:47]json parsed OK: [12:51:47]protocol is kg_v1.0 [12:51:47]action value=print_text [12:51:47]process_action print_text [12:51:47]cmd_print_text [12:51:47]ExternCall_PrintAddStr [12:51:47]wPrintStart [12:51:47]Write to MH i2c: 01 00 00 2C 1A 46 [12:51:47]Write i2c OK [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: 01 [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: 01 07 00 [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: 01 07 00 2C 1A 00 00 00 00 00 FF 0F 5B [12:51:47]RasterBufferAndPrint [12:51:47]line *****ТОВАРНЫЙ ЧЕК***** [12:51:47]line АЗС 120 [12:51:47]line Партнер нефть [12:51:47]line 02508201610067 [12:51:47]line Кассир : Дуйшенбиев А. [12:51:47]line Счет N : (1)673249 [12:51:47]line 20.06.2024 12:29 [12:51:47]line ПРОДАЖА [12:51:47]line ТРК (МРК, ГНК): 42 [12:51:47]line Вид ГСМ : 2710124130 [12:51:47]line Аи-92-К-5 [12:51:47]line 15.070 x 66.40 [12:51:47]line ИТОГ: 1000.65 [12:51:47]line Тип оплаты: Талоны: ТК ГПНА Online [12:51:47]line 30099420 [12:51:47]line ______________________ [12:51:47]line (подпись) [12:51:47]written 0, free lines is 4095 [12:51:47]Write to MH i2c: 01 00 00 40 1A 5A [12:51:47]Write i2c OK [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: 01 [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: 01 07 00 [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: 01 07 00 40 1A 00 00 00 00 00 11 0E 80 [12:51:47]RasterBufferAndPrint [12:51:47]line [12:51:47]line [12:51:47]line [12:51:47]line [12:51:47]line [12:51:47]written 0, free lines is 3603 [12:51:47]MH_Cut [12:51:47]Write to MH i2c: D1 01 00 47 1A 01 33 [12:51:47]Write i2c OK [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: D1 [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: D1 01 00 [12:51:47]MH_I2C_Read... [12:51:47]Read from MH i2c: D1 01 00 47 1A 00 32 [12:51:47]Write to MH i2c: 01 00 00 48 1A 62 [12:51:47]Write i2c OK [12:51:47]MH_I2C_Read... [12:51:48]*** Cut start [12:51:48]*** Partial cut [12:51:48]*** CUTSNS_PIN = 1 [12:51:48]*** CUTSNS_PIN = 0 [12:51:48]*** Brake cut motor [12:51:48]Read from MH i2c: 01 [12:51:48]MH_I2C_Read... [12:51:48]*** Stop cut motor [12:51:48]*** Cut end [12:51:48]Read from MH i2c: 01 07 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: 01 07 00 48 1A 00 00 00 00 00 FF 0F 77 [12:51:48]process_action print_text done [12:51:48]requested_data is exist [12:51:48]produce_requested_data [12:51:48]requested_item fm.sn is exist - process it [12:51:48]wFMCommunicate request_size=4 [12:51:48]MH_SAM_APDU [12:51:48]CAPDU: 80 11 00 00 [12:51:48]Write to MH i2c: E2 08 00 49 1A 80 11 00 00 00 00 00 00 DD [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:48]Read from MH i2c: E2 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 17 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 17 00 49 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 30 [12:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:51:48]wFMCommunicate OK [12:51:48]requested_item fd.num is exist - process it [12:51:48]SAM_PROTO_GetFieldsCounters [12:51:48]wFMCommunicate request_size=4 [12:51:48]MH_SAM_APDU [12:51:48]CAPDU: 80 13 00 00 [12:51:48]Write to MH i2c: E2 08 00 4A 1A 80 13 00 00 00 00 00 00 E0 [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:48]Read from MH i2c: E2 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 62 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 62 00 4A 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 95 01 00 0E 04 04 00 62 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 F3 [12:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 95 01 00 0E 04 04 00 62 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:51:48]wFMCommunicate OK [12:51:48]SAM_PROTO_GetFieldsCounters done [12:51:48]requested_item shift.num is exist - process it [12:51:48]requested_item shift.opened is exist - process it [12:51:48]req_shift_opened [12:51:48]FM_GetShiftState [12:51:48]SAM_PROTO_GetShiftState [12:51:48]wFMCommunicate request_size=4 [12:51:48]MH_SAM_APDU [12:51:48]CAPDU: 80 13 01 00 [12:51:48]Write to MH i2c: E2 08 00 4B 1A 80 13 01 00 00 00 00 00 E2 [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:48]Read from MH i2c: E2 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 0E 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 0E 00 4B 1A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 31 [12:51:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:51:48]wFMCommunicate OK [12:51:48]SAM_PROTO_GetShiftState done [12:51:48]FM_GetShiftState done [12:51:48]req_shift_opened done [12:51:48]requested_item shift.open_date is exist - process it [12:51:48]req_shift_open_date [12:51:48]req_shift_open_date done [12:51:48]produce_requested_data done [12:51:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103906,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:51:48]process_action_free print_text [12:51:48]json_value_free [12:51:48]json_value_free done [12:51:48]process_json_proto returns [12:51:48]Send response to host [12:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103906,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:51:48]free response buf [12:51:48]execute_script done [12:51:48]execute_script returns [12:51:48]free content buf [12:51:48]Sock 9.Close socket [12:51:48]Sock 9.Thread stoped [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:41]accept exits with 7 [12:53:41]New connection [12:53:41]New thread 3067063652 created [12:53:41]Thread 3067207012 joined [12:53:41]Waiting for new connection... [12:53:41] Sock 7.Parse request [12:53:41]Sock 7.Check first char [12:53:41]Sock 7.First char is OK [12:53:41]request: POST /json_proto HTTP/1.0 [12:53:41]Method: POST [12:53:41]URL: /json_proto [12:53:41]Method is POST - this is cgi request [12:53:41]url: /json_proto [12:53:41]query_string will be loaded in cgi processing [12:53:41]execute_cgi json_proto POST (null) [12:53:41]execute_cgi path=json_proto method=POST [12:53:41]POST find Content-Length [12:53:41]Host: 172.17.38.133:8080 [12:53:41]Content-Length: 1169 [12:53:41]Content-Type: application/json [12:53:41] [12:53:41]POST finish read [12:53:41]Found Content-Length = 1169 [12:53: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673250\u000A20.06.2024 12:30\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.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30099420\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:41]execute_script... [12:53: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673250\u000A20.06.2024 12:30\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.070 x 66.40\u000A\u0418\u0422\u041E\u0413: 1000.65\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30099420\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:41]POST & json_proto [12:53:41]process_json_proto [12:53:41]json parsed OK: [12:53:41]protocol is kg_v1.0 [12:53:41]action value=print_text [12:53:41]process_action print_text [12:53:41]cmd_print_text [12:53:41]ExternCall_PrintAddStr [12:53:41]wPrintStart [12:53:41]Write to MH i2c: 01 00 00 4C 1A 66 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: 01 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: 01 07 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: 01 07 00 4C 1A 00 00 00 00 00 FF 0F 7B [12:53:41]RasterBufferAndPrint [12:53:41]line *****ТОВАРНЫЙ ЧЕК***** [12:53:41]line АЗС 120 [12:53:41]line Партнер нефть [12:53:41]line 02508201610067 [12:53:41]line Кассир : Дуйшенбиев А. [12:53:41]line Счет N : (1)673250 [12:53:41]line 20.06.2024 12:30 [12:53:41]line ПРОДАЖА [12:53:41]line ТРК (МРК, ГНК): 32 [12:53:41]line Вид ГСМ : 2710124130 [12:53:41]line Аи-92-К-5 [12:53:41]line 15.070 x 66.40 [12:53:41]line ИТОГ: 1000.65 [12:53:41]line Тип оплаты: Талоны: ТК ГПНА Online [12:53:41]line 30099420 [12:53:41]line ______________________ [12:53:41]line (подпись) [12:53:41]written 0, free lines is 4095 [12:53:41]Write to MH i2c: 01 00 00 60 1A 7A [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: 01 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: 01 07 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: 01 07 00 60 1A 00 00 00 00 00 11 0E A0 [12:53:41]RasterBufferAndPrint [12:53:41]line [12:53:41]line [12:53:41]line [12:53:41]line [12:53:41]line [12:53:41]written 0, free lines is 3603 [12:53:41]MH_Cut [12:53:41]Write to MH i2c: D1 01 00 67 1A 01 53 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: D1 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: D1 01 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: D1 01 00 67 1A 00 52 [12:53:41]Write to MH i2c: 01 00 00 68 1A 82 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:42]*** Cut start [12:53:42]*** Partial cut [12:53:42]*** CUTSNS_PIN = 1 [12:53:42]*** CUTSNS_PIN = 0 [12:53:42]*** Brake cut motor [12:53:42]Read from MH i2c: 01 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: 01 07 00 [12:53:42]MH_I2C_Read... [12:53:42]*** Stop cut motor [12:53:42]*** Cut end [12:53:42]Read from MH i2c: 01 07 00 68 1A 00 00 00 00 00 FF 0F 97 [12:53:42]process_action print_text done [12:53:42]requested_data is exist [12:53:42]produce_requested_data [12:53:42]requested_item fm.sn is exist - process it [12:53:42]wFMCommunicate request_size=4 [12:53:42]MH_SAM_APDU [12:53:42]CAPDU: 80 11 00 00 [12:53:42]Write to MH i2c: E2 08 00 69 1A 80 11 00 00 00 00 00 00 FD [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:42]Read from MH i2c: E2 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: E2 17 00 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: E2 17 00 69 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [12:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:53:42]wFMCommunicate OK [12:53:42]requested_item fd.num is exist - process it [12:53:42]SAM_PROTO_GetFieldsCounters [12:53:42]wFMCommunicate request_size=4 [12:53:42]MH_SAM_APDU [12:53:42]CAPDU: 80 13 00 00 [12:53:42]Write to MH i2c: E2 08 00 6A 1A 80 13 00 00 00 00 00 00 00 [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 62 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 62 00 6A 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 95 01 00 0E 04 04 00 62 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 13 [12:53:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 95 01 00 0E 04 04 00 62 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:53:43]wFMCommunicate OK [12:53:43]SAM_PROTO_GetFieldsCounters done [12:53:43]requested_item shift.num is exist - process it [12:53:43]requested_item shift.opened is exist - process it [12:53:43]req_shift_opened [12:53:43]FM_GetShiftState [12:53:43]SAM_PROTO_GetShiftState [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 13 01 00 [12:53:43]Write to MH i2c: E2 08 00 6B 1A 80 13 01 00 00 00 00 00 02 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 0E 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 0E 00 6B 1A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 51 [12:53:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:53:43]wFMCommunicate OK [12:53:43]SAM_PROTO_GetShiftState done [12:53:43]FM_GetShiftState done [12:53:43]req_shift_opened done [12:53:43]requested_item shift.open_date is exist - process it [12:53:43]req_shift_open_date [12:53:43]req_shift_open_date done [12:53:43]produce_requested_data done [12:53:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103906,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:53:43]process_action_free print_text [12:53:43]json_value_free [12:53:43]json_value_free done [12:53:43]process_json_proto returns [12:53:43]Send response to host [12:53:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103906,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:53:43]free response buf [12:53:43]execute_script done [12:53:43]execute_script returns [12:53:43]free content buf [12:53:43]Sock 7.Close socket [12:53:43]Sock 7.Thread stoped [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:58]accept exits with 9 [12:54:58]New connection [12:54:58]New thread 3067207012 created [12:54:58]Thread 3067063652 joined [12:54:58]Waiting for new connection... [12:54:58] Sock 9.Parse request [12:54:58]Sock 9.Check first char [12:54:58]Sock 9.First char is OK [12:54:58]request: POST /json_proto HTTP/1.0 [12:54:58]Method: POST [12:54:58]URL: /json_proto [12:54:58]Method is POST - this is cgi request [12:54:58]url: /json_proto [12:54:58]query_string will be loaded in cgi processing [12:54:58]execute_cgi json_proto POST (null) [12:54:58]execute_cgi path=json_proto method=POST [12:54:58]POST find Content-Length [12:54:58]Host: 172.17.38.133:8080 [12:54:58]Content-Length: 1213 [12:54:58]Content-Type: application/json [12:54:58] [12:54:58]POST finish read [12:54:58]Found Content-Length = 1213 [12:54: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673251\u000A20.06.2024 12:32\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 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.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\u000A3889043;3889037;3888079\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:58]execute_script... [12:54: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673251\u000A20.06.2024 12:32\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 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.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\u000A3889043;3889037;3888079\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:58]POST & json_proto [12:54:58]process_json_proto [12:54:58]json parsed OK: [12:54:58]protocol is kg_v1.0 [12:54:58]action value=print_text [12:54:58]process_action print_text [12:54:58]cmd_print_text [12:54:58]ExternCall_PrintAddStr [12:54:58]wPrintStart [12:54:58]Write to MH i2c: 01 00 00 6C 1A 86 [12:54:58]Write i2c OK [12:54:58]MH_I2C_Read... [12:54:58]Read from MH i2c: 01 [12:54:58]MH_I2C_Read... [12:54:58]Read from MH i2c: 01 07 00 [12:54:58]MH_I2C_Read... [12:54:58]Read from MH i2c: 01 07 00 6C 1A 00 00 00 00 00 FF 0F 9B [12:54:58]RasterBufferAndPrint [12:54:58]line *****ТОВАРНЫЙ ЧЕК***** [12:54:58]line АЗС 120 [12:54:58]line Партнер нефть [12:54:58]line 02508201610067 [12:54:58]line Кассир : Дуйшенбиев А. [12:54:58]line Счет N : (1)673251 [12:54:58]line 20.06.2024 12:32 [12:54:58]line ПРОДАЖА [12:54:58]line ТРК (МРК, ГНК): 42 [12:54:58]line Вид ГСМ : 2710124130 [12:54:58]line Аи-92-К-5 [12:54:58]line 30.000 x 66.40 [12:54:58]line ИТОГ: 1992.00 [12:54:58]line Тип оплаты: Талоны: Партнер нефть [12:54:58]line 3889043;3889037;3888079 [12:54:58]line ______________________ [12:54:58]line (подпись) [12:54:58]written 0, free lines is 4095 [12:54:58]Write to MH i2c: 01 00 00 80 1A 9A [12:54:58]Write i2c OK [12:54:58]MH_I2C_Read... [12:54:58]Read from MH i2c: 01 [12:54:58]MH_I2C_Read... [12:54:58]Read from MH i2c: 01 07 00 [12:54:58]MH_I2C_Read... [12:54:58]Read from MH i2c: 01 07 00 80 1A 00 00 00 00 00 1E 0E CD [12:54:58]RasterBufferAndPrint [12:54:58]line [12:54:58]line [12:54:58]line [12:54:58]line [12:54:58]line [12:54:58]written 0, free lines is 3616 [12:54:58]MH_Cut [12:54:58]Write to MH i2c: D1 01 00 87 1A 01 73 [12:54:58]Write i2c OK [12:54:58]MH_I2C_Read... [12:54:58]Read from MH i2c: D1 [12:54:58]MH_I2C_Read... [12:54:58]Read from MH i2c: D1 01 00 [12:54:58]MH_I2C_Read... [12:54:58]Read from MH i2c: D1 01 00 87 1A 00 72 [12:54:58]Write to MH i2c: 01 00 00 88 1A A2 [12:54:58]Write i2c OK [12:54:58]MH_I2C_Read... [12:54:59]*** Cut start [12:54:59]*** Partial cut [12:54:59]*** CUTSNS_PIN = 1 [12:54:59]OFD Sender: No OFD packet to send [12:54:59]*** CUTSNS_PIN = 0 [12:54:59]*** Brake cut motor [12:54:59]Read from MH i2c: 01 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: 01 07 00 [12:54:59]MH_I2C_Read... [12:54:59]*** Stop cut motor [12:54:59]*** Cut end [12:54:59]Read from MH i2c: 01 07 00 88 1A 00 00 00 00 00 FF 0F B7 [12:54:59]process_action print_text done [12:54:59]requested_data is exist [12:54:59]produce_requested_data [12:54:59]requested_item fm.sn is exist - process it [12:54:59]wFMCommunicate request_size=4 [12:54:59]MH_SAM_APDU [12:54:59]CAPDU: 80 11 00 00 [12:54:59]Write to MH i2c: E2 08 00 89 1A 80 11 00 00 00 00 00 00 1D [12:54:59]Write i2c OK [12:54:59]MH_I2C_Read... [12:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:59]Read from MH i2c: E2 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: E2 17 00 [12:54:59]MH_I2C_Read... [12:54:59]Read from MH i2c: E2 17 00 89 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [12:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:54:59]wFMCommunicate OK [12:54:59]requested_item fd.num is exist - process it [12:54:59]SAM_PROTO_GetFieldsCounters [12:54:59]wFMCommunicate request_size=4 [12:54:59]MH_SAM_APDU [12:54:59]CAPDU: 80 13 00 00 [12:54:59]Write to MH i2c: E2 08 00 8A 1A 80 13 00 00 00 00 00 00 20 [12:54:59]Write i2c OK [12:54:59]MH_I2C_Read... [12:55:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:00]Read from MH i2c: E2 [12:55:00]MH_I2C_Read... [12:55:00]Read from MH i2c: E2 62 00 [12:55:00]MH_I2C_Read... [12:55:00]Read from MH i2c: E2 62 00 8A 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 95 01 00 0E 04 04 00 62 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 33 [12:55:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E2 95 01 00 0E 04 04 00 62 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:55:00]wFMCommunicate OK [12:55:00]SAM_PROTO_GetFieldsCounters done [12:55:00]requested_item shift.num is exist - process it [12:55:00]requested_item shift.opened is exist - process it [12:55:00]req_shift_opened [12:55:00]FM_GetShiftState [12:55:00]SAM_PROTO_GetShiftState [12:55:00]wFMCommunicate request_size=4 [12:55:00]MH_SAM_APDU [12:55:00]CAPDU: 80 13 01 00 [12:55:00]Write to MH i2c: E2 08 00 8B 1A 80 13 01 00 00 00 00 00 22 [12:55:00]Write i2c OK [12:55:00]MH_I2C_Read... [12:55:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:00]Read from MH i2c: E2 [12:55:00]MH_I2C_Read... [12:55:00]Read from MH i2c: E2 0E 00 [12:55:00]MH_I2C_Read... [12:55:00]Read from MH i2c: E2 0E 00 8B 1A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 71 [12:55:00]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:55:00]wFMCommunicate OK [12:55:00]SAM_PROTO_GetShiftState done [12:55:00]FM_GetShiftState done [12:55:00]req_shift_opened done [12:55:00]requested_item shift.open_date is exist - process it [12:55:00]req_shift_open_date [12:55:00]req_shift_open_date done [12:55:00]produce_requested_data done [12:55:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103906,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:55:00]process_action_free print_text [12:55:00]json_value_free [12:55:00]json_value_free done [12:55:00]process_json_proto returns [12:55:00]Send response to host [12:55:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103906,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:55:00]free response buf [12:55:00]execute_script done [12:55:00]execute_script returns [12:55:00]free content buf [12:55:00]Sock 9.Close socket [12:55:00]Sock 9.Thread stoped [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:36]accept exits with 7 [12:55:36]New connection [12:55:36]New thread 3067063652 created [12:55:36]Thread 3067207012 joined [12:55:36]Waiting for new connection... [12:55:36] Sock 7.Parse request [12:55:36]Sock 7.Check first char [12:55:36]Sock 7.First char is OK [12:55:36]request: POST /json_proto HTTP/1.0 [12:55:36]Method: POST [12:55:36]URL: /json_proto [12:55:36]Method is POST - this is cgi request [12:55:36]url: /json_proto [12:55:36]query_string will be loaded in cgi processing [12:55:36]execute_cgi json_proto POST (null) [12:55:36]execute_cgi path=json_proto method=POST [12:55:36]POST find Content-Length [12:55:36]Host: 172.17.38.133:8080 [12:55:36]Content-Length: 678 [12:55:36]Content-Type: application/json [12:55:36] [12:55:36]POST finish read [12:55:36]Found Content-Length = 678 [12:55:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:36]execute_script... [12:55: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)673252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:36]POST & json_proto [12:55:36]process_json_proto [12:55:36]json parsed OK: [12:55:36]protocol is kg_v1.0 [12:55:36]action value=close_receipt [12:55:36]process_action close_receipt [12:55:36]cmd_close_receipt [12:55:36]MH_GetDate [12:55:36]Write to MH i2c: F0 00 00 8C 1A 95 [12:55:36]Write i2c OK [12:55:36]MH_I2C_Read... [12:55:36]Read from MH i2c: F0 [12:55:36]MH_I2C_Read... [12:55:36]Read from MH i2c: F0 09 00 [12:55:36]MH_I2C_Read... [12:55:36]Read from MH i2c: F0 09 00 8C 1A 00 CA 26 74 66 BD 8F 7C 64 94 [12:55:36]GetLastDocTimeStamp 1718887733 [12:55:36]current date 1718888138 [12:55:36]FM_GetShiftState [12:55:36]SAM_PROTO_GetShiftState [12:55:36]wFMCommunicate request_size=4 [12:55:36]MH_SAM_APDU [12:55:36]CAPDU: 80 13 01 00 [12:55:36]Write to MH i2c: E2 08 00 8D 1A 80 13 01 00 00 00 00 00 24 [12:55:36]Write i2c OK [12:55:36]MH_I2C_Read... [12:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:36]Read from MH i2c: E2 [12:55:36]MH_I2C_Read... [12:55:36]Read from MH i2c: E2 0E 00 [12:55:36]MH_I2C_Read... [12:55:36]Read from MH i2c: E2 0E 00 8D 1A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 73 [12:55:36]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:55:36]wFMCommunicate OK [12:55:36]SAM_PROTO_GetShiftState done [12:55:36]FM_GetShiftState done [12:55:36]opened in 1718843124 [12:55:36]opened+sec_in_day 1718929524 [12:55:36]quantity*price = 70052 [12:55:36]sum+1 = 70053 [12:55:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 92 20.06.2024 12:55 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103907 ФПД: 30971814328069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103907&fm=30971814328069&tin=02508201610067®Number=0000000000092785&sum=70000 [12:55:37]StoreToDocumentArchive [12:55:37]shift 354 fd 103907 [12:55:37]save to /storage/0354/doc_00103907 [12:55:37]save last doc name /storage/0354/doc_00103907 to /storage/kkm_last_doc_name [12:55:37]save OK [12:55:37]Clear old archive folders... [12:55:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:37]tlvbuf is 0089BE20 [12:55:37]SAM_PROTO_ClearQueue [12:55:37]wFMCommunicate request_size=4 [12:55:37]MH_SAM_APDU [12:55:37]CAPDU: 80 09 00 00 [12:55:37]Write to MH i2c: E2 08 00 9A 1A 80 09 00 00 00 00 00 00 26 [12:55:37]Write i2c OK [12:55:37]MH_I2C_Read... [12:55:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:37]Read from MH i2c: E2 [12:55:37]MH_I2C_Read... [12:55:37]Read from MH i2c: E2 03 00 [12:55:37]MH_I2C_Read... [12:55:37]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [12:55:37]RAPDU: 90 00 [12:55:37]wFMCommunicate OK [12:55:37]SAM_PROTO_ClearQueue done [12:55:37]KKMCreateOFDPacket [12:55:37]OFDProtocolAddRootSTLVToBuf [12:55:37]FM_MakeSignedData [12:55:37]FM_MakeSignedData [12:55:37]SAM_PROTO_SignData [12:55:37]wFMCommunicate request_size=4 [12:55:37]MH_SAM_APDU [12:55:37]CAPDU: 80 0D 01 02 [12:55:37]Write to MH i2c: E2 08 00 9B 1A 80 0D 01 02 00 00 00 00 2E [12:55:37]Write i2c OK [12:55:37]MH_I2C_Read... [12:55:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:37]Read from MH i2c: E2 [12:55:37]MH_I2C_Read... [12:55:37]Read from MH i2c: E2 03 00 [12:55:37]MH_I2C_Read... [12:55:37]Read from MH i2c: E2 03 00 9B 1A 00 90 00 29 [12:55:37]RAPDU: 90 00 [12:55:37]wFMCommunicate OK [12:55:37]wFMCommunicate request_size=255 [12:55:37]MH_SAM_APDU [12:55: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 5C 00 00 00 F4 03 04 00 CA 26 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 95 01 00 35 04 06 00 1C [12:55:37]Write to MH i2c: E2 02 01 9C 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 5C 00 00 00 F4 03 04 00 CA 26 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 95 01 00 35 04 06 00 1C 00 00 18 [12:55:37]Write i2c OK [12:55:37]MH_I2C_Read... [12:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:37]Read from MH i2c: E2 [12:55:37]MH_I2C_Read... [12:55:37]Read from MH i2c: E2 03 00 [12:55:37]MH_I2C_Read... [12:55:37]Read from MH i2c: E2 03 00 9C 1A 00 90 00 2A [12:55:37]RAPDU: 90 00 [12:55:37]wFMCommunicate OK [12:55:37]wFMCommunicate request_size=10 [12:55:37]MH_SAM_APDU [12:55:37]CAPDU: 80 0D 02 02 05 2B 2F FD B7 05 [12:55:37]Write to MH i2c: E2 0D 00 9D 1A 80 0D 02 02 05 00 2B 2F FD B7 05 00 00 4E [12:55:37]Write i2c OK [12:55:37]MH_I2C_Read... [12:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:37]Read from MH i2c: E2 [12:55:37]MH_I2C_Read... [12:55:37]Read from MH i2c: E2 03 00 [12:55:37]MH_I2C_Read... [12:55:37]Read from MH i2c: E2 03 00 9D 1A 00 90 00 2B [12:55:37]RAPDU: 90 00 [12:55:37]wFMCommunicate OK [12:55:37]wFMCommunicate request_size=4 [12:55:37]MH_SAM_APDU [12:55:37]CAPDU: 80 0D 03 02 [12:55:37]Write to MH i2c: E2 08 00 9E 1A 80 0D 03 02 00 00 00 00 33 [12:55:37]Write i2c OK [12:55:37]MH_I2C_Read... [12:55:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:38]Read from MH i2c: E2 [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: E2 0B 00 [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: E2 0B 00 9E 1A 00 52 BC EF AC E3 30 27 93 90 00 AA [12:55:38]RAPDU: 52 BC EF AC E3 30 27 93 90 00 [12:55:38]wFMCommunicate OK [12:55:38]SAM_PROTO_SignData done [12:55:38]FM_MakeSignedData done [12:55:38]CreateOFDProtocolMessage [12:55:38]wFMCommunicate request_size=4 [12:55:38]MH_SAM_APDU [12:55:38]CAPDU: 80 11 00 00 [12:55:38]Write to MH i2c: E2 08 00 9F 1A 80 11 00 00 00 00 00 00 33 [12:55:38]Write i2c OK [12:55:38]MH_I2C_Read... [12:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:38]Read from MH i2c: E2 [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: E2 17 00 [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: E2 17 00 9F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [12:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:55:38]wFMCommunicate OK [12:55:38]CreateOFDProtocolMessage done [12:55:38]OFDSenderStorePacket 103907 [12:55:38]StoreOFDPacket docnum=103907 [12:55:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FD 38 07 01 6D 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 5C 00 00 00 F4 03 04 00 CA 26 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 95 01 00 35 04 06 00 1C 2B 2F FD B7 05 52 BC EF AC E3 30 27 93 [12:55:38]CheckFolder [12:55:38]dirname=/storage/ofd_packets [12:55:38]CheckFolder done [12:55:38]ProducePacketName [12:55:38]name=ofd_packets/00103907 [12:55:38]NVStorageSaveData ofd_packets/00103907 [12:55:38]File name is /storage/ofd_packets/00103907 [12:55:38]Write 301 bytes [12:55:38]NVStorageSaveData done [12:55:38]OFDSenderStorePacket done [12:55:38]KKMCreateOFDPacket done [12:55:38]NVStorageSaveData kkm_last_timestamp [12:55:38]File name is /storage/kkm_last_timestamp [12:55:38]Write 4 bytes [12:55:38]NVStorageSaveData done [12:55:38]ExternCall_PrintAddStr [12:55:38]wPrintStart [12:55:38]Write to MH i2c: 01 00 00 A0 1A BA [12:55:38]Write i2c OK [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: 01 [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: 01 07 00 [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: 01 07 00 A0 1A 00 00 00 00 00 FF 0F CF [12:55:38]RasterBufferAndPrint [12:55:38]line Счет N : (1)673252 [12:55:38]line ИНН: 02508201610067 [12:55:38]line Контрольно-Кассовый Чек [12:55:38]line ПРОДАЖА [12:55:38]line ТРК (МРК, ГНК) : 32 [12:55:38]line Товар: 2710124130 [12:55:38]line Аи-92-К-5 [12:55:38]line 10.550 * 66.40 [12:55:38]line = 700.52 [12:55:38]line НДС 12% НСП 1% [12:55:38]line > о реализуемом товаре [12:55:38]line ОКРУГЛЕНИЕ: -0.52 [12:55:38]line ИТОГО: 700.00 [12:55:38]line Внесено: 700.00 [12:55:38]line СДАЧА: 0.00 [12:55:38]line НСП 1% : 6.20 [12:55:38]line НДС 12% : 74.39 [12:55:38]line Наличными: 700.00 [12:55:38]line Безнал.: 0.00 [12:55:38]line Место: АЗС № 120 "Партнер Нефть" [12:55:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:55:38]line СНО: Общий режим [12:55:38]line Чек 92 20.06.2024 12:55 [12:55:38]line Смена: 354 ФФД: 1.0 [12:55:38]line ЗНМ: 0300000164 [12:55:38]line РНМ: 0000000000092785 [12:55:38]line Версия ККМ: 001 [12:55:38]line ФМ: 0000000000875093 [12:55:38]line ФД: 103907 [12:55:38]line ФПД: 30971814328069 [12:55:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103907&fm=30971814328069&tin=02508201610067®Number=0000000000092785&sum=70000 [12:55:38]written 0, free lines is 4095 [12:55:38]OFD Sender: Processing packet 103907 [packets to send 17, broken 16] [12:55:38]ProducePacketName [12:55:38]name=ofd_packets/00103907 [12:55:38]OFD Sender: To server: pG, [12:55:38]CommunicateWithHost lk.salyk.kg:30040 [12:55:38]ConnectInit lk.salyk.kg [12:55:38]Connected sock=10 [12:55:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FD 38 07 01 6D 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 5C 00 00 00 F4 03 04 00 CA 26 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 95 01 00 35 04 06 00 1C 2B 2F FD B7 05 52 BC EF AC E3 30 27 93 [12:55:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9C A3 47 00 2C 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E3 95 01 00 F4 03 04 00 4F CD 73 66 B6 04 01 00 00 97 F1 16 B9 E1 5A 31 3E [12:55:38]CommunicateWithHost err = 0 [12:55:38]CheckOFDResponse [12:55:38]1017 (14) - 77093643461234 [12:55:38]1041 (16) - 0000000000875093 [12:55:38]1040 (4) - 103907 [12:55:38]1012 (4) - 20.06.2024 06:33 [12:55:38]1206 (1) - 0 [12:55:38]OFD Sender: Remove packet 103907 [12:55:38]ProducePacketName [12:55:38]name=ofd_packets/00103907 [12:55:38]NVStorageDeleteData [12:55:38]Write to MH i2c: 01 00 00 CB 1A E5 [12:55:38]Write i2c OK [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: 01 [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: 01 07 00 [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: 01 07 00 CB 1A 00 00 00 00 00 D9 0C D1 [12:55:38]RasterBufferAndPrint [12:55:38]line [12:55:38]line [12:55:38]line [12:55:38]line [12:55:38]line [12:55:38]written 0, free lines is 3296 [12:55:38]MH_Cut [12:55:38]Write to MH i2c: D1 01 00 D2 1A 01 BE [12:55:38]Write i2c OK [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: D1 [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: D1 01 00 [12:55:38]MH_I2C_Read... [12:55:38]Read from MH i2c: D1 01 00 D2 1A 00 BD [12:55:38]Write to MH i2c: 01 00 00 D3 1A ED [12:55:38]Write i2c OK [12:55:38]MH_I2C_Read... [12:55:39]OFD Sender: No OFD packet to send [12:55:39]*** Cut start [12:55:39]*** Partial cut [12:55:39]*** CUTSNS_PIN = 1 [12:55:39]*** CUTSNS_PIN = 0 [12:55:39]*** Brake cut motor [12:55:40]Read from MH i2c: 01 [12:55:40]MH_I2C_Read... [12:55:40]*** Stop cut motor [12:55:40]*** Cut end [12:55:40]Read from MH i2c: 01 07 00 [12:55:40]MH_I2C_Read... [12:55:40]Read from MH i2c: 01 07 00 D3 1A 00 00 00 00 00 FF 0F 02 [12:55:40]process_action close_receipt done [12:55:40]requested_data is exist [12:55:40]produce_requested_data [12:55:40]requested_item fm.sn is exist - process it [12:55:40]wFMCommunicate request_size=4 [12:55:40]MH_SAM_APDU [12:55:40]CAPDU: 80 11 00 00 [12:55:40]Write to MH i2c: E2 08 00 D4 1A 80 11 00 00 00 00 00 00 68 [12:55:40]Write i2c OK [12:55:40]MH_I2C_Read... [12:55:40]Read from MH i2c: E2 [12:55:40]MH_I2C_Read... [12:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:40]Read from MH i2c: E2 17 00 [12:55:40]MH_I2C_Read... [12:55:40]Read from MH i2c: E2 17 00 D4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [12:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:55:40]wFMCommunicate OK [12:55:40]requested_item fd.num is exist - process it [12:55:40]SAM_PROTO_GetFieldsCounters [12:55:40]wFMCommunicate request_size=4 [12:55:40]MH_SAM_APDU [12:55:40]CAPDU: 80 13 00 00 [12:55:40]Write to MH i2c: E2 08 00 D5 1A 80 13 00 00 00 00 00 00 6B [12:55:40]Write i2c OK [12:55:40]MH_I2C_Read... [12:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:40]Read from MH i2c: E2 [12:55:40]MH_I2C_Read... [12:55:40]Read from MH i2c: E2 62 00 [12:55:40]MH_I2C_Read... [12:55:40]Read from MH i2c: E2 62 00 D5 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E3 95 01 00 0E 04 04 00 62 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 82 [12:55:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E3 95 01 00 0E 04 04 00 62 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:55:40]wFMCommunicate OK [12:55:40]SAM_PROTO_GetFieldsCounters done [12:55:40]requested_item shift.num is exist - process it [12:55:40]requested_item shift.opened is exist - process it [12:55:40]req_shift_opened [12:55:40]FM_GetShiftState [12:55:40]SAM_PROTO_GetShiftState [12:55:40]wFMCommunicate request_size=4 [12:55:40]MH_SAM_APDU [12:55:40]CAPDU: 80 13 01 00 [12:55:40]Write to MH i2c: E2 08 00 D6 1A 80 13 01 00 00 00 00 00 6D [12:55:40]Write i2c OK [12:55:40]MH_I2C_Read... [12:55:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:40]Read from MH i2c: E2 [12:55:40]MH_I2C_Read... [12:55:40]Read from MH i2c: E2 0E 00 [12:55:40]MH_I2C_Read... [12:55:40]Read from MH i2c: E2 0E 00 D6 1A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BC [12:55:40]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:55:40]wFMCommunicate OK [12:55:40]SAM_PROTO_GetShiftState done [12:55:40]FM_GetShiftState done [12:55:40]req_shift_opened done [12:55:40]requested_item shift.open_date is exist - process it [12:55:40]req_shift_open_date [12:55:40]req_shift_open_date done [12:55:40]produce_requested_data done [12:55:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103907,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:55:40]process_action_free close_receipt [12:55:40]json_value_free [12:55:40]json_value_free done [12:55:40]process_json_proto returns [12:55:40]Send response to host [12:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103907,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:55:40]free response buf [12:55:40]execute_script done [12:55:40]execute_script returns [12:55:40]free content buf [12:55:40]Sock 7.Close socket [12:55:40]Sock 7.Thread stoped [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:10]accept exits with 9 [12:57:10]New connection [12:57:10]New thread 3067207012 created [12:57:10]Thread 3067063652 joined [12:57:10]Waiting for new connection... [12:57:10] Sock 9.Parse request [12:57:10]Sock 9.Check first char [12:57:10]Sock 9.First char is OK [12:57:10]request: POST /json_proto HTTP/1.0 [12:57:10]Method: POST [12:57:10]URL: /json_proto [12:57:10]Method is POST - this is cgi request [12:57:10]url: /json_proto [12:57:10]query_string will be loaded in cgi processing [12:57:10]execute_cgi json_proto POST (null) [12:57:10]execute_cgi path=json_proto method=POST [12:57:10]POST find Content-Length [12:57:10]Host: 172.17.38.133:8080 [12:57:10]Content-Length: 677 [12:57:10]Content-Type: application/json [12:57:10] [12:57:10]POST finish read [12:57:10]Found Content-Length = 677 [12:57:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:10]execute_script... [12:57: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)673253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:10]POST & json_proto [12:57:10]process_json_proto [12:57:10]json parsed OK: [12:57:10]protocol is kg_v1.0 [12:57:10]action value=close_receipt [12:57:10]process_action close_receipt [12:57:10]cmd_close_receipt [12:57:10]MH_GetDate [12:57:10]Write to MH i2c: F0 00 00 D7 1A E0 [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: F0 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: F0 09 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: F0 09 00 D7 1A 00 28 27 74 66 BD 8F 7C 64 3E [12:57:10]GetLastDocTimeStamp 1718888138 [12:57:10]current date 1718888232 [12:57:10]FM_GetShiftState [12:57:10]SAM_PROTO_GetShiftState [12:57:10]wFMCommunicate request_size=4 [12:57:10]MH_SAM_APDU [12:57:10]CAPDU: 80 13 01 00 [12:57:10]Write to MH i2c: E2 08 00 D8 1A 80 13 01 00 00 00 00 00 6F [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:10]Read from MH i2c: E2 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 0E 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 0E 00 D8 1A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BE [12:57:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:57:10]wFMCommunicate OK [12:57:10]SAM_PROTO_GetShiftState done [12:57:10]FM_GetShiftState done [12:57:10]opened in 1718843124 [12:57:10]opened+sec_in_day 1718929524 [12:57:10]quantity*price = 50065 [12:57:10]sum+1 = 50067 [12:57:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 93 20.06.2024 12:57 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103908 ФПД: 105463285814633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125712&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103908&fm=105463285814633&tin=02508201610067®Number=0000000000092785&sum=50000 [12:57:11]StoreToDocumentArchive [12:57:11]shift 354 fd 103908 [12:57:11]save to /storage/0354/doc_00103908 [12:57:11]save last doc name /storage/0354/doc_00103908 to /storage/kkm_last_doc_name [12:57:11]save OK [12:57:11]Clear old archive folders... [12:57:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:11]tlvbuf is B6F18EE0 [12:57:11]SAM_PROTO_ClearQueue [12:57:11]wFMCommunicate request_size=4 [12:57:11]MH_SAM_APDU [12:57:11]CAPDU: 80 09 00 00 [12:57:11]Write to MH i2c: E2 08 00 E5 1A 80 09 00 00 00 00 00 00 71 [12:57:11]Write i2c OK [12:57:11]MH_I2C_Read... [12:57:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:11]Read from MH i2c: E2 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: E2 03 00 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [12:57:11]RAPDU: 90 00 [12:57:11]wFMCommunicate OK [12:57:11]SAM_PROTO_ClearQueue done [12:57:11]KKMCreateOFDPacket [12:57:11]OFDProtocolAddRootSTLVToBuf [12:57:11]FM_MakeSignedData [12:57:11]FM_MakeSignedData [12:57:11]SAM_PROTO_SignData [12:57:11]wFMCommunicate request_size=4 [12:57:11]MH_SAM_APDU [12:57:11]CAPDU: 80 0D 01 02 [12:57:11]Write to MH i2c: E2 08 00 E6 1A 80 0D 01 02 00 00 00 00 79 [12:57:11]Write i2c OK [12:57:11]MH_I2C_Read... [12:57:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:11]Read from MH i2c: E2 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: E2 03 00 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: E2 03 00 E6 1A 00 90 00 74 [12:57:11]RAPDU: 90 00 [12:57:11]wFMCommunicate OK [12:57:11]wFMCommunicate request_size=255 [12:57:11]MH_SAM_APDU [12:57: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 28 27 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 95 01 00 35 04 06 00 5F [12:57:11]Write to MH i2c: E2 02 01 E7 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 28 27 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 95 01 00 35 04 06 00 5F 00 00 F5 [12:57:11]Write i2c OK [12:57:11]MH_I2C_Read... [12:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:12]Read from MH i2c: E2 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: E2 03 00 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [12:57:12]RAPDU: 90 00 [12:57:12]wFMCommunicate OK [12:57:12]wFMCommunicate request_size=10 [12:57:12]MH_SAM_APDU [12:57:12]CAPDU: 80 0D 02 02 05 EB 15 B0 15 69 [12:57:12]Write to MH i2c: E2 0D 00 E8 1A 80 0D 02 02 05 00 EB 15 B0 15 69 00 00 B4 [12:57:12]Write i2c OK [12:57:12]MH_I2C_Read... [12:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:12]Read from MH i2c: E2 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: E2 03 00 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: E2 03 00 E8 1A 00 90 00 76 [12:57:12]RAPDU: 90 00 [12:57:12]wFMCommunicate OK [12:57:12]wFMCommunicate request_size=4 [12:57:12]MH_SAM_APDU [12:57:12]CAPDU: 80 0D 03 02 [12:57:12]Write to MH i2c: E2 08 00 E9 1A 80 0D 03 02 00 00 00 00 7E [12:57:12]Write i2c OK [12:57:12]MH_I2C_Read... [12:57:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:12]Read from MH i2c: E2 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: E2 0B 00 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: E2 0B 00 E9 1A 00 38 16 56 44 6F C7 46 4A 90 00 2D [12:57:12]RAPDU: 38 16 56 44 6F C7 46 4A 90 00 [12:57:12]wFMCommunicate OK [12:57:12]SAM_PROTO_SignData done [12:57:12]FM_MakeSignedData done [12:57:12]CreateOFDProtocolMessage [12:57:12]wFMCommunicate request_size=4 [12:57:12]MH_SAM_APDU [12:57:12]CAPDU: 80 11 00 00 [12:57:12]Write to MH i2c: E2 08 00 EA 1A 80 11 00 00 00 00 00 00 7E [12:57:12]Write i2c OK [12:57:12]MH_I2C_Read... [12:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:12]Read from MH i2c: E2 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: E2 17 00 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: E2 17 00 EA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D1 [12:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:57:12]wFMCommunicate OK [12:57:12]CreateOFDProtocolMessage done [12:57:12]OFDSenderStorePacket 103908 [12:57:12]StoreOFDPacket docnum=103908 [12:57:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9E EC 07 01 76 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 28 27 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 95 01 00 35 04 06 00 5F EB 15 B0 15 69 38 16 56 44 6F C7 46 4A [12:57:12]CheckFolder [12:57:12]dirname=/storage/ofd_packets [12:57:12]CheckFolder done [12:57:12]ProducePacketName [12:57:12]name=ofd_packets/00103908 [12:57:12]NVStorageSaveData ofd_packets/00103908 [12:57:12]File name is /storage/ofd_packets/00103908 [12:57:12]Write 301 bytes [12:57:12]NVStorageSaveData done [12:57:12]OFDSenderStorePacket done [12:57:12]KKMCreateOFDPacket done [12:57:12]NVStorageSaveData kkm_last_timestamp [12:57:12]File name is /storage/kkm_last_timestamp [12:57:12]Write 4 bytes [12:57:12]NVStorageSaveData done [12:57:12]ExternCall_PrintAddStr [12:57:12]wPrintStart [12:57:12]Write to MH i2c: 01 00 00 EB 1A 05 [12:57:12]Write i2c OK [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: 01 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: 01 07 00 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: 01 07 00 EB 1A 00 00 00 00 00 FF 0F 1A [12:57:12]RasterBufferAndPrint [12:57:12]line Счет N : (1)673253 [12:57:12]line ИНН: 02508201610067 [12:57:12]line Контрольно-Кассовый Чек [12:57:12]line ПРОДАЖА [12:57:12]line ТРК (МРК, ГНК) : 32 [12:57:12]line Товар: 2710124130 [12:57:12]line Аи-92-К-5 [12:57:12]line 7.540 * 66.40 [12:57:12]line = 500.66 [12:57:12]line НДС 12% НСП 1% [12:57:12]line > о реализуемом товаре [12:57:12]line ОКРУГЛЕНИЕ: -0.66 [12:57:12]line ИТОГО: 500.00 [12:57:12]line Внесено: 500.00 [12:57:12]line СДАЧА: 0.00 [12:57:12]line НСП 1% : 4.43 [12:57:12]line НДС 12% : 53.17 [12:57:12]line Наличными: 500.00 [12:57:12]line Безнал.: 0.00 [12:57:12]line Место: АЗС № 120 "Партнер Нефть" [12:57:12]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:57:12]line СНО: Общий режим [12:57:12]line Чек 93 20.06.2024 12:57 [12:57:12]line Смена: 354 ФФД: 1.0 [12:57:12]line ЗНМ: 0300000164 [12:57:12]line РНМ: 0000000000092785 [12:57:12]line Версия ККМ: 001 [12:57:12]line ФМ: 0000000000875093 [12:57:12]line ФД: 103908 [12:57:12]line ФПД: 105463285814633 [12:57:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125712&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103908&fm=105463285814633&tin=02508201610067®Number=0000000000092785&sum=50000 [12:57:12]written 0, free lines is 4095 [12:57:12]OFD Sender: Processing packet 103908 [packets to send 17, broken 16] [12:57:12]ProducePacketName [12:57:12]name=ofd_packets/00103908 [12:57:12]OFD Sender: To server: pG, [12:57:12]CommunicateWithHost lk.salyk.kg:30040 [12:57:12]ConnectInit lk.salyk.kg [12:57:12]Connected sock=10 [12:57:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9E EC 07 01 76 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 28 27 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E4 95 01 00 35 04 06 00 5F EB 15 B0 15 69 38 16 56 44 6F C7 46 4A [12:57:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 84 2E 47 00 C8 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 35 30 39 33 10 04 04 00 E4 95 01 00 F4 03 04 00 AE CD 73 66 B6 04 01 00 00 DB 64 75 F6 46 E1 B9 16 [12:57:13]CommunicateWithHost err = 0 [12:57:13]CheckOFDResponse [12:57:13]1017 (14) - 77093643461234 [12:57:13]1041 (16) - 0000000000875093 [12:57:13]1040 (4) - 103908 [12:57:13]1012 (4) - 20.06.2024 06:35 [12:57:13]1206 (1) - 0 [12:57:13]OFD Sender: Remove packet 103908 [12:57:13]ProducePacketName [12:57:13]name=ofd_packets/00103908 [12:57:13]NVStorageDeleteData [12:57:13]Write to MH i2c: 01 00 00 16 1B 31 [12:57:13]Write i2c OK [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: 01 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: 01 07 00 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: 01 07 00 16 1B 00 00 00 00 00 D4 0C 18 [12:57:13]RasterBufferAndPrint [12:57:13]line [12:57:13]line [12:57:13]line [12:57:13]line [12:57:13]line [12:57:13]written 0, free lines is 3292 [12:57:13]MH_Cut [12:57:13]Write to MH i2c: D1 01 00 1D 1B 01 0A [12:57:13]Write i2c OK [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: D1 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: D1 01 00 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: D1 01 00 1D 1B 00 09 [12:57:13]Write to MH i2c: 01 00 00 1E 1B 39 [12:57:13]Write i2c OK [12:57:13]MH_I2C_Read... [12:57:13]OFD Sender: No OFD packet to send [12:57:13]*** Cut start [12:57:13]*** Partial cut [12:57:13]*** CUTSNS_PIN = 1 [12:57:13]*** CUTSNS_PIN = 0 [12:57:14]*** Brake cut motor [12:57:14]Read from MH i2c: 01 [12:57:14]MH_I2C_Read... [12:57:14]*** Stop cut motor [12:57:14]*** Cut end [12:57:14]Read from MH i2c: 01 07 00 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: 01 07 00 1E 1B 00 00 00 00 00 FF 0F 4E [12:57:14]process_action close_receipt done [12:57:14]requested_data is exist [12:57:14]produce_requested_data [12:57:14]requested_item fm.sn is exist - process it [12:57:14]wFMCommunicate request_size=4 [12:57:14]MH_SAM_APDU [12:57:14]CAPDU: 80 11 00 00 [12:57:14]Write to MH i2c: E2 08 00 1F 1B 80 11 00 00 00 00 00 00 B4 [12:57:14]Write i2c OK [12:57:14]MH_I2C_Read... [12:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:14]Read from MH i2c: E2 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: E2 17 00 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: E2 17 00 1F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [12:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:57:14]wFMCommunicate OK [12:57:14]requested_item fd.num is exist - process it [12:57:14]SAM_PROTO_GetFieldsCounters [12:57:14]wFMCommunicate request_size=4 [12:57:14]MH_SAM_APDU [12:57:14]CAPDU: 80 13 00 00 [12:57:14]Write to MH i2c: E2 08 00 20 1B 80 13 00 00 00 00 00 00 B7 [12:57:14]Write i2c OK [12:57:14]MH_I2C_Read... [12:57:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:14]Read from MH i2c: E2 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: E2 62 00 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: E2 62 00 20 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E4 95 01 00 0E 04 04 00 62 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 D2 [12:57:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E4 95 01 00 0E 04 04 00 62 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:57:14]wFMCommunicate OK [12:57:14]SAM_PROTO_GetFieldsCounters done [12:57:14]requested_item shift.num is exist - process it [12:57:14]requested_item shift.opened is exist - process it [12:57:14]req_shift_opened [12:57:14]FM_GetShiftState [12:57:14]SAM_PROTO_GetShiftState [12:57:14]wFMCommunicate request_size=4 [12:57:14]MH_SAM_APDU [12:57:14]CAPDU: 80 13 01 00 [12:57:14]Write to MH i2c: E2 08 00 21 1B 80 13 01 00 00 00 00 00 B9 [12:57:14]Write i2c OK [12:57:14]MH_I2C_Read... [12:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:14]Read from MH i2c: E2 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: E2 0E 00 [12:57:14]MH_I2C_Read... [12:57:14]Read from MH i2c: E2 0E 00 21 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 08 [12:57:14]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:57:14]wFMCommunicate OK [12:57:14]SAM_PROTO_GetShiftState done [12:57:14]FM_GetShiftState done [12:57:14]req_shift_opened done [12:57:14]requested_item shift.open_date is exist - process it [12:57:14]req_shift_open_date [12:57:14]req_shift_open_date done [12:57:14]produce_requested_data done [12:57:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103908,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:57:14]process_action_free close_receipt [12:57:14]json_value_free [12:57:14]json_value_free done [12:57:14]process_json_proto returns [12:57:14]Send response to host [12:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103908,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:57:14]free response buf [12:57:14]execute_script done [12:57:14]execute_script returns [12:57:14]free content buf [12:57:14]Sock 9.Close socket [12:57:14]Sock 9.Thread stoped [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:18]accept exits with 7 [12:58:18]New connection [12:58:18]New thread 3067063652 created [12:58:18]Thread 3067207012 joined [12:58:18]Waiting for new connection... [12:58:18] Sock 7.Parse request [12:58:18]Sock 7.Check first char [12:58:18]Sock 7.First char is OK [12:58:18]request: POST /json_proto HTTP/1.0 [12:58:18]Method: POST [12:58:18]URL: /json_proto [12:58:18]Method is POST - this is cgi request [12:58:18]url: /json_proto [12:58:18]query_string will be loaded in cgi processing [12:58:18]execute_cgi json_proto POST (null) [12:58:18]execute_cgi path=json_proto method=POST [12:58:18]POST find Content-Length [12:58:18]Host: 172.17.38.133:8080 [12:58:18]Content-Length: 682 [12:58:18]Content-Type: application/json [12:58:18] [12:58:18]POST finish read [12:58:18]Found Content-Length = 682 [12:58:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:58:18]execute_script... [12:58:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:58:18]POST & json_proto [12:58:18]process_json_proto [12:58:18]json parsed OK: [12:58:18]protocol is kg_v1.0 [12:58:18]action value=close_receipt [12:58:18]process_action close_receipt [12:58:18]cmd_close_receipt [12:58:18]MH_GetDate [12:58:18]Write to MH i2c: F0 00 00 22 1B 2C [12:58:18]Write i2c OK [12:58:18]MH_I2C_Read... [12:58:18]Read from MH i2c: F0 [12:58:18]MH_I2C_Read... [12:58:18]Read from MH i2c: F0 09 00 [12:58:18]MH_I2C_Read... [12:58:18]Read from MH i2c: F0 09 00 22 1B 00 6C 27 74 66 BD 8F 7C 64 CE [12:58:18]GetLastDocTimeStamp 1718888232 [12:58:18]current date 1718888300 [12:58:18]FM_GetShiftState [12:58:18]SAM_PROTO_GetShiftState [12:58:18]wFMCommunicate request_size=4 [12:58:18]MH_SAM_APDU [12:58:18]CAPDU: 80 13 01 00 [12:58:18]Write to MH i2c: E2 08 00 23 1B 80 13 01 00 00 00 00 00 BB [12:58:18]Write i2c OK [12:58:18]MH_I2C_Read... [12:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:18]Read from MH i2c: E2 [12:58:18]MH_I2C_Read... [12:58:18]Read from MH i2c: E2 0E 00 [12:58:18]MH_I2C_Read... [12:58:18]Read from MH i2c: E2 0E 00 23 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0A [12:58:18]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:58:18]wFMCommunicate OK [12:58:18]SAM_PROTO_GetShiftState done [12:58:18]FM_GetShiftState done [12:58:18]opened in 1718843124 [12:58:18]opened+sec_in_day 1718929524 [12:58:18]quantity*price = 100064 [12:58:18]sum+1 = 100066 [12:58:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 94 20.06.2024 12:58 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103909 ФПД: 175619244716899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125820&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103909&fm=175619244716899&tin=02508201610067®Number=0000000000092785&sum=100000 [12:58:19]StoreToDocumentArchive [12:58:19]shift 354 fd 103909 [12:58:19]save to /storage/0354/doc_00103909 [12:58:19]save last doc name /storage/0354/doc_00103909 to /storage/kkm_last_doc_name [12:58:19]save OK [12:58:19]Clear old archive folders... [12:58:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:19]tlvbuf is 0088ED00 [12:58:19]SAM_PROTO_ClearQueue [12:58:19]wFMCommunicate request_size=4 [12:58:19]MH_SAM_APDU [12:58:19]CAPDU: 80 09 00 00 [12:58:19]Write to MH i2c: E2 08 00 30 1B 80 09 00 00 00 00 00 00 BD [12:58:19]Write i2c OK [12:58:19]MH_I2C_Read... [12:58:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:19]Read from MH i2c: E2 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: E2 03 00 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [12:58:19]RAPDU: 90 00 [12:58:19]wFMCommunicate OK [12:58:19]SAM_PROTO_ClearQueue done [12:58:19]KKMCreateOFDPacket [12:58:19]OFDProtocolAddRootSTLVToBuf [12:58:19]FM_MakeSignedData [12:58:19]FM_MakeSignedData [12:58:19]SAM_PROTO_SignData [12:58:19]wFMCommunicate request_size=4 [12:58:19]MH_SAM_APDU [12:58:19]CAPDU: 80 0D 01 02 [12:58:19]Write to MH i2c: E2 08 00 31 1B 80 0D 01 02 00 00 00 00 C5 [12:58:19]Write i2c OK [12:58:19]MH_I2C_Read... [12:58:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:19]Read from MH i2c: E2 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: E2 03 00 [12:58:19]MH_I2C_Read... [12:58:19]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [12:58:19]RAPDU: 90 00 [12:58:19]wFMCommunicate OK [12:58:19]wFMCommunicate request_size=255 [12:58:19]MH_SAM_APDU [12:58:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6C 27 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 95 01 00 35 04 06 00 9F [12:58:19]Write to MH i2c: E2 02 01 32 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6C 27 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 95 01 00 35 04 06 00 9F 00 00 17 [12:58:19]Write i2c OK [12:58:19]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [12:58:20]RAPDU: 90 00 [12:58:20]wFMCommunicate OK [12:58:20]wFMCommunicate request_size=10 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 0D 02 02 05 B9 8A B2 73 63 [12:58:20]Write to MH i2c: E2 0D 00 33 1B 80 0D 02 02 05 00 B9 8A B2 73 63 00 00 9D [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 03 00 33 1B 00 90 00 C2 [12:58:20]RAPDU: 90 00 [12:58:20]wFMCommunicate OK [12:58:20]wFMCommunicate request_size=4 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 0D 03 02 [12:58:20]Write to MH i2c: E2 08 00 34 1B 80 0D 03 02 00 00 00 00 CA [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 0B 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 0B 00 34 1B 00 54 1A AA 71 C4 37 A6 F5 90 00 EA [12:58:20]RAPDU: 54 1A AA 71 C4 37 A6 F5 90 00 [12:58:20]wFMCommunicate OK [12:58:20]SAM_PROTO_SignData done [12:58:20]FM_MakeSignedData done [12:58:20]CreateOFDProtocolMessage [12:58:20]wFMCommunicate request_size=4 [12:58:20]MH_SAM_APDU [12:58:20]CAPDU: 80 11 00 00 [12:58:20]Write to MH i2c: E2 08 00 35 1B 80 11 00 00 00 00 00 00 CA [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:20]Read from MH i2c: E2 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 17 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: E2 17 00 35 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [12:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:58:20]wFMCommunicate OK [12:58:20]CreateOFDProtocolMessage done [12:58:20]OFDSenderStorePacket 103909 [12:58:20]StoreOFDPacket docnum=103909 [12:58:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 58 98 07 01 6F C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6C 27 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 95 01 00 35 04 06 00 9F B9 8A B2 73 63 54 1A AA 71 C4 37 A6 F5 [12:58:20]CheckFolder [12:58:20]dirname=/storage/ofd_packets [12:58:20]CheckFolder done [12:58:20]ProducePacketName [12:58:20]name=ofd_packets/00103909 [12:58:20]NVStorageSaveData ofd_packets/00103909 [12:58:20]File name is /storage/ofd_packets/00103909 [12:58:20]Write 301 bytes [12:58:20]NVStorageSaveData done [12:58:20]OFDSenderStorePacket done [12:58:20]KKMCreateOFDPacket done [12:58:20]NVStorageSaveData kkm_last_timestamp [12:58:20]File name is /storage/kkm_last_timestamp [12:58:20]Write 4 bytes [12:58:20]NVStorageSaveData done [12:58:20]ExternCall_PrintAddStr [12:58:20]wPrintStart [12:58:20]Write to MH i2c: 01 00 00 36 1B 51 [12:58:20]Write i2c OK [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: 01 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: 01 07 00 [12:58:20]MH_I2C_Read... [12:58:20]Read from MH i2c: 01 07 00 36 1B 00 00 00 00 00 FF 0F 66 [12:58:20]RasterBufferAndPrint [12:58:20]line Счет N : (1)673254 [12:58:20]line ИНН: 02508201610067 [12:58:20]line Контрольно-Кассовый Чек [12:58:20]line ПРОДАЖА [12:58:20]line ТРК (МРК, ГНК) : 42 [12:58:20]line Товар: 2710124130 [12:58:20]line Аи-92-К-5 [12:58:20]line 15.070 * 66.40 [12:58:20]line = 1000.65 [12:58:20]line НДС 12% НСП 1% [12:58:20]line > о реализуемом товаре [12:58:20]line ОКРУГЛЕНИЕ: -0.65 [12:58:20]line ИТОГО: 1000.00 [12:58:20]line Внесено: 1000.00 [12:58:20]line СДАЧА: 0.00 [12:58:20]line НСП 1% : 8.85 [12:58:20]line НДС 12% : 106.26 [12:58:20]line Наличными: 1000.00 [12:58:20]line Безнал.: 0.00 [12:58:20]line Место: АЗС № 120 "Партнер Нефть" [12:58:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [12:58:20]line СНО: Общий режим [12:58:20]line Чек 94 20.06.2024 12:58 [12:58:20]line Смена: 354 ФФД: 1.0 [12:58:20]line ЗНМ: 0300000164 [12:58:20]line РНМ: 0000000000092785 [12:58:20]line Версия ККМ: 001 [12:58:20]line ФМ: 0000000000875093 [12:58:20]line ФД: 103909 [12:58:20]line ФПД: 175619244716899 [12:58:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T125820&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103909&fm=175619244716899&tin=02508201610067®Number=0000000000092785&sum=100000 [12:58:20]OFD Sender: Processing packet 103909 [packets to send 17, broken 16] [12:58:20]ProducePacketName [12:58:20]name=ofd_packets/00103909 [12:58:20]OFD Sender: To server: pG, [12:58:20]CommunicateWithHost lk.salyk.kg:30040 [12:58:20]ConnectInit lk.salyk.kg [12:58:20]written 0, free lines is 4095 [12:58:20]Connected sock=10 [12:58:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 58 98 07 01 6F C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 6C 27 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E5 95 01 00 35 04 06 00 9F B9 8A B2 73 63 54 1A AA 71 C4 37 A6 F5 [12:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4C 6B 47 00 21 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 35 30 39 33 10 04 04 00 E5 95 01 00 F4 03 04 00 F2 CD 73 66 B6 04 01 00 00 9F 09 C0 0E 0E C5 B0 2F [12:58:21]CommunicateWithHost err = 0 [12:58:21]CheckOFDResponse [12:58:21]1017 (14) - 77093643461234 [12:58:21]1041 (16) - 0000000000875093 [12:58:21]1040 (4) - 103909 [12:58:21]1012 (4) - 20.06.2024 06:36 [12:58:21]1206 (1) - 0 [12:58:21]OFD Sender: Remove packet 103909 [12:58:21]ProducePacketName [12:58:21]name=ofd_packets/00103909 [12:58:21]NVStorageDeleteData [12:58:21]Write to MH i2c: 01 00 00 61 1B 7C [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 07 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: 01 07 00 61 1B 00 00 00 00 00 E4 0C 73 [12:58:21]RasterBufferAndPrint [12:58:21]line [12:58:21]line [12:58:21]line [12:58:21]line [12:58:21]line [12:58:21]written 0, free lines is 3306 [12:58:21]MH_Cut [12:58:21]Write to MH i2c: D1 01 00 68 1B 01 55 [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: D1 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: D1 01 00 [12:58:21]MH_I2C_Read... [12:58:21]Read from MH i2c: D1 01 00 68 1B 00 54 [12:58:21]Write to MH i2c: 01 00 00 69 1B 84 [12:58:21]Write i2c OK [12:58:21]MH_I2C_Read... [12:58:21]OFD Sender: No OFD packet to send [12:58:21]*** Cut start [12:58:21]*** Partial cut [12:58:21]*** CUTSNS_PIN = 1 [12:58:21]*** CUTSNS_PIN = 0 [12:58:22]*** Brake cut motor [12:58:22]Read from MH i2c: 01 [12:58:22]MH_I2C_Read... [12:58:22]*** Stop cut motor [12:58:22]*** Cut end [12:58:22]Read from MH i2c: 01 07 00 [12:58:22]MH_I2C_Read... [12:58:22]Read from MH i2c: 01 07 00 69 1B 00 00 00 00 00 FF 0F 99 [12:58:22]process_action close_receipt done [12:58:22]requested_data is exist [12:58:22]produce_requested_data [12:58:22]requested_item fm.sn is exist - process it [12:58:22]wFMCommunicate request_size=4 [12:58:22]MH_SAM_APDU [12:58:22]CAPDU: 80 11 00 00 [12:58:22]Write to MH i2c: E2 08 00 6A 1B 80 11 00 00 00 00 00 00 FF [12:58:22]Write i2c OK [12:58:22]MH_I2C_Read... [12:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:22]Read from MH i2c: E2 [12:58:22]MH_I2C_Read... [12:58:22]Read from MH i2c: E2 17 00 [12:58:22]MH_I2C_Read... [12:58:22]Read from MH i2c: E2 17 00 6A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 52 [12:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [12:58:22]wFMCommunicate OK [12:58:22]requested_item fd.num is exist - process it [12:58:22]SAM_PROTO_GetFieldsCounters [12:58:22]wFMCommunicate request_size=4 [12:58:22]MH_SAM_APDU [12:58:22]CAPDU: 80 13 00 00 [12:58:22]Write to MH i2c: E2 08 00 6B 1B 80 13 00 00 00 00 00 00 02 [12:58:22]Write i2c OK [12:58:22]MH_I2C_Read... [12:58:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:22]Read from MH i2c: E2 [12:58:22]MH_I2C_Read... [12:58:22]Read from MH i2c: E2 62 00 [12:58:22]MH_I2C_Read... [12:58:22]Read from MH i2c: E2 62 00 6B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E5 95 01 00 0E 04 04 00 62 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 21 [12:58:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E5 95 01 00 0E 04 04 00 62 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:58:22]wFMCommunicate OK [12:58:22]SAM_PROTO_GetFieldsCounters done [12:58:22]requested_item shift.num is exist - process it [12:58:22]requested_item shift.opened is exist - process it [12:58:22]req_shift_opened [12:58:22]FM_GetShiftState [12:58:22]SAM_PROTO_GetShiftState [12:58:22]wFMCommunicate request_size=4 [12:58:22]MH_SAM_APDU [12:58:22]CAPDU: 80 13 01 00 [12:58:22]Write to MH i2c: E2 08 00 6C 1B 80 13 01 00 00 00 00 00 04 [12:58:22]Write i2c OK [12:58:22]MH_I2C_Read... [12:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:22]Read from MH i2c: E2 [12:58:22]MH_I2C_Read... [12:58:22]Read from MH i2c: E2 0E 00 [12:58:22]MH_I2C_Read... [12:58:22]Read from MH i2c: E2 0E 00 6C 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 53 [12:58:22]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [12:58:22]wFMCommunicate OK [12:58:22]SAM_PROTO_GetShiftState done [12:58:22]FM_GetShiftState done [12:58:22]req_shift_opened done [12:58:22]requested_item shift.open_date is exist - process it [12:58:22]req_shift_open_date [12:58:22]req_shift_open_date done [12:58:22]produce_requested_data done [12:58:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103909,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [12:58:22]process_action_free close_receipt [12:58:22]json_value_free [12:58:22]json_value_free done [12:58:22]process_json_proto returns [12:58:22]Send response to host [12:58:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103909,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [12:58:22]free response buf [12:58:22]execute_script done [12:58:22]execute_script returns [12:58:22]free content buf [12:58:22]Sock 7.Close socket [12:58:22]Sock 7.Thread stoped [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:03]accept exits with 9 [13:05:03]New connection [13:05:03]New thread 3067207012 created [13:05:03]Thread 3067063652 joined [13:05:03]Waiting for new connection... [13:05:03] Sock 9.Parse request [13:05:03]Sock 9.Check first char [13:05:03]Sock 9.First char is OK [13:05:03]request: POST /json_proto HTTP/1.0 [13:05:03]Method: POST [13:05:03]URL: /json_proto [13:05:03]Method is POST - this is cgi request [13:05:03]url: /json_proto [13:05:03]query_string will be loaded in cgi processing [13:05:03]execute_cgi json_proto POST (null) [13:05:03]execute_cgi path=json_proto method=POST [13:05:03]POST find Content-Length [13:05:03]Host: 172.17.38.133:8080 [13:05:03]Content-Length: 677 [13:05:03]Content-Type: application/json [13:05:03] [13:05:03]POST finish read [13:05:03]Found Content-Length = 677 [13:05:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:03]execute_script... [13:05: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)673256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:03]POST & json_proto [13:05:03]process_json_proto [13:05:03]json parsed OK: [13:05:03]protocol is kg_v1.0 [13:05:03]action value=close_receipt [13:05:03]process_action close_receipt [13:05:03]cmd_close_receipt [13:05:03]MH_GetDate [13:05:03]Write to MH i2c: F0 00 00 6D 1B 77 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: F0 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: F0 09 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: F0 09 00 6D 1B 00 01 29 74 66 BD 8F 7C 64 B0 [13:05:03]GetLastDocTimeStamp 1718888300 [13:05:03]current date 1718888705 [13:05:03]FM_GetShiftState [13:05:03]SAM_PROTO_GetShiftState [13:05:03]wFMCommunicate request_size=4 [13:05:03]MH_SAM_APDU [13:05:03]CAPDU: 80 13 01 00 [13:05:03]Write to MH i2c: E2 08 00 6E 1B 80 13 01 00 00 00 00 00 06 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 0E 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 0E 00 6E 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 55 [13:05:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:05:03]wFMCommunicate OK [13:05:03]SAM_PROTO_GetShiftState done [13:05:03]FM_GetShiftState done [13:05:03]opened in 1718843124 [13:05:03]opened+sec_in_day 1718929524 [13:05:03]quantity*price = 20052 [13:05:03]sum+1 = 20054 [13:05:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 95 20.06.2024 13:05 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103910 ФПД: 92902364353898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130505&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103910&fm=92902364353898&tin=02508201610067®Number=0000000000092785&sum=20000 [13:05:04]StoreToDocumentArchive [13:05:04]shift 354 fd 103910 [13:05:04]save to /storage/0354/doc_00103910 [13:05:04]save last doc name /storage/0354/doc_00103910 to /storage/kkm_last_doc_name [13:05:04]save OK [13:05:04]Clear old archive folders... [13:05:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:04]tlvbuf is 0086A710 [13:05:04]SAM_PROTO_ClearQueue [13:05:04]wFMCommunicate request_size=4 [13:05:04]MH_SAM_APDU [13:05:04]CAPDU: 80 09 00 00 [13:05:04]Write to MH i2c: E2 08 00 7B 1B 80 09 00 00 00 00 00 00 08 [13:05:04]Write i2c OK [13:05:04]MH_I2C_Read... [13:05:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:04]Read from MH i2c: E2 [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: E2 03 00 [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [13:05:04]RAPDU: 90 00 [13:05:04]wFMCommunicate OK [13:05:04]SAM_PROTO_ClearQueue done [13:05:04]KKMCreateOFDPacket [13:05:04]OFDProtocolAddRootSTLVToBuf [13:05:04]FM_MakeSignedData [13:05:04]FM_MakeSignedData [13:05:04]SAM_PROTO_SignData [13:05:04]wFMCommunicate request_size=4 [13:05:04]MH_SAM_APDU [13:05:04]CAPDU: 80 0D 01 02 [13:05:04]Write to MH i2c: E2 08 00 7C 1B 80 0D 01 02 00 00 00 00 10 [13:05:04]Write i2c OK [13:05:04]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [13:05:05]RAPDU: 90 00 [13:05:05]wFMCommunicate OK [13:05:05]wFMCommunicate request_size=255 [13:05:05]MH_SAM_APDU [13:05: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 5F 00 00 00 F4 03 04 00 01 29 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 95 01 00 35 04 06 00 54 [13:05:05]Write to MH i2c: E2 02 01 7D 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 5F 00 00 00 F4 03 04 00 01 29 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 95 01 00 35 04 06 00 54 00 00 1F [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 7D 1B 00 90 00 0C [13:05:05]RAPDU: 90 00 [13:05:05]wFMCommunicate OK [13:05:05]wFMCommunicate request_size=10 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 0D 02 02 05 7E 84 6D 15 6A [13:05:05]Write to MH i2c: E2 0D 00 7E 1B 80 0D 02 02 05 00 7E 84 6D 15 6A 00 00 0B [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 03 00 7E 1B 00 90 00 0D [13:05:05]RAPDU: 90 00 [13:05:05]wFMCommunicate OK [13:05:05]wFMCommunicate request_size=4 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 0D 03 02 [13:05:05]Write to MH i2c: E2 08 00 7F 1B 80 0D 03 02 00 00 00 00 15 [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 0B 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 0B 00 7F 1B 00 57 4E 88 8B CA D3 7D 14 90 00 FC [13:05:05]RAPDU: 57 4E 88 8B CA D3 7D 14 90 00 [13:05:05]wFMCommunicate OK [13:05:05]SAM_PROTO_SignData done [13:05:05]FM_MakeSignedData done [13:05:05]CreateOFDProtocolMessage [13:05:05]wFMCommunicate request_size=4 [13:05:05]MH_SAM_APDU [13:05:05]CAPDU: 80 11 00 00 [13:05:05]Write to MH i2c: E2 08 00 80 1B 80 11 00 00 00 00 00 00 15 [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:05]Read from MH i2c: E2 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 17 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: E2 17 00 80 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 68 [13:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:05:05]wFMCommunicate OK [13:05:05]CreateOFDProtocolMessage done [13:05:05]OFDSenderStorePacket 103910 [13:05:05]StoreOFDPacket docnum=103910 [13:05:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 81 C5 07 01 1B 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 5F 00 00 00 F4 03 04 00 01 29 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 95 01 00 35 04 06 00 54 7E 84 6D 15 6A 57 4E 88 8B CA D3 7D 14 [13:05:05]CheckFolder [13:05:05]dirname=/storage/ofd_packets [13:05:05]CheckFolder done [13:05:05]ProducePacketName [13:05:05]name=ofd_packets/00103910 [13:05:05]NVStorageSaveData ofd_packets/00103910 [13:05:05]File name is /storage/ofd_packets/00103910 [13:05:05]Write 301 bytes [13:05:05]NVStorageSaveData done [13:05:05]OFDSenderStorePacket done [13:05:05]KKMCreateOFDPacket done [13:05:05]NVStorageSaveData kkm_last_timestamp [13:05:05]File name is /storage/kkm_last_timestamp [13:05:05]Write 4 bytes [13:05:05]NVStorageSaveData done [13:05:05]ExternCall_PrintAddStr [13:05:05]wPrintStart [13:05:05]Write to MH i2c: 01 00 00 81 1B 9C [13:05:05]Write i2c OK [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: 01 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: 01 07 00 [13:05:05]MH_I2C_Read... [13:05:05]Read from MH i2c: 01 07 00 81 1B 00 00 00 00 00 FF 0F B1 [13:05:05]RasterBufferAndPrint [13:05:05]line Счет N : (1)673256 [13:05:05]line ИНН: 02508201610067 [13:05:05]line Контрольно-Кассовый Чек [13:05:05]line ПРОДАЖА [13:05:05]line ТРК (МРК, ГНК) : 42 [13:05:05]line Товар: 2710124130 [13:05:05]line Аи-92-К-5 [13:05:05]line 3.020 * 66.40 [13:05:05]line = 200.53 [13:05:05]line НДС 12% НСП 1% [13:05:05]line > о реализуемом товаре [13:05:05]line ОКРУГЛЕНИЕ: -0.53 [13:05:05]line ИТОГО: 200.00 [13:05:05]line Внесено: 200.00 [13:05:05]line СДАЧА: 0.00 [13:05:05]line НСП 1% : 1.77 [13:05:05]line НДС 12% : 21.29 [13:05:05]line Наличными: 200.00 [13:05:05]line Безнал.: 0.00 [13:05:05]line Место: АЗС № 120 "Партнер Нефть" [13:05:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:05:05]line СНО: Общий режим [13:05:05]line Чек 95 20.06.2024 13:05 [13:05:05]line Смена: 354 ФФД: 1.0 [13:05:05]line ЗНМ: 0300000164 [13:05:05]line РНМ: 0000000000092785 [13:05:05]line Версия ККМ: 001 [13:05:05]line ФМ: 0000000000875093 [13:05:05]line ФД: 103910 [13:05:05]line ФПД: 92902364353898 [13:05:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130505&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103910&fm=92902364353898&tin=02508201610067®Number=0000000000092785&sum=20000 [13:05:05]written 0, free lines is 4095 [13:05:05]OFD Sender: Processing packet 103910 [packets to send 17, broken 16] [13:05:05]ProducePacketName [13:05:05]name=ofd_packets/00103910 [13:05:05]OFD Sender: To server: pG, [13:05:05]CommunicateWithHost lk.salyk.kg:30040 [13:05:05]ConnectInit lk.salyk.kg [13:05:05]Connected sock=10 [13:05:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 81 C5 07 01 1B 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 5F 00 00 00 F4 03 04 00 01 29 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E6 95 01 00 35 04 06 00 54 7E 84 6D 15 6A 57 4E 88 8B CA D3 7D 14 [13:05:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F7 DF 47 00 8A 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 35 30 39 33 10 04 04 00 E6 95 01 00 F4 03 04 00 87 CF 73 66 B6 04 01 00 00 AE 7F FB 91 D2 57 87 CE [13:05:06]CommunicateWithHost err = 0 [13:05:06]CheckOFDResponse [13:05:06]1017 (14) - 77093643461234 [13:05:06]1041 (16) - 0000000000875093 [13:05:06]1040 (4) - 103910 [13:05:06]1012 (4) - 20.06.2024 06:43 [13:05:06]1206 (1) - 0 [13:05:06]OFD Sender: Remove packet 103910 [13:05:06]ProducePacketName [13:05:06]name=ofd_packets/00103910 [13:05:06]NVStorageDeleteData [13:05:06]Write to MH i2c: 01 00 00 AC 1B C7 [13:05:06]Write i2c OK [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: 01 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: 01 07 00 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 D7 0C B1 [13:05:06]RasterBufferAndPrint [13:05:06]line [13:05:06]line [13:05:06]line [13:05:06]line [13:05:06]line [13:05:06]written 0, free lines is 3294 [13:05:06]MH_Cut [13:05:06]Write to MH i2c: D1 01 00 B3 1B 01 A0 [13:05:06]Write i2c OK [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: D1 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: D1 01 00 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: D1 01 00 B3 1B 00 9F [13:05:06]Write to MH i2c: 01 00 00 B4 1B CF [13:05:06]Write i2c OK [13:05:06]MH_I2C_Read... [13:05:06]OFD Sender: No OFD packet to send [13:05:06]*** Cut start [13:05:06]*** Partial cut [13:05:06]*** CUTSNS_PIN = 1 [13:05:07]*** CUTSNS_PIN = 0 [13:05:07]*** Brake cut motor [13:05:07]Read from MH i2c: 01 [13:05:07]MH_I2C_Read... [13:05:07]*** Stop cut motor [13:05:07]*** Cut end [13:05:07]Read from MH i2c: 01 07 00 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: 01 07 00 B4 1B 00 00 00 00 00 FF 0F E4 [13:05:07]process_action close_receipt done [13:05:07]requested_data is exist [13:05:07]produce_requested_data [13:05:07]requested_item fm.sn is exist - process it [13:05:07]wFMCommunicate request_size=4 [13:05:07]MH_SAM_APDU [13:05:07]CAPDU: 80 11 00 00 [13:05:07]Write to MH i2c: E2 08 00 B5 1B 80 11 00 00 00 00 00 00 4A [13:05:07]Write i2c OK [13:05:07]MH_I2C_Read... [13:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:07]Read from MH i2c: E2 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: E2 17 00 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: E2 17 00 B5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [13:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:05:07]wFMCommunicate OK [13:05:07]requested_item fd.num is exist - process it [13:05:07]SAM_PROTO_GetFieldsCounters [13:05:07]wFMCommunicate request_size=4 [13:05:07]MH_SAM_APDU [13:05:07]CAPDU: 80 13 00 00 [13:05:07]Write to MH i2c: E2 08 00 B6 1B 80 13 00 00 00 00 00 00 4D [13:05:07]Write i2c OK [13:05:07]MH_I2C_Read... [13:05:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:07]Read from MH i2c: E2 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: E2 62 00 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: E2 62 00 B6 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E6 95 01 00 0E 04 04 00 62 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 70 [13:05:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E6 95 01 00 0E 04 04 00 62 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 [13:05:07]wFMCommunicate OK [13:05:07]SAM_PROTO_GetFieldsCounters done [13:05:07]requested_item shift.num is exist - process it [13:05:07]requested_item shift.opened is exist - process it [13:05:07]req_shift_opened [13:05:07]FM_GetShiftState [13:05:07]SAM_PROTO_GetShiftState [13:05:07]wFMCommunicate request_size=4 [13:05:07]MH_SAM_APDU [13:05:07]CAPDU: 80 13 01 00 [13:05:07]Write to MH i2c: E2 08 00 B7 1B 80 13 01 00 00 00 00 00 4F [13:05:07]Write i2c OK [13:05:07]MH_I2C_Read... [13:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:07]Read from MH i2c: E2 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: E2 0E 00 [13:05:07]MH_I2C_Read... [13:05:07]Read from MH i2c: E2 0E 00 B7 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9E [13:05:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:05:07]wFMCommunicate OK [13:05:07]SAM_PROTO_GetShiftState done [13:05:07]FM_GetShiftState done [13:05:07]req_shift_opened done [13:05:07]requested_item shift.open_date is exist - process it [13:05:07]req_shift_open_date [13:05:07]req_shift_open_date done [13:05:07]produce_requested_data done [13:05:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103910,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:05:07]process_action_free close_receipt [13:05:07]json_value_free [13:05:07]json_value_free done [13:05:07]process_json_proto returns [13:05:07]Send response to host [13:05:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103910,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:05:07]free response buf [13:05:07]execute_script done [13:05:07]execute_script returns [13:05:07]free content buf [13:05:07]Sock 9.Close socket [13:05:07]Sock 9.Thread stoped [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:24]accept exits with 7 [13:05:24]New connection [13:05:24]New thread 3067063652 created [13:05:24]Thread 3067207012 joined [13:05:24]Waiting for new connection... [13:05:24] Sock 7.Parse request [13:05:24]Sock 7.Check first char [13:05:24]Sock 7.First char is OK [13:05:24]request: POST /json_proto HTTP/1.0 [13:05:24]Method: POST [13:05:24]URL: /json_proto [13:05:24]Method is POST - this is cgi request [13:05:24]url: /json_proto [13:05:24]query_string will be loaded in cgi processing [13:05:24]execute_cgi json_proto POST (null) [13:05:24]execute_cgi path=json_proto method=POST [13:05:24]POST find Content-Length [13:05:24]Host: 172.17.38.133:8080 [13:05:24]Content-Length: 677 [13:05:24]Content-Type: application/json [13:05:24] [13:05:24]POST finish read [13:05:24]Found Content-Length = 677 [13:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.970, "sum" : 330.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:24]execute_script... [13:05:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.970, "sum" : 330.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:24]POST & json_proto [13:05:24]process_json_proto [13:05:24]json parsed OK: [13:05:24]protocol is kg_v1.0 [13:05:24]action value=close_receipt [13:05:24]process_action close_receipt [13:05:24]cmd_close_receipt [13:05:24]MH_GetDate [13:05:24]Write to MH i2c: F0 00 00 B8 1B C2 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: F0 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: F0 09 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: F0 09 00 B8 1B 00 16 29 74 66 BD 8F 7C 64 10 [13:05:24]GetLastDocTimeStamp 1718888705 [13:05:24]current date 1718888726 [13:05:24]FM_GetShiftState [13:05:24]SAM_PROTO_GetShiftState [13:05:24]wFMCommunicate request_size=4 [13:05:24]MH_SAM_APDU [13:05:24]CAPDU: 80 13 01 00 [13:05:24]Write to MH i2c: E2 08 00 B9 1B 80 13 01 00 00 00 00 00 51 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:24]Read from MH i2c: E2 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 0E 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: E2 0E 00 B9 1B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A0 [13:05:24]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:05:24]wFMCommunicate OK [13:05:24]SAM_PROTO_GetShiftState done [13:05:24]FM_GetShiftState done [13:05:24]opened in 1718843124 [13:05:24]opened+sec_in_day 1718929524 [13:05:24]quantity*price = 33000 [13:05:24]sum+1 = 33002 [13:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 96 20.06.2024 13:05 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103911 ФПД: 89723835270021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130526&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103911&fm=89723835270021&tin=02508201610067®Number=0000000000092785&sum=33000 [13:05:25]StoreToDocumentArchive [13:05:25]shift 354 fd 103911 [13:05:25]save to /storage/0354/doc_00103911 [13:05:25]save last doc name /storage/0354/doc_00103911 to /storage/kkm_last_doc_name [13:05:25]save OK [13:05:25]Clear old archive folders... [13:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:25]tlvbuf is 0087CBE0 [13:05:25]SAM_PROTO_ClearQueue [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 09 00 00 [13:05:25]Write to MH i2c: E2 08 00 C6 1B 80 09 00 00 00 00 00 00 53 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 03 00 C6 1B 00 90 00 55 [13:05:25]RAPDU: 90 00 [13:05:25]wFMCommunicate OK [13:05:25]SAM_PROTO_ClearQueue done [13:05:25]KKMCreateOFDPacket [13:05:25]OFDProtocolAddRootSTLVToBuf [13:05:25]FM_MakeSignedData [13:05:25]FM_MakeSignedData [13:05:25]SAM_PROTO_SignData [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 0D 01 02 [13:05:25]Write to MH i2c: E2 08 00 C7 1B 80 0D 01 02 00 00 00 00 5B [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=255 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 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 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 16 29 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 95 01 00 35 04 06 00 51 [13:05:26]Write to MH i2c: E2 02 01 C8 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 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 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 16 29 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 95 01 00 35 04 06 00 51 00 00 B6 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 C8 1B 00 90 00 57 [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=10 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 02 02 05 9A 75 54 43 85 [13:05:26]Write to MH i2c: E2 0D 00 C9 1B 80 0D 02 02 05 00 9A 75 54 43 85 00 00 93 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 03 00 C9 1B 00 90 00 58 [13:05:26]RAPDU: 90 00 [13:05:26]wFMCommunicate OK [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 0D 03 02 [13:05:26]Write to MH i2c: E2 08 00 CA 1B 80 0D 03 02 00 00 00 00 60 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 0B 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 0B 00 CA 1B 00 41 39 7A 09 C5 46 59 FF 90 00 C1 [13:05:26]RAPDU: 41 39 7A 09 C5 46 59 FF 90 00 [13:05:26]wFMCommunicate OK [13:05:26]SAM_PROTO_SignData done [13:05:26]FM_MakeSignedData done [13:05:26]CreateOFDProtocolMessage [13:05:26]wFMCommunicate request_size=4 [13:05:26]MH_SAM_APDU [13:05:26]CAPDU: 80 11 00 00 [13:05:26]Write to MH i2c: E2 08 00 CB 1B 80 11 00 00 00 00 00 00 60 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:26]Read from MH i2c: E2 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 17 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: E2 17 00 CB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [13:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:05:26]wFMCommunicate OK [13:05:26]CreateOFDProtocolMessage done [13:05:26]OFDSenderStorePacket 103911 [13:05:26]StoreOFDPacket docnum=103911 [13:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5B 0E 07 01 A0 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 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 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 16 29 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 95 01 00 35 04 06 00 51 9A 75 54 43 85 41 39 7A 09 C5 46 59 FF [13:05:26]CheckFolder [13:05:26]dirname=/storage/ofd_packets [13:05:26]CheckFolder done [13:05:26]ProducePacketName [13:05:26]name=ofd_packets/00103911 [13:05:26]NVStorageSaveData ofd_packets/00103911 [13:05:26]File name is /storage/ofd_packets/00103911 [13:05:26]Write 301 bytes [13:05:26]NVStorageSaveData done [13:05:26]OFDSenderStorePacket done [13:05:26]KKMCreateOFDPacket done [13:05:26]NVStorageSaveData kkm_last_timestamp [13:05:26]File name is /storage/kkm_last_timestamp [13:05:26]Write 4 bytes [13:05:26]NVStorageSaveData done [13:05:26]ExternCall_PrintAddStr [13:05:26]wPrintStart [13:05:26]Write to MH i2c: 01 00 00 CC 1B E7 [13:05:26]Write i2c OK [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 07 00 [13:05:26]MH_I2C_Read... [13:05:26]Read from MH i2c: 01 07 00 CC 1B 00 00 00 00 00 FF 0F FC [13:05:26]RasterBufferAndPrint [13:05:26]line Счет N : (1)673257 [13:05:26]line ИНН: 02508201610067 [13:05:26]line Контрольно-Кассовый Чек [13:05:26]line ПРОДАЖА [13:05:26]line ТРК (МРК, ГНК) : 32 [13:05:26]line Товар: 2710124130 [13:05:26]line Аи-92-К-5 [13:05:26]line 4.970 * 66.40 [13:05:26]line = 330.01 [13:05:26]line НДС 12% НСП 1% [13:05:26]line > о реализуемом товаре [13:05:26]line ОКРУГЛЕНИЕ: -0.01 [13:05:26]line ИТОГО: 330.00 [13:05:26]line Внесено: 330.00 [13:05:26]line СДАЧА: 0.00 [13:05:26]line НСП 1% : 2.92 [13:05:26]line НДС 12% : 35.04 [13:05:26]line Наличными: 330.00 [13:05:26]line Безнал.: 0.00 [13:05:26]line Место: АЗС № 120 "Партнер Нефть" [13:05:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:05:26]line СНО: Общий режим [13:05:26]line Чек 96 20.06.2024 13:05 [13:05:26]line Смена: 354 ФФД: 1.0 [13:05:26]line ЗНМ: 0300000164 [13:05:26]line РНМ: 0000000000092785 [13:05:26]line Версия ККМ: 001 [13:05:26]line ФМ: 0000000000875093 [13:05:26]line ФД: 103911 [13:05:26]line ФПД: 89723835270021 [13:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130526&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103911&fm=89723835270021&tin=02508201610067®Number=0000000000092785&sum=33000 [13:05:26]written 0, free lines is 4095 [13:05:26]OFD Sender: Processing packet 103911 [packets to send 17, broken 16] [13:05:26]ProducePacketName [13:05:26]name=ofd_packets/00103911 [13:05:26]OFD Sender: To server: pG, [13:05:26]CommunicateWithHost lk.salyk.kg:30040 [13:05:26]ConnectInit lk.salyk.kg [13:05:26]Connected sock=11 [13:05:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5B 0E 07 01 A0 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 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 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 16 29 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 95 01 00 35 04 06 00 51 9A 75 54 43 85 41 39 7A 09 C5 46 59 FF [13:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 07 7F 47 00 C7 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E7 95 01 00 F4 03 04 00 9C CF 73 66 B6 04 01 00 00 1B 7B DC FC 76 25 84 7D [13:05:27]CommunicateWithHost err = 0 [13:05:27]CheckOFDResponse [13:05:27]1017 (14) - 77093643461234 [13:05:27]1041 (16) - 0000000000875093 [13:05:27]1040 (4) - 103911 [13:05:27]1012 (4) - 20.06.2024 06:43 [13:05:27]1206 (1) - 0 [13:05:27]OFD Sender: Remove packet 103911 [13:05:27]ProducePacketName [13:05:27]name=ofd_packets/00103911 [13:05:27]NVStorageDeleteData [13:05:27]Write to MH i2c: 01 00 00 F7 1B 12 [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: 01 07 00 F7 1B 00 00 00 00 00 E9 0C 0E [13:05:27]RasterBufferAndPrint [13:05:27]line [13:05:27]line [13:05:27]line [13:05:27]line [13:05:27]line [13:05:27]written 0, free lines is 3311 [13:05:27]MH_Cut [13:05:27]Write to MH i2c: D1 01 00 FE 1B 01 EB [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: D1 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: D1 01 00 [13:05:27]MH_I2C_Read... [13:05:27]Read from MH i2c: D1 01 00 FE 1B 00 EA [13:05:27]Write to MH i2c: 01 00 00 FF 1B 1A [13:05:27]Write i2c OK [13:05:27]MH_I2C_Read... [13:05:27]OFD Sender: No OFD packet to send [13:05:27]*** Cut start [13:05:27]*** Partial cut [13:05:27]*** CUTSNS_PIN = 1 [13:05:28]*** CUTSNS_PIN = 0 [13:05:28]*** Brake cut motor [13:05:28]Read from MH i2c: 01 [13:05:28]*** Stop cut motor [13:05:28]*** Cut end [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: 01 07 00 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: 01 07 00 FF 1B 00 00 00 00 00 FF 0F 2F [13:05:28]process_action close_receipt done [13:05:28]requested_data is exist [13:05:28]produce_requested_data [13:05:28]requested_item fm.sn is exist - process it [13:05:28]wFMCommunicate request_size=4 [13:05:28]MH_SAM_APDU [13:05:28]CAPDU: 80 11 00 00 [13:05:28]Write to MH i2c: E2 08 00 00 1C 80 11 00 00 00 00 00 00 96 [13:05:28]Write i2c OK [13:05:28]MH_I2C_Read... [13:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:28]Read from MH i2c: E2 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: E2 17 00 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: E2 17 00 00 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [13:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:05:28]wFMCommunicate OK [13:05:28]requested_item fd.num is exist - process it [13:05:28]SAM_PROTO_GetFieldsCounters [13:05:28]wFMCommunicate request_size=4 [13:05:28]MH_SAM_APDU [13:05:28]CAPDU: 80 13 00 00 [13:05:28]Write to MH i2c: E2 08 00 01 1C 80 13 00 00 00 00 00 00 99 [13:05:28]Write i2c OK [13:05:28]MH_I2C_Read... [13:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:28]Read from MH i2c: E2 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: E2 62 00 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: E2 62 00 01 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E7 95 01 00 0E 04 04 00 62 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 C0 [13:05:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E7 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:28]wFMCommunicate OK [13:05:28]SAM_PROTO_GetFieldsCounters done [13:05:28]requested_item shift.num is exist - process it [13:05:28]requested_item shift.opened is exist - process it [13:05:28]req_shift_opened [13:05:28]FM_GetShiftState [13:05:28]SAM_PROTO_GetShiftState [13:05:28]wFMCommunicate request_size=4 [13:05:28]MH_SAM_APDU [13:05:28]CAPDU: 80 13 01 00 [13:05:28]Write to MH i2c: E2 08 00 02 1C 80 13 01 00 00 00 00 00 9B [13:05:28]Write i2c OK [13:05:28]MH_I2C_Read... [13:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:28]Read from MH i2c: E2 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: E2 0E 00 [13:05:28]MH_I2C_Read... [13:05:28]Read from MH i2c: E2 0E 00 02 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EA [13:05:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:05:28]wFMCommunicate OK [13:05:28]SAM_PROTO_GetShiftState done [13:05:28]FM_GetShiftState done [13:05:28]req_shift_opened done [13:05:28]requested_item shift.open_date is exist - process it [13:05:28]req_shift_open_date [13:05:28]req_shift_open_date done [13:05:28]produce_requested_data done [13:05:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103911,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:05:28]process_action_free close_receipt [13:05:28]json_value_free [13:05:28]json_value_free done [13:05:28]process_json_proto returns [13:05:28]Send response to host [13:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103911,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:05:28]free response buf [13:05:28]execute_script done [13:05:28]execute_script returns [13:05:28]free content buf [13:05:28]Sock 7.Close socket [13:05:28]Sock 7.Thread stoped [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:18]accept exits with 9 [13:08:18]New connection [13:08:18]New thread 3067207012 created [13:08:18]Thread 3067063652 joined [13:08:18]Waiting for new connection... [13:08:18] Sock 9.Parse request [13:08:18]Sock 9.Check first char [13:08:18]Sock 9.First char is OK [13:08:18]request: POST /json_proto HTTP/1.0 [13:08:18]Method: POST [13:08:18]URL: /json_proto [13:08:18]Method is POST - this is cgi request [13:08:18]url: /json_proto [13:08:18]query_string will be loaded in cgi processing [13:08:18]execute_cgi json_proto POST (null) [13:08:18]execute_cgi path=json_proto method=POST [13:08:18]POST find Content-Length [13:08:18]Host: 172.17.38.133:8080 [13:08:18]Content-Length: 1202 [13:08:18]Content-Type: application/json [13:08:18] [13:08:18]POST finish read [13:08:18]Found Content-Length = 1202 [13:08:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673258\u000A20.06.2024 12:45\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3444681\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:18]execute_script... [13:08:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673258\u000A20.06.2024 12:45\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3444681\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:18]POST & json_proto [13:08:18]process_json_proto [13:08:18]json parsed OK: [13:08:18]protocol is kg_v1.0 [13:08:18]action value=print_text [13:08:18]process_action print_text [13:08:18]cmd_print_text [13:08:18]ExternCall_PrintAddStr [13:08:18]wPrintStart [13:08:18]Write to MH i2c: 01 00 00 03 1C 1F [13:08:18]Write i2c OK [13:08:18]MH_I2C_Read... [13:08:18]Read from MH i2c: 01 [13:08:18]MH_I2C_Read... [13:08:18]Read from MH i2c: 01 07 00 [13:08:18]MH_I2C_Read... [13:08:18]Read from MH i2c: 01 07 00 03 1C 00 00 00 00 00 FF 0F 34 [13:08:18]RasterBufferAndPrint [13:08:18]line *****ТОВАРНЫЙ ЧЕК***** [13:08:18]line АЗС 120 [13:08:18]line Партнер нефть [13:08:18]line 02508201610067 [13:08:18]line Кассир : Дуйшенбиев А. [13:08:18]line Счет N : (1)673258 [13:08:18]line 20.06.2024 12:45 [13:08:18]line ПРОДАЖА [13:08:18]line ТРК (МРК, ГНК): 21 [13:08:18]line Вид ГСМ : 2710194210 [13:08:18]line ДТ(л)-К-5 [13:08:18]line 20.000 x 72.90 [13:08:18]line ИТОГ: 1458.00 [13:08:18]line Тип оплаты: Талоны: Партнер нефть [13:08:18]line 3444681 [13:08:18]line ______________________ [13:08:18]line (подпись) [13:08:18]written 0, free lines is 4095 [13:08:18]Write to MH i2c: 01 00 00 17 1C 33 [13:08:18]Write i2c OK [13:08:18]MH_I2C_Read... [13:08:18]Read from MH i2c: 01 [13:08:18]MH_I2C_Read... [13:08:18]Read from MH i2c: 01 07 00 [13:08:18]MH_I2C_Read... [13:08:18]Read from MH i2c: 01 07 00 17 1C 00 00 00 00 00 12 0E 5A [13:08:18]RasterBufferAndPrint [13:08:18]line [13:08:18]line [13:08:18]line [13:08:18]line [13:08:18]line [13:08:18]written 0, free lines is 3604 [13:08:18]MH_Cut [13:08:18]Write to MH i2c: D1 01 00 1E 1C 01 0C [13:08:18]Write i2c OK [13:08:18]MH_I2C_Read... [13:08:18]Read from MH i2c: D1 [13:08:18]MH_I2C_Read... [13:08:18]Read from MH i2c: D1 01 00 [13:08:18]MH_I2C_Read... [13:08:18]Read from MH i2c: D1 01 00 1E 1C 00 0B [13:08:18]Write to MH i2c: 01 00 00 1F 1C 3B [13:08:18]Write i2c OK [13:08:18]MH_I2C_Read... [13:08:19]*** Cut start [13:08:19]*** Partial cut [13:08:19]*** CUTSNS_PIN = 1 [13:08:19]*** CUTSNS_PIN = 0 [13:08:19]*** Brake cut motor [13:08:19]Read from MH i2c: 01 [13:08:19]MH_I2C_Read... [13:08:19]*** Stop cut motor [13:08:19]*** Cut end [13:08:19]Read from MH i2c: 01 07 00 [13:08:19]MH_I2C_Read... [13:08:19]Read from MH i2c: 01 07 00 1F 1C 00 00 00 00 00 FF 0F 50 [13:08:19]process_action print_text done [13:08:19]requested_data is exist [13:08:19]produce_requested_data [13:08:19]requested_item fm.sn is exist - process it [13:08:19]wFMCommunicate request_size=4 [13:08:19]MH_SAM_APDU [13:08:19]CAPDU: 80 11 00 00 [13:08:19]Write to MH i2c: E2 08 00 20 1C 80 11 00 00 00 00 00 00 B6 [13:08:19]Write i2c OK [13:08:19]MH_I2C_Read... [13:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:19]Read from MH i2c: E2 [13:08:19]MH_I2C_Read... [13:08:19]Read from MH i2c: E2 17 00 [13:08:19]MH_I2C_Read... [13:08:19]Read from MH i2c: E2 17 00 20 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 09 [13:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:08:19]wFMCommunicate OK [13:08:19]requested_item fd.num is exist - process it [13:08:19]SAM_PROTO_GetFieldsCounters [13:08:19]wFMCommunicate request_size=4 [13:08:19]MH_SAM_APDU [13:08:19]CAPDU: 80 13 00 00 [13:08:19]Write to MH i2c: E2 08 00 21 1C 80 13 00 00 00 00 00 00 B9 [13:08:19]Write i2c OK [13:08:19]MH_I2C_Read... [13:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:20]Read from MH i2c: E2 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 62 00 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 62 00 21 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E7 95 01 00 0E 04 04 00 62 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 E0 [13:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E7 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:20]wFMCommunicate OK [13:08:20]SAM_PROTO_GetFieldsCounters done [13:08:20]requested_item shift.num is exist - process it [13:08:20]requested_item shift.opened is exist - process it [13:08:20]req_shift_opened [13:08:20]FM_GetShiftState [13:08:20]SAM_PROTO_GetShiftState [13:08:20]wFMCommunicate request_size=4 [13:08:20]MH_SAM_APDU [13:08:20]CAPDU: 80 13 01 00 [13:08:20]Write to MH i2c: E2 08 00 22 1C 80 13 01 00 00 00 00 00 BB [13:08:20]Write i2c OK [13:08:20]MH_I2C_Read... [13:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:20]Read from MH i2c: E2 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 0E 00 [13:08:20]MH_I2C_Read... [13:08:20]Read from MH i2c: E2 0E 00 22 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0A [13:08:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:08:20]wFMCommunicate OK [13:08:20]SAM_PROTO_GetShiftState done [13:08:20]FM_GetShiftState done [13:08:20]req_shift_opened done [13:08:20]requested_item shift.open_date is exist - process it [13:08:20]req_shift_open_date [13:08:20]req_shift_open_date done [13:08:20]produce_requested_data done [13:08:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103911,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:08:20]process_action_free print_text [13:08:20]json_value_free [13:08:20]json_value_free done [13:08:20]process_json_proto returns [13:08:20]Send response to host [13:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103911,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:08:20]free response buf [13:08:20]execute_script done [13:08:20]execute_script returns [13:08:20]free content buf [13:08:20]Sock 9.Close socket [13:08:20]Sock 9.Thread stoped [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:49]accept exits with 7 [13:09:49]New connection [13:09:49]New thread 3067063652 created [13:09:49]Thread 3067207012 joined [13:09:49]Waiting for new connection... [13:09:49] Sock 7.Parse request [13:09:49]Sock 7.Check first char [13:09:49]Sock 7.First char is OK [13:09:49]request: POST /json_proto HTTP/1.0 [13:09:49]Method: POST [13:09:49]URL: /json_proto [13:09:49]Method is POST - this is cgi request [13:09:49]url: /json_proto [13:09:49]query_string will be loaded in cgi processing [13:09:49]execute_cgi json_proto POST (null) [13:09:49]execute_cgi path=json_proto method=POST [13:09:49]POST find Content-Length [13:09:49]Host: 172.17.38.133:8080 [13:09:49]Content-Length: 678 [13:09:49]Content-Type: application/json [13:09:49] [13:09:49]POST finish read [13:09:49]Found Content-Length = 678 [13:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:49]execute_script... [13:09: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)673259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:49]POST & json_proto [13:09:49]process_json_proto [13:09:49]json parsed OK: [13:09:49]protocol is kg_v1.0 [13:09:49]action value=close_receipt [13:09:49]process_action close_receipt [13:09:49]cmd_close_receipt [13:09:49]MH_GetDate [13:09:49]Write to MH i2c: F0 00 00 23 1C 2E [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: F0 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: F0 09 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: F0 09 00 23 1C 00 1F 2A 74 66 BD 8F 7C 64 86 [13:09:49]GetLastDocTimeStamp 1718888726 [13:09:49]current date 1718888991 [13:09:49]FM_GetShiftState [13:09:49]SAM_PROTO_GetShiftState [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 13 01 00 [13:09:49]Write to MH i2c: E2 08 00 24 1C 80 13 01 00 00 00 00 00 BD [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 0E 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 0E 00 24 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0C [13:09:49]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:09:49]wFMCommunicate OK [13:09:49]SAM_PROTO_GetShiftState done [13:09:49]FM_GetShiftState done [13:09:49]opened in 1718843124 [13:09:49]opened+sec_in_day 1718929524 [13:09:49]quantity*price = 80012 [13:09:49]sum+1 = 80013 [13:09:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 97 20.06.2024 13:09 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103912 ФПД: 193077739576694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130951&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103912&fm=193077739576694&tin=02508201610067®Number=0000000000092785&sum=80000 [13:09:50]StoreToDocumentArchive [13:09:50]shift 354 fd 103912 [13:09:50]save to /storage/0354/doc_00103912 [13:09:50]save last doc name /storage/0354/doc_00103912 to /storage/kkm_last_doc_name [13:09:50]save OK [13:09:50]Clear old archive folders... [13:09:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:50]tlvbuf is 008386E0 [13:09:50]SAM_PROTO_ClearQueue [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 09 00 00 [13:09:50]Write to MH i2c: E2 08 00 31 1C 80 09 00 00 00 00 00 00 BF [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 31 1C 00 90 00 C1 [13:09:50]RAPDU: 90 00 [13:09:50]wFMCommunicate OK [13:09:50]SAM_PROTO_ClearQueue done [13:09:50]KKMCreateOFDPacket [13:09:50]OFDProtocolAddRootSTLVToBuf [13:09:50]FM_MakeSignedData [13:09:50]FM_MakeSignedData [13:09:50]SAM_PROTO_SignData [13:09:50]wFMCommunicate request_size=4 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 0D 01 02 [13:09:50]Write to MH i2c: E2 08 00 32 1C 80 0D 01 02 00 00 00 00 C7 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:50]Read from MH i2c: E2 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 [13:09:50]MH_I2C_Read... [13:09:50]Read from MH i2c: E2 03 00 32 1C 00 90 00 C2 [13:09:50]RAPDU: 90 00 [13:09:50]wFMCommunicate OK [13:09:50]wFMCommunicate request_size=255 [13:09:50]MH_SAM_APDU [13:09:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 1F 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 95 01 00 35 04 06 00 AF [13:09:50]Write to MH i2c: E2 02 01 33 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 1F 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 95 01 00 35 04 06 00 AF 00 00 84 [13:09:50]Write i2c OK [13:09:50]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 33 1C 00 90 00 C3 [13:09:51]RAPDU: 90 00 [13:09:51]wFMCommunicate OK [13:09:51]wFMCommunicate request_size=10 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 0D 02 02 05 9A 6A 14 DD 76 [13:09:51]Write to MH i2c: E2 0D 00 34 1C 80 0D 02 02 05 00 9A 6A 14 DD 76 00 00 3F [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 03 00 34 1C 00 90 00 C4 [13:09:51]RAPDU: 90 00 [13:09:51]wFMCommunicate OK [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 0D 03 02 [13:09:51]Write to MH i2c: E2 08 00 35 1C 80 0D 03 02 00 00 00 00 CC [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 0B 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 0B 00 35 1C 00 F6 00 94 2C 5F F9 64 50 90 00 8F [13:09:51]RAPDU: F6 00 94 2C 5F F9 64 50 90 00 [13:09:51]wFMCommunicate OK [13:09:51]SAM_PROTO_SignData done [13:09:51]FM_MakeSignedData done [13:09:51]CreateOFDProtocolMessage [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 11 00 00 [13:09:51]Write to MH i2c: E2 08 00 36 1C 80 11 00 00 00 00 00 00 CC [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 17 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 17 00 36 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1F [13:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:09:51]wFMCommunicate OK [13:09:51]CreateOFDProtocolMessage done [13:09:51]OFDSenderStorePacket 103912 [13:09:51]StoreOFDPacket docnum=103912 [13:09:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 AB 07 01 06 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 1F 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 95 01 00 35 04 06 00 AF 9A 6A 14 DD 76 F6 00 94 2C 5F F9 64 50 [13:09:51]CheckFolder [13:09:51]dirname=/storage/ofd_packets [13:09:51]CheckFolder done [13:09:51]ProducePacketName [13:09:51]name=ofd_packets/00103912 [13:09:51]NVStorageSaveData ofd_packets/00103912 [13:09:51]File name is /storage/ofd_packets/00103912 [13:09:51]Write 301 bytes [13:09:51]NVStorageSaveData done [13:09:51]OFDSenderStorePacket done [13:09:51]KKMCreateOFDPacket done [13:09:51]NVStorageSaveData kkm_last_timestamp [13:09:51]File name is /storage/kkm_last_timestamp [13:09:51]Write 4 bytes [13:09:51]NVStorageSaveData done [13:09:51]ExternCall_PrintAddStr [13:09:51]wPrintStart [13:09:51]Write to MH i2c: 01 00 00 37 1C 53 [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: 01 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: 01 07 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: 01 07 00 37 1C 00 00 00 00 00 FF 0F 68 [13:09:51]RasterBufferAndPrint [13:09:51]line Счет N : (1)673259 [13:09:51]line ИНН: 02508201610067 [13:09:51]line Контрольно-Кассовый Чек [13:09:51]line ПРОДАЖА [13:09:51]line ТРК (МРК, ГНК) : 32 [13:09:51]line Товар: 2710124130 [13:09:51]line Аи-92-К-5 [13:09:51]line 12.050 * 66.40 [13:09:51]line = 800.12 [13:09:51]line НДС 12% НСП 1% [13:09:51]line > о реализуемом товаре [13:09:51]line ОКРУГЛЕНИЕ: -0.12 [13:09:51]line ИТОГО: 800.00 [13:09:51]line Внесено: 800.00 [13:09:51]line СДАЧА: 0.00 [13:09:51]line НСП 1% : 7.08 [13:09:51]line НДС 12% : 84.97 [13:09:51]line Наличными: 800.00 [13:09:51]line Безнал.: 0.00 [13:09:51]line Место: АЗС № 120 "Партнер Нефть" [13:09:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:09:51]line СНО: Общий режим [13:09:51]line Чек 97 20.06.2024 13:09 [13:09:51]line Смена: 354 ФФД: 1.0 [13:09:51]line ЗНМ: 0300000164 [13:09:51]line РНМ: 0000000000092785 [13:09:51]line Версия ККМ: 001 [13:09:51]line ФМ: 0000000000875093 [13:09:51]line ФД: 103912 [13:09:51]line ФПД: 193077739576694 [13:09:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T130951&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103912&fm=193077739576694&tin=02508201610067®Number=0000000000092785&sum=80000 [13:09:51]OFD Sender: Processing packet 103912 [packets to send 17, broken 16] [13:09:51]ProducePacketName [13:09:51]name=ofd_packets/00103912 [13:09:51]OFD Sender: To server: pG, [13:09:51]CommunicateWithHost lk.salyk.kg:30040 [13:09:51]ConnectInit lk.salyk.kg [13:09:51]written 0, free lines is 4095 [13:09:51]Connected sock=10 [13:09:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 57 AB 07 01 06 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 1F 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 95 01 00 35 04 06 00 AF 9A 6A 14 DD 76 F6 00 94 2C 5F F9 64 50 [13:09:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0C 11 47 00 3A 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E8 95 01 00 F4 03 04 00 A5 D0 73 66 B6 04 01 00 00 3A AA A9 99 3B FE 26 2A [13:09:51]CommunicateWithHost err = 0 [13:09:51]CheckOFDResponse [13:09:51]1017 (14) - 77093643461234 [13:09:51]1041 (16) - 0000000000875093 [13:09:51]1040 (4) - 103912 [13:09:51]1012 (4) - 20.06.2024 06:48 [13:09:51]1206 (1) - 0 [13:09:51]OFD Sender: Remove packet 103912 [13:09:51]ProducePacketName [13:09:51]name=ofd_packets/00103912 [13:09:51]NVStorageDeleteData [13:09:52]Write to MH i2c: 01 00 00 62 1C 7E [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: 01 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: 01 07 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: 01 07 00 62 1C 00 00 00 00 00 DA 0C 6B [13:09:52]RasterBufferAndPrint [13:09:52]line [13:09:52]line [13:09:52]line [13:09:52]line [13:09:52]line [13:09:52]written 0, free lines is 3297 [13:09:52]MH_Cut [13:09:52]Write to MH i2c: D1 01 00 69 1C 01 57 [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: D1 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: D1 01 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: D1 01 00 69 1C 00 56 [13:09:52]Write to MH i2c: 01 00 00 6A 1C 86 [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]OFD Sender: No OFD packet to send [13:09:52]*** Cut start [13:09:52]*** Partial cut [13:09:52]*** CUTSNS_PIN = 1 [13:09:52]*** CUTSNS_PIN = 0 [13:09:53]*** Brake cut motor [13:09:53]Read from MH i2c: 01 [13:09:53]MH_I2C_Read... [13:09:53]*** Stop cut motor [13:09:53]*** Cut end [13:09:53]Read from MH i2c: 01 07 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: 01 07 00 6A 1C 00 00 00 00 00 FF 0F 9B [13:09:53]process_action close_receipt done [13:09:53]requested_data is exist [13:09:53]produce_requested_data [13:09:53]requested_item fm.sn is exist - process it [13:09:53]wFMCommunicate request_size=4 [13:09:53]MH_SAM_APDU [13:09:53]CAPDU: 80 11 00 00 [13:09:53]Write to MH i2c: E2 08 00 6B 1C 80 11 00 00 00 00 00 00 01 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:53]Read from MH i2c: E2 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 17 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 17 00 6B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [13:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:09:53]wFMCommunicate OK [13:09:53]requested_item fd.num is exist - process it [13:09:53]SAM_PROTO_GetFieldsCounters [13:09:53]wFMCommunicate request_size=4 [13:09:53]MH_SAM_APDU [13:09:53]CAPDU: 80 13 00 00 [13:09:53]Write to MH i2c: E2 08 00 6C 1C 80 13 00 00 00 00 00 00 04 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:53]Read from MH i2c: E2 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 62 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 62 00 6C 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E8 95 01 00 0E 04 04 00 62 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 2F [13:09:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E8 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:53]wFMCommunicate OK [13:09:53]SAM_PROTO_GetFieldsCounters done [13:09:53]requested_item shift.num is exist - process it [13:09:53]requested_item shift.opened is exist - process it [13:09:53]req_shift_opened [13:09:53]FM_GetShiftState [13:09:53]SAM_PROTO_GetShiftState [13:09:53]wFMCommunicate request_size=4 [13:09:53]MH_SAM_APDU [13:09:53]CAPDU: 80 13 01 00 [13:09:53]Write to MH i2c: E2 08 00 6D 1C 80 13 01 00 00 00 00 00 06 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:53]Read from MH i2c: E2 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 0E 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 0E 00 6D 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 55 [13:09:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:09:53]wFMCommunicate OK [13:09:53]SAM_PROTO_GetShiftState done [13:09:53]FM_GetShiftState done [13:09:53]req_shift_opened done [13:09:53]requested_item shift.open_date is exist - process it [13:09:53]req_shift_open_date [13:09:53]req_shift_open_date done [13:09:53]produce_requested_data done [13:09:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103912,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:09:53]process_action_free close_receipt [13:09:53]json_value_free [13:09:53]json_value_free done [13:09:53]process_json_proto returns [13:09:53]Send response to host [13:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103912,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:09:53]free response buf [13:09:53]execute_script done [13:09:53]execute_script returns [13:09:53]free content buf [13:09:53]Sock 7.Close socket [13:09:53]Sock 7.Thread stoped [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:44]accept exits with 9 [13:10:44]New connection [13:10:44]New thread 3067207012 created [13:10:44]Thread 3067063652 joined [13:10:44]Waiting for new connection... [13:10:44] Sock 9.Parse request [13:10:44]Sock 9.Check first char [13:10:44]Sock 9.First char is OK [13:10:44]request: POST /json_proto HTTP/1.0 [13:10:44]Method: POST [13:10:44]URL: /json_proto [13:10:44]Method is POST - this is cgi request [13:10:44]url: /json_proto [13:10:44]query_string will be loaded in cgi processing [13:10:44]execute_cgi json_proto POST (null) [13:10:44]execute_cgi path=json_proto method=POST [13:10:44]POST find Content-Length [13:10:44]Host: 172.17.38.133:8080 [13:10:44]Content-Length: 811 [13:10:44]Content-Type: application/json [13:10:44] [13:10:44]POST finish read [13:10:44]Found Content-Length = 811 [13:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.000, "sum" : 10935.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:44]execute_script... [13:10: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)673255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.000, "sum" : 10935.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:44]POST & json_proto [13:10:44]process_json_proto [13:10:44]json parsed OK: [13:10:44]protocol is kg_v1.0 [13:10:44]action value=close_receipt [13:10:44]process_action close_receipt [13:10:44]cmd_close_receipt [13:10:44]MH_GetDate [13:10:44]Write to MH i2c: F0 00 00 6E 1C 79 [13:10:44]Write i2c OK [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: F0 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: F0 09 00 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: F0 09 00 6E 1C 00 56 2A 74 66 BD 8F 7C 64 08 [13:10:44]GetLastDocTimeStamp 1718888991 [13:10:44]current date 1718889046 [13:10:44]FM_GetShiftState [13:10:44]SAM_PROTO_GetShiftState [13:10:44]wFMCommunicate request_size=4 [13:10:44]MH_SAM_APDU [13:10:44]CAPDU: 80 13 01 00 [13:10:44]Write to MH i2c: E2 08 00 6F 1C 80 13 01 00 00 00 00 00 08 [13:10:44]Write i2c OK [13:10:44]MH_I2C_Read... [13:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:44]Read from MH i2c: E2 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: E2 0E 00 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: E2 0E 00 6F 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 57 [13:10:44]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:10:44]wFMCommunicate OK [13:10:44]SAM_PROTO_GetShiftState done [13:10:44]FM_GetShiftState done [13:10:44]opened in 1718843124 [13:10:44]opened+sec_in_day 1718929524 [13:10:44]quantity*price = 1093500 [13:10:44]sum+1 = 1093501 [13:10:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10935.00 НСП 1% : 96.77 НДС 12% : 1161.24 Наличными: 0.00 Безнал.: 10935.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 98 20.06.2024 13:10 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103913 ФПД: 38619605699983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131046&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103913&fm=38619605699983&tin=02508201610067®Number=0000000000092785&sum=1093500 [13:10:45]StoreToDocumentArchive [13:10:45]shift 354 fd 103913 [13:10:45]save to /storage/0354/doc_00103913 [13:10:45]save last doc name /storage/0354/doc_00103913 to /storage/kkm_last_doc_name [13:10:45]save OK [13:10:45]Clear old archive folders... [13:10:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:10:45]tlvbuf is 0087D070 [13:10:45]SAM_PROTO_ClearQueue [13:10:45]wFMCommunicate request_size=4 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 09 00 00 [13:10:45]Write to MH i2c: E2 08 00 7C 1C 80 09 00 00 00 00 00 00 0A [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 7C 1C 00 90 00 0C [13:10:45]RAPDU: 90 00 [13:10:45]wFMCommunicate OK [13:10:45]SAM_PROTO_ClearQueue done [13:10:45]KKMCreateOFDPacket [13:10:45]OFDProtocolAddRootSTLVToBuf [13:10:45]FM_MakeSignedData [13:10:45]FM_MakeSignedData [13:10:45]SAM_PROTO_SignData [13:10:45]wFMCommunicate request_size=4 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 0D 01 02 [13:10:45]Write to MH i2c: E2 08 00 7D 1C 80 0D 01 02 00 00 00 00 12 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 7D 1C 00 90 00 0D [13:10:45]RAPDU: 90 00 [13:10:45]wFMCommunicate OK [13:10:45]wFMCommunicate request_size=255 [13:10:45]MH_SAM_APDU [13:10:45]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 56 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 95 01 00 35 04 06 00 [13:10:45]Write to MH i2c: E2 02 01 7E 1C 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 56 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 95 01 00 35 04 06 00 00 00 D1 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 7E 1C 00 90 00 0E [13:10:45]RAPDU: 90 00 [13:10:45]wFMCommunicate OK [13:10:45]wFMCommunicate request_size=11 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 0D 02 02 06 23 1F D3 E1 0D 8F [13:10:45]Write to MH i2c: E2 0E 00 7F 1C 80 0D 02 02 06 00 23 1F D3 E1 0D 8F 00 00 B3 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 7F 1C 00 90 00 0F [13:10:45]RAPDU: 90 00 [13:10:45]wFMCommunicate OK [13:10:45]wFMCommunicate request_size=4 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 0D 03 02 [13:10:45]Write to MH i2c: E2 08 00 80 1C 80 0D 03 02 00 00 00 00 17 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 0B 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 0B 00 80 1C 00 75 37 96 AE 89 35 3B 79 90 00 7A [13:10:45]RAPDU: 75 37 96 AE 89 35 3B 79 90 00 [13:10:45]wFMCommunicate OK [13:10:45]SAM_PROTO_SignData done [13:10:45]FM_MakeSignedData done [13:10:45]CreateOFDProtocolMessage [13:10:45]wFMCommunicate request_size=4 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 11 00 00 [13:10:45]Write to MH i2c: E2 08 00 81 1C 80 11 00 00 00 00 00 00 17 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:46]Read from MH i2c: E2 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: E2 17 00 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: E2 17 00 81 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6A [13:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:10:46]wFMCommunicate OK [13:10:46]CreateOFDProtocolMessage done [13:10:46]OFDSenderStorePacket 103913 [13:10:46]StoreOFDPacket docnum=103913 [13:10:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 5D 00 08 01 68 C2 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 56 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 95 01 00 35 04 06 00 23 1F D3 E1 0D 8F 75 37 96 AE 89 35 3B 79 [13:10:46]CheckFolder [13:10:46]dirname=/storage/ofd_packets [13:10:46]CheckFolder done [13:10:46]ProducePacketName [13:10:46]name=ofd_packets/00103913 [13:10:46]NVStorageSaveData ofd_packets/00103913 [13:10:46]File name is /storage/ofd_packets/00103913 [13:10:46]Write 302 bytes [13:10:46]NVStorageSaveData done [13:10:46]OFDSenderStorePacket done [13:10:46]KKMCreateOFDPacket done [13:10:46]NVStorageSaveData kkm_last_timestamp [13:10:46]File name is /storage/kkm_last_timestamp [13:10:46]Write 4 bytes [13:10:46]NVStorageSaveData done [13:10:46]ExternCall_PrintAddStr [13:10:46]wPrintStart [13:10:46]Write to MH i2c: 01 00 00 82 1C 9E [13:10:46]OFD Sender: Processing packet 103913 [packets to send 17, broken 16] [13:10:46]ProducePacketName [13:10:46]name=ofd_packets/00103913 [13:10:46]OFD Sender: To server: pG, [13:10:46]CommunicateWithHost lk.salyk.kg:30040 [13:10:46]ConnectInit lk.salyk.kg [13:10:46]Write i2c OK [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: 01 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: 01 07 00 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: 01 07 00 82 1C 00 00 00 00 00 FF 0F B3 [13:10:46]RasterBufferAndPrint [13:10:46]line Счет N : (1)673255 [13:10:46]line ИНН: 02508201610067 [13:10:46]line Контрольно-Кассовый Чек [13:10:46]line ПРОДАЖА [13:10:46]line ТРК (МРК, ГНК) : 11 [13:10:46]line Товар: 2710194210 [13:10:46]line ДТ(л)-К-5 [13:10:46]line 150.000 * 72.90 [13:10:46]line = 10935.00 [13:10:46]line НДС 12% НСП 1% [13:10:46]line > о реализуемом товаре [13:10:46]line ИТОГО: 10935.00 [13:10:46]line НСП 1% : 96.77 [13:10:46]line НДС 12% : 1161.24 [13:10:46]line Наличными: 0.00 [13:10:46]line Безнал.: 10935.00 [13:10:46]line Место: АЗС № 120 "Партнер Нефть" [13:10:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:10:46]line СНО: Общий режим [13:10:46]line Чек 98 20.06.2024 13:10 [13:10:46]line Смена: 354 ФФД: 1.0 [13:10:46]line ЗНМ: 0300000164 [13:10:46]line РНМ: 0000000000092785 [13:10:46]line Версия ККМ: 001 [13:10:46]line Платежная система: O! деньги [13:10:46]line ФМ: 0000000000875093 [13:10:46]line ФД: 103913 [13:10:46]line ФПД: 38619605699983 [13:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131046&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103913&fm=38619605699983&tin=02508201610067®Number=0000000000092785&sum=1093500 [13:10:46]written 0, free lines is 4095 [13:10:46]Connected sock=10 [13:10:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 5D 00 08 01 68 C2 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 56 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 95 01 00 35 04 06 00 23 1F D3 E1 0D 8F 75 37 96 AE 89 35 3B 79 [13:10:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0E 34 47 00 CC DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 E9 95 01 00 F4 03 04 00 DB D0 73 66 B6 04 01 00 00 56 6B 0D 55 6C 2C 7F 36 [13:10:46]CommunicateWithHost err = 0 [13:10:46]CheckOFDResponse [13:10:46]1017 (14) - 77093643461234 [13:10:46]1041 (16) - 0000000000875093 [13:10:46]1040 (4) - 103913 [13:10:46]1012 (4) - 20.06.2024 06:48 [13:10:46]1206 (1) - 0 [13:10:46]OFD Sender: Remove packet 103913 [13:10:46]ProducePacketName [13:10:46]name=ofd_packets/00103913 [13:10:46]NVStorageDeleteData [13:10:46]Write to MH i2c: 01 00 00 AC 1C C8 [13:10:46]Write i2c OK [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: 01 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: 01 07 00 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: 01 07 00 AC 1C 00 00 00 00 00 FE 0C D9 [13:10:46]RasterBufferAndPrint [13:10:46]line [13:10:46]line [13:10:46]line [13:10:46]line [13:10:46]line [13:10:46]written 0, free lines is 3330 [13:10:46]MH_Cut [13:10:46]Write to MH i2c: D1 01 00 B3 1C 01 A1 [13:10:46]Write i2c OK [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: D1 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: D1 01 00 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: D1 01 00 B3 1C 00 A0 [13:10:46]Write to MH i2c: 01 00 00 B4 1C D0 [13:10:46]Write i2c OK [13:10:46]MH_I2C_Read... [13:10:46]OFD Sender: No OFD packet to send [13:10:47]*** Cut start [13:10:47]*** Partial cut [13:10:47]*** CUTSNS_PIN = 1 [13:10:47]*** CUTSNS_PIN = 0 [13:10:47]*** Brake cut motor [13:10:47]Read from MH i2c: 01 [13:10:47]MH_I2C_Read... [13:10:47]*** Stop cut motor [13:10:47]*** Cut end [13:10:47]Read from MH i2c: 01 07 00 [13:10:47]MH_I2C_Read... [13:10:47]Read from MH i2c: 01 07 00 B4 1C 00 00 00 00 00 FF 0F E5 [13:10:47]process_action close_receipt done [13:10:47]requested_data is exist [13:10:47]produce_requested_data [13:10:47]requested_item fm.sn is exist - process it [13:10:47]wFMCommunicate request_size=4 [13:10:47]MH_SAM_APDU [13:10:47]CAPDU: 80 11 00 00 [13:10:47]Write to MH i2c: E2 08 00 B5 1C 80 11 00 00 00 00 00 00 4B [13:10:47]Write i2c OK [13:10:47]MH_I2C_Read... [13:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:47]Read from MH i2c: E2 [13:10:47]MH_I2C_Read... [13:10:47]Read from MH i2c: E2 17 00 [13:10:47]MH_I2C_Read... [13:10:47]Read from MH i2c: E2 17 00 B5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [13:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:10:47]wFMCommunicate OK [13:10:47]requested_item fd.num is exist - process it [13:10:47]SAM_PROTO_GetFieldsCounters [13:10:47]wFMCommunicate request_size=4 [13:10:47]MH_SAM_APDU [13:10:47]CAPDU: 80 13 00 00 [13:10:47]Write to MH i2c: E2 08 00 B6 1C 80 13 00 00 00 00 00 00 4E [13:10:47]Write i2c OK [13:10:47]MH_I2C_Read... [13:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:48]Read from MH i2c: E2 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: E2 62 00 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: E2 62 00 B6 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E9 95 01 00 0E 04 04 00 62 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 7D [13:10:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 E9 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:48]wFMCommunicate OK [13:10:48]SAM_PROTO_GetFieldsCounters done [13:10:48]requested_item shift.num is exist - process it [13:10:48]requested_item shift.opened is exist - process it [13:10:48]req_shift_opened [13:10:48]FM_GetShiftState [13:10:48]SAM_PROTO_GetShiftState [13:10:48]wFMCommunicate request_size=4 [13:10:48]MH_SAM_APDU [13:10:48]CAPDU: 80 13 01 00 [13:10:48]Write to MH i2c: E2 08 00 B7 1C 80 13 01 00 00 00 00 00 50 [13:10:48]Write i2c OK [13:10:48]MH_I2C_Read... [13:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:48]Read from MH i2c: E2 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: E2 0E 00 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: E2 0E 00 B7 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9F [13:10:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:10:48]wFMCommunicate OK [13:10:48]SAM_PROTO_GetShiftState done [13:10:48]FM_GetShiftState done [13:10:48]req_shift_opened done [13:10:48]requested_item shift.open_date is exist - process it [13:10:48]req_shift_open_date [13:10:48]req_shift_open_date done [13:10:48]produce_requested_data done [13:10:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103913,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:10:48]process_action_free close_receipt [13:10:48]json_value_free [13:10:48]json_value_free done [13:10:48]process_json_proto returns [13:10:48]Send response to host [13:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103913,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:10:48]free response buf [13:10:48]execute_script done [13:10:48]execute_script returns [13:10:48]free content buf [13:10:48]Sock 9.Close socket [13:10:48]Sock 9.Thread stoped [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]accept exits with 7 [13:11:06]New connection [13:11:06]New thread 3067063652 created [13:11:06]Thread 3067207012 joined [13:11:06]Waiting for new connection... [13:11:06] Sock 7.Parse request [13:11:06]Sock 7.Check first char [13:11:06]Sock 7.First char is OK [13:11:06]request: POST /json_proto HTTP/1.0 [13:11:06]Method: POST [13:11:06]URL: /json_proto [13:11:06]Method is POST - this is cgi request [13:11:06]url: /json_proto [13:11:06]query_string will be loaded in cgi processing [13:11:06]execute_cgi json_proto POST (null) [13:11:06]execute_cgi path=json_proto method=POST [13:11:06]POST find Content-Length [13:11:06]Host: 172.17.38.133:8080 [13:11:06]Content-Length: 682 [13:11:06]Content-Type: application/json [13:11:06] [13:11:06]POST finish read [13:11:06]Found Content-Length = 682 [13:11:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:11:06]execute_script... [13:11: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)673260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:11:06]POST & json_proto [13:11:06]process_json_proto [13:11:06]json parsed OK: [13:11:06]protocol is kg_v1.0 [13:11:06]action value=close_receipt [13:11:06]process_action close_receipt [13:11:06]cmd_close_receipt [13:11:06]MH_GetDate [13:11:06]Write to MH i2c: F0 00 00 B8 1C C3 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: F0 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: F0 09 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: F0 09 00 B8 1C 00 6C 2A 74 66 BD 8F 7C 64 68 [13:11:06]GetLastDocTimeStamp 1718889046 [13:11:06]current date 1718889068 [13:11:06]FM_GetShiftState [13:11:06]SAM_PROTO_GetShiftState [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 13 01 00 [13:11:06]Write to MH i2c: E2 08 00 B9 1C 80 13 01 00 00 00 00 00 52 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 0E 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 0E 00 B9 1C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A1 [13:11:06]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:11:06]wFMCommunicate OK [13:11:06]SAM_PROTO_GetShiftState done [13:11:06]FM_GetShiftState done [13:11:06]opened in 1718843124 [13:11:06]opened+sec_in_day 1718929524 [13:11:06]quantity*price = 100064 [13:11:06]sum+1 = 100066 [13:11:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 99 20.06.2024 13:11 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103914 ФПД: 136294762329493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131108&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103914&fm=136294762329493&tin=02508201610067®Number=0000000000092785&sum=100000 [13:11:07]StoreToDocumentArchive [13:11:07]shift 354 fd 103914 [13:11:07]save to /storage/0354/doc_00103914 [13:11:07]save last doc name /storage/0354/doc_00103914 to /storage/kkm_last_doc_name [13:11:07]save OK [13:11:07]Clear old archive folders... [13:11:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:07]tlvbuf is 0089BE70 [13:11:07]SAM_PROTO_ClearQueue [13:11:07]wFMCommunicate request_size=4 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 09 00 00 [13:11:07]Write to MH i2c: E2 08 00 C6 1C 80 09 00 00 00 00 00 00 54 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 C6 1C 00 90 00 56 [13:11:07]RAPDU: 90 00 [13:11:07]wFMCommunicate OK [13:11:07]SAM_PROTO_ClearQueue done [13:11:07]KKMCreateOFDPacket [13:11:07]OFDProtocolAddRootSTLVToBuf [13:11:07]FM_MakeSignedData [13:11:07]FM_MakeSignedData [13:11:07]SAM_PROTO_SignData [13:11:07]wFMCommunicate request_size=4 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 0D 01 02 [13:11:07]Write to MH i2c: E2 08 00 C7 1C 80 0D 01 02 00 00 00 00 5C [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 C7 1C 00 90 00 57 [13:11:07]RAPDU: 90 00 [13:11:07]wFMCommunicate OK [13:11:07]wFMCommunicate request_size=255 [13:11:07]MH_SAM_APDU [13:11: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6C 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 95 01 00 35 04 06 00 7B [13:11:07]Write to MH i2c: E2 02 01 C8 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6C 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 95 01 00 35 04 06 00 7B 00 00 97 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:08]Read from MH i2c: E2 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 03 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 03 00 C8 1C 00 90 00 58 [13:11:08]RAPDU: 90 00 [13:11:08]wFMCommunicate OK [13:11:08]wFMCommunicate request_size=10 [13:11:08]MH_SAM_APDU [13:11:08]CAPDU: 80 0D 02 02 05 F5 98 E4 B5 95 [13:11:08]Write to MH i2c: E2 0D 00 C9 1C 80 0D 02 02 05 00 F5 98 E4 B5 95 00 00 24 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:08]Read from MH i2c: E2 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 03 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 03 00 C9 1C 00 90 00 59 [13:11:08]RAPDU: 90 00 [13:11:08]wFMCommunicate OK [13:11:08]wFMCommunicate request_size=4 [13:11:08]MH_SAM_APDU [13:11:08]CAPDU: 80 0D 03 02 [13:11:08]Write to MH i2c: E2 08 00 CA 1C 80 0D 03 02 00 00 00 00 61 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:08]Read from MH i2c: E2 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 0B 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 0B 00 CA 1C 00 FD E5 5F 12 48 B5 AD 89 90 00 E8 [13:11:08]RAPDU: FD E5 5F 12 48 B5 AD 89 90 00 [13:11:08]wFMCommunicate OK [13:11:08]SAM_PROTO_SignData done [13:11:08]FM_MakeSignedData done [13:11:08]CreateOFDProtocolMessage [13:11:08]wFMCommunicate request_size=4 [13:11:08]MH_SAM_APDU [13:11:08]CAPDU: 80 11 00 00 [13:11:08]Write to MH i2c: E2 08 00 CB 1C 80 11 00 00 00 00 00 00 61 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:08]Read from MH i2c: E2 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 17 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: E2 17 00 CB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [13:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:11:08]wFMCommunicate OK [13:11:08]CreateOFDProtocolMessage done [13:11:08]OFDSenderStorePacket 103914 [13:11:08]StoreOFDPacket docnum=103914 [13:11:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4E 03 07 01 C2 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6C 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 95 01 00 35 04 06 00 7B F5 98 E4 B5 95 FD E5 5F 12 48 B5 AD 89 [13:11:08]CheckFolder [13:11:08]dirname=/storage/ofd_packets [13:11:08]CheckFolder done [13:11:08]ProducePacketName [13:11:08]name=ofd_packets/00103914 [13:11:08]NVStorageSaveData ofd_packets/00103914 [13:11:08]File name is /storage/ofd_packets/00103914 [13:11:08]Write 301 bytes [13:11:08]NVStorageSaveData done [13:11:08]OFDSenderStorePacket done [13:11:08]KKMCreateOFDPacket done [13:11:08]NVStorageSaveData kkm_last_timestamp [13:11:08]File name is /storage/kkm_last_timestamp [13:11:08]Write 4 bytes [13:11:08]NVStorageSaveData done [13:11:08]ExternCall_PrintAddStr [13:11:08]wPrintStart [13:11:08]Write to MH i2c: 01 00 00 CC 1C E8 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 07 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 07 00 CC 1C 00 00 00 00 00 FF 0F FD [13:11:08]RasterBufferAndPrint [13:11:08]line Счет N : (1)673260 [13:11:08]line ИНН: 02508201610067 [13:11:08]line Контрольно-Кассовый Чек [13:11:08]line ПРОДАЖА [13:11:08]line ТРК (МРК, ГНК) : 42 [13:11:08]line Товар: 2710124130 [13:11:08]line Аи-92-К-5 [13:11:08]line 15.070 * 66.40 [13:11:08]line = 1000.65 [13:11:08]line НДС 12% НСП 1% [13:11:08]line > о реализуемом товаре [13:11:08]line ОКРУГЛЕНИЕ: -0.65 [13:11:08]line ИТОГО: 1000.00 [13:11:08]line Внесено: 1000.00 [13:11:08]line СДАЧА: 0.00 [13:11:08]line НСП 1% : 8.85 [13:11:08]line НДС 12% : 106.26 [13:11:08]line Наличными: 1000.00 [13:11:08]line Безнал.: 0.00 [13:11:08]line Место: АЗС № 120 "Партнер Нефть" [13:11:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:11:08]line СНО: Общий режим [13:11:08]line Чек 99 20.06.2024 13:11 [13:11:08]line Смена: 354 ФФД: 1.0 [13:11:08]line ЗНМ: 0300000164 [13:11:08]line РНМ: 0000000000092785 [13:11:08]line Версия ККМ: 001 [13:11:08]line ФМ: 0000000000875093 [13:11:08]line ФД: 103914 [13:11:08]line ФПД: 136294762329493 [13:11:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131108&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103914&fm=136294762329493&tin=02508201610067®Number=0000000000092785&sum=100000 [13:11:08]OFD Sender: Processing packet 103914 [packets to send 17, broken 16] [13:11:08]ProducePacketName [13:11:08]name=ofd_packets/00103914 [13:11:08]OFD Sender: To server: pG, [13:11:08]CommunicateWithHost lk.salyk.kg:30040 [13:11:08]ConnectInit lk.salyk.kg [13:11:08]written 0, free lines is 4095 [13:11:08]Connected sock=10 [13:11:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 4E 03 07 01 C2 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 6C 2A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 95 01 00 35 04 06 00 7B F5 98 E4 B5 95 FD E5 5F 12 48 B5 AD 89 [13:11:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A0 05 47 00 63 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EA 95 01 00 F4 03 04 00 F2 D0 73 66 B6 04 01 00 00 0D F4 B6 BD E0 1B 6D 52 [13:11:08]CommunicateWithHost err = 0 [13:11:08]CheckOFDResponse [13:11:08]1017 (14) - 77093643461234 [13:11:08]1041 (16) - 0000000000875093 [13:11:08]1040 (4) - 103914 [13:11:08]1012 (4) - 20.06.2024 06:49 [13:11:08]1206 (1) - 0 [13:11:08]OFD Sender: Remove packet 103914 [13:11:08]ProducePacketName [13:11:08]name=ofd_packets/00103914 [13:11:08]NVStorageDeleteData [13:11:09]Write to MH i2c: 01 00 00 F7 1C 13 [13:11:09]Write i2c OK [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: 01 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: 01 07 00 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: 01 07 00 F7 1C 00 00 00 00 00 E7 0C 0D [13:11:09]RasterBufferAndPrint [13:11:09]line [13:11:09]line [13:11:09]line [13:11:09]line [13:11:09]line [13:11:09]written 0, free lines is 3310 [13:11:09]MH_Cut [13:11:09]Write to MH i2c: D1 01 00 FE 1C 01 EC [13:11:09]Write i2c OK [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: D1 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: D1 01 00 [13:11:09]MH_I2C_Read... [13:11:09]Read from MH i2c: D1 01 00 FE 1C 00 EB [13:11:09]Write to MH i2c: 01 00 00 FF 1C 1B [13:11:09]Write i2c OK [13:11:09]MH_I2C_Read... [13:11:09]OFD Sender: No OFD packet to send [13:11:09]*** Cut start [13:11:09]*** Partial cut [13:11:09]*** CUTSNS_PIN = 1 [13:11:09]*** CUTSNS_PIN = 0 [13:11:10]*** Brake cut motor [13:11:10]Read from MH i2c: 01 [13:11:10]MH_I2C_Read... [13:11:10]*** Stop cut motor [13:11:10]*** Cut end [13:11:10]Read from MH i2c: 01 07 00 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: 01 07 00 FF 1C 00 00 00 00 00 FF 0F 30 [13:11:10]process_action close_receipt done [13:11:10]requested_data is exist [13:11:10]produce_requested_data [13:11:10]requested_item fm.sn is exist - process it [13:11:10]wFMCommunicate request_size=4 [13:11:10]MH_SAM_APDU [13:11:10]CAPDU: 80 11 00 00 [13:11:10]Write to MH i2c: E2 08 00 00 1D 80 11 00 00 00 00 00 00 97 [13:11:10]Write i2c OK [13:11:10]MH_I2C_Read... [13:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:10]Read from MH i2c: E2 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: E2 17 00 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: E2 17 00 00 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EA [13:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:11:10]wFMCommunicate OK [13:11:10]requested_item fd.num is exist - process it [13:11:10]SAM_PROTO_GetFieldsCounters [13:11:10]wFMCommunicate request_size=4 [13:11:10]MH_SAM_APDU [13:11:10]CAPDU: 80 13 00 00 [13:11:10]Write to MH i2c: E2 08 00 01 1D 80 13 00 00 00 00 00 00 9A [13:11:10]Write i2c OK [13:11:10]MH_I2C_Read... [13:11:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:10]Read from MH i2c: E2 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: E2 62 00 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: E2 62 00 01 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EA 95 01 00 0E 04 04 00 62 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 CD [13:11:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EA 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:10]wFMCommunicate OK [13:11:10]SAM_PROTO_GetFieldsCounters done [13:11:10]requested_item shift.num is exist - process it [13:11:10]requested_item shift.opened is exist - process it [13:11:10]req_shift_opened [13:11:10]FM_GetShiftState [13:11:10]SAM_PROTO_GetShiftState [13:11:10]wFMCommunicate request_size=4 [13:11:10]MH_SAM_APDU [13:11:10]CAPDU: 80 13 01 00 [13:11:10]Write to MH i2c: E2 08 00 02 1D 80 13 01 00 00 00 00 00 9C [13:11:10]Write i2c OK [13:11:10]MH_I2C_Read... [13:11:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:10]Read from MH i2c: E2 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: E2 0E 00 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: E2 0E 00 02 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EB [13:11:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:11:10]wFMCommunicate OK [13:11:10]SAM_PROTO_GetShiftState done [13:11:10]FM_GetShiftState done [13:11:10]req_shift_opened done [13:11:10]requested_item shift.open_date is exist - process it [13:11:10]req_shift_open_date [13:11:10]req_shift_open_date done [13:11:10]produce_requested_data done [13:11:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103914,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:11:10]process_action_free close_receipt [13:11:10]json_value_free [13:11:10]json_value_free done [13:11:10]process_json_proto returns [13:11:10]Send response to host [13:11:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103914,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:11:10]free response buf [13:11:10]execute_script done [13:11:10]execute_script returns [13:11:10]free content buf [13:11:10]Sock 7.Close socket [13:11:10]Sock 7.Thread stoped [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:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:32]accept exits with 9 [13:18:32]New connection [13:18:32]New thread 3067207012 created [13:18:32]Thread 3067063652 joined [13:18:32]Waiting for new connection... [13:18:32] Sock 9.Parse request [13:18:32]Sock 9.Check first char [13:18:32]Sock 9.First char is OK [13:18:32]request: POST /json_proto HTTP/1.0 [13:18:32]Method: POST [13:18:32]URL: /json_proto [13:18:32]Method is POST - this is cgi request [13:18:32]url: /json_proto [13:18:32]query_string will be loaded in cgi processing [13:18:32]execute_cgi json_proto POST (null) [13:18:32]execute_cgi path=json_proto method=POST [13:18:32]POST find Content-Length [13:18:32]Host: 172.17.38.133:8080 [13:18:32]Content-Length: 819 [13:18:32]Content-Type: application/json [13:18:32] [13:18:32]POST finish read [13:18:32]Found Content-Length = 819 [13:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:32]execute_script... [13:18: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)673262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:32]POST & json_proto [13:18:32]process_json_proto [13:18:32]json parsed OK: [13:18:32]protocol is kg_v1.0 [13:18:32]action value=close_receipt [13:18:32]process_action close_receipt [13:18:32]cmd_close_receipt [13:18:32]MH_GetDate [13:18:32]Write to MH i2c: F0 00 00 03 1D 0F [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: F0 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: F0 09 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: F0 09 00 03 1D 00 2A 2C 74 66 BD 8F 7C 64 74 [13:18:32]GetLastDocTimeStamp 1718889068 [13:18:32]current date 1718889514 [13:18:32]FM_GetShiftState [13:18:32]SAM_PROTO_GetShiftState [13:18:32]wFMCommunicate request_size=4 [13:18:32]MH_SAM_APDU [13:18:32]CAPDU: 80 13 01 00 [13:18:32]Write to MH i2c: E2 08 00 04 1D 80 13 01 00 00 00 00 00 9E [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:32]Read from MH i2c: E2 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 0E 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 0E 00 04 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 ED [13:18:32]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:18:32]wFMCommunicate OK [13:18:32]SAM_PROTO_GetShiftState done [13:18:32]FM_GetShiftState done [13:18:32]opened in 1718843124 [13:18:32]opened+sec_in_day 1718929524 [13:18:32]quantity*price = 100064 [13:18:32]sum+1 = 100066 [13:18:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 100 20.06.2024 13:18 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103915 ФПД: 62431953807693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131834&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103915&fm=62431953807693&tin=02508201610067®Number=0000000000092785&sum=100065 [13:18:33]StoreToDocumentArchive [13:18:33]shift 354 fd 103915 [13:18:33]save to /storage/0354/doc_00103915 [13:18:33]save last doc name /storage/0354/doc_00103915 to /storage/kkm_last_doc_name [13:18:33]save OK [13:18:33]Clear old archive folders... [13:18:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:33]tlvbuf is B6EE6A10 [13:18:33]SAM_PROTO_ClearQueue [13:18:33]wFMCommunicate request_size=4 [13:18:33]MH_SAM_APDU [13:18:33]CAPDU: 80 09 00 00 [13:18:33]Write to MH i2c: E2 08 00 11 1D 80 09 00 00 00 00 00 00 A0 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 03 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 03 00 11 1D 00 90 00 A2 [13:18:33]RAPDU: 90 00 [13:18:33]wFMCommunicate OK [13:18:33]SAM_PROTO_ClearQueue done [13:18:33]KKMCreateOFDPacket [13:18:33]OFDProtocolAddRootSTLVToBuf [13:18:33]FM_MakeSignedData [13:18:33]FM_MakeSignedData [13:18:33]SAM_PROTO_SignData [13:18:33]wFMCommunicate request_size=4 [13:18:33]MH_SAM_APDU [13:18:33]CAPDU: 80 0D 01 02 [13:18:33]Write to MH i2c: E2 08 00 12 1D 80 0D 01 02 00 00 00 00 A8 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 03 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 03 00 12 1D 00 90 00 A3 [13:18:33]RAPDU: 90 00 [13:18:33]wFMCommunicate OK [13:18:33]wFMCommunicate request_size=255 [13:18:33]MH_SAM_APDU [13:18: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2A 2C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 95 01 00 35 04 06 00 38 [13:18:33]Write to MH i2c: E2 02 01 13 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2A 2C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 95 01 00 35 04 06 00 38 00 00 E4 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 03 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 03 00 13 1D 00 90 00 A4 [13:18:33]RAPDU: 90 00 [13:18:33]wFMCommunicate OK [13:18:33]wFMCommunicate request_size=10 [13:18:33]MH_SAM_APDU [13:18:33]CAPDU: 80 0D 02 02 05 C8 12 6D E9 4D [13:18:33]Write to MH i2c: E2 0D 00 14 1D 80 0D 02 02 05 00 C8 12 6D E9 4D 00 00 32 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 03 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 03 00 14 1D 00 90 00 A5 [13:18:33]RAPDU: 90 00 [13:18:33]wFMCommunicate OK [13:18:33]wFMCommunicate request_size=4 [13:18:33]MH_SAM_APDU [13:18:33]CAPDU: 80 0D 03 02 [13:18:33]Write to MH i2c: E2 08 00 15 1D 80 0D 03 02 00 00 00 00 AD [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 0B 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 0B 00 15 1D 00 43 44 23 7E 04 79 A6 53 90 00 4C [13:18:33]RAPDU: 43 44 23 7E 04 79 A6 53 90 00 [13:18:33]wFMCommunicate OK [13:18:33]SAM_PROTO_SignData done [13:18:33]FM_MakeSignedData done [13:18:33]CreateOFDProtocolMessage [13:18:33]wFMCommunicate request_size=4 [13:18:33]MH_SAM_APDU [13:18:33]CAPDU: 80 11 00 00 [13:18:33]Write to MH i2c: E2 08 00 16 1D 80 11 00 00 00 00 00 00 AD [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:33]Read from MH i2c: E2 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 17 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: E2 17 00 16 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [13:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:18:33]wFMCommunicate OK [13:18:33]CreateOFDProtocolMessage done [13:18:33]OFDSenderStorePacket 103915 [13:18:33]StoreOFDPacket docnum=103915 [13:18:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 86 C8 07 01 8D FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2A 2C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 95 01 00 35 04 06 00 38 C8 12 6D E9 4D 43 44 23 7E 04 79 A6 53 [13:18:33]CheckFolder [13:18:33]dirname=/storage/ofd_packets [13:18:33]CheckFolder done [13:18:33]ProducePacketName [13:18:33]name=ofd_packets/00103915 [13:18:33]NVStorageSaveData ofd_packets/00103915 [13:18:33]File name is /storage/ofd_packets/00103915 [13:18:33]Write 301 bytes [13:18:33]NVStorageSaveData done [13:18:33]OFDSenderStorePacket done [13:18:33]KKMCreateOFDPacket done [13:18:33]NVStorageSaveData kkm_last_timestamp [13:18:33]File name is /storage/kkm_last_timestamp [13:18:33]Write 4 bytes [13:18:33]NVStorageSaveData done [13:18:33]ExternCall_PrintAddStr [13:18:33]wPrintStart [13:18:33]Write to MH i2c: 01 00 00 17 1D 34 [13:18:33]Write i2c OK [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: 01 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: 01 07 00 [13:18:33]MH_I2C_Read... [13:18:33]Read from MH i2c: 01 07 00 17 1D 00 00 00 00 00 FF 0F 49 [13:18:33]RasterBufferAndPrint [13:18:33]line Счет N : (1)673262 [13:18:33]line ИНН: 02508201610067 [13:18:33]line Контрольно-Кассовый Чек [13:18:33]line ПРОДАЖА [13:18:33]line ТРК (МРК, ГНК) : 32 [13:18:33]line Товар: 2710124130 [13:18:33]line Аи-92-К-5 [13:18:33]line 15.070 * 66.40 [13:18:33]line = 1000.65 [13:18:33]line НДС 12% НСП 1% [13:18:33]line > о реализуемом товаре [13:18:33]line ИТОГО: 1000.65 [13:18:33]line НСП 1% : 8.85 [13:18:33]line НДС 12% : 106.26 [13:18:33]line Наличными: 0.00 [13:18:33]line Безнал.: 1000.65 [13:18:33]line Место: АЗС № 120 "Партнер Нефть" [13:18:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:18:33]line СНО: Общий режим [13:18:33]line Чек 100 20.06.2024 13:18 [13:18:33]line Смена: 354 ФФД: 1.0 [13:18:33]line ЗНМ: 0300000164 [13:18:33]line РНМ: 0000000000092785 [13:18:33]line Версия ККМ: 001 [13:18:33]line Платежная система: Бакай Банк [13:18:33]line ФМ: 0000000000875093 [13:18:33]line ФД: 103915 [13:18:33]line ФПД: 62431953807693 [13:18:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T131834&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103915&fm=62431953807693&tin=02508201610067®Number=0000000000092785&sum=100065 [13:18:34]written 0, free lines is 4095 [13:18:34]OFD Sender: Processing packet 103915 [packets to send 17, broken 16] [13:18:34]ProducePacketName [13:18:34]name=ofd_packets/00103915 [13:18:34]OFD Sender: To server: pG, [13:18:34]CommunicateWithHost lk.salyk.kg:30040 [13:18:34]ConnectInit lk.salyk.kg [13:18:34]Connected sock=10 [13:18:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 86 C8 07 01 8D FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 2A 2C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 95 01 00 35 04 06 00 38 C8 12 6D E9 4D 43 44 23 7E 04 79 A6 53 [13:18:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 28 59 47 00 BD E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EB 95 01 00 F4 03 04 00 AF D2 73 66 B6 04 01 00 00 C6 5D 36 79 4A DA A8 B8 [13:18:34]CommunicateWithHost err = 0 [13:18:34]CheckOFDResponse [13:18:34]1017 (14) - 77093643461234 [13:18:34]1041 (16) - 0000000000875093 [13:18:34]1040 (4) - 103915 [13:18:34]1012 (4) - 20.06.2024 06:56 [13:18:34]1206 (1) - 0 [13:18:34]OFD Sender: Remove packet 103915 [13:18:34]ProducePacketName [13:18:34]name=ofd_packets/00103915 [13:18:34]NVStorageDeleteData [13:18:34]Write to MH i2c: 01 00 00 41 1D 5E [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: 01 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: 01 07 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: 01 07 00 41 1D 00 00 00 00 00 FA 0C 6B [13:18:34]RasterBufferAndPrint [13:18:34]line [13:18:34]line [13:18:34]line [13:18:34]line [13:18:34]line [13:18:34]written 0, free lines is 3331 [13:18:34]MH_Cut [13:18:34]Write to MH i2c: D1 01 00 48 1D 01 37 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: D1 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: D1 01 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: D1 01 00 48 1D 00 36 [13:18:34]Write to MH i2c: 01 00 00 49 1D 66 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:35]OFD Sender: No OFD packet to send [13:18:35]*** Cut start [13:18:35]*** Partial cut [13:18:35]*** CUTSNS_PIN = 1 [13:18:35]*** CUTSNS_PIN = 0 [13:18:35]*** Brake cut motor [13:18:35]Read from MH i2c: 01 [13:18:35]MH_I2C_Read... [13:18:35]*** Stop cut motor [13:18:35]*** Cut end [13:18:35]Read from MH i2c: 01 07 00 [13:18:35]MH_I2C_Read... [13:18:35]Read from MH i2c: 01 07 00 49 1D 00 00 00 00 00 FF 0F 7B [13:18:35]process_action close_receipt done [13:18:35]requested_data is exist [13:18:35]produce_requested_data [13:18:35]requested_item fm.sn is exist - process it [13:18:35]wFMCommunicate request_size=4 [13:18:35]MH_SAM_APDU [13:18:35]CAPDU: 80 11 00 00 [13:18:35]Write to MH i2c: E2 08 00 4A 1D 80 11 00 00 00 00 00 00 E1 [13:18:35]Write i2c OK [13:18:35]MH_I2C_Read... [13:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:36]Read from MH i2c: E2 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 17 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 17 00 4A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [13:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:18:36]wFMCommunicate OK [13:18:36]requested_item fd.num is exist - process it [13:18:36]SAM_PROTO_GetFieldsCounters [13:18:36]wFMCommunicate request_size=4 [13:18:36]MH_SAM_APDU [13:18:36]CAPDU: 80 13 00 00 [13:18:36]Write to MH i2c: E2 08 00 4B 1D 80 13 00 00 00 00 00 00 E4 [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:36]Read from MH i2c: E2 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 62 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 62 00 4B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EB 95 01 00 0E 04 04 00 62 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 1B [13:18:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EB 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:36]wFMCommunicate OK [13:18:36]SAM_PROTO_GetFieldsCounters done [13:18:36]requested_item shift.num is exist - process it [13:18:36]requested_item shift.opened is exist - process it [13:18:36]req_shift_opened [13:18:36]FM_GetShiftState [13:18:36]SAM_PROTO_GetShiftState [13:18:36]wFMCommunicate request_size=4 [13:18:36]MH_SAM_APDU [13:18:36]CAPDU: 80 13 01 00 [13:18:36]Write to MH i2c: E2 08 00 4C 1D 80 13 01 00 00 00 00 00 E6 [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:36]Read from MH i2c: E2 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 0E 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: E2 0E 00 4C 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 35 [13:18:36]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:18:36]wFMCommunicate OK [13:18:36]SAM_PROTO_GetShiftState done [13:18:36]FM_GetShiftState done [13:18:36]req_shift_opened done [13:18:36]requested_item shift.open_date is exist - process it [13:18:36]req_shift_open_date [13:18:36]req_shift_open_date done [13:18:36]produce_requested_data done [13:18:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103915,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:18:36]process_action_free close_receipt [13:18:36]json_value_free [13:18:36]json_value_free done [13:18:36]process_json_proto returns [13:18:36]Send response to host [13:18:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103915,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:18:36]free response buf [13:18:36]execute_script done [13:18:36]execute_script returns [13:18:36]free content buf [13:18:36]Sock 9.Close socket [13:18:36]Sock 9.Thread stoped [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:28]accept exits with 7 [13:25:28]New connection [13:25:28]New thread 3067063652 created [13:25:28]Thread 3067207012 joined [13:25:28]Waiting for new connection... [13:25:28] Sock 7.Parse request [13:25:28]Sock 7.Check first char [13:25:28]Sock 7.First char is OK [13:25:28]request: POST /json_proto HTTP/1.0 [13:25:28]Method: POST [13:25:28]URL: /json_proto [13:25:28]Method is POST - this is cgi request [13:25:28]url: /json_proto [13:25:28]query_string will be loaded in cgi processing [13:25:28]execute_cgi json_proto POST (null) [13:25:28]execute_cgi path=json_proto method=POST [13:25:28]POST find Content-Length [13:25:28]Host: 172.17.38.133:8080 [13:25:28]Content-Length: 677 [13:25:28]Content-Type: application/json [13:25:28] [13:25:28]POST finish read [13:25:28]Found Content-Length = 677 [13:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:25:28]execute_script... [13:25: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)673264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:25:28]POST & json_proto [13:25:28]process_json_proto [13:25:28]json parsed OK: [13:25:28]protocol is kg_v1.0 [13:25:28]action value=close_receipt [13:25:28]process_action close_receipt [13:25:28]cmd_close_receipt [13:25:28]MH_GetDate [13:25:28]Write to MH i2c: F0 00 00 4D 1D 59 [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: F0 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: F0 09 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: F0 09 00 4D 1D 00 CB 2D 74 66 BD 8F 7C 64 60 [13:25:28]GetLastDocTimeStamp 1718889514 [13:25:28]current date 1718889931 [13:25:28]FM_GetShiftState [13:25:28]SAM_PROTO_GetShiftState [13:25:28]wFMCommunicate request_size=4 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 13 01 00 [13:25:28]Write to MH i2c: E2 08 00 4E 1D 80 13 01 00 00 00 00 00 E8 [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:29]Read from MH i2c: E2 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 0E 00 [13:25:29]MH_I2C_Read... [13:25:29]Read from MH i2c: E2 0E 00 4E 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 37 [13:25:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:25:29]wFMCommunicate OK [13:25:29]SAM_PROTO_GetShiftState done [13:25:29]FM_GetShiftState done [13:25:29]opened in 1718843124 [13:25:29]opened+sec_in_day 1718929524 [13:25:29]quantity*price = 30012 [13:25:29]sum+1 = 30014 [13:25:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 101 20.06.2024 13:25 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103916 ФПД: 94684396616034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132531&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103916&fm=94684396616034&tin=02508201610067®Number=0000000000092785&sum=30000 [13:25:30]StoreToDocumentArchive [13:25:30]shift 354 fd 103916 [13:25:30]save to /storage/0354/doc_00103916 [13:25:30]save last doc name /storage/0354/doc_00103916 to /storage/kkm_last_doc_name [13:25:30]save OK [13:25:30]Clear old archive folders... [13:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:30]tlvbuf is B6F18BA0 [13:25:30]SAM_PROTO_ClearQueue [13:25:30]wFMCommunicate request_size=4 [13:25:30]MH_SAM_APDU [13:25:30]CAPDU: 80 09 00 00 [13:25:30]Write to MH i2c: E2 08 00 5B 1D 80 09 00 00 00 00 00 00 EA [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:30]Read from MH i2c: E2 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 03 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 03 00 5B 1D 00 90 00 EC [13:25:30]RAPDU: 90 00 [13:25:30]wFMCommunicate OK [13:25:30]SAM_PROTO_ClearQueue done [13:25:30]KKMCreateOFDPacket [13:25:30]OFDProtocolAddRootSTLVToBuf [13:25:30]FM_MakeSignedData [13:25:30]FM_MakeSignedData [13:25:30]SAM_PROTO_SignData [13:25:30]wFMCommunicate request_size=4 [13:25:30]MH_SAM_APDU [13:25:30]CAPDU: 80 0D 01 02 [13:25:30]Write to MH i2c: E2 08 00 5C 1D 80 0D 01 02 00 00 00 00 F2 [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:30]Read from MH i2c: E2 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 03 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 03 00 5C 1D 00 90 00 ED [13:25:30]RAPDU: 90 00 [13:25:30]wFMCommunicate OK [13:25:30]wFMCommunicate request_size=255 [13:25:30]MH_SAM_APDU [13:25: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 CB 2D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 95 01 00 35 04 06 00 56 [13:25:30]Write to MH i2c: E2 02 01 5D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 CB 2D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 95 01 00 35 04 06 00 56 00 00 BC [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]OFD Sender: No OFD packet to send [13:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:30]Read from MH i2c: E2 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 03 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 03 00 5D 1D 00 90 00 EE [13:25:30]RAPDU: 90 00 [13:25:30]wFMCommunicate OK [13:25:30]wFMCommunicate request_size=10 [13:25:30]MH_SAM_APDU [13:25:30]CAPDU: 80 0D 02 02 05 1D 6D D3 79 62 [13:25:30]Write to MH i2c: E2 0D 00 5E 1D 80 0D 02 02 05 00 1D 6D D3 79 62 00 00 37 [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:30]Read from MH i2c: E2 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 03 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 03 00 5E 1D 00 90 00 EF [13:25:30]RAPDU: 90 00 [13:25:30]wFMCommunicate OK [13:25:30]wFMCommunicate request_size=4 [13:25:30]MH_SAM_APDU [13:25:30]CAPDU: 80 0D 03 02 [13:25:30]Write to MH i2c: E2 08 00 5F 1D 80 0D 03 02 00 00 00 00 F7 [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:30]Read from MH i2c: E2 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 0B 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 0B 00 5F 1D 00 6D 0D 6C 5E 08 4A 75 83 90 00 86 [13:25:30]RAPDU: 6D 0D 6C 5E 08 4A 75 83 90 00 [13:25:30]wFMCommunicate OK [13:25:30]SAM_PROTO_SignData done [13:25:30]FM_MakeSignedData done [13:25:30]CreateOFDProtocolMessage [13:25:30]wFMCommunicate request_size=4 [13:25:30]MH_SAM_APDU [13:25:30]CAPDU: 80 11 00 00 [13:25:30]Write to MH i2c: E2 08 00 60 1D 80 11 00 00 00 00 00 00 F7 [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:30]Read from MH i2c: E2 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 17 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 17 00 60 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [13:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:25:30]wFMCommunicate OK [13:25:30]CreateOFDProtocolMessage done [13:25:30]OFDSenderStorePacket 103916 [13:25:30]StoreOFDPacket docnum=103916 [13:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C1 58 07 01 1A 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 CB 2D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 95 01 00 35 04 06 00 56 1D 6D D3 79 62 6D 0D 6C 5E 08 4A 75 83 [13:25:30]CheckFolder [13:25:30]dirname=/storage/ofd_packets [13:25:30]CheckFolder done [13:25:30]ProducePacketName [13:25:30]name=ofd_packets/00103916 [13:25:30]NVStorageSaveData ofd_packets/00103916 [13:25:30]File name is /storage/ofd_packets/00103916 [13:25:30]Write 301 bytes [13:25:30]NVStorageSaveData done [13:25:30]OFDSenderStorePacket done [13:25:30]KKMCreateOFDPacket done [13:25:30]NVStorageSaveData kkm_last_timestamp [13:25:30]File name is /storage/kkm_last_timestamp [13:25:30]Write 4 bytes [13:25:30]NVStorageSaveData done [13:25:30]ExternCall_PrintAddStr [13:25:30]wPrintStart [13:25:30]Write to MH i2c: 01 00 00 61 1D 7E [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: 01 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: 01 07 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: 01 07 00 61 1D 00 00 00 00 00 FF 0F 93 [13:25:30]RasterBufferAndPrint [13:25:30]line Счет N : (1)673264 [13:25:30]line ИНН: 02508201610067 [13:25:30]line Контрольно-Кассовый Чек [13:25:30]line ПРОДАЖА [13:25:30]line ТРК (МРК, ГНК) : 42 [13:25:30]line Товар: 2710124130 [13:25:30]line Аи-92-К-5 [13:25:30]line 4.520 * 66.40 [13:25:30]line = 300.13 [13:25:30]line НДС 12% НСП 1% [13:25:30]line > о реализуемом товаре [13:25:30]line ОКРУГЛЕНИЕ: -0.13 [13:25:30]line ИТОГО: 300.00 [13:25:30]line Внесено: 300.00 [13:25:30]line СДАЧА: 0.00 [13:25:30]line НСП 1% : 2.66 [13:25:30]line НДС 12% : 31.87 [13:25:30]line Наличными: 300.00 [13:25:30]line Безнал.: 0.00 [13:25:30]line Место: АЗС № 120 "Партнер Нефть" [13:25:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:25:30]line СНО: Общий режим [13:25:30]line Чек 101 20.06.2024 13:25 [13:25:30]line Смена: 354 ФФД: 1.0 [13:25:30]line ЗНМ: 0300000164 [13:25:30]line РНМ: 0000000000092785 [13:25:30]line Версия ККМ: 001 [13:25:30]line ФМ: 0000000000875093 [13:25:30]line ФД: 103916 [13:25:30]line ФПД: 94684396616034 [13:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132531&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103916&fm=94684396616034&tin=02508201610067®Number=0000000000092785&sum=30000 [13:25:31]OFD Sender: Processing packet 103916 [packets to send 17, broken 16] [13:25:31]ProducePacketName [13:25:31]name=ofd_packets/00103916 [13:25:31]OFD Sender: To server: pG, [13:25:31]CommunicateWithHost lk.salyk.kg:30040 [13:25:31]ConnectInit lk.salyk.kg [13:25:31]written 0, free lines is 4095 [13:25:31]Connected sock=10 [13:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C1 58 07 01 1A 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 CB 2D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EC 95 01 00 35 04 06 00 56 1D 6D D3 79 62 6D 0D 6C 5E 08 4A 75 83 [13:25:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 ED 24 47 00 FB 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 35 30 39 33 10 04 04 00 EC 95 01 00 F4 03 04 00 50 D4 73 66 B6 04 01 00 00 00 10 DE 52 3B E3 81 FB [13:25:31]CommunicateWithHost err = 0 [13:25:31]CheckOFDResponse [13:25:31]1017 (14) - 77093643461234 [13:25:31]1041 (16) - 0000000000875093 [13:25:31]1040 (4) - 103916 [13:25:31]1012 (4) - 20.06.2024 07:03 [13:25:31]1206 (1) - 0 [13:25:31]OFD Sender: Remove packet 103916 [13:25:31]ProducePacketName [13:25:31]name=ofd_packets/00103916 [13:25:31]NVStorageDeleteData [13:25:31]Write to MH i2c: 01 00 00 8C 1D A9 [13:25:31]Write i2c OK [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: 01 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: 01 07 00 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: 01 07 00 8C 1D 00 00 00 00 00 DE 0C 9A [13:25:31]RasterBufferAndPrint [13:25:31]line [13:25:31]line [13:25:31]line [13:25:31]line [13:25:31]line [13:25:31]written 0, free lines is 3303 [13:25:31]MH_Cut [13:25:31]Write to MH i2c: D1 01 00 93 1D 01 82 [13:25:31]Write i2c OK [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: D1 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: D1 01 00 [13:25:31]MH_I2C_Read... [13:25:31]Read from MH i2c: D1 01 00 93 1D 00 81 [13:25:31]Write to MH i2c: 01 00 00 94 1D B1 [13:25:31]Write i2c OK [13:25:31]MH_I2C_Read... [13:25:31]OFD Sender: No OFD packet to send [13:25:32]*** Cut start [13:25:32]*** Partial cut [13:25:32]*** CUTSNS_PIN = 1 [13:25:32]*** CUTSNS_PIN = 0 [13:25:32]*** Brake cut motor [13:25:32]Read from MH i2c: 01 [13:25:32]*** Stop cut motor [13:25:32]*** Cut end [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: 01 07 00 [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: 01 07 00 94 1D 00 00 00 00 00 FF 0F C6 [13:25:32]process_action close_receipt done [13:25:32]requested_data is exist [13:25:32]produce_requested_data [13:25:32]requested_item fm.sn is exist - process it [13:25:32]wFMCommunicate request_size=4 [13:25:32]MH_SAM_APDU [13:25:32]CAPDU: 80 11 00 00 [13:25:32]Write to MH i2c: E2 08 00 95 1D 80 11 00 00 00 00 00 00 2C [13:25:32]Write i2c OK [13:25:32]MH_I2C_Read... [13:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:32]Read from MH i2c: E2 [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: E2 17 00 [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: E2 17 00 95 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [13:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:25:32]wFMCommunicate OK [13:25:32]requested_item fd.num is exist - process it [13:25:32]SAM_PROTO_GetFieldsCounters [13:25:32]wFMCommunicate request_size=4 [13:25:32]MH_SAM_APDU [13:25:32]CAPDU: 80 13 00 00 [13:25:32]Write to MH i2c: E2 08 00 96 1D 80 13 00 00 00 00 00 00 2F [13:25:32]Write i2c OK [13:25:32]MH_I2C_Read... [13:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:32]Read from MH i2c: E2 [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: E2 62 00 [13:25:32]MH_I2C_Read... [13:25:32]Read from MH i2c: E2 62 00 96 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EC 95 01 00 0E 04 04 00 62 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 6A [13:25:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EC 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:32]wFMCommunicate OK [13:25:32]SAM_PROTO_GetFieldsCounters done [13:25:32]requested_item shift.num is exist - process it [13:25:32]requested_item shift.opened is exist - process it [13:25:32]req_shift_opened [13:25:32]FM_GetShiftState [13:25:32]SAM_PROTO_GetShiftState [13:25:32]wFMCommunicate request_size=4 [13:25:32]MH_SAM_APDU [13:25:32]CAPDU: 80 13 01 00 [13:25:32]Write to MH i2c: E2 08 00 97 1D 80 13 01 00 00 00 00 00 31 [13:25:32]Write i2c OK [13:25:32]MH_I2C_Read... [13:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:33]Read from MH i2c: E2 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 0E 00 [13:25:33]MH_I2C_Read... [13:25:33]Read from MH i2c: E2 0E 00 97 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 80 [13:25:33]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:25:33]wFMCommunicate OK [13:25:33]SAM_PROTO_GetShiftState done [13:25:33]FM_GetShiftState done [13:25:33]req_shift_opened done [13:25:33]requested_item shift.open_date is exist - process it [13:25:33]req_shift_open_date [13:25:33]req_shift_open_date done [13:25:33]produce_requested_data done [13:25:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103916,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:25:33]process_action_free close_receipt [13:25:33]json_value_free [13:25:33]json_value_free done [13:25:33]process_json_proto returns [13:25:33]Send response to host [13:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103916,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:25:33]free response buf [13:25:33]execute_script done [13:25:33]execute_script returns [13:25:33]free content buf [13:25:33]Sock 7.Close socket [13:25:33]Sock 7.Thread stoped [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:50]accept exits with 9 [13:25:50]New connection [13:25:50]New thread 3067207012 created [13:25:50]Thread 3067063652 joined [13:25:50]Waiting for new connection... [13:25:50] Sock 9.Parse request [13:25:50]Sock 9.Check first char [13:25:50]Sock 9.First char is OK [13:25:50]request: POST /json_proto HTTP/1.0 [13:25:50]Method: POST [13:25:50]URL: /json_proto [13:25:50]Method is POST - this is cgi request [13:25:50]url: /json_proto [13:25:50]query_string will be loaded in cgi processing [13:25:50]execute_cgi json_proto POST (null) [13:25:50]execute_cgi path=json_proto method=POST [13:25:50]POST find Content-Length [13:25:50]Host: 172.17.38.133:8080 [13:25:50]Content-Length: 811 [13:25:50]Content-Type: application/json [13:25:50] [13:25:50]POST finish read [13:25:50]Found Content-Length = 811 [13:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.000, "sum" : 10935.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:50]execute_script... [13:25: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)673263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.000, "sum" : 10935.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:50]POST & json_proto [13:25:50]process_json_proto [13:25:50]json parsed OK: [13:25:50]protocol is kg_v1.0 [13:25:50]action value=close_receipt [13:25:50]process_action close_receipt [13:25:50]cmd_close_receipt [13:25:50]MH_GetDate [13:25:50]Write to MH i2c: F0 00 00 98 1D A4 [13:25:50]Write i2c OK [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: F0 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: F0 09 00 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: F0 09 00 98 1D 00 E0 2D 74 66 BD 8F 7C 64 C0 [13:25:50]GetLastDocTimeStamp 1718889931 [13:25:50]current date 1718889952 [13:25:50]FM_GetShiftState [13:25:50]SAM_PROTO_GetShiftState [13:25:50]wFMCommunicate request_size=4 [13:25:50]MH_SAM_APDU [13:25:50]CAPDU: 80 13 01 00 [13:25:50]Write to MH i2c: E2 08 00 99 1D 80 13 01 00 00 00 00 00 33 [13:25:50]Write i2c OK [13:25:50]MH_I2C_Read... [13:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:50]Read from MH i2c: E2 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: E2 0E 00 [13:25:50]MH_I2C_Read... [13:25:50]Read from MH i2c: E2 0E 00 99 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 82 [13:25:50]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:25:50]wFMCommunicate OK [13:25:50]SAM_PROTO_GetShiftState done [13:25:50]FM_GetShiftState done [13:25:50]opened in 1718843124 [13:25:50]opened+sec_in_day 1718929524 [13:25:50]quantity*price = 1093500 [13:25:50]sum+1 = 1093501 [13:25:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10935.00 НСП 1% : 96.77 НДС 12% : 1161.24 Наличными: 0.00 Безнал.: 10935.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 102 20.06.2024 13:25 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103917 ФПД: 235005217964441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132552&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103917&fm=235005217964441&tin=02508201610067®Number=0000000000092785&sum=1093500 [13:25:51]StoreToDocumentArchive [13:25:51]shift 354 fd 103917 [13:25:51]save to /storage/0354/doc_00103917 [13:25:51]save last doc name /storage/0354/doc_00103917 to /storage/kkm_last_doc_name [13:25:51]save OK [13:25:51]Clear old archive folders... [13:25:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:25:51]tlvbuf is B6EFF9F0 [13:25:51]SAM_PROTO_ClearQueue [13:25:51]wFMCommunicate request_size=4 [13:25:51]MH_SAM_APDU [13:25:51]CAPDU: 80 09 00 00 [13:25:51]Write to MH i2c: E2 08 00 A6 1D 80 09 00 00 00 00 00 00 35 [13:25:51]Write i2c OK [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: E2 [13:25:51]MH_I2C_Read... [13:25:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:51]Read from MH i2c: E2 03 00 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: E2 03 00 A6 1D 00 90 00 37 [13:25:51]RAPDU: 90 00 [13:25:51]wFMCommunicate OK [13:25:51]SAM_PROTO_ClearQueue done [13:25:51]KKMCreateOFDPacket [13:25:51]OFDProtocolAddRootSTLVToBuf [13:25:51]FM_MakeSignedData [13:25:51]FM_MakeSignedData [13:25:51]SAM_PROTO_SignData [13:25:51]wFMCommunicate request_size=4 [13:25:51]MH_SAM_APDU [13:25:51]CAPDU: 80 0D 01 02 [13:25:51]Write to MH i2c: E2 08 00 A7 1D 80 0D 01 02 00 00 00 00 3D [13:25:51]Write i2c OK [13:25:51]MH_I2C_Read... [13:25:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:51]Read from MH i2c: E2 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: E2 03 00 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: E2 03 00 A7 1D 00 90 00 38 [13:25:51]RAPDU: 90 00 [13:25:51]wFMCommunicate OK [13:25:51]wFMCommunicate request_size=255 [13:25:51]MH_SAM_APDU [13:25:51]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E0 2D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 95 01 00 35 04 06 00 [13:25:51]Write to MH i2c: E2 02 01 A8 1D 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E0 2D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 95 01 00 35 04 06 00 00 00 91 [13:25:51]Write i2c OK [13:25:51]MH_I2C_Read... [13:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:51]Read from MH i2c: E2 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: E2 03 00 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: E2 03 00 A8 1D 00 90 00 39 [13:25:51]RAPDU: 90 00 [13:25:51]wFMCommunicate OK [13:25:51]wFMCommunicate request_size=11 [13:25:51]MH_SAM_APDU [13:25:51]CAPDU: 80 0D 02 02 06 D5 BC 6A 89 81 99 [13:25:51]Write to MH i2c: E2 0E 00 A9 1D 80 0D 02 02 06 00 D5 BC 6A 89 81 99 00 00 EA [13:25:51]Write i2c OK [13:25:51]MH_I2C_Read... [13:25:51]OFD Sender: No OFD packet to send [13:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:51]Read from MH i2c: E2 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: E2 03 00 [13:25:51]MH_I2C_Read... [13:25:51]Read from MH i2c: E2 03 00 A9 1D 00 90 00 3A [13:25:51]RAPDU: 90 00 [13:25:51]wFMCommunicate OK [13:25:51]wFMCommunicate request_size=4 [13:25:51]MH_SAM_APDU [13:25:51]CAPDU: 80 0D 03 02 [13:25:51]Write to MH i2c: E2 08 00 AA 1D 80 0D 03 02 00 00 00 00 42 [13:25:51]Write i2c OK [13:25:51]MH_I2C_Read... [13:25:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 0B 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 0B 00 AA 1D 00 2D 8C D8 1A B7 3F 39 1A 90 00 37 [13:25:52]RAPDU: 2D 8C D8 1A B7 3F 39 1A 90 00 [13:25:52]wFMCommunicate OK [13:25:52]SAM_PROTO_SignData done [13:25:52]FM_MakeSignedData done [13:25:52]CreateOFDProtocolMessage [13:25:52]wFMCommunicate request_size=4 [13:25:52]MH_SAM_APDU [13:25:52]CAPDU: 80 11 00 00 [13:25:52]Write to MH i2c: E2 08 00 AB 1D 80 11 00 00 00 00 00 00 42 [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:52]Read from MH i2c: E2 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 17 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: E2 17 00 AB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 95 [13:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:25:52]wFMCommunicate OK [13:25:52]CreateOFDProtocolMessage done [13:25:52]OFDSenderStorePacket 103917 [13:25:52]StoreOFDPacket docnum=103917 [13:25:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 47 2A 08 01 2C F3 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E0 2D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 95 01 00 35 04 06 00 D5 BC 6A 89 81 99 2D 8C D8 1A B7 3F 39 1A [13:25:52]CheckFolder [13:25:52]dirname=/storage/ofd_packets [13:25:52]CheckFolder done [13:25:52]ProducePacketName [13:25:52]name=ofd_packets/00103917 [13:25:52]NVStorageSaveData ofd_packets/00103917 [13:25:52]File name is /storage/ofd_packets/00103917 [13:25:52]Write 302 bytes [13:25:52]NVStorageSaveData done [13:25:52]OFDSenderStorePacket done [13:25:52]KKMCreateOFDPacket done [13:25:52]NVStorageSaveData kkm_last_timestamp [13:25:52]File name is /storage/kkm_last_timestamp [13:25:52]Write 4 bytes [13:25:52]NVStorageSaveData done [13:25:52]ExternCall_PrintAddStr [13:25:52]wPrintStart [13:25:52]Write to MH i2c: 01 00 00 AC 1D C9 [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: 01 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: 01 07 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: 01 07 00 AC 1D 00 00 00 00 00 FF 0F DE [13:25:52]RasterBufferAndPrint [13:25:52]line Счет N : (1)673263 [13:25:52]line ИНН: 02508201610067 [13:25:52]line Контрольно-Кассовый Чек [13:25:52]line ПРОДАЖА [13:25:52]line ТРК (МРК, ГНК) : 11 [13:25:52]line Товар: 2710194210 [13:25:52]line ДТ(л)-К-5 [13:25:52]line 150.000 * 72.90 [13:25:52]line = 10935.00 [13:25:52]line НДС 12% НСП 1% [13:25:52]line > о реализуемом товаре [13:25:52]line ИТОГО: 10935.00 [13:25:52]line НСП 1% : 96.77 [13:25:52]line НДС 12% : 1161.24 [13:25:52]line Наличными: 0.00 [13:25:52]line Безнал.: 10935.00 [13:25:52]line Место: АЗС № 120 "Партнер Нефть" [13:25:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:25:52]line СНО: Общий режим [13:25:52]line Чек 102 20.06.2024 13:25 [13:25:52]line Смена: 354 ФФД: 1.0 [13:25:52]line ЗНМ: 0300000164 [13:25:52]line РНМ: 0000000000092785 [13:25:52]line Версия ККМ: 001 [13:25:52]line Платежная система: O! деньги [13:25:52]line ФМ: 0000000000875093 [13:25:52]line ФД: 103917 [13:25:52]line ФПД: 235005217964441 [13:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132552&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103917&fm=235005217964441&tin=02508201610067®Number=0000000000092785&sum=1093500 [13:25:52]OFD Sender: Processing packet 103917 [packets to send 17, broken 16] [13:25:52]ProducePacketName [13:25:52]name=ofd_packets/00103917 [13:25:52]OFD Sender: To server: pG, [13:25:52]CommunicateWithHost lk.salyk.kg:30040 [13:25:52]ConnectInit lk.salyk.kg [13:25:52]written 0, free lines is 4095 [13:25:52]Connected sock=10 [13:25:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 47 2A 08 01 2C F3 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E0 2D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 95 01 00 35 04 06 00 D5 BC 6A 89 81 99 2D 8C D8 1A B7 3F 39 1A [13:25:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 37 0D 47 00 C2 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 ED 95 01 00 F4 03 04 00 65 D4 73 66 B6 04 01 00 00 D8 1D D3 1B 37 9B EC F0 [13:25:52]CommunicateWithHost err = 0 [13:25:52]CheckOFDResponse [13:25:52]1017 (14) - 77093643461234 [13:25:52]1041 (16) - 0000000000875093 [13:25:52]1040 (4) - 103917 [13:25:52]1012 (4) - 20.06.2024 07:04 [13:25:52]1206 (1) - 0 [13:25:52]OFD Sender: Remove packet 103917 [13:25:52]ProducePacketName [13:25:52]name=ofd_packets/00103917 [13:25:52]NVStorageDeleteData [13:25:52]Write to MH i2c: 01 00 00 D6 1D F3 [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: 01 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: 01 07 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: 01 07 00 D6 1D 00 00 00 00 00 E8 0C EE [13:25:52]RasterBufferAndPrint [13:25:52]line [13:25:52]line [13:25:52]line [13:25:52]line [13:25:52]line [13:25:52]written 0, free lines is 3311 [13:25:52]MH_Cut [13:25:52]Write to MH i2c: D1 01 00 DD 1D 01 CC [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: D1 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: D1 01 00 [13:25:52]MH_I2C_Read... [13:25:52]Read from MH i2c: D1 01 00 DD 1D 00 CB [13:25:52]Write to MH i2c: 01 00 00 DE 1D FB [13:25:52]Write i2c OK [13:25:52]MH_I2C_Read... [13:25:53]OFD Sender: No OFD packet to send [13:25:53]*** Cut start [13:25:53]*** Partial cut [13:25:53]*** CUTSNS_PIN = 1 [13:25:53]*** CUTSNS_PIN = 0 [13:25:53]*** Brake cut motor [13:25:54]Read from MH i2c: 01 [13:25:54]MH_I2C_Read... [13:25:54]*** Stop cut motor [13:25:54]*** Cut end [13:25:54]Read from MH i2c: 01 07 00 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: 01 07 00 DE 1D 00 00 00 00 00 FF 0F 10 [13:25:54]process_action close_receipt done [13:25:54]requested_data is exist [13:25:54]produce_requested_data [13:25:54]requested_item fm.sn is exist - process it [13:25:54]wFMCommunicate request_size=4 [13:25:54]MH_SAM_APDU [13:25:54]CAPDU: 80 11 00 00 [13:25:54]Write to MH i2c: E2 08 00 DF 1D 80 11 00 00 00 00 00 00 76 [13:25:54]Write i2c OK [13:25:54]MH_I2C_Read... [13:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:54]Read from MH i2c: E2 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 17 00 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 17 00 DF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C9 [13:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:25:54]wFMCommunicate OK [13:25:54]requested_item fd.num is exist - process it [13:25:54]SAM_PROTO_GetFieldsCounters [13:25:54]wFMCommunicate request_size=4 [13:25:54]MH_SAM_APDU [13:25:54]CAPDU: 80 13 00 00 [13:25:54]Write to MH i2c: E2 08 00 E0 1D 80 13 00 00 00 00 00 00 79 [13:25:54]Write i2c OK [13:25:54]MH_I2C_Read... [13:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:54]Read from MH i2c: E2 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 62 00 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 62 00 E0 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 ED 95 01 00 0E 04 04 00 62 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 B8 [13:25:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 ED 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:54]wFMCommunicate OK [13:25:54]SAM_PROTO_GetFieldsCounters done [13:25:54]requested_item shift.num is exist - process it [13:25:54]requested_item shift.opened is exist - process it [13:25:54]req_shift_opened [13:25:54]FM_GetShiftState [13:25:54]SAM_PROTO_GetShiftState [13:25:54]wFMCommunicate request_size=4 [13:25:54]MH_SAM_APDU [13:25:54]CAPDU: 80 13 01 00 [13:25:54]Write to MH i2c: E2 08 00 E1 1D 80 13 01 00 00 00 00 00 7B [13:25:54]Write i2c OK [13:25:54]MH_I2C_Read... [13:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:54]Read from MH i2c: E2 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 0E 00 [13:25:54]MH_I2C_Read... [13:25:54]Read from MH i2c: E2 0E 00 E1 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CA [13:25:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:25:54]wFMCommunicate OK [13:25:54]SAM_PROTO_GetShiftState done [13:25:54]FM_GetShiftState done [13:25:54]req_shift_opened done [13:25:54]requested_item shift.open_date is exist - process it [13:25:54]req_shift_open_date [13:25:54]req_shift_open_date done [13:25:54]produce_requested_data done [13:25:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103917,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:25:54]process_action_free close_receipt [13:25:54]json_value_free [13:25:54]json_value_free done [13:25:54]process_json_proto returns [13:25:54]Send response to host [13:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103917,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:25:54]free response buf [13:25:54]execute_script done [13:25:54]execute_script returns [13:25:54]free content buf [13:25:54]Sock 9.Close socket [13:25:54]Sock 9.Thread stoped [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:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:09]accept exits with 7 [13:27:09]New connection [13:27:09]New thread 3067063652 created [13:27:09]Thread 3067207012 joined [13:27:09]Waiting for new connection... [13:27:09] Sock 7.Parse request [13:27:09]Sock 7.Check first char [13:27:09]Sock 7.First char is OK [13:27:09]request: POST /json_proto HTTP/1.0 [13:27:09]Method: POST [13:27:09]URL: /json_proto [13:27:09]Method is POST - this is cgi request [13:27:09]url: /json_proto [13:27:09]query_string will be loaded in cgi processing [13:27:09]execute_cgi json_proto POST (null) [13:27:09]execute_cgi path=json_proto method=POST [13:27:09]POST find Content-Length [13:27:09]Host: 172.17.38.133:8080 [13:27:09]Content-Length: 677 [13:27:09]Content-Type: application/json [13:27:09] [13:27:09]POST finish read [13:27:09]Found Content-Length = 677 [13:27:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:09]execute_script... [13:27: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)673266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:09]POST & json_proto [13:27:09]process_json_proto [13:27:09]json parsed OK: [13:27:09]protocol is kg_v1.0 [13:27:09]action value=close_receipt [13:27:09]process_action close_receipt [13:27:09]cmd_close_receipt [13:27:09]MH_GetDate [13:27:09]Write to MH i2c: F0 00 00 E2 1D EE [13:27:09]Write i2c OK [13:27:09]MH_I2C_Read... [13:27:09]Read from MH i2c: F0 [13:27:09]MH_I2C_Read... [13:27:09]Read from MH i2c: F0 09 00 [13:27:09]MH_I2C_Read... [13:27:09]Read from MH i2c: F0 09 00 E2 1D 00 30 2E 74 66 BD 8F 7C 64 5B [13:27:09]GetLastDocTimeStamp 1718889952 [13:27:09]current date 1718890032 [13:27:09]FM_GetShiftState [13:27:09]SAM_PROTO_GetShiftState [13:27:09]wFMCommunicate request_size=4 [13:27:09]MH_SAM_APDU [13:27:09]CAPDU: 80 13 01 00 [13:27:09]Write to MH i2c: E2 08 00 E3 1D 80 13 01 00 00 00 00 00 7D [13:27:09]Write i2c OK [13:27:09]MH_I2C_Read... [13:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:10]Read from MH i2c: E2 [13:27:10]MH_I2C_Read... [13:27:10]Read from MH i2c: E2 0E 00 [13:27:10]MH_I2C_Read... [13:27:10]Read from MH i2c: E2 0E 00 E3 1D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CC [13:27:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:27:10]wFMCommunicate OK [13:27:10]SAM_PROTO_GetShiftState done [13:27:10]FM_GetShiftState done [13:27:10]opened in 1718843124 [13:27:10]opened+sec_in_day 1718929524 [13:27:10]quantity*price = 50065 [13:27:10]sum+1 = 50067 [13:27:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 103 20.06.2024 13:27 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103918 ФПД: 55835428327158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132712&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103918&fm=55835428327158&tin=02508201610067®Number=0000000000092785&sum=50000 [13:27:10]StoreToDocumentArchive [13:27:10]shift 354 fd 103918 [13:27:10]save to /storage/0354/doc_00103918 [13:27:10]save last doc name /storage/0354/doc_00103918 to /storage/kkm_last_doc_name [13:27:10]save OK [13:27:10]Clear old archive folders... [13:27:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:10]tlvbuf is 0084DAF0 [13:27:10]SAM_PROTO_ClearQueue [13:27:10]wFMCommunicate request_size=4 [13:27:10]MH_SAM_APDU [13:27:10]CAPDU: 80 09 00 00 [13:27:10]Write to MH i2c: E2 08 00 F0 1D 80 09 00 00 00 00 00 00 7F [13:27:10]Write i2c OK [13:27:10]MH_I2C_Read... [13:27:10]Read from MH i2c: E2 [13:27:10]MH_I2C_Read... [13:27:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:10]Read from MH i2c: E2 03 00 [13:27:10]MH_I2C_Read... [13:27:10]Read from MH i2c: E2 03 00 F0 1D 00 90 00 81 [13:27:10]RAPDU: 90 00 [13:27:10]wFMCommunicate OK [13:27:10]SAM_PROTO_ClearQueue done [13:27:10]KKMCreateOFDPacket [13:27:10]OFDProtocolAddRootSTLVToBuf [13:27:10]FM_MakeSignedData [13:27:10]FM_MakeSignedData [13:27:10]SAM_PROTO_SignData [13:27:10]wFMCommunicate request_size=4 [13:27:10]MH_SAM_APDU [13:27:10]CAPDU: 80 0D 01 02 [13:27:10]Write to MH i2c: E2 08 00 F1 1D 80 0D 01 02 00 00 00 00 87 [13:27:10]Write i2c OK [13:27:10]MH_I2C_Read... [13:27:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:10]Read from MH i2c: E2 [13:27:10]MH_I2C_Read... [13:27:10]Read from MH i2c: E2 03 00 [13:27:10]MH_I2C_Read... [13:27:10]Read from MH i2c: E2 03 00 F1 1D 00 90 00 82 [13:27:10]RAPDU: 90 00 [13:27:10]wFMCommunicate OK [13:27:10]wFMCommunicate request_size=255 [13:27:10]MH_SAM_APDU [13:27:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 30 2E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 95 01 00 35 04 06 00 32 [13:27:10]Write to MH i2c: E2 02 01 F2 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 30 2E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 95 01 00 35 04 06 00 32 00 00 F9 [13:27:10]Write i2c OK [13:27:10]MH_I2C_Read... [13:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:11]Read from MH i2c: E2 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: E2 03 00 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: E2 03 00 F2 1D 00 90 00 83 [13:27:11]RAPDU: 90 00 [13:27:11]wFMCommunicate OK [13:27:11]wFMCommunicate request_size=10 [13:27:11]MH_SAM_APDU [13:27:11]CAPDU: 80 0D 02 02 05 C8 32 DF 0E F6 [13:27:11]Write to MH i2c: E2 0D 00 F3 1D 80 0D 02 02 05 00 C8 32 DF 0E F6 00 00 71 [13:27:11]Write i2c OK [13:27:11]MH_I2C_Read... [13:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:11]Read from MH i2c: E2 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: E2 03 00 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: E2 03 00 F3 1D 00 90 00 84 [13:27:11]RAPDU: 90 00 [13:27:11]wFMCommunicate OK [13:27:11]wFMCommunicate request_size=4 [13:27:11]MH_SAM_APDU [13:27:11]CAPDU: 80 0D 03 02 [13:27:11]Write to MH i2c: E2 08 00 F4 1D 80 0D 03 02 00 00 00 00 8C [13:27:11]Write i2c OK [13:27:11]MH_I2C_Read... [13:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:11]Read from MH i2c: E2 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: E2 0B 00 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: E2 0B 00 F4 1D 00 35 B1 ED F3 C7 24 9A 07 90 00 DF [13:27:11]RAPDU: 35 B1 ED F3 C7 24 9A 07 90 00 [13:27:11]wFMCommunicate OK [13:27:11]SAM_PROTO_SignData done [13:27:11]FM_MakeSignedData done [13:27:11]CreateOFDProtocolMessage [13:27:11]wFMCommunicate request_size=4 [13:27:11]MH_SAM_APDU [13:27:11]CAPDU: 80 11 00 00 [13:27:11]Write to MH i2c: E2 08 00 F5 1D 80 11 00 00 00 00 00 00 8C [13:27:11]Write i2c OK [13:27:11]MH_I2C_Read... [13:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:11]Read from MH i2c: E2 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: E2 17 00 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: E2 17 00 F5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DF [13:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:27:11]wFMCommunicate OK [13:27:11]CreateOFDProtocolMessage done [13:27:11]OFDSenderStorePacket 103918 [13:27:11]StoreOFDPacket docnum=103918 [13:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7C DF 07 01 7A 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 30 2E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 95 01 00 35 04 06 00 32 C8 32 DF 0E F6 35 B1 ED F3 C7 24 9A 07 [13:27:11]CheckFolder [13:27:11]dirname=/storage/ofd_packets [13:27:11]CheckFolder done [13:27:11]ProducePacketName [13:27:11]name=ofd_packets/00103918 [13:27:11]NVStorageSaveData ofd_packets/00103918 [13:27:11]File name is /storage/ofd_packets/00103918 [13:27:11]Write 301 bytes [13:27:11]NVStorageSaveData done [13:27:11]OFDSenderStorePacket done [13:27:11]KKMCreateOFDPacket done [13:27:11]NVStorageSaveData kkm_last_timestamp [13:27:11]File name is /storage/kkm_last_timestamp [13:27:11]Write 4 bytes [13:27:11]NVStorageSaveData done [13:27:11]ExternCall_PrintAddStr [13:27:11]wPrintStart [13:27:11]Write to MH i2c: 01 00 00 F6 1D 13 [13:27:11]Write i2c OK [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: 01 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: 01 07 00 [13:27:11]MH_I2C_Read... [13:27:11]Read from MH i2c: 01 07 00 F6 1D 00 00 00 00 00 FF 0F 28 [13:27:11]RasterBufferAndPrint [13:27:11]line Счет N : (1)673266 [13:27:11]line ИНН: 02508201610067 [13:27:11]line Контрольно-Кассовый Чек [13:27:11]line ПРОДАЖА [13:27:11]line ТРК (МРК, ГНК) : 32 [13:27:11]line Товар: 2710124130 [13:27:11]line Аи-92-К-5 [13:27:11]line 7.540 * 66.40 [13:27:11]line = 500.66 [13:27:11]line НДС 12% НСП 1% [13:27:11]line > о реализуемом товаре [13:27:11]line ОКРУГЛЕНИЕ: -0.66 [13:27:11]line ИТОГО: 500.00 [13:27:11]line Внесено: 500.00 [13:27:11]line СДАЧА: 0.00 [13:27:11]line НСП 1% : 4.43 [13:27:11]line НДС 12% : 53.17 [13:27:11]line Наличными: 500.00 [13:27:11]line Безнал.: 0.00 [13:27:11]line Место: АЗС № 120 "Партнер Нефть" [13:27:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:27:11]line СНО: Общий режим [13:27:11]line Чек 103 20.06.2024 13:27 [13:27:11]line Смена: 354 ФФД: 1.0 [13:27:11]line ЗНМ: 0300000164 [13:27:11]line РНМ: 0000000000092785 [13:27:11]line Версия ККМ: 001 [13:27:11]line ФМ: 0000000000875093 [13:27:11]line ФД: 103918 [13:27:11]line ФПД: 55835428327158 [13:27:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T132712&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103918&fm=55835428327158&tin=02508201610067®Number=0000000000092785&sum=50000 [13:27:11]OFD Sender: Processing packet 103918 [packets to send 17, broken 16] [13:27:11]ProducePacketName [13:27:11]name=ofd_packets/00103918 [13:27:11]OFD Sender: To server: pG, [13:27:11]CommunicateWithHost lk.salyk.kg:30040 [13:27:11]ConnectInit lk.salyk.kg [13:27:11]written 0, free lines is 4095 [13:27:11]Connected sock=10 [13:27:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7C DF 07 01 7A 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 30 2E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EE 95 01 00 35 04 06 00 32 C8 32 DF 0E F6 35 B1 ED F3 C7 24 9A 07 [13:27:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 13 F8 47 00 24 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 35 30 39 33 10 04 04 00 EE 95 01 00 F4 03 04 00 B5 D4 73 66 B6 04 01 00 00 2F 6D 9B D9 93 3A FF 79 [13:27:12]CommunicateWithHost err = 0 [13:27:12]CheckOFDResponse [13:27:12]1017 (14) - 77093643461234 [13:27:12]1041 (16) - 0000000000875093 [13:27:12]1040 (4) - 103918 [13:27:12]1012 (4) - 20.06.2024 07:05 [13:27:12]1206 (1) - 0 [13:27:12]OFD Sender: Remove packet 103918 [13:27:12]ProducePacketName [13:27:12]name=ofd_packets/00103918 [13:27:12]NVStorageDeleteData [13:27:12]Write to MH i2c: 01 00 00 21 1E 3F [13:27:12]Write i2c OK [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: 01 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: 01 07 00 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: 01 07 00 21 1E 00 00 00 00 00 E7 0C 39 [13:27:12]RasterBufferAndPrint [13:27:12]line [13:27:12]line [13:27:12]line [13:27:12]line [13:27:12]line [13:27:12]written 0, free lines is 3313 [13:27:12]MH_Cut [13:27:12]Write to MH i2c: D1 01 00 28 1E 01 18 [13:27:12]Write i2c OK [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: D1 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: D1 01 00 [13:27:12]MH_I2C_Read... [13:27:12]Read from MH i2c: D1 01 00 28 1E 00 17 [13:27:12]Write to MH i2c: 01 00 00 29 1E 47 [13:27:12]Write i2c OK [13:27:12]MH_I2C_Read... [13:27:12]OFD Sender: No OFD packet to send [13:27:12]*** Cut start [13:27:12]*** Partial cut [13:27:12]*** CUTSNS_PIN = 1 [13:27:12]*** CUTSNS_PIN = 0 [13:27:13]*** Brake cut motor [13:27:13]Read from MH i2c: 01 [13:27:13]MH_I2C_Read... [13:27:13]*** Stop cut motor [13:27:13]*** Cut end [13:27:13]Read from MH i2c: 01 07 00 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: 01 07 00 29 1E 00 00 00 00 00 FF 0F 5C [13:27:13]process_action close_receipt done [13:27:13]requested_data is exist [13:27:13]produce_requested_data [13:27:13]requested_item fm.sn is exist - process it [13:27:13]wFMCommunicate request_size=4 [13:27:13]MH_SAM_APDU [13:27:13]CAPDU: 80 11 00 00 [13:27:13]Write to MH i2c: E2 08 00 2A 1E 80 11 00 00 00 00 00 00 C2 [13:27:13]Write i2c OK [13:27:13]MH_I2C_Read... [13:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:13]Read from MH i2c: E2 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: E2 17 00 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: E2 17 00 2A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [13:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:27:13]wFMCommunicate OK [13:27:13]requested_item fd.num is exist - process it [13:27:13]SAM_PROTO_GetFieldsCounters [13:27:13]wFMCommunicate request_size=4 [13:27:13]MH_SAM_APDU [13:27:13]CAPDU: 80 13 00 00 [13:27:13]Write to MH i2c: E2 08 00 2B 1E 80 13 00 00 00 00 00 00 C5 [13:27:13]Write i2c OK [13:27:13]MH_I2C_Read... [13:27:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:13]Read from MH i2c: E2 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: E2 62 00 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: E2 62 00 2B 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EE 95 01 00 0E 04 04 00 62 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 08 [13:27:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EE 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:13]wFMCommunicate OK [13:27:13]SAM_PROTO_GetFieldsCounters done [13:27:13]requested_item shift.num is exist - process it [13:27:13]requested_item shift.opened is exist - process it [13:27:13]req_shift_opened [13:27:13]FM_GetShiftState [13:27:13]SAM_PROTO_GetShiftState [13:27:13]wFMCommunicate request_size=4 [13:27:13]MH_SAM_APDU [13:27:13]CAPDU: 80 13 01 00 [13:27:13]Write to MH i2c: E2 08 00 2C 1E 80 13 01 00 00 00 00 00 C7 [13:27:13]Write i2c OK [13:27:13]MH_I2C_Read... [13:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:13]Read from MH i2c: E2 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: E2 0E 00 [13:27:13]MH_I2C_Read... [13:27:13]Read from MH i2c: E2 0E 00 2C 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 16 [13:27:13]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:27:13]wFMCommunicate OK [13:27:13]SAM_PROTO_GetShiftState done [13:27:13]FM_GetShiftState done [13:27:13]req_shift_opened done [13:27:13]requested_item shift.open_date is exist - process it [13:27:13]req_shift_open_date [13:27:13]req_shift_open_date done [13:27:13]produce_requested_data done [13:27:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103918,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:27:13]process_action_free close_receipt [13:27:13]json_value_free [13:27:13]json_value_free done [13:27:13]process_json_proto returns [13:27:13]Send response to host [13:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103918,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:27:13]free response buf [13:27:13]execute_script done [13:27:13]execute_script returns [13:27:13]free content buf [13:27:13]Sock 7.Close socket [13:27:13]Sock 7.Thread stoped [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:00]accept exits with 9 [13:30:00]New connection [13:30:00]New thread 3067207012 created [13:30:00]Thread 3067063652 joined [13:30:00]Waiting for new connection... [13:30:00] Sock 9.Parse request [13:30:00]Sock 9.Check first char [13:30:00]Sock 9.First char is OK [13:30:00]request: POST /json_proto HTTP/1.0 [13:30:00]Method: POST [13:30:00]URL: /json_proto [13:30:00]Method is POST - this is cgi request [13:30:00]url: /json_proto [13:30:00]query_string will be loaded in cgi processing [13:30:00]execute_cgi json_proto POST (null) [13:30:00]execute_cgi path=json_proto method=POST [13:30:00]POST find Content-Length [13:30:00]Host: 172.17.38.133:8080 [13:30:00]Content-Length: 677 [13:30:00]Content-Type: application/json [13:30:00] [13:30:00]POST finish read [13:30:00]Found Content-Length = 677 [13:30:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:00]execute_script... [13:30: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)673267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:00]POST & json_proto [13:30:00]process_json_proto [13:30:00]json parsed OK: [13:30:00]protocol is kg_v1.0 [13:30:00]action value=close_receipt [13:30:00]process_action close_receipt [13:30:00]cmd_close_receipt [13:30:00]MH_GetDate [13:30:00]Write to MH i2c: F0 00 00 2D 1E 3A [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: F0 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: F0 09 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: F0 09 00 2D 1E 00 DA 2E 74 66 BD 8F 7C 64 51 [13:30:00]GetLastDocTimeStamp 1718890032 [13:30:00]current date 1718890202 [13:30:00]FM_GetShiftState [13:30:00]SAM_PROTO_GetShiftState [13:30:00]wFMCommunicate request_size=4 [13:30:00]MH_SAM_APDU [13:30:00]CAPDU: 80 13 01 00 [13:30:00]Write to MH i2c: E2 08 00 2E 1E 80 13 01 00 00 00 00 00 C9 [13:30:00]Write i2c OK [13:30:00]MH_I2C_Read... [13:30:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:00]Read from MH i2c: E2 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 0E 00 [13:30:00]MH_I2C_Read... [13:30:00]Read from MH i2c: E2 0E 00 2E 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 18 [13:30:00]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:30:00]wFMCommunicate OK [13:30:00]SAM_PROTO_GetShiftState done [13:30:00]FM_GetShiftState done [13:30:00]opened in 1718843124 [13:30:00]opened+sec_in_day 1718929524 [13:30:00]quantity*price = 50065 [13:30:00]sum+1 = 50067 [13:30:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 104 20.06.2024 13:30 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103919 ФПД: 59500407268383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133002&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103919&fm=59500407268383&tin=02508201610067®Number=0000000000092785&sum=50000 [13:30:02]StoreToDocumentArchive [13:30:02]shift 354 fd 103919 [13:30:02]save to /storage/0354/doc_00103919 [13:30:02]save last doc name /storage/0354/doc_00103919 to /storage/kkm_last_doc_name [13:30:02]save OK [13:30:02]Clear old archive folders... [13:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:02]tlvbuf is B6F96CE0 [13:30:02]SAM_PROTO_ClearQueue [13:30:02]wFMCommunicate request_size=4 [13:30:02]MH_SAM_APDU [13:30:02]CAPDU: 80 09 00 00 [13:30:02]Write to MH i2c: E2 08 00 3B 1E 80 09 00 00 00 00 00 00 CB [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 03 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 03 00 3B 1E 00 90 00 CD [13:30:02]RAPDU: 90 00 [13:30:02]wFMCommunicate OK [13:30:02]SAM_PROTO_ClearQueue done [13:30:02]KKMCreateOFDPacket [13:30:02]OFDProtocolAddRootSTLVToBuf [13:30:02]FM_MakeSignedData [13:30:02]FM_MakeSignedData [13:30:02]SAM_PROTO_SignData [13:30:02]wFMCommunicate request_size=4 [13:30:02]MH_SAM_APDU [13:30:02]CAPDU: 80 0D 01 02 [13:30:02]Write to MH i2c: E2 08 00 3C 1E 80 0D 01 02 00 00 00 00 D3 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 03 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 03 00 3C 1E 00 90 00 CE [13:30:02]RAPDU: 90 00 [13:30:02]wFMCommunicate OK [13:30:02]wFMCommunicate request_size=255 [13:30:02]MH_SAM_APDU [13:30: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DA 2E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 95 01 00 35 04 06 00 36 [13:30:02]Write to MH i2c: E2 02 01 3D 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DA 2E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 95 01 00 35 04 06 00 36 00 00 F5 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 03 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 03 00 3D 1E 00 90 00 CF [13:30:02]RAPDU: 90 00 [13:30:02]wFMCommunicate OK [13:30:02]wFMCommunicate request_size=10 [13:30:02]MH_SAM_APDU [13:30:02]CAPDU: 80 0D 02 02 05 1D 84 A3 A4 1F [13:30:02]Write to MH i2c: E2 0D 00 3E 1E 80 0D 02 02 05 00 1D 84 A3 A4 1F 00 00 E7 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 03 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 03 00 3E 1E 00 90 00 D0 [13:30:02]RAPDU: 90 00 [13:30:02]wFMCommunicate OK [13:30:02]wFMCommunicate request_size=4 [13:30:02]MH_SAM_APDU [13:30:02]CAPDU: 80 0D 03 02 [13:30:02]Write to MH i2c: E2 08 00 3F 1E 80 0D 03 02 00 00 00 00 D8 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 0B 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 0B 00 3F 1E 00 EC E7 49 16 02 E8 75 21 90 00 8B [13:30:02]RAPDU: EC E7 49 16 02 E8 75 21 90 00 [13:30:02]wFMCommunicate OK [13:30:02]SAM_PROTO_SignData done [13:30:02]FM_MakeSignedData done [13:30:02]CreateOFDProtocolMessage [13:30:02]wFMCommunicate request_size=4 [13:30:02]MH_SAM_APDU [13:30:02]CAPDU: 80 11 00 00 [13:30:02]Write to MH i2c: E2 08 00 40 1E 80 11 00 00 00 00 00 00 D8 [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:02]Read from MH i2c: E2 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 17 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: E2 17 00 40 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [13:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:30:02]wFMCommunicate OK [13:30:02]CreateOFDProtocolMessage done [13:30:02]OFDSenderStorePacket 103919 [13:30:02]StoreOFDPacket docnum=103919 [13:30:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E4 60 07 01 EE 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DA 2E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 95 01 00 35 04 06 00 36 1D 84 A3 A4 1F EC E7 49 16 02 E8 75 21 [13:30:02]CheckFolder [13:30:02]dirname=/storage/ofd_packets [13:30:02]CheckFolder done [13:30:02]ProducePacketName [13:30:02]name=ofd_packets/00103919 [13:30:02]NVStorageSaveData ofd_packets/00103919 [13:30:02]File name is /storage/ofd_packets/00103919 [13:30:02]Write 301 bytes [13:30:02]NVStorageSaveData done [13:30:02]OFDSenderStorePacket done [13:30:02]KKMCreateOFDPacket done [13:30:02]NVStorageSaveData kkm_last_timestamp [13:30:02]File name is /storage/kkm_last_timestamp [13:30:02]Write 4 bytes [13:30:02]NVStorageSaveData done [13:30:02]ExternCall_PrintAddStr [13:30:02]wPrintStart [13:30:02]Write to MH i2c: 01 00 00 41 1E 5F [13:30:02]Write i2c OK [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: 01 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: 01 07 00 [13:30:02]MH_I2C_Read... [13:30:02]Read from MH i2c: 01 07 00 41 1E 00 00 00 00 00 FF 0F 74 [13:30:02]RasterBufferAndPrint [13:30:02]line Счет N : (1)673267 [13:30:02]line ИНН: 02508201610067 [13:30:02]line Контрольно-Кассовый Чек [13:30:02]line ПРОДАЖА [13:30:02]line ТРК (МРК, ГНК) : 32 [13:30:02]line Товар: 2710124130 [13:30:02]line Аи-92-К-5 [13:30:02]line 7.540 * 66.40 [13:30:02]line = 500.66 [13:30:02]line НДС 12% НСП 1% [13:30:02]line > о реализуемом товаре [13:30:02]line ОКРУГЛЕНИЕ: -0.66 [13:30:02]line ИТОГО: 500.00 [13:30:02]line Внесено: 500.00 [13:30:02]line СДАЧА: 0.00 [13:30:02]line НСП 1% : 4.43 [13:30:02]line НДС 12% : 53.17 [13:30:02]line Наличными: 500.00 [13:30:02]line Безнал.: 0.00 [13:30:02]line Место: АЗС № 120 "Партнер Нефть" [13:30:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:30:02]line СНО: Общий режим [13:30:02]line Чек 104 20.06.2024 13:30 [13:30:02]line Смена: 354 ФФД: 1.0 [13:30:02]line ЗНМ: 0300000164 [13:30:02]line РНМ: 0000000000092785 [13:30:02]line Версия ККМ: 001 [13:30:02]line ФМ: 0000000000875093 [13:30:02]line ФД: 103919 [13:30:02]line ФПД: 59500407268383 [13:30:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133002&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103919&fm=59500407268383&tin=02508201610067®Number=0000000000092785&sum=50000 [13:30:02]written 0, free lines is 4095 [13:30:02]OFD Sender: Processing packet 103919 [packets to send 17, broken 16] [13:30:02]ProducePacketName [13:30:02]name=ofd_packets/00103919 [13:30:02]OFD Sender: To server: pG, [13:30:02]CommunicateWithHost lk.salyk.kg:30040 [13:30:02]ConnectInit lk.salyk.kg [13:30:03]Connected sock=10 [13:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E4 60 07 01 EE 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 DA 2E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 95 01 00 35 04 06 00 36 1D 84 A3 A4 1F EC E7 49 16 02 E8 75 21 [13:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8A 0E 47 00 F5 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 EF 95 01 00 F4 03 04 00 60 D5 73 66 B6 04 01 00 00 7D 08 53 5D B3 83 32 0B [13:30:03]CommunicateWithHost err = 0 [13:30:03]CheckOFDResponse [13:30:03]1017 (14) - 77093643461234 [13:30:03]1041 (16) - 0000000000875093 [13:30:03]1040 (4) - 103919 [13:30:03]1012 (4) - 20.06.2024 07:08 [13:30:03]1206 (1) - 0 [13:30:03]OFD Sender: Remove packet 103919 [13:30:03]ProducePacketName [13:30:03]name=ofd_packets/00103919 [13:30:03]NVStorageDeleteData [13:30:03]Write to MH i2c: 01 00 00 6C 1E 8A [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: 01 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: 01 07 00 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: 01 07 00 6C 1E 00 00 00 00 00 D9 0C 76 [13:30:03]RasterBufferAndPrint [13:30:03]line [13:30:03]line [13:30:03]line [13:30:03]line [13:30:03]line [13:30:03]written 0, free lines is 3296 [13:30:03]MH_Cut [13:30:03]Write to MH i2c: D1 01 00 73 1E 01 63 [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: D1 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: D1 01 00 [13:30:03]MH_I2C_Read... [13:30:03]Read from MH i2c: D1 01 00 73 1E 00 62 [13:30:03]Write to MH i2c: 01 00 00 74 1E 92 [13:30:03]Write i2c OK [13:30:03]MH_I2C_Read... [13:30:03]OFD Sender: No OFD packet to send [13:30:04]*** Cut start [13:30:04]*** Partial cut [13:30:04]*** CUTSNS_PIN = 1 [13:30:04]*** CUTSNS_PIN = 0 [13:30:04]*** Brake cut motor [13:30:04]Read from MH i2c: 01 [13:30:04]MH_I2C_Read... [13:30:04]*** Stop cut motor [13:30:04]*** Cut end [13:30:04]Read from MH i2c: 01 07 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: 01 07 00 74 1E 00 00 00 00 00 FF 0F A7 [13:30:04]process_action close_receipt done [13:30:04]requested_data is exist [13:30:04]produce_requested_data [13:30:04]requested_item fm.sn is exist - process it [13:30:04]wFMCommunicate request_size=4 [13:30:04]MH_SAM_APDU [13:30:04]CAPDU: 80 11 00 00 [13:30:04]Write to MH i2c: E2 08 00 75 1E 80 11 00 00 00 00 00 00 0D [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:04]Read from MH i2c: E2 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 17 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 17 00 75 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [13:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:30:04]wFMCommunicate OK [13:30:04]requested_item fd.num is exist - process it [13:30:04]SAM_PROTO_GetFieldsCounters [13:30:04]wFMCommunicate request_size=4 [13:30:04]MH_SAM_APDU [13:30:04]CAPDU: 80 13 00 00 [13:30:04]Write to MH i2c: E2 08 00 76 1E 80 13 00 00 00 00 00 00 10 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:04]Read from MH i2c: E2 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 62 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 62 00 76 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EF 95 01 00 0E 04 04 00 62 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 57 [13:30:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EF 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:04]wFMCommunicate OK [13:30:04]SAM_PROTO_GetFieldsCounters done [13:30:04]requested_item shift.num is exist - process it [13:30:04]requested_item shift.opened is exist - process it [13:30:04]req_shift_opened [13:30:04]FM_GetShiftState [13:30:04]SAM_PROTO_GetShiftState [13:30:04]wFMCommunicate request_size=4 [13:30:04]MH_SAM_APDU [13:30:04]CAPDU: 80 13 01 00 [13:30:04]Write to MH i2c: E2 08 00 77 1E 80 13 01 00 00 00 00 00 12 [13:30:04]Write i2c OK [13:30:04]MH_I2C_Read... [13:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:04]Read from MH i2c: E2 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 0E 00 [13:30:04]MH_I2C_Read... [13:30:04]Read from MH i2c: E2 0E 00 77 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 61 [13:30:04]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:30:04]wFMCommunicate OK [13:30:04]SAM_PROTO_GetShiftState done [13:30:04]FM_GetShiftState done [13:30:04]req_shift_opened done [13:30:04]requested_item shift.open_date is exist - process it [13:30:04]req_shift_open_date [13:30:04]req_shift_open_date done [13:30:04]produce_requested_data done [13:30:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103919,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:30:04]process_action_free close_receipt [13:30:04]json_value_free [13:30:04]json_value_free done [13:30:04]process_json_proto returns [13:30:04]Send response to host [13:30:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103919,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:30:04]free response buf [13:30:04]execute_script done [13:30:04]execute_script returns [13:30:04]free content buf [13:30:04]Sock 9.Close socket [13:30:04]Sock 9.Thread stoped [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]accept exits with 7 [13:32:13]New connection [13:32:13]New thread 3067063652 created [13:32:13]Thread 3067207012 joined [13:32:13]Waiting for new connection... [13:32:13] Sock 7.Parse request [13:32:13]Sock 7.Check first char [13:32:13]Sock 7.First char is OK [13:32:13]request: POST /json_proto HTTP/1.0 [13:32:13]Method: POST [13:32:13]URL: /json_proto [13:32:13]Method is POST - this is cgi request [13:32:13]url: /json_proto [13:32:13]query_string will be loaded in cgi processing [13:32:13]execute_cgi json_proto POST (null) [13:32:13]execute_cgi path=json_proto method=POST [13:32:13]POST find Content-Length [13:32:13]Host: 172.17.38.133:8080 [13:32:13]Content-Length: 1196 [13:32:13]Content-Type: application/json [13:32:13] [13:32:13]POST finish read [13:32:13]Found Content-Length = 1196 [13:32: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673268\u000A20.06.2024 13:09\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 66.40\u000A\u0418\u0422\u041E\u0413: 664.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\u000A3887073\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:13]execute_script... [13:32: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673268\u000A20.06.2024 13:09\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 66.40\u000A\u0418\u0422\u041E\u0413: 664.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\u000A3887073\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:13]POST & json_proto [13:32:13]process_json_proto [13:32:13]json parsed OK: [13:32:13]protocol is kg_v1.0 [13:32:13]action value=print_text [13:32:13]process_action print_text [13:32:13]cmd_print_text [13:32:13]ExternCall_PrintAddStr [13:32:13]wPrintStart [13:32:13]Write to MH i2c: 01 00 00 78 1E 96 [13:32:13]Write i2c OK [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: 01 [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: 01 07 00 [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: 01 07 00 78 1E 00 00 00 00 00 FF 0F AB [13:32:13]RasterBufferAndPrint [13:32:13]line *****ТОВАРНЫЙ ЧЕК***** [13:32:13]line АЗС 120 [13:32:13]line Партнер нефть [13:32:13]line 02508201610067 [13:32:13]line Кассир : Дуйшенбиев А. [13:32:13]line Счет N : (1)673268 [13:32:13]line 20.06.2024 13:09 [13:32:13]line ПРОДАЖА [13:32:13]line ТРК (МРК, ГНК): 42 [13:32:13]line Вид ГСМ : 2710124130 [13:32:13]line Аи-92-К-5 [13:32:13]line 10.000 x 66.40 [13:32:13]line ИТОГ: 664.00 [13:32:13]line Тип оплаты: Талоны: Партнер нефть [13:32:13]line 3887073 [13:32:13]line ______________________ [13:32:13]line (подпись) [13:32:13]written 0, free lines is 4095 [13:32:13]Write to MH i2c: 01 00 00 8C 1E AA [13:32:13]Write i2c OK [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: 01 [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: 01 07 00 [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: 01 07 00 8C 1E 00 00 00 00 00 12 0E D1 [13:32:13]RasterBufferAndPrint [13:32:13]line [13:32:13]line [13:32:13]line [13:32:13]line [13:32:13]line [13:32:13]written 0, free lines is 3604 [13:32:13]MH_Cut [13:32:13]Write to MH i2c: D1 01 00 93 1E 01 83 [13:32:13]Write i2c OK [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: D1 [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: D1 01 00 [13:32:13]MH_I2C_Read... [13:32:13]Read from MH i2c: D1 01 00 93 1E 00 82 [13:32:13]Write to MH i2c: 01 00 00 94 1E B2 [13:32:13]Write i2c OK [13:32:13]MH_I2C_Read... [13:32:13]OFD Sender: No OFD packet to send [13:32:14]*** Cut start [13:32:14]*** Partial cut [13:32:14]*** CUTSNS_PIN = 1 [13:32:14]*** CUTSNS_PIN = 0 [13:32:14]*** Brake cut motor [13:32:14]Read from MH i2c: 01 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: 01 07 00 [13:32:14]MH_I2C_Read... [13:32:14]*** Stop cut motor [13:32:14]*** Cut end [13:32:14]Read from MH i2c: 01 07 00 94 1E 00 00 00 00 00 FF 0F C7 [13:32:14]process_action print_text done [13:32:14]requested_data is exist [13:32:14]produce_requested_data [13:32:14]requested_item fm.sn is exist - process it [13:32:14]wFMCommunicate request_size=4 [13:32:14]MH_SAM_APDU [13:32:14]CAPDU: 80 11 00 00 [13:32:14]Write to MH i2c: E2 08 00 95 1E 80 11 00 00 00 00 00 00 2D [13:32:14]Write i2c OK [13:32:14]MH_I2C_Read... [13:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:14]Read from MH i2c: E2 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 17 00 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 17 00 95 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 80 [13:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:32:14]wFMCommunicate OK [13:32:14]requested_item fd.num is exist - process it [13:32:14]SAM_PROTO_GetFieldsCounters [13:32:14]wFMCommunicate request_size=4 [13:32:14]MH_SAM_APDU [13:32:14]CAPDU: 80 13 00 00 [13:32:14]Write to MH i2c: E2 08 00 96 1E 80 13 00 00 00 00 00 00 30 [13:32:14]Write i2c OK [13:32:14]MH_I2C_Read... [13:32:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:14]Read from MH i2c: E2 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 62 00 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 62 00 96 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EF 95 01 00 0E 04 04 00 62 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 77 [13:32:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EF 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:14]wFMCommunicate OK [13:32:14]SAM_PROTO_GetFieldsCounters done [13:32:14]requested_item shift.num is exist - process it [13:32:14]requested_item shift.opened is exist - process it [13:32:14]req_shift_opened [13:32:14]FM_GetShiftState [13:32:14]SAM_PROTO_GetShiftState [13:32:14]wFMCommunicate request_size=4 [13:32:14]MH_SAM_APDU [13:32:14]CAPDU: 80 13 01 00 [13:32:14]Write to MH i2c: E2 08 00 97 1E 80 13 01 00 00 00 00 00 32 [13:32:14]Write i2c OK [13:32:14]MH_I2C_Read... [13:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:14]Read from MH i2c: E2 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 0E 00 [13:32:14]MH_I2C_Read... [13:32:14]Read from MH i2c: E2 0E 00 97 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 81 [13:32:14]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:32:14]wFMCommunicate OK [13:32:14]SAM_PROTO_GetShiftState done [13:32:14]FM_GetShiftState done [13:32:14]req_shift_opened done [13:32:14]requested_item shift.open_date is exist - process it [13:32:14]req_shift_open_date [13:32:14]req_shift_open_date done [13:32:14]produce_requested_data done [13:32:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103919,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:32:14]process_action_free print_text [13:32:14]json_value_free [13:32:14]json_value_free done [13:32:14]process_json_proto returns [13:32:14]Send response to host [13:32:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103919,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:32:14]free response buf [13:32:14]execute_script done [13:32:14]execute_script returns [13:32:14]free content buf [13:32:14]Sock 7.Close socket [13:32:14]Sock 7.Thread stoped [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:37]accept exits with 9 [13:32:37]New connection [13:32:37]New thread 3067207012 created [13:32:37]Thread 3067063652 joined [13:32:37]Waiting for new connection... [13:32:37] Sock 9.Parse request [13:32:37]Sock 9.Check first char [13:32:37]Sock 9.First char is OK [13:32:37]request: POST /json_proto HTTP/1.0 [13:32:37]Method: POST [13:32:37]URL: /json_proto [13:32:37]Method is POST - this is cgi request [13:32:37]url: /json_proto [13:32:37]query_string will be loaded in cgi processing [13:32:37]execute_cgi json_proto POST (null) [13:32:37]execute_cgi path=json_proto method=POST [13:32:37]POST find Content-Length [13:32:37]Host: 172.17.38.133:8080 [13:32:37]Content-Length: 1210 [13:32:37]Content-Type: application/json [13:32:37] [13:32:37]POST finish read [13:32:37]Found Content-Length = 1210 [13:32: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673269\u000A20.06.2024 13:09\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 5.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 364.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:37]execute_script... [13:32: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673269\u000A20.06.2024 13:09\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 5.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 364.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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:37]POST & json_proto [13:32:37]process_json_proto [13:32:37]json parsed OK: [13:32:37]protocol is kg_v1.0 [13:32:37]action value=print_text [13:32:37]process_action print_text [13:32:37]cmd_print_text [13:32:37]ExternCall_PrintAddStr [13:32:37]wPrintStart [13:32:37]Write to MH i2c: 01 00 00 98 1E B6 [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 07 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 07 00 98 1E 00 00 00 00 00 FF 0F CB [13:32:37]RasterBufferAndPrint [13:32:37]line *****ТОВАРНЫЙ ЧЕК***** [13:32:37]line АЗС 120 [13:32:37]line Партнер нефть [13:32:37]line 02508201610067 [13:32:37]line Кассир : Дуйшенбиев А. [13:32:37]line Счет N : (1)673269 [13:32:37]line 20.06.2024 13:09 [13:32:37]line ПРОДАЖА [13:32:37]line ТРК (МРК, ГНК): 21 [13:32:37]line Вид ГСМ : 2710194210 [13:32:37]line ДТ(л)-К-5 [13:32:37]line 5.000 x 72.90 [13:32:37]line ИТОГ: 364.50 [13:32:37]line Тип оплаты: Талоны: Топливная Карта [13:32:37]line 00562 [13:32:37]line ______________________ [13:32:37]line (подпись) [13:32:37]written 0, free lines is 4095 [13:32:37]Write to MH i2c: 01 00 00 AC 1E CA [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 07 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: 01 07 00 AC 1E 00 00 00 00 00 10 0E EF [13:32:37]RasterBufferAndPrint [13:32:37]line [13:32:37]line [13:32:37]line [13:32:37]line [13:32:37]line [13:32:37]written 0, free lines is 3601 [13:32:37]MH_Cut [13:32:37]Write to MH i2c: D1 01 00 B3 1E 01 A3 [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: D1 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: D1 01 00 [13:32:37]MH_I2C_Read... [13:32:37]Read from MH i2c: D1 01 00 B3 1E 00 A2 [13:32:37]Write to MH i2c: 01 00 00 B4 1E D2 [13:32:37]Write i2c OK [13:32:37]MH_I2C_Read... [13:32:37]*** Cut start [13:32:37]*** Partial cut [13:32:37]*** CUTSNS_PIN = 1 [13:32:37]*** CUTSNS_PIN = 0 [13:32:38]*** Brake cut motor [13:32:38]Read from MH i2c: 01 [13:32:38]MH_I2C_Read... [13:32:38]*** Stop cut motor [13:32:38]*** Cut end [13:32:38]Read from MH i2c: 01 07 00 [13:32:38]MH_I2C_Read... [13:32:38]Read from MH i2c: 01 07 00 B4 1E 00 00 00 00 00 FF 0F E7 [13:32:38]process_action print_text done [13:32:38]requested_data is exist [13:32:38]produce_requested_data [13:32:38]requested_item fm.sn is exist - process it [13:32:38]wFMCommunicate request_size=4 [13:32:38]MH_SAM_APDU [13:32:38]CAPDU: 80 11 00 00 [13:32:38]Write to MH i2c: E2 08 00 B5 1E 80 11 00 00 00 00 00 00 4D [13:32:38]Write i2c OK [13:32:38]MH_I2C_Read... [13:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:38]Read from MH i2c: E2 [13:32:38]MH_I2C_Read... [13:32:38]Read from MH i2c: E2 17 00 [13:32:38]MH_I2C_Read... [13:32:38]Read from MH i2c: E2 17 00 B5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A0 [13:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:32:38]wFMCommunicate OK [13:32:38]requested_item fd.num is exist - process it [13:32:38]SAM_PROTO_GetFieldsCounters [13:32:38]wFMCommunicate request_size=4 [13:32:38]MH_SAM_APDU [13:32:38]CAPDU: 80 13 00 00 [13:32:38]Write to MH i2c: E2 08 00 B6 1E 80 13 00 00 00 00 00 00 50 [13:32:38]Write i2c OK [13:32:38]MH_I2C_Read... [13:32:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:38]Read from MH i2c: E2 [13:32:38]MH_I2C_Read... [13:32:38]Read from MH i2c: E2 62 00 [13:32:38]MH_I2C_Read... [13:32:38]Read from MH i2c: E2 62 00 B6 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EF 95 01 00 0E 04 04 00 62 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 97 [13:32:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 EF 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:38]wFMCommunicate OK [13:32:38]SAM_PROTO_GetFieldsCounters done [13:32:38]requested_item shift.num is exist - process it [13:32:38]requested_item shift.opened is exist - process it [13:32:38]req_shift_opened [13:32:38]FM_GetShiftState [13:32:38]SAM_PROTO_GetShiftState [13:32:38]wFMCommunicate request_size=4 [13:32:38]MH_SAM_APDU [13:32:38]CAPDU: 80 13 01 00 [13:32:38]Write to MH i2c: E2 08 00 B7 1E 80 13 01 00 00 00 00 00 52 [13:32:38]Write i2c OK [13:32:38]MH_I2C_Read... [13:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:38]Read from MH i2c: E2 [13:32:38]MH_I2C_Read... [13:32:38]Read from MH i2c: E2 0E 00 [13:32:38]MH_I2C_Read... [13:32:38]Read from MH i2c: E2 0E 00 B7 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A1 [13:32:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:32:38]wFMCommunicate OK [13:32:38]SAM_PROTO_GetShiftState done [13:32:38]FM_GetShiftState done [13:32:38]req_shift_opened done [13:32:38]requested_item shift.open_date is exist - process it [13:32:38]req_shift_open_date [13:32:38]req_shift_open_date done [13:32:38]produce_requested_data done [13:32:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103919,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:32:38]process_action_free print_text [13:32:38]json_value_free [13:32:38]json_value_free done [13:32:38]process_json_proto returns [13:32:38]Send response to host [13:32:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103919,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:32:38]free response buf [13:32:38]execute_script done [13:32:38]execute_script returns [13:32:38]free content buf [13:32:38]Sock 9.Close socket [13:32:38]Sock 9.Thread stoped [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:06]accept exits with 7 [13:33:06]New connection [13:33:06]New thread 3067063652 created [13:33:06]Thread 3067207012 joined [13:33:06]Waiting for new connection... [13:33:06] Sock 7.Parse request [13:33:06]Sock 7.Check first char [13:33:06]Sock 7.First char is OK [13:33:06]request: POST /json_proto HTTP/1.0 [13:33:06]Method: POST [13:33:06]URL: /json_proto [13:33:06]Method is POST - this is cgi request [13:33:06]url: /json_proto [13:33:06]query_string will be loaded in cgi processing [13:33:06]execute_cgi json_proto POST (null) [13:33:06]execute_cgi path=json_proto method=POST [13:33:06]POST find Content-Length [13:33:06]Host: 172.17.38.133:8080 [13:33:06]Content-Length: 682 [13:33:06]Content-Type: application/json [13:33:06] [13:33:06]POST finish read [13:33:06]Found Content-Length = 682 [13:33:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:33:06]execute_script... [13:33: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)673270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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:33:06]POST & json_proto [13:33:06]process_json_proto [13:33:06]json parsed OK: [13:33:06]protocol is kg_v1.0 [13:33:06]action value=close_receipt [13:33:06]process_action close_receipt [13:33:06]cmd_close_receipt [13:33:06]MH_GetDate [13:33:06]Write to MH i2c: F0 00 00 B8 1E C5 [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: F0 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: F0 09 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: F0 09 00 B8 1E 00 94 2F 74 66 BD 8F 7C 64 97 [13:33:06]GetLastDocTimeStamp 1718890202 [13:33:06]current date 1718890388 [13:33:06]FM_GetShiftState [13:33:06]SAM_PROTO_GetShiftState [13:33:06]wFMCommunicate request_size=4 [13:33:06]MH_SAM_APDU [13:33:06]CAPDU: 80 13 01 00 [13:33:06]Write to MH i2c: E2 08 00 B9 1E 80 13 01 00 00 00 00 00 54 [13:33:06]Write i2c OK [13:33:06]MH_I2C_Read... [13:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:06]Read from MH i2c: E2 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 0E 00 [13:33:06]MH_I2C_Read... [13:33:06]Read from MH i2c: E2 0E 00 B9 1E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A3 [13:33:06]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:33:06]wFMCommunicate OK [13:33:06]SAM_PROTO_GetShiftState done [13:33:06]FM_GetShiftState done [13:33:06]opened in 1718843124 [13:33:06]opened+sec_in_day 1718929524 [13:33:06]quantity*price = 200063 [13:33:06]sum+1 = 200064 [13:33:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 105 20.06.2024 13:33 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103920 ФПД: 113682935144747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133308&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103920&fm=113682935144747&tin=02508201610067®Number=0000000000092785&sum=200000 [13:33:07]StoreToDocumentArchive [13:33:07]shift 354 fd 103920 [13:33:07]save to /storage/0354/doc_00103920 [13:33:07]save last doc name /storage/0354/doc_00103920 to /storage/kkm_last_doc_name [13:33:07]save OK [13:33:07]Clear old archive folders... [13:33:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:07]tlvbuf is B6F96370 [13:33:07]SAM_PROTO_ClearQueue [13:33:07]wFMCommunicate request_size=4 [13:33:07]MH_SAM_APDU [13:33:07]CAPDU: 80 09 00 00 [13:33:07]Write to MH i2c: E2 08 00 C6 1E 80 09 00 00 00 00 00 00 56 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 C6 1E 00 90 00 58 [13:33:07]RAPDU: 90 00 [13:33:07]wFMCommunicate OK [13:33:07]SAM_PROTO_ClearQueue done [13:33:07]KKMCreateOFDPacket [13:33:07]OFDProtocolAddRootSTLVToBuf [13:33:07]FM_MakeSignedData [13:33:07]FM_MakeSignedData [13:33:07]SAM_PROTO_SignData [13:33:07]wFMCommunicate request_size=4 [13:33:07]MH_SAM_APDU [13:33:07]CAPDU: 80 0D 01 02 [13:33:07]Write to MH i2c: E2 08 00 C7 1E 80 0D 01 02 00 00 00 00 5E [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 03 00 C7 1E 00 90 00 59 [13:33:07]RAPDU: 90 00 [13:33:07]wFMCommunicate OK [13:33:07]wFMCommunicate request_size=255 [13:33:07]MH_SAM_APDU [13:33: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 69 00 00 00 F4 03 04 00 94 2F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 95 01 00 35 04 06 00 67 [13:33:08]Write to MH i2c: E2 02 01 C8 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 69 00 00 00 F4 03 04 00 94 2F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 95 01 00 35 04 06 00 67 00 00 63 [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:08]Read from MH i2c: E2 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 03 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 03 00 C8 1E 00 90 00 5A [13:33:08]RAPDU: 90 00 [13:33:08]wFMCommunicate OK [13:33:08]wFMCommunicate request_size=10 [13:33:08]MH_SAM_APDU [13:33:08]CAPDU: 80 0D 02 02 05 64 DE F7 61 2B [13:33:08]Write to MH i2c: E2 0D 00 C9 1E 80 0D 02 02 05 00 64 DE F7 61 2B 00 00 30 [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:08]Read from MH i2c: E2 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 03 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 03 00 C9 1E 00 90 00 5B [13:33:08]RAPDU: 90 00 [13:33:08]wFMCommunicate OK [13:33:08]wFMCommunicate request_size=4 [13:33:08]MH_SAM_APDU [13:33:08]CAPDU: 80 0D 03 02 [13:33:08]Write to MH i2c: E2 08 00 CA 1E 80 0D 03 02 00 00 00 00 63 [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:08]Read from MH i2c: E2 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 0B 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 0B 00 CA 1E 00 AF 61 85 75 8C 91 B7 7D 90 00 BF [13:33:08]RAPDU: AF 61 85 75 8C 91 B7 7D 90 00 [13:33:08]wFMCommunicate OK [13:33:08]SAM_PROTO_SignData done [13:33:08]FM_MakeSignedData done [13:33:08]CreateOFDProtocolMessage [13:33:08]wFMCommunicate request_size=4 [13:33:08]MH_SAM_APDU [13:33:08]CAPDU: 80 11 00 00 [13:33:08]Write to MH i2c: E2 08 00 CB 1E 80 11 00 00 00 00 00 00 63 [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:08]Read from MH i2c: E2 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 17 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 17 00 CB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B6 [13:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:33:08]wFMCommunicate OK [13:33:08]CreateOFDProtocolMessage done [13:33:08]OFDSenderStorePacket 103920 [13:33:08]StoreOFDPacket docnum=103920 [13:33:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D1 B8 07 01 31 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 69 00 00 00 F4 03 04 00 94 2F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 95 01 00 35 04 06 00 67 64 DE F7 61 2B AF 61 85 75 8C 91 B7 7D [13:33:08]CheckFolder [13:33:08]dirname=/storage/ofd_packets [13:33:08]CheckFolder done [13:33:08]ProducePacketName [13:33:08]name=ofd_packets/00103920 [13:33:08]NVStorageSaveData ofd_packets/00103920 [13:33:08]File name is /storage/ofd_packets/00103920 [13:33:08]Write 301 bytes [13:33:08]NVStorageSaveData done [13:33:08]OFDSenderStorePacket done [13:33:08]KKMCreateOFDPacket done [13:33:08]NVStorageSaveData kkm_last_timestamp [13:33:08]File name is /storage/kkm_last_timestamp [13:33:08]Write 4 bytes [13:33:08]NVStorageSaveData done [13:33:08]ExternCall_PrintAddStr [13:33:08]wPrintStart [13:33:08]Write to MH i2c: 01 00 00 CC 1E EA [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: 01 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: 01 07 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: 01 07 00 CC 1E 00 00 00 00 00 FF 0F FF [13:33:08]RasterBufferAndPrint [13:33:08]line Счет N : (1)673270 [13:33:08]line ИНН: 02508201610067 [13:33:08]line Контрольно-Кассовый Чек [13:33:08]line ПРОДАЖА [13:33:08]line ТРК (МРК, ГНК) : 32 [13:33:08]line Товар: 2710124130 [13:33:08]line Аи-92-К-5 [13:33:08]line 30.130 * 66.40 [13:33:08]line = 2000.63 [13:33:08]line НДС 12% НСП 1% [13:33:08]line > о реализуемом товаре [13:33:08]line ОКРУГЛЕНИЕ: -0.63 [13:33:08]line ИТОГО: 2000.00 [13:33:08]line Внесено: 2000.00 [13:33:08]line СДАЧА: 0.00 [13:33:08]line НСП 1% : 17.70 [13:33:08]line НДС 12% : 212.46 [13:33:08]line Наличными: 2000.00 [13:33:08]line Безнал.: 0.00 [13:33:08]line Место: АЗС № 120 "Партнер Нефть" [13:33:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:33:08]line СНО: Общий режим [13:33:08]line Чек 105 20.06.2024 13:33 [13:33:08]line Смена: 354 ФФД: 1.0 [13:33:08]line ЗНМ: 0300000164 [13:33:08]line РНМ: 0000000000092785 [13:33:08]line Версия ККМ: 001 [13:33:08]line ФМ: 0000000000875093 [13:33:08]line ФД: 103920 [13:33:08]line ФПД: 113682935144747 [13:33:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133308&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103920&fm=113682935144747&tin=02508201610067®Number=0000000000092785&sum=200000 [13:33:08]OFD Sender: Processing packet 103920 [packets to send 17, broken 16] [13:33:08]ProducePacketName [13:33:08]name=ofd_packets/00103920 [13:33:08]OFD Sender: To server: pG, [13:33:08]CommunicateWithHost lk.salyk.kg:30040 [13:33:08]ConnectInit lk.salyk.kg [13:33:08]written 0, free lines is 4095 [13:33:08]Connected sock=10 [13:33:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D1 B8 07 01 31 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 69 00 00 00 F4 03 04 00 94 2F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 95 01 00 35 04 06 00 67 64 DE F7 61 2B AF 61 85 75 8C 91 B7 7D [13:33:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D3 76 47 00 85 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F0 95 01 00 F4 03 04 00 1A D6 73 66 B6 04 01 00 00 28 01 BF 79 CA 70 8F AA [13:33:09]CommunicateWithHost err = 0 [13:33:09]CheckOFDResponse [13:33:09]1017 (14) - 77093643461234 [13:33:09]1041 (16) - 0000000000875093 [13:33:09]1040 (4) - 103920 [13:33:09]1012 (4) - 20.06.2024 07:11 [13:33:09]1206 (1) - 0 [13:33:09]OFD Sender: Remove packet 103920 [13:33:09]ProducePacketName [13:33:09]name=ofd_packets/00103920 [13:33:09]NVStorageDeleteData [13:33:09]Write to MH i2c: 01 00 00 F7 1E 15 [13:33:09]Write i2c OK [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: 01 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: 01 07 00 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: 01 07 00 F7 1E 00 00 00 00 00 E5 0C 0D [13:33:09]RasterBufferAndPrint [13:33:09]line [13:33:09]line [13:33:09]line [13:33:09]line [13:33:09]line [13:33:09]written 0, free lines is 3310 [13:33:09]MH_Cut [13:33:09]Write to MH i2c: D1 01 00 FE 1E 01 EE [13:33:09]Write i2c OK [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: D1 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: D1 01 00 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: D1 01 00 FE 1E 00 ED [13:33:09]Write to MH i2c: 01 00 00 FF 1E 1D [13:33:09]Write i2c OK [13:33:09]MH_I2C_Read... [13:33:09]OFD Sender: No OFD packet to send [13:33:09]*** Cut start [13:33:09]*** Partial cut [13:33:09]*** CUTSNS_PIN = 1 [13:33:10]*** CUTSNS_PIN = 0 [13:33:10]*** Brake cut motor [13:33:10]Read from MH i2c: 01 [13:33:10]MH_I2C_Read... [13:33:10]*** Stop cut motor [13:33:10]*** Cut end [13:33:10]Read from MH i2c: 01 07 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: 01 07 00 FF 1E 00 00 00 00 00 FF 0F 32 [13:33:10]process_action close_receipt done [13:33:10]requested_data is exist [13:33:10]produce_requested_data [13:33:10]requested_item fm.sn is exist - process it [13:33:10]wFMCommunicate request_size=4 [13:33:10]MH_SAM_APDU [13:33:10]CAPDU: 80 11 00 00 [13:33:10]Write to MH i2c: E2 08 00 00 1F 80 11 00 00 00 00 00 00 99 [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:10]Read from MH i2c: E2 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 17 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 17 00 00 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [13:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:33:10]wFMCommunicate OK [13:33:10]requested_item fd.num is exist - process it [13:33:10]SAM_PROTO_GetFieldsCounters [13:33:10]wFMCommunicate request_size=4 [13:33:10]MH_SAM_APDU [13:33:10]CAPDU: 80 13 00 00 [13:33:10]Write to MH i2c: E2 08 00 01 1F 80 13 00 00 00 00 00 00 9C [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:10]Read from MH i2c: E2 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 62 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 62 00 01 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F0 95 01 00 0E 04 04 00 62 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 E7 [13:33:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F0 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:10]wFMCommunicate OK [13:33:10]SAM_PROTO_GetFieldsCounters done [13:33:10]requested_item shift.num is exist - process it [13:33:10]requested_item shift.opened is exist - process it [13:33:10]req_shift_opened [13:33:10]FM_GetShiftState [13:33:10]SAM_PROTO_GetShiftState [13:33:10]wFMCommunicate request_size=4 [13:33:10]MH_SAM_APDU [13:33:10]CAPDU: 80 13 01 00 [13:33:10]Write to MH i2c: E2 08 00 02 1F 80 13 01 00 00 00 00 00 9E [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:10]Read from MH i2c: E2 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 0E 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 0E 00 02 1F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 ED [13:33:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:33:10]wFMCommunicate OK [13:33:10]SAM_PROTO_GetShiftState done [13:33:10]FM_GetShiftState done [13:33:10]req_shift_opened done [13:33:10]requested_item shift.open_date is exist - process it [13:33:10]req_shift_open_date [13:33:10]req_shift_open_date done [13:33:10]produce_requested_data done [13:33:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103920,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:33:10]process_action_free close_receipt [13:33:10]json_value_free [13:33:10]json_value_free done [13:33:10]process_json_proto returns [13:33:10]Send response to host [13:33:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103920,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:33:10]free response buf [13:33:10]execute_script done [13:33:10]execute_script returns [13:33:10]free content buf [13:33:10]Sock 7.Close socket [13:33:10]Sock 7.Thread stoped [13:33:14]OFD Sender: No OFD packet to send [13:33:16]accept exits with 9 [13:33:16]New connection [13:33:16]New thread 3067207012 created [13:33:16]Thread 3067063652 joined [13:33:16]Waiting for new connection... [13:33:16] Sock 9.Parse request [13:33:16]Sock 9.Check first char [13:33:16]Sock 9.First char is OK [13:33:16]request: POST /json_proto HTTP/1.0 [13:33:16]Method: POST [13:33:16]URL: /json_proto [13:33:16]Method is POST - this is cgi request [13:33:16]url: /json_proto [13:33:16]query_string will be loaded in cgi processing [13:33:16]execute_cgi json_proto POST (null) [13:33:16]execute_cgi path=json_proto method=POST [13:33:16]POST find Content-Length [13:33:16]Host: 172.17.38.133:8080 [13:33:16]Content-Length: 811 [13:33:16]Content-Type: application/json [13:33:16] [13:33:16]POST finish read [13:33:16]Found Content-Length = 811 [13:33:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.000, "sum" : 10935.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:16]execute_script... [13:33: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)673265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 150.000, "sum" : 10935.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10935.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:16]POST & json_proto [13:33:16]process_json_proto [13:33:16]json parsed OK: [13:33:16]protocol is kg_v1.0 [13:33:16]action value=close_receipt [13:33:16]process_action close_receipt [13:33:16]cmd_close_receipt [13:33:16]MH_GetDate [13:33:16]Write to MH i2c: F0 00 00 03 1F 11 [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: F0 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: F0 09 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: F0 09 00 03 1F 00 9E 2F 74 66 BD 8F 7C 64 ED [13:33:16]GetLastDocTimeStamp 1718890388 [13:33:16]current date 1718890398 [13:33:16]FM_GetShiftState [13:33:16]SAM_PROTO_GetShiftState [13:33:16]wFMCommunicate request_size=4 [13:33:16]MH_SAM_APDU [13:33:16]CAPDU: 80 13 01 00 [13:33:16]Write to MH i2c: E2 08 00 04 1F 80 13 01 00 00 00 00 00 A0 [13:33:16]Write i2c OK [13:33:16]MH_I2C_Read... [13:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:16]Read from MH i2c: E2 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 0E 00 [13:33:16]MH_I2C_Read... [13:33:16]Read from MH i2c: E2 0E 00 04 1F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EF [13:33:16]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:33:16]wFMCommunicate OK [13:33:16]SAM_PROTO_GetShiftState done [13:33:16]FM_GetShiftState done [13:33:16]opened in 1718843124 [13:33:16]opened+sec_in_day 1718929524 [13:33:16]quantity*price = 1093500 [13:33:16]sum+1 = 1093501 [13:33:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10935.00 НСП 1% : 96.77 НДС 12% : 1161.24 Наличными: 0.00 Безнал.: 10935.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 106 20.06.2024 13:33 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103921 ФПД: 205724474264400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133318&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103921&fm=205724474264400&tin=02508201610067®Number=0000000000092785&sum=1093500 [13:33:17]StoreToDocumentArchive [13:33:17]shift 354 fd 103921 [13:33:17]save to /storage/0354/doc_00103921 [13:33:17]save last doc name /storage/0354/doc_00103921 to /storage/kkm_last_doc_name [13:33:17]save OK [13:33:17]Clear old archive folders... [13:33:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:33:17]tlvbuf is B6F963D0 [13:33:17]SAM_PROTO_ClearQueue [13:33:17]wFMCommunicate request_size=4 [13:33:17]MH_SAM_APDU [13:33:17]CAPDU: 80 09 00 00 [13:33:17]Write to MH i2c: E2 08 00 11 1F 80 09 00 00 00 00 00 00 A2 [13:33:17]Write i2c OK [13:33:17]MH_I2C_Read... [13:33:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:18]Read from MH i2c: E2 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 03 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 03 00 11 1F 00 90 00 A4 [13:33:18]RAPDU: 90 00 [13:33:18]wFMCommunicate OK [13:33:18]SAM_PROTO_ClearQueue done [13:33:18]KKMCreateOFDPacket [13:33:18]OFDProtocolAddRootSTLVToBuf [13:33:18]FM_MakeSignedData [13:33:18]FM_MakeSignedData [13:33:18]SAM_PROTO_SignData [13:33:18]wFMCommunicate request_size=4 [13:33:18]MH_SAM_APDU [13:33:18]CAPDU: 80 0D 01 02 [13:33:18]Write to MH i2c: E2 08 00 12 1F 80 0D 01 02 00 00 00 00 AA [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:18]Read from MH i2c: E2 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 03 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 03 00 12 1F 00 90 00 A5 [13:33:18]RAPDU: 90 00 [13:33:18]wFMCommunicate OK [13:33:18]wFMCommunicate request_size=255 [13:33:18]MH_SAM_APDU [13:33: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 9E 2F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 95 01 00 35 04 06 00 [13:33:18]Write to MH i2c: E2 02 01 13 1F 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 9E 2F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 95 01 00 35 04 06 00 00 00 C6 [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:18]Read from MH i2c: E2 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 03 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 03 00 13 1F 00 90 00 A6 [13:33:18]RAPDU: 90 00 [13:33:18]wFMCommunicate OK [13:33:18]wFMCommunicate request_size=11 [13:33:18]MH_SAM_APDU [13:33:18]CAPDU: 80 0D 02 02 06 BB 1A F6 35 CB 50 [13:33:18]Write to MH i2c: E2 0E 00 14 1F 80 0D 02 02 06 00 BB 1A F6 35 CB 50 00 00 D4 [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:18]Read from MH i2c: E2 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 03 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 03 00 14 1F 00 90 00 A7 [13:33:18]RAPDU: 90 00 [13:33:18]wFMCommunicate OK [13:33:18]wFMCommunicate request_size=4 [13:33:18]MH_SAM_APDU [13:33:18]CAPDU: 80 0D 03 02 [13:33:18]Write to MH i2c: E2 08 00 15 1F 80 0D 03 02 00 00 00 00 AF [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:18]Read from MH i2c: E2 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 0B 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 0B 00 15 1F 00 D6 0A 3F 33 8B 8D 44 65 90 00 C3 [13:33:18]RAPDU: D6 0A 3F 33 8B 8D 44 65 90 00 [13:33:18]wFMCommunicate OK [13:33:18]SAM_PROTO_SignData done [13:33:18]FM_MakeSignedData done [13:33:18]CreateOFDProtocolMessage [13:33:18]wFMCommunicate request_size=4 [13:33:18]MH_SAM_APDU [13:33:18]CAPDU: 80 11 00 00 [13:33:18]Write to MH i2c: E2 08 00 16 1F 80 11 00 00 00 00 00 00 AF [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:18]Read from MH i2c: E2 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 17 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: E2 17 00 16 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 02 [13:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:33:18]wFMCommunicate OK [13:33:18]CreateOFDProtocolMessage done [13:33:18]OFDSenderStorePacket 103921 [13:33:18]StoreOFDPacket docnum=103921 [13:33:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 55 1C 08 01 8E 74 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 9E 2F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 95 01 00 35 04 06 00 BB 1A F6 35 CB 50 D6 0A 3F 33 8B 8D 44 65 [13:33:18]CheckFolder [13:33:18]dirname=/storage/ofd_packets [13:33:18]CheckFolder done [13:33:18]ProducePacketName [13:33:18]name=ofd_packets/00103921 [13:33:18]NVStorageSaveData ofd_packets/00103921 [13:33:18]File name is /storage/ofd_packets/00103921 [13:33:18]Write 302 bytes [13:33:18]NVStorageSaveData done [13:33:18]OFDSenderStorePacket done [13:33:18]KKMCreateOFDPacket done [13:33:18]NVStorageSaveData kkm_last_timestamp [13:33:18]File name is /storage/kkm_last_timestamp [13:33:18]Write 4 bytes [13:33:18]NVStorageSaveData done [13:33:18]ExternCall_PrintAddStr [13:33:18]wPrintStart [13:33:18]Write to MH i2c: 01 00 00 17 1F 36 [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: 01 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: 01 07 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: 01 07 00 17 1F 00 00 00 00 00 FF 0F 4B [13:33:18]RasterBufferAndPrint [13:33:18]line Счет N : (1)673265 [13:33:18]line ИНН: 02508201610067 [13:33:18]line Контрольно-Кассовый Чек [13:33:18]line ПРОДАЖА [13:33:18]line ТРК (МРК, ГНК) : 11 [13:33:18]line Товар: 2710194210 [13:33:18]line ДТ(л)-К-5 [13:33:18]line 150.000 * 72.90 [13:33:18]line = 10935.00 [13:33:18]line НДС 12% НСП 1% [13:33:18]line > о реализуемом товаре [13:33:18]line ИТОГО: 10935.00 [13:33:18]line НСП 1% : 96.77 [13:33:18]line НДС 12% : 1161.24 [13:33:18]line Наличными: 0.00 [13:33:18]line Безнал.: 10935.00 [13:33:18]line Место: АЗС № 120 "Партнер Нефть" [13:33:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:33:18]line СНО: Общий режим [13:33:18]line Чек 106 20.06.2024 13:33 [13:33:18]line Смена: 354 ФФД: 1.0 [13:33:18]line ЗНМ: 0300000164 [13:33:18]line РНМ: 0000000000092785 [13:33:18]line Версия ККМ: 001 [13:33:18]line Платежная система: O! деньги [13:33:18]line ФМ: 0000000000875093 [13:33:18]line ФД: 103921 [13:33:18]line ФПД: 205724474264400 [13:33:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133318&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103921&fm=205724474264400&tin=02508201610067®Number=0000000000092785&sum=1093500 [13:33:18]written 0, free lines is 4095 [13:33:18]OFD Sender: Processing packet 103921 [packets to send 17, broken 16] [13:33:18]ProducePacketName [13:33:18]name=ofd_packets/00103921 [13:33:18]OFD Sender: To server: pG, [13:33:18]CommunicateWithHost lk.salyk.kg:30040 [13:33:18]ConnectInit lk.salyk.kg [13:33:18]Connected sock=7 [13:33:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 55 1C 08 01 8E 74 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F0 49 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7C AF 10 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AF 10 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 25 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C C5 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C AF 10 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 9E 2F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 95 01 00 35 04 06 00 BB 1A F6 35 CB 50 D6 0A 3F 33 8B 8D 44 65 [13:33:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4C 73 47 00 72 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F1 95 01 00 F4 03 04 00 24 D6 73 66 B6 04 01 00 00 03 00 AF D5 77 78 49 72 [13:33:18]CommunicateWithHost err = 0 [13:33:18]CheckOFDResponse [13:33:18]1017 (14) - 77093643461234 [13:33:18]1041 (16) - 0000000000875093 [13:33:18]1040 (4) - 103921 [13:33:18]1012 (4) - 20.06.2024 07:11 [13:33:18]1206 (1) - 0 [13:33:18]OFD Sender: Remove packet 103921 [13:33:18]ProducePacketName [13:33:18]name=ofd_packets/00103921 [13:33:18]NVStorageDeleteData [13:33:18]Write to MH i2c: 01 00 00 41 1F 60 [13:33:18]Write i2c OK [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: 01 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: 01 07 00 [13:33:18]MH_I2C_Read... [13:33:18]Read from MH i2c: 01 07 00 41 1F 00 00 00 00 00 08 0D 7C [13:33:18]RasterBufferAndPrint [13:33:18]line [13:33:18]line [13:33:18]line [13:33:18]line [13:33:18]line [13:33:18]written 0, free lines is 3344 [13:33:19]MH_Cut [13:33:19]Write to MH i2c: D1 01 00 48 1F 01 39 [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: D1 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: D1 01 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: D1 01 00 48 1F 00 38 [13:33:19]Write to MH i2c: 01 00 00 49 1F 68 [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:19]OFD Sender: No OFD packet to send [13:33:19]*** Cut start [13:33:19]*** Partial cut [13:33:19]*** CUTSNS_PIN = 1 [13:33:19]*** CUTSNS_PIN = 0 [13:33:19]*** Brake cut motor [13:33:20]Read from MH i2c: 01 [13:33:20]MH_I2C_Read... [13:33:20]*** Stop cut motor [13:33:20]*** Cut end [13:33:20]Read from MH i2c: 01 07 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: 01 07 00 49 1F 00 00 00 00 00 FF 0F 7D [13:33:20]process_action close_receipt done [13:33:20]requested_data is exist [13:33:20]produce_requested_data [13:33:20]requested_item fm.sn is exist - process it [13:33:20]wFMCommunicate request_size=4 [13:33:20]MH_SAM_APDU [13:33:20]CAPDU: 80 11 00 00 [13:33:20]Write to MH i2c: E2 08 00 4A 1F 80 11 00 00 00 00 00 00 E3 [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:20]Read from MH i2c: E2 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 17 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 17 00 4A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 36 [13:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:33:20]wFMCommunicate OK [13:33:20]requested_item fd.num is exist - process it [13:33:20]SAM_PROTO_GetFieldsCounters [13:33:20]wFMCommunicate request_size=4 [13:33:20]MH_SAM_APDU [13:33:20]CAPDU: 80 13 00 00 [13:33:20]Write to MH i2c: E2 08 00 4B 1F 80 13 00 00 00 00 00 00 E6 [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:20]Read from MH i2c: E2 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 62 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 62 00 4B 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F1 95 01 00 0E 04 04 00 62 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 35 [13:33:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F1 95 01 00 0E 04 04 00 62 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:33:20]wFMCommunicate OK [13:33:20]SAM_PROTO_GetFieldsCounters done [13:33:20]requested_item shift.num is exist - process it [13:33:20]requested_item shift.opened is exist - process it [13:33:20]req_shift_opened [13:33:20]FM_GetShiftState [13:33:20]SAM_PROTO_GetShiftState [13:33:20]wFMCommunicate request_size=4 [13:33:20]MH_SAM_APDU [13:33:20]CAPDU: 80 13 01 00 [13:33:20]Write to MH i2c: E2 08 00 4C 1F 80 13 01 00 00 00 00 00 E8 [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:20]Read from MH i2c: E2 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 0E 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 0E 00 4C 1F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 37 [13:33:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:33:20]wFMCommunicate OK [13:33:20]SAM_PROTO_GetShiftState done [13:33:20]FM_GetShiftState done [13:33:20]req_shift_opened done [13:33:20]requested_item shift.open_date is exist - process it [13:33:20]req_shift_open_date [13:33:20]req_shift_open_date done [13:33:20]produce_requested_data done [13:33:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103921,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:33:20]process_action_free close_receipt [13:33:20]json_value_free [13:33:20]json_value_free done [13:33:20]process_json_proto returns [13:33:20]Send response to host [13:33:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103921,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:33:20]free response buf [13:33:20]execute_script done [13:33:20]execute_script returns [13:33:20]free content buf [13:33:20]Sock 9.Close socket [13:33:20]Sock 9.Thread stoped [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]accept exits with 10 [13:35:59]New connection [13:35:59]New thread 3067063652 created [13:35:59]Thread 3067207012 joined [13:35:59]Waiting for new connection... [13:35:59] Sock 10.Parse request [13:35:59]Sock 10.Check first char [13:35:59]Sock 10.First char is OK [13:35:59]request: POST /json_proto HTTP/1.0 [13:35:59]Method: POST [13:35:59]URL: /json_proto [13:35:59]Method is POST - this is cgi request [13:35:59]url: /json_proto [13:35:59]query_string will be loaded in cgi processing [13:35:59]execute_cgi json_proto POST (null) [13:35:59]execute_cgi path=json_proto method=POST [13:35:59]POST find Content-Length [13:35:59]Host: 172.17.38.133:8080 [13:35:59]Content-Length: 682 [13:35:59]Content-Type: application/json [13:35:59] [13:35:59]POST finish read [13:35:59]Found Content-Length = 682 [13:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673271", "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" : 73.90, "quantity" : 23.550, "sum" : 1740.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1740.00, "total" : 1740.00, "payments": [ { "type": 0, "sum" : 1740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:59]execute_script... [13:35:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673271", "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" : 73.90, "quantity" : 23.550, "sum" : 1740.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1740.00, "total" : 1740.00, "payments": [ { "type": 0, "sum" : 1740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:59]POST & json_proto [13:35:59]process_json_proto [13:35:59]json parsed OK: [13:35:59]protocol is kg_v1.0 [13:35:59]action value=close_receipt [13:35:59]process_action close_receipt [13:35:59]cmd_close_receipt [13:35:59]MH_GetDate [13:35:59]Write to MH i2c: F0 00 00 4D 1F 5B [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: F0 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: F0 09 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: F0 09 00 4D 1F 00 41 30 74 66 BD 8F 7C 64 DB [13:35:59]GetLastDocTimeStamp 1718890398 [13:35:59]current date 1718890561 [13:35:59]FM_GetShiftState [13:35:59]SAM_PROTO_GetShiftState [13:35:59]wFMCommunicate request_size=4 [13:35:59]MH_SAM_APDU [13:35:59]CAPDU: 80 13 01 00 [13:35:59]Write to MH i2c: E2 08 00 4E 1F 80 13 01 00 00 00 00 00 EA [13:35:59]Write i2c OK [13:35:59]MH_I2C_Read... [13:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:59]Read from MH i2c: E2 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 0E 00 [13:35:59]MH_I2C_Read... [13:35:59]Read from MH i2c: E2 0E 00 4E 1F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 39 [13:35:59]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:35:59]wFMCommunicate OK [13:35:59]SAM_PROTO_GetShiftState done [13:35:59]FM_GetShiftState done [13:35:59]opened in 1718843124 [13:35:59]opened+sec_in_day 1718929524 [13:35:59]quantity*price = 174034 [13:35:59]sum+1 = 174036 [13:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1740.00 Внесено: 1740.00 СДАЧА: 0.00 НСП 1% : 15.40 НДС 12% : 184.82 Наличными: 1740.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 107 20.06.2024 13:36 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103922 ФПД: 130859824827349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133601&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103922&fm=130859824827349&tin=02508201610067®Number=0000000000092785&sum=174000 [13:36:00]StoreToDocumentArchive [13:36:00]shift 354 fd 103922 [13:36:00]save to /storage/0354/doc_00103922 [13:36:00]save last doc name /storage/0354/doc_00103922 to /storage/kkm_last_doc_name [13:36:00]save OK [13:36:00]Clear old archive folders... [13:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:00]tlvbuf is 008265E0 [13:36:00]SAM_PROTO_ClearQueue [13:36:00]wFMCommunicate request_size=4 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 09 00 00 [13:36:00]Write to MH i2c: E2 08 00 5B 1F 80 09 00 00 00 00 00 00 EC [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 5B 1F 00 90 00 EE [13:36:00]RAPDU: 90 00 [13:36:00]wFMCommunicate OK [13:36:00]SAM_PROTO_ClearQueue done [13:36:00]KKMCreateOFDPacket [13:36:00]OFDProtocolAddRootSTLVToBuf [13:36:00]FM_MakeSignedData [13:36:00]FM_MakeSignedData [13:36:00]SAM_PROTO_SignData [13:36:00]wFMCommunicate request_size=4 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 0D 01 02 [13:36:00]Write to MH i2c: E2 08 00 5C 1F 80 0D 01 02 00 00 00 00 F4 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:00]Read from MH i2c: E2 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 [13:36:00]MH_I2C_Read... [13:36:00]Read from MH i2c: E2 03 00 5C 1F 00 90 00 EF [13:36:00]RAPDU: 90 00 [13:36:00]wFMCommunicate OK [13:36:00]wFMCommunicate request_size=255 [13:36:00]MH_SAM_APDU [13:36:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FE 5B 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D3 A7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 48 00 00 00 00 07 04 06 00 B0 A7 02 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 41 30 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 95 01 00 35 04 06 00 77 [13:36:00]Write to MH i2c: E2 02 01 5D 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FE 5B 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D3 A7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 48 00 00 00 00 07 04 06 00 B0 A7 02 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 41 30 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 95 01 00 35 04 06 00 77 00 00 25 [13:36:00]Write i2c OK [13:36:00]MH_I2C_Read... [13:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:01]Read from MH i2c: E2 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 03 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 03 00 5D 1F 00 90 00 F0 [13:36:01]RAPDU: 90 00 [13:36:01]wFMCommunicate OK [13:36:01]wFMCommunicate request_size=10 [13:36:01]MH_SAM_APDU [13:36:01]CAPDU: 80 0D 02 02 05 04 2D 5F CB D5 [13:36:01]Write to MH i2c: E2 0D 00 5E 1F 80 0D 02 02 05 00 04 2D 5F CB D5 00 00 31 [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:01]Read from MH i2c: E2 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 03 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 03 00 5E 1F 00 90 00 F1 [13:36:01]RAPDU: 90 00 [13:36:01]wFMCommunicate OK [13:36:01]wFMCommunicate request_size=4 [13:36:01]MH_SAM_APDU [13:36:01]CAPDU: 80 0D 03 02 [13:36:01]Write to MH i2c: E2 08 00 5F 1F 80 0D 03 02 00 00 00 00 F9 [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:01]Read from MH i2c: E2 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 0B 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 0B 00 5F 1F 00 60 20 98 B7 44 E3 C2 7D 90 00 2F [13:36:01]RAPDU: 60 20 98 B7 44 E3 C2 7D 90 00 [13:36:01]wFMCommunicate OK [13:36:01]SAM_PROTO_SignData done [13:36:01]FM_MakeSignedData done [13:36:01]CreateOFDProtocolMessage [13:36:01]wFMCommunicate request_size=4 [13:36:01]MH_SAM_APDU [13:36:01]CAPDU: 80 11 00 00 [13:36:01]Write to MH i2c: E2 08 00 60 1F 80 11 00 00 00 00 00 00 F9 [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:01]Read from MH i2c: E2 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 17 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: E2 17 00 60 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4C [13:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:36:01]wFMCommunicate OK [13:36:01]CreateOFDProtocolMessage done [13:36:01]OFDSenderStorePacket 103922 [13:36:01]StoreOFDPacket docnum=103922 [13:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 44 63 07 01 0C 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 FE 5B 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D3 A7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 48 00 00 00 00 07 04 06 00 B0 A7 02 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 41 30 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 95 01 00 35 04 06 00 77 04 2D 5F CB D5 60 20 98 B7 44 E3 C2 7D [13:36:01]CheckFolder [13:36:01]dirname=/storage/ofd_packets [13:36:01]CheckFolder done [13:36:01]ProducePacketName [13:36:01]name=ofd_packets/00103922 [13:36:01]NVStorageSaveData ofd_packets/00103922 [13:36:01]File name is /storage/ofd_packets/00103922 [13:36:01]Write 301 bytes [13:36:01]NVStorageSaveData done [13:36:01]OFDSenderStorePacket done [13:36:01]KKMCreateOFDPacket done [13:36:01]NVStorageSaveData kkm_last_timestamp [13:36:01]File name is /storage/kkm_last_timestamp [13:36:01]Write 4 bytes [13:36:01]NVStorageSaveData done [13:36:01]ExternCall_PrintAddStr [13:36:01]wPrintStart [13:36:01]Write to MH i2c: 01 00 00 61 1F 80 [13:36:01]Write i2c OK [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 07 00 [13:36:01]MH_I2C_Read... [13:36:01]Read from MH i2c: 01 07 00 61 1F 00 00 00 00 00 FF 0F 95 [13:36:01]RasterBufferAndPrint [13:36:01]line Счет N : (1)673271 [13:36:01]line ИНН: 02508201610067 [13:36:01]line Контрольно-Кассовый Чек [13:36:01]line ПРОДАЖА [13:36:01]line ТРК (МРК, ГНК) : 41 [13:36:01]line Товар: 2710124500 [13:36:01]line Аи-95-К-5 [13:36:01]line 23.550 * 73.90 [13:36:01]line = 1740.35 [13:36:01]line НДС 12% НСП 1% [13:36:01]line > о реализуемом товаре [13:36:01]line ОКРУГЛЕНИЕ: -0.35 [13:36:01]line ИТОГО: 1740.00 [13:36:01]line Внесено: 1740.00 [13:36:01]line СДАЧА: 0.00 [13:36:01]line НСП 1% : 15.40 [13:36:01]line НДС 12% : 184.82 [13:36:01]line Наличными: 1740.00 [13:36:01]line Безнал.: 0.00 [13:36:01]line Место: АЗС № 120 "Партнер Нефть" [13:36:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:36:01]line СНО: Общий режим [13:36:01]line Чек 107 20.06.2024 13:36 [13:36:01]line Смена: 354 ФФД: 1.0 [13:36:01]line ЗНМ: 0300000164 [13:36:01]line РНМ: 0000000000092785 [13:36:01]line Версия ККМ: 001 [13:36:01]line ФМ: 0000000000875093 [13:36:01]line ФД: 103922 [13:36:01]line ФПД: 130859824827349 [13:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133601&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103922&fm=130859824827349&tin=02508201610067®Number=0000000000092785&sum=174000 [13:36:01]OFD Sender: Processing packet 103922 [packets to send 17, broken 16] [13:36:01]ProducePacketName [13:36:01]name=ofd_packets/00103922 [13:36:01]OFD Sender: To server: pG, [13:36:01]CommunicateWithHost lk.salyk.kg:30040 [13:36:01]ConnectInit lk.salyk.kg [13:36:01]written 0, free lines is 4095 [13:36:01]Connected sock=6 [13:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 44 63 07 01 0C 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 FE 5B 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 D3 A7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 A7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 48 00 00 00 00 07 04 06 00 B0 A7 02 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 41 30 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F2 95 01 00 35 04 06 00 77 04 2D 5F CB D5 60 20 98 B7 44 E3 C2 7D [13:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B8 35 47 00 A0 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 35 30 39 33 10 04 04 00 F2 95 01 00 F4 03 04 00 C7 D6 73 66 B6 04 01 00 00 89 03 7A 60 40 31 C1 B2 [13:36:01]CommunicateWithHost err = 0 [13:36:01]CheckOFDResponse [13:36:01]1017 (14) - 77093643461234 [13:36:01]1041 (16) - 0000000000875093 [13:36:01]1040 (4) - 103922 [13:36:01]1012 (4) - 20.06.2024 07:14 [13:36:01]1206 (1) - 0 [13:36:01]OFD Sender: Remove packet 103922 [13:36:01]ProducePacketName [13:36:01]name=ofd_packets/00103922 [13:36:01]NVStorageDeleteData [13:36:02]Write to MH i2c: 01 00 00 8C 1F AB [13:36:02]Write i2c OK [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: 01 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: 01 07 00 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: 01 07 00 8C 1F 00 00 00 00 00 D9 0C 97 [13:36:02]RasterBufferAndPrint [13:36:02]line [13:36:02]line [13:36:02]line [13:36:02]line [13:36:02]line [13:36:02]written 0, free lines is 3296 [13:36:02]MH_Cut [13:36:02]Write to MH i2c: D1 01 00 93 1F 01 84 [13:36:02]Write i2c OK [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: D1 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: D1 01 00 [13:36:02]MH_I2C_Read... [13:36:02]Read from MH i2c: D1 01 00 93 1F 00 83 [13:36:02]Write to MH i2c: 01 00 00 94 1F B3 [13:36:02]Write i2c OK [13:36:02]MH_I2C_Read... [13:36:02]OFD Sender: No OFD packet to send [13:36:02]*** Cut start [13:36:02]*** Partial cut [13:36:02]*** CUTSNS_PIN = 1 [13:36:02]*** CUTSNS_PIN = 0 [13:36:03]*** Brake cut motor [13:36:03]Read from MH i2c: 01 [13:36:03]MH_I2C_Read... [13:36:03]*** Stop cut motor [13:36:03]*** Cut end [13:36:03]Read from MH i2c: 01 07 00 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: 01 07 00 94 1F 00 00 00 00 00 FF 0F C8 [13:36:03]process_action close_receipt done [13:36:03]requested_data is exist [13:36:03]produce_requested_data [13:36:03]requested_item fm.sn is exist - process it [13:36:03]wFMCommunicate request_size=4 [13:36:03]MH_SAM_APDU [13:36:03]CAPDU: 80 11 00 00 [13:36:03]Write to MH i2c: E2 08 00 95 1F 80 11 00 00 00 00 00 00 2E [13:36:03]Write i2c OK [13:36:03]MH_I2C_Read... [13:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:03]Read from MH i2c: E2 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 17 00 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 17 00 95 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 81 [13:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:36:03]wFMCommunicate OK [13:36:03]requested_item fd.num is exist - process it [13:36:03]SAM_PROTO_GetFieldsCounters [13:36:03]wFMCommunicate request_size=4 [13:36:03]MH_SAM_APDU [13:36:03]CAPDU: 80 13 00 00 [13:36:03]Write to MH i2c: E2 08 00 96 1F 80 13 00 00 00 00 00 00 31 [13:36:03]Write i2c OK [13:36:03]MH_I2C_Read... [13:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:03]Read from MH i2c: E2 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 62 00 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 62 00 96 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F2 95 01 00 0E 04 04 00 62 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 84 [13:36:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F2 95 01 00 0E 04 04 00 62 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:36:03]wFMCommunicate OK [13:36:03]SAM_PROTO_GetFieldsCounters done [13:36:03]requested_item shift.num is exist - process it [13:36:03]requested_item shift.opened is exist - process it [13:36:03]req_shift_opened [13:36:03]FM_GetShiftState [13:36:03]SAM_PROTO_GetShiftState [13:36:03]wFMCommunicate request_size=4 [13:36:03]MH_SAM_APDU [13:36:03]CAPDU: 80 13 01 00 [13:36:03]Write to MH i2c: E2 08 00 97 1F 80 13 01 00 00 00 00 00 33 [13:36:03]Write i2c OK [13:36:03]MH_I2C_Read... [13:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:03]Read from MH i2c: E2 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 0E 00 [13:36:03]MH_I2C_Read... [13:36:03]Read from MH i2c: E2 0E 00 97 1F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 82 [13:36:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:36:03]wFMCommunicate OK [13:36:03]SAM_PROTO_GetShiftState done [13:36:03]FM_GetShiftState done [13:36:03]req_shift_opened done [13:36:03]requested_item shift.open_date is exist - process it [13:36:03]req_shift_open_date [13:36:03]req_shift_open_date done [13:36:03]produce_requested_data done [13:36:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103922,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:36:03]process_action_free close_receipt [13:36:03]json_value_free [13:36:03]json_value_free done [13:36:03]process_json_proto returns [13:36:03]Send response to host [13:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103922,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:36:03]free response buf [13:36:03]execute_script done [13:36:03]execute_script returns [13:36:03]free content buf [13:36:03]Sock 10.Close socket [13:36:03]Sock 10.Thread stoped [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:10]accept exits with 7 [13:37:10]New connection [13:37:10]New thread 3067207012 created [13:37:10]Thread 3067063652 joined [13:37:10]Waiting for new connection... [13:37:10] Sock 7.Parse request [13:37:10]Sock 7.Check first char [13:37:10]Sock 7.First char is OK [13:37:10]request: POST /json_proto HTTP/1.0 [13:37:10]Method: POST [13:37:10]URL: /json_proto [13:37:10]Method is POST - this is cgi request [13:37:10]url: /json_proto [13:37:10]query_string will be loaded in cgi processing [13:37:10]execute_cgi json_proto POST (null) [13:37:10]execute_cgi path=json_proto method=POST [13:37:10]POST find Content-Length [13:37:10]Host: 172.17.38.133:8080 [13:37:10]Content-Length: 687 [13:37:10]Content-Type: application/json [13:37:10] [13:37:10]POST finish read [13:37:10]Found Content-Length = 687 [13:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:10]execute_script... [13:37: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)673272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:10]POST & json_proto [13:37:10]process_json_proto [13:37:10]json parsed OK: [13:37:10]protocol is kg_v1.0 [13:37:10]action value=close_receipt [13:37:10]process_action close_receipt [13:37:10]cmd_close_receipt [13:37:10]MH_GetDate [13:37:10]Write to MH i2c: F0 00 00 98 1F A6 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: F0 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: F0 09 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: F0 09 00 98 1F 00 88 30 74 66 BD 8F 7C 64 6D [13:37:10]GetLastDocTimeStamp 1718890561 [13:37:10]current date 1718890632 [13:37:10]FM_GetShiftState [13:37:10]SAM_PROTO_GetShiftState [13:37:10]wFMCommunicate request_size=4 [13:37:10]MH_SAM_APDU [13:37:10]CAPDU: 80 13 01 00 [13:37:10]Write to MH i2c: E2 08 00 99 1F 80 13 01 00 00 00 00 00 35 [13:37:10]Write i2c OK [13:37:10]MH_I2C_Read... [13:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:10]Read from MH i2c: E2 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 0E 00 [13:37:10]MH_I2C_Read... [13:37:10]Read from MH i2c: E2 0E 00 99 1F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 84 [13:37:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:37:10]wFMCommunicate OK [13:37:10]SAM_PROTO_GetShiftState done [13:37:10]FM_GetShiftState done [13:37:10]opened in 1718843124 [13:37:10]opened+sec_in_day 1718929524 [13:37:10]quantity*price = 200037 [13:37:10]sum+1 = 200039 [13:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 108 20.06.2024 13:37 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103923 ФПД: 204712623034003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133712&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103923&fm=204712623034003&tin=02508201610067®Number=0000000000092785&sum=200000 [13:37:11]StoreToDocumentArchive [13:37:11]shift 354 fd 103923 [13:37:11]save to /storage/0354/doc_00103923 [13:37:11]save last doc name /storage/0354/doc_00103923 to /storage/kkm_last_doc_name [13:37:11]save OK [13:37:11]Clear old archive folders... [13:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:37:11]tlvbuf is B6DE64F0 [13:37:11]SAM_PROTO_ClearQueue [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 09 00 00 [13:37:11]Write to MH i2c: E2 08 00 A6 1F 80 09 00 00 00 00 00 00 37 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 A6 1F 00 90 00 39 [13:37:11]RAPDU: 90 00 [13:37:11]wFMCommunicate OK [13:37:11]SAM_PROTO_ClearQueue done [13:37:11]KKMCreateOFDPacket [13:37:11]OFDProtocolAddRootSTLVToBuf [13:37:11]FM_MakeSignedData [13:37:11]FM_MakeSignedData [13:37:11]SAM_PROTO_SignData [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 0D 01 02 [13:37:11]Write to MH i2c: E2 08 00 A7 1F 80 0D 01 02 00 00 00 00 3F [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 A7 1F 00 90 00 3A [13:37:11]RAPDU: 90 00 [13:37:11]wFMCommunicate OK [13:37:11]wFMCommunicate request_size=255 [13:37:11]MH_SAM_APDU [13:37: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 88 30 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 95 01 00 35 04 06 00 [13:37:11]Write to MH i2c: E2 02 01 A8 1F 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 88 30 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 95 01 00 35 04 06 00 00 00 F8 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 A8 1F 00 90 00 3B [13:37:11]RAPDU: 90 00 [13:37:11]wFMCommunicate OK [13:37:11]wFMCommunicate request_size=11 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 0D 02 02 06 BA 2F 5F 2D 4E 93 [13:37:11]Write to MH i2c: E2 0E 00 A9 1F 80 0D 02 02 06 00 BA 2F 5F 2D 4E 93 00 00 A4 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 03 00 A9 1F 00 90 00 3C [13:37:11]RAPDU: 90 00 [13:37:11]wFMCommunicate OK [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 0D 03 02 [13:37:11]Write to MH i2c: E2 08 00 AA 1F 80 0D 03 02 00 00 00 00 44 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 0B 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 0B 00 AA 1F 00 A7 96 33 E8 5C 52 55 3B 90 00 DB [13:37:11]RAPDU: A7 96 33 E8 5C 52 55 3B 90 00 [13:37:11]wFMCommunicate OK [13:37:11]SAM_PROTO_SignData done [13:37:11]FM_MakeSignedData done [13:37:11]CreateOFDProtocolMessage [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 11 00 00 [13:37:11]Write to MH i2c: E2 08 00 AB 1F 80 11 00 00 00 00 00 00 44 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 17 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 17 00 AB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 97 [13:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:37:11]wFMCommunicate OK [13:37:11]CreateOFDProtocolMessage done [13:37:11]OFDSenderStorePacket 103923 [13:37:11]StoreOFDPacket docnum=103923 [13:37:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FD 93 08 01 2F 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 88 30 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 95 01 00 35 04 06 00 BA 2F 5F 2D 4E 93 A7 96 33 E8 5C 52 55 3B [13:37:11]CheckFolder [13:37:11]dirname=/storage/ofd_packets [13:37:11]CheckFolder done [13:37:11]ProducePacketName [13:37:11]name=ofd_packets/00103923 [13:37:11]NVStorageSaveData ofd_packets/00103923 [13:37:11]File name is /storage/ofd_packets/00103923 [13:37:11]Write 302 bytes [13:37:11]NVStorageSaveData done [13:37:11]OFDSenderStorePacket done [13:37:11]KKMCreateOFDPacket done [13:37:11]NVStorageSaveData kkm_last_timestamp [13:37:11]File name is /storage/kkm_last_timestamp [13:37:11]Write 4 bytes [13:37:11]NVStorageSaveData done [13:37:11]ExternCall_PrintAddStr [13:37:11]wPrintStart [13:37:11]Write to MH i2c: 01 00 00 AC 1F CB [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 07 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 07 00 AC 1F 00 00 00 00 00 FF 0F E0 [13:37:11]RasterBufferAndPrint [13:37:11]line Счет N : (1)673272 [13:37:11]line ИНН: 02508201610067 [13:37:11]line Контрольно-Кассовый Чек [13:37:11]line ПРОДАЖА [13:37:11]line ТРК (МРК, ГНК) : 21 [13:37:11]line Товар: 2710194210 [13:37:11]line ДТ(л)-К-5 [13:37:11]line 27.440 * 72.90 [13:37:11]line = 2000.38 [13:37:11]line НДС 12% НСП 1% [13:37:11]line > о реализуемом товаре [13:37:11]line ОКРУГЛЕНИЕ: -0.38 [13:37:11]line ИТОГО: 2000.00 [13:37:11]line Внесено: 2000.00 [13:37:11]line СДАЧА: 0.00 [13:37:11]line НСП 1% : 17.70 [13:37:11]line НДС 12% : 212.43 [13:37:11]line Наличными: 2000.00 [13:37:11]line Безнал.: 0.00 [13:37:11]line Место: АЗС № 120 "Партнер Нефть" [13:37:11]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:37:11]line СНО: Общий режим [13:37:11]line Чек 108 20.06.2024 13:37 [13:37:11]line Смена: 354 ФФД: 1.0 [13:37:11]line ЗНМ: 0300000164 [13:37:11]line РНМ: 0000000000092785 [13:37:11]line Версия ККМ: 001 [13:37:11]line ФМ: 0000000000875093 [13:37:11]line ФД: 103923 [13:37:11]line ФПД: 204712623034003 [13:37:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T133712&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103923&fm=204712623034003&tin=02508201610067®Number=0000000000092785&sum=200000 [13:37:11]written 0, free lines is 4095 [13:37:11]OFD Sender: Processing packet 103923 [packets to send 17, broken 16] [13:37:11]ProducePacketName [13:37:11]name=ofd_packets/00103923 [13:37:11]OFD Sender: To server: pG, [13:37:11]CommunicateWithHost lk.salyk.kg:30040 [13:37:11]ConnectInit lk.salyk.kg [13:37:11]Connected sock=11 [13:37:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FD 93 08 01 2F 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 88 30 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 95 01 00 35 04 06 00 BA 2F 5F 2D 4E 93 A7 96 33 E8 5C 52 55 3B [13:37:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CB F8 47 00 B6 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F3 95 01 00 F4 03 04 00 0D D7 73 66 B6 04 01 00 00 57 E5 EC 62 F5 E5 E8 2F [13:37:12]CommunicateWithHost err = 0 [13:37:12]CheckOFDResponse [13:37:12]1017 (14) - 77093643461234 [13:37:12]1041 (16) - 0000000000875093 [13:37:12]1040 (4) - 103923 [13:37:12]1012 (4) - 20.06.2024 07:15 [13:37:12]1206 (1) - 0 [13:37:12]OFD Sender: Remove packet 103923 [13:37:12]ProducePacketName [13:37:12]name=ofd_packets/00103923 [13:37:12]NVStorageDeleteData [13:37:12]Write to MH i2c: 01 00 00 D7 1F F6 [13:37:12]Write i2c OK [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: 01 [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: 01 07 00 [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: 01 07 00 D7 1F 00 00 00 00 00 EB 0C F4 [13:37:12]RasterBufferAndPrint [13:37:12]line [13:37:12]line [13:37:12]line [13:37:12]line [13:37:12]line [13:37:12]written 0, free lines is 3313 [13:37:12]MH_Cut [13:37:12]Write to MH i2c: D1 01 00 DE 1F 01 CF [13:37:12]Write i2c OK [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: D1 [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: D1 01 00 [13:37:12]MH_I2C_Read... [13:37:12]Read from MH i2c: D1 01 00 DE 1F 00 CE [13:37:12]Write to MH i2c: 01 00 00 DF 1F FE [13:37:12]Write i2c OK [13:37:12]MH_I2C_Read... [13:37:12]OFD Sender: No OFD packet to send [13:37:12]*** Cut start [13:37:12]*** Partial cut [13:37:12]*** CUTSNS_PIN = 1 [13:37:13]*** CUTSNS_PIN = 0 [13:37:13]*** Brake cut motor [13:37:13]Read from MH i2c: 01 [13:37:13]MH_I2C_Read... [13:37:13]*** Stop cut motor [13:37:13]*** Cut end [13:37:13]Read from MH i2c: 01 07 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: 01 07 00 DF 1F 00 00 00 00 00 FF 0F 13 [13:37:13]process_action close_receipt done [13:37:13]requested_data is exist [13:37:13]produce_requested_data [13:37:13]requested_item fm.sn is exist - process it [13:37:13]wFMCommunicate request_size=4 [13:37:13]MH_SAM_APDU [13:37:13]CAPDU: 80 11 00 00 [13:37:13]Write to MH i2c: E2 08 00 E0 1F 80 11 00 00 00 00 00 00 79 [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:13]Read from MH i2c: E2 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 17 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 17 00 E0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CC [13:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:37:13]wFMCommunicate OK [13:37:13]requested_item fd.num is exist - process it [13:37:13]SAM_PROTO_GetFieldsCounters [13:37:13]wFMCommunicate request_size=4 [13:37:13]MH_SAM_APDU [13:37:13]CAPDU: 80 13 00 00 [13:37:13]Write to MH i2c: E2 08 00 E1 1F 80 13 00 00 00 00 00 00 7C [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:13]Read from MH i2c: E2 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 62 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 62 00 E1 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F3 95 01 00 0E 04 04 00 62 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 D3 [13:37:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F3 95 01 00 0E 04 04 00 62 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:37:13]wFMCommunicate OK [13:37:13]SAM_PROTO_GetFieldsCounters done [13:37:13]requested_item shift.num is exist - process it [13:37:13]requested_item shift.opened is exist - process it [13:37:13]req_shift_opened [13:37:13]FM_GetShiftState [13:37:13]SAM_PROTO_GetShiftState [13:37:13]wFMCommunicate request_size=4 [13:37:13]MH_SAM_APDU [13:37:13]CAPDU: 80 13 01 00 [13:37:13]Write to MH i2c: E2 08 00 E2 1F 80 13 01 00 00 00 00 00 7E [13:37:13]Write i2c OK [13:37:13]MH_I2C_Read... [13:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:13]Read from MH i2c: E2 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 0E 00 [13:37:13]MH_I2C_Read... [13:37:13]Read from MH i2c: E2 0E 00 E2 1F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CD [13:37:13]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:37:13]wFMCommunicate OK [13:37:13]SAM_PROTO_GetShiftState done [13:37:13]FM_GetShiftState done [13:37:13]req_shift_opened done [13:37:13]requested_item shift.open_date is exist - process it [13:37:13]req_shift_open_date [13:37:13]req_shift_open_date done [13:37:13]produce_requested_data done [13:37:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103923,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:37:13]process_action_free close_receipt [13:37:13]json_value_free [13:37:13]json_value_free done [13:37:13]process_json_proto returns [13:37:13]Send response to host [13:37:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103923,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:37:13]free response buf [13:37:13]execute_script done [13:37:13]execute_script returns [13:37:13]free content buf [13:37:13]Sock 7.Close socket [13:37:13]Sock 7.Thread stoped [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:35]accept exits with 9 [13:41:35]New connection [13:41:35]New thread 3067063652 created [13:41:35]Thread 3067207012 joined [13:41:35]Waiting for new connection... [13:41:35] Sock 9.Parse request [13:41:35]Sock 9.Check first char [13:41:35]Sock 9.First char is OK [13:41:35]request: POST /json_proto HTTP/1.0 [13:41:35]Method: POST [13:41:35]URL: /json_proto [13:41:35]Method is POST - this is cgi request [13:41:35]url: /json_proto [13:41:35]query_string will be loaded in cgi processing [13:41:35]execute_cgi json_proto POST (null) [13:41:35]execute_cgi path=json_proto method=POST [13:41:35]POST find Content-Length [13:41:35]Host: 172.17.38.133:8080 [13:41:35]Content-Length: 677 [13:41:35]Content-Type: application/json [13:41:35] [13:41:35]POST finish read [13:41:35]Found Content-Length = 677 [13:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:41:35]execute_script... [13:41:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:41:35]POST & json_proto [13:41:35]process_json_proto [13:41:35]json parsed OK: [13:41:35]protocol is kg_v1.0 [13:41:35]action value=close_receipt [13:41:35]process_action close_receipt [13:41:35]cmd_close_receipt [13:41:35]MH_GetDate [13:41:35]Write to MH i2c: F0 00 00 E3 1F F1 [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: F0 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: F0 09 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: F0 09 00 E3 1F 00 92 31 74 66 BD 8F 7C 64 C3 [13:41:35]GetLastDocTimeStamp 1718890632 [13:41:35]current date 1718890898 [13:41:35]FM_GetShiftState [13:41:35]SAM_PROTO_GetShiftState [13:41:35]wFMCommunicate request_size=4 [13:41:35]MH_SAM_APDU [13:41:35]CAPDU: 80 13 01 00 [13:41:35]Write to MH i2c: E2 08 00 E4 1F 80 13 01 00 00 00 00 00 80 [13:41:35]Write i2c OK [13:41:35]MH_I2C_Read... [13:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:35]Read from MH i2c: E2 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 0E 00 [13:41:35]MH_I2C_Read... [13:41:35]Read from MH i2c: E2 0E 00 E4 1F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CF [13:41:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:41:35]wFMCommunicate OK [13:41:35]SAM_PROTO_GetShiftState done [13:41:35]FM_GetShiftState done [13:41:35]opened in 1718843124 [13:41:35]opened+sec_in_day 1718929524 [13:41:35]quantity*price = 60025 [13:41:35]sum+1 = 60027 [13:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 109 20.06.2024 13:41 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103924 ФПД: 17997709755011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134138&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103924&fm=17997709755011&tin=02508201610067®Number=0000000000092785&sum=60000 [13:41:37]StoreToDocumentArchive [13:41:37]shift 354 fd 103924 [13:41:37]save to /storage/0354/doc_00103924 [13:41:37]save last doc name /storage/0354/doc_00103924 to /storage/kkm_last_doc_name [13:41:37]save OK [13:41:37]Clear old archive folders... [13:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:37]tlvbuf is 0088EC90 [13:41:37]SAM_PROTO_ClearQueue [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 09 00 00 [13:41:37]Write to MH i2c: E2 08 00 F1 1F 80 09 00 00 00 00 00 00 82 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 F1 1F 00 90 00 84 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]SAM_PROTO_ClearQueue done [13:41:37]KKMCreateOFDPacket [13:41:37]OFDProtocolAddRootSTLVToBuf [13:41:37]FM_MakeSignedData [13:41:37]FM_MakeSignedData [13:41:37]SAM_PROTO_SignData [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 01 02 [13:41:37]Write to MH i2c: E2 08 00 F2 1F 80 0D 01 02 00 00 00 00 8A [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 F2 1F 00 90 00 85 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=255 [13:41:37]MH_SAM_APDU [13:41: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 92 31 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 95 01 00 35 04 06 00 10 [13:41:37]Write to MH i2c: E2 02 01 F3 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 92 31 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 95 01 00 35 04 06 00 10 00 00 28 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 F3 1F 00 90 00 86 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=10 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 02 02 05 5E 6B 18 C2 83 [13:41:37]Write to MH i2c: E2 0D 00 F4 1F 80 0D 02 02 05 00 5E 6B 18 C2 83 00 00 BD [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 F4 1F 00 90 00 87 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 03 02 [13:41:37]Write to MH i2c: E2 08 00 F5 1F 80 0D 03 02 00 00 00 00 8F [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 0B 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 0B 00 F5 1F 00 79 A5 33 E3 3D F0 D5 F8 90 00 BE [13:41:37]RAPDU: 79 A5 33 E3 3D F0 D5 F8 90 00 [13:41:37]wFMCommunicate OK [13:41:37]SAM_PROTO_SignData done [13:41:37]FM_MakeSignedData done [13:41:37]CreateOFDProtocolMessage [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 11 00 00 [13:41:37]Write to MH i2c: E2 08 00 F6 1F 80 11 00 00 00 00 00 00 8F [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 17 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 17 00 F6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E2 [13:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:41:37]wFMCommunicate OK [13:41:37]CreateOFDProtocolMessage done [13:41:37]OFDSenderStorePacket 103924 [13:41:37]StoreOFDPacket docnum=103924 [13:41:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 51 49 07 01 79 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 92 31 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 95 01 00 35 04 06 00 10 5E 6B 18 C2 83 79 A5 33 E3 3D F0 D5 F8 [13:41:37]CheckFolder [13:41:37]dirname=/storage/ofd_packets [13:41:37]CheckFolder done [13:41:37]ProducePacketName [13:41:37]name=ofd_packets/00103924 [13:41:37]NVStorageSaveData ofd_packets/00103924 [13:41:37]File name is /storage/ofd_packets/00103924 [13:41:37]Write 301 bytes [13:41:37]NVStorageSaveData done [13:41:37]OFDSenderStorePacket done [13:41:37]KKMCreateOFDPacket done [13:41:37]NVStorageSaveData kkm_last_timestamp [13:41:37]File name is /storage/kkm_last_timestamp [13:41:37]Write 4 bytes [13:41:37]NVStorageSaveData done [13:41:37]ExternCall_PrintAddStr [13:41:37]wPrintStart [13:41:37]Write to MH i2c: 01 00 00 F7 1F 16 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: 01 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: 01 07 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: 01 07 00 F7 1F 00 00 00 00 00 FF 0F 2B [13:41:37]RasterBufferAndPrint [13:41:37]line Счет N : (1)673273 [13:41:37]line ИНН: 02508201610067 [13:41:37]line Контрольно-Кассовый Чек [13:41:37]line ПРОДАЖА [13:41:37]line ТРК (МРК, ГНК) : 32 [13:41:37]line Товар: 2710124130 [13:41:37]line Аи-92-К-5 [13:41:37]line 9.040 * 66.40 [13:41:37]line = 600.26 [13:41:37]line НДС 12% НСП 1% [13:41:37]line > о реализуемом товаре [13:41:37]line ОКРУГЛЕНИЕ: -0.26 [13:41:37]line ИТОГО: 600.00 [13:41:37]line Внесено: 600.00 [13:41:37]line СДАЧА: 0.00 [13:41:37]line НСП 1% : 5.31 [13:41:37]line НДС 12% : 63.74 [13:41:37]line Наличными: 600.00 [13:41:37]line Безнал.: 0.00 [13:41:37]line Место: АЗС № 120 "Партнер Нефть" [13:41:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:41:37]line СНО: Общий режим [13:41:37]line Чек 109 20.06.2024 13:41 [13:41:37]line Смена: 354 ФФД: 1.0 [13:41:37]line ЗНМ: 0300000164 [13:41:37]line РНМ: 0000000000092785 [13:41:37]line Версия ККМ: 001 [13:41:37]line ФМ: 0000000000875093 [13:41:37]line ФД: 103924 [13:41:37]line ФПД: 17997709755011 [13:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T134138&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103924&fm=17997709755011&tin=02508201610067®Number=0000000000092785&sum=60000 [13:41:37]written 0, free lines is 4095 [13:41:37]OFD Sender: Processing packet 103924 [packets to send 17, broken 16] [13:41:37]ProducePacketName [13:41:37]name=ofd_packets/00103924 [13:41:37]OFD Sender: To server: pG, [13:41:37]CommunicateWithHost lk.salyk.kg:30040 [13:41:37]ConnectInit lk.salyk.kg [13:41:38]Connected sock=10 [13:41:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 51 49 07 01 79 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 92 31 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F4 95 01 00 35 04 06 00 10 5E 6B 18 C2 83 79 A5 33 E3 3D F0 D5 F8 [13:41:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 61 37 47 00 93 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 35 30 39 33 10 04 04 00 F4 95 01 00 F4 03 04 00 17 D8 73 66 B6 04 01 00 00 1C CF 2D D0 70 7D C1 5E [13:41:38]CommunicateWithHost err = 0 [13:41:38]CheckOFDResponse [13:41:38]1017 (14) - 77093643461234 [13:41:38]1041 (16) - 0000000000875093 [13:41:38]1040 (4) - 103924 [13:41:38]1012 (4) - 20.06.2024 07:19 [13:41:38]1206 (1) - 0 [13:41:38]OFD Sender: Remove packet 103924 [13:41:38]ProducePacketName [13:41:38]name=ofd_packets/00103924 [13:41:38]NVStorageDeleteData [13:41:38]Write to MH i2c: 01 00 00 22 20 42 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 22 20 00 00 00 00 00 D7 0C 2C [13:41:38]RasterBufferAndPrint [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]written 0, free lines is 3294 [13:41:38]MH_Cut [13:41:38]Write to MH i2c: D1 01 00 29 20 01 1B [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 01 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 01 00 29 20 00 1A [13:41:38]Write to MH i2c: 01 00 00 2A 20 4A [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]OFD Sender: No OFD packet to send [13:41:39]*** Cut start [13:41:39]*** Partial cut [13:41:39]*** CUTSNS_PIN = 1 [13:41:39]*** CUTSNS_PIN = 0 [13:41:39]*** Brake cut motor [13:41:39]Read from MH i2c: 01 [13:41:39]MH_I2C_Read... [13:41:39]*** Stop cut motor [13:41:39]*** Cut end [13:41:39]Read from MH i2c: 01 07 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 2A 20 00 00 00 00 00 FF 0F 5F [13:41:39]process_action close_receipt done [13:41:39]requested_data is exist [13:41:39]produce_requested_data [13:41:39]requested_item fm.sn is exist - process it [13:41:39]wFMCommunicate request_size=4 [13:41:39]MH_SAM_APDU [13:41:39]CAPDU: 80 11 00 00 [13:41:39]Write to MH i2c: E2 08 00 2B 20 80 11 00 00 00 00 00 00 C5 [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:39]Read from MH i2c: E2 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 17 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 17 00 2B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 18 [13:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:41:39]wFMCommunicate OK [13:41:39]requested_item fd.num is exist - process it [13:41:39]SAM_PROTO_GetFieldsCounters [13:41:39]wFMCommunicate request_size=4 [13:41:39]MH_SAM_APDU [13:41:39]CAPDU: 80 13 00 00 [13:41:39]Write to MH i2c: E2 08 00 2C 20 80 13 00 00 00 00 00 00 C8 [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:39]Read from MH i2c: E2 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 62 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 62 00 2C 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F4 95 01 00 0E 04 04 00 62 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 23 [13:41:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F4 95 01 00 0E 04 04 00 62 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:41:39]wFMCommunicate OK [13:41:39]SAM_PROTO_GetFieldsCounters done [13:41:39]requested_item shift.num is exist - process it [13:41:39]requested_item shift.opened is exist - process it [13:41:39]req_shift_opened [13:41:39]FM_GetShiftState [13:41:39]SAM_PROTO_GetShiftState [13:41:39]wFMCommunicate request_size=4 [13:41:39]MH_SAM_APDU [13:41:39]CAPDU: 80 13 01 00 [13:41:39]Write to MH i2c: E2 08 00 2D 20 80 13 01 00 00 00 00 00 CA [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0E 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0E 00 2D 20 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 19 [13:41:40]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_GetShiftState done [13:41:40]FM_GetShiftState done [13:41:40]req_shift_opened done [13:41:40]requested_item shift.open_date is exist - process it [13:41:40]req_shift_open_date [13:41:40]req_shift_open_date done [13:41:40]produce_requested_data done [13:41:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103924,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:41:40]process_action_free close_receipt [13:41:40]json_value_free [13:41:40]json_value_free done [13:41:40]process_json_proto returns [13:41:40]Send response to host [13:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103924,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:41:40]free response buf [13:41:40]execute_script done [13:41:40]execute_script returns [13:41:40]free content buf [13:41:40]Sock 9.Close socket [13:41:40]Sock 9.Thread stoped [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:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:11]accept exits with 7 [13:52:11]New connection [13:52:11]New thread 3067207012 created [13:52:11]Thread 3067063652 joined [13:52:11]Waiting for new connection... [13:52:11] Sock 7.Parse request [13:52:11]Sock 7.Check first char [13:52:11]Sock 7.First char is OK [13:52:11]request: POST /json_proto HTTP/1.0 [13:52:11]Method: POST [13:52:11]URL: /json_proto [13:52:11]Method is POST - this is cgi request [13:52:11]url: /json_proto [13:52:11]query_string will be loaded in cgi processing [13:52:11]execute_cgi json_proto POST (null) [13:52:11]execute_cgi path=json_proto method=POST [13:52:11]POST find Content-Length [13:52:11]Host: 172.17.38.133:8080 [13:52:11]Content-Length: 682 [13:52:11]Content-Type: application/json [13:52:11] [13:52:11]POST finish read [13:52:11]Found Content-Length = 682 [13:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673274", "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" : 73.90, "quantity" : 45.000, "sum" : 3325.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 3325.00, "payments": [ { "type": 0, "sum" : 3325.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:11]execute_script... [13:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673274", "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" : 73.90, "quantity" : 45.000, "sum" : 3325.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 3325.00, "payments": [ { "type": 0, "sum" : 3325.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:11]POST & json_proto [13:52:11]process_json_proto [13:52:11]json parsed OK: [13:52:11]protocol is kg_v1.0 [13:52:11]action value=close_receipt [13:52:11]process_action close_receipt [13:52:11]cmd_close_receipt [13:52:11]MH_GetDate [13:52:11]Write to MH i2c: F0 00 00 2E 20 3D [13:52:11]Write i2c OK [13:52:11]MH_I2C_Read... [13:52:11]Read from MH i2c: F0 [13:52:11]MH_I2C_Read... [13:52:11]Read from MH i2c: F0 09 00 [13:52:11]MH_I2C_Read... [13:52:11]Read from MH i2c: F0 09 00 2E 20 00 0D 34 74 66 BD 8F 7C 64 8D [13:52:11]GetLastDocTimeStamp 1718890898 [13:52:11]current date 1718891533 [13:52:11]FM_GetShiftState [13:52:11]SAM_PROTO_GetShiftState [13:52:11]wFMCommunicate request_size=4 [13:52:11]MH_SAM_APDU [13:52:11]CAPDU: 80 13 01 00 [13:52:11]Write to MH i2c: E2 08 00 2F 20 80 13 01 00 00 00 00 00 CC [13:52:11]Write i2c OK [13:52:11]MH_I2C_Read... [13:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:11]Read from MH i2c: E2 [13:52:11]MH_I2C_Read... [13:52:11]Read from MH i2c: E2 0E 00 [13:52:11]MH_I2C_Read... [13:52:11]Read from MH i2c: E2 0E 00 2F 20 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [13:52:11]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:52:11]wFMCommunicate OK [13:52:11]SAM_PROTO_GetShiftState done [13:52:11]FM_GetShiftState done [13:52:11]opened in 1718843124 [13:52:11]opened+sec_in_day 1718929524 [13:52:11]quantity*price = 332550 [13:52:11]sum+1 = 332551 [13:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 3325.00 Внесено: 9000.00 СДАЧА: 5675.00 НСП 1% : 29.43 НДС 12% : 353.15 Наличными: 3325.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 110 20.06.2024 13:52 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103925 ФПД: 117866207475349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135213&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103925&fm=117866207475349&tin=02508201610067®Number=0000000000092785&sum=332500 [13:52:12]StoreToDocumentArchive [13:52:12]shift 354 fd 103925 [13:52:12]save to /storage/0354/doc_00103925 [13:52:12]save last doc name /storage/0354/doc_00103925 to /storage/kkm_last_doc_name [13:52:12]save OK [13:52:12]Clear old archive folders... [13:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:12]tlvbuf is 00878C00 [13:52:12]SAM_PROTO_ClearQueue [13:52:12]wFMCommunicate request_size=4 [13:52:12]MH_SAM_APDU [13:52:12]CAPDU: 80 09 00 00 [13:52:12]Write to MH i2c: E2 08 00 3C 20 80 09 00 00 00 00 00 00 CE [13:52:12]Write i2c OK [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 [13:52:12]MH_I2C_Read... [13:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:12]Read from MH i2c: E2 03 00 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 03 00 3C 20 00 90 00 D0 [13:52:12]RAPDU: 90 00 [13:52:12]wFMCommunicate OK [13:52:12]SAM_PROTO_ClearQueue done [13:52:12]KKMCreateOFDPacket [13:52:12]OFDProtocolAddRootSTLVToBuf [13:52:12]FM_MakeSignedData [13:52:12]FM_MakeSignedData [13:52:12]SAM_PROTO_SignData [13:52:12]wFMCommunicate request_size=4 [13:52:12]MH_SAM_APDU [13:52:12]CAPDU: 80 0D 01 02 [13:52:12]Write to MH i2c: E2 08 00 3D 20 80 0D 01 02 00 00 00 00 D6 [13:52:12]Write i2c OK [13:52:12]MH_I2C_Read... [13:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:12]Read from MH i2c: E2 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 03 00 [13:52:12]MH_I2C_Read... [13:52:12]Read from MH i2c: E2 03 00 3D 20 00 90 00 D1 [13:52:12]RAPDU: 90 00 [13:52:12]wFMCommunicate OK [13:52:12]wFMCommunicate request_size=255 [13:52:12]MH_SAM_APDU [13:52:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 06 13 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 12 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 89 00 00 00 00 07 04 06 00 D4 12 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 0D 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 95 01 00 35 04 06 00 6B [13:52:12]Write to MH i2c: E2 02 01 3E 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 AF 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 06 13 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 12 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 89 00 00 00 00 07 04 06 00 D4 12 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 0D 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 95 01 00 35 04 06 00 6B 00 00 37 [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:13]Read from MH i2c: E2 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 03 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 03 00 3E 20 00 90 00 D2 [13:52:13]RAPDU: 90 00 [13:52:13]wFMCommunicate OK [13:52:13]wFMCommunicate request_size=10 [13:52:13]MH_SAM_APDU [13:52:13]CAPDU: 80 0D 02 02 05 32 DD 6D 76 95 [13:52:13]Write to MH i2c: E2 0D 00 3F 20 80 0D 02 02 05 00 32 DD 6D 76 95 00 00 6A [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:13]Read from MH i2c: E2 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 03 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 03 00 3F 20 00 90 00 D3 [13:52:13]RAPDU: 90 00 [13:52:13]wFMCommunicate OK [13:52:13]wFMCommunicate request_size=4 [13:52:13]MH_SAM_APDU [13:52:13]CAPDU: 80 0D 03 02 [13:52:13]Write to MH i2c: E2 08 00 40 20 80 0D 03 02 00 00 00 00 DB [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:13]Read from MH i2c: E2 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 0B 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 0B 00 40 20 00 B2 38 BA 4D 3A 5A 70 94 90 00 65 [13:52:13]RAPDU: B2 38 BA 4D 3A 5A 70 94 90 00 [13:52:13]wFMCommunicate OK [13:52:13]SAM_PROTO_SignData done [13:52:13]FM_MakeSignedData done [13:52:13]CreateOFDProtocolMessage [13:52:13]wFMCommunicate request_size=4 [13:52:13]MH_SAM_APDU [13:52:13]CAPDU: 80 11 00 00 [13:52:13]Write to MH i2c: E2 08 00 41 20 80 11 00 00 00 00 00 00 DB [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:13]Read from MH i2c: E2 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 17 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: E2 17 00 41 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [13:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:52:13]wFMCommunicate OK [13:52:13]CreateOFDProtocolMessage done [13:52:13]OFDSenderStorePacket 103925 [13:52:13]StoreOFDPacket docnum=103925 [13:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7A 40 07 01 C0 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 C8 AF 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 06 13 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 12 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 89 00 00 00 00 07 04 06 00 D4 12 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 0D 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 95 01 00 35 04 06 00 6B 32 DD 6D 76 95 B2 38 BA 4D 3A 5A 70 94 [13:52:13]CheckFolder [13:52:13]dirname=/storage/ofd_packets [13:52:13]CheckFolder done [13:52:13]ProducePacketName [13:52:13]name=ofd_packets/00103925 [13:52:13]NVStorageSaveData ofd_packets/00103925 [13:52:13]File name is /storage/ofd_packets/00103925 [13:52:13]Write 301 bytes [13:52:13]NVStorageSaveData done [13:52:13]OFDSenderStorePacket done [13:52:13]KKMCreateOFDPacket done [13:52:13]NVStorageSaveData kkm_last_timestamp [13:52:13]File name is /storage/kkm_last_timestamp [13:52:13]Write 4 bytes [13:52:13]NVStorageSaveData done [13:52:13]ExternCall_PrintAddStr [13:52:13]wPrintStart [13:52:13]Write to MH i2c: 01 00 00 42 20 62 [13:52:13]Write i2c OK [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: 01 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: 01 07 00 [13:52:13]MH_I2C_Read... [13:52:13]Read from MH i2c: 01 07 00 42 20 00 00 00 00 00 FF 0F 77 [13:52:13]RasterBufferAndPrint [13:52:13]line Счет N : (1)673274 [13:52:13]line ИНН: 02508201610067 [13:52:13]line Контрольно-Кассовый Чек [13:52:13]line ПРОДАЖА [13:52:13]line ТРК (МРК, ГНК) : 41 [13:52:13]line Товар: 2710124500 [13:52:13]line Аи-95-К-5 [13:52:13]line 45.000 * 73.90 [13:52:13]line = 3325.50 [13:52:13]line НДС 12% НСП 1% [13:52:13]line > о реализуемом товаре [13:52:13]line ОКРУГЛЕНИЕ: -0.50 [13:52:13]line ИТОГО: 3325.00 [13:52:13]line Внесено: 9000.00 [13:52:13]line СДАЧА: 5675.00 [13:52:13]line НСП 1% : 29.43 [13:52:13]line НДС 12% : 353.15 [13:52:13]line Наличными: 3325.00 [13:52:13]line Безнал.: 0.00 [13:52:13]line Место: АЗС № 120 "Партнер Нефть" [13:52:13]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:52:13]line СНО: Общий режим [13:52:13]line Чек 110 20.06.2024 13:52 [13:52:13]line Смена: 354 ФФД: 1.0 [13:52:13]line ЗНМ: 0300000164 [13:52:13]line РНМ: 0000000000092785 [13:52:13]line Версия ККМ: 001 [13:52:13]line ФМ: 0000000000875093 [13:52:13]line ФД: 103925 [13:52:13]line ФПД: 117866207475349 [13:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135213&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103925&fm=117866207475349&tin=02508201610067®Number=0000000000092785&sum=332500 [13:52:13]OFD Sender: Processing packet 103925 [packets to send 17, broken 16] [13:52:13]ProducePacketName [13:52:13]name=ofd_packets/00103925 [13:52:13]OFD Sender: To server: pG, [13:52:13]CommunicateWithHost lk.salyk.kg:30040 [13:52:13]ConnectInit lk.salyk.kg [13:52:13]written 0, free lines is 4095 [13:52:13]Connected sock=10 [13:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7A 40 07 01 C0 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 C8 AF 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 06 13 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 12 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 89 00 00 00 00 07 04 06 00 D4 12 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 0D 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 95 01 00 35 04 06 00 6B 32 DD 6D 76 95 B2 38 BA 4D 3A 5A 70 94 [13:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 43 F8 47 00 A2 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F5 95 01 00 F4 03 04 00 93 DA 73 66 B6 04 01 00 00 DE 0D 19 BB 45 A0 BC BF [13:52:14]CommunicateWithHost err = 0 [13:52:14]CheckOFDResponse [13:52:14]1017 (14) - 77093643461234 [13:52:14]1041 (16) - 0000000000875093 [13:52:14]1040 (4) - 103925 [13:52:14]1012 (4) - 20.06.2024 07:30 [13:52:14]1206 (1) - 0 [13:52:14]OFD Sender: Remove packet 103925 [13:52:14]ProducePacketName [13:52:14]name=ofd_packets/00103925 [13:52:14]NVStorageDeleteData [13:52:14]Write to MH i2c: 01 00 00 6D 20 8D [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: 01 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: 01 07 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: 01 07 00 6D 20 00 00 00 00 00 E7 0C 87 [13:52:14]RasterBufferAndPrint [13:52:14]line [13:52:14]line [13:52:14]line [13:52:14]line [13:52:14]line [13:52:14]written 0, free lines is 3310 [13:52:14]MH_Cut [13:52:14]Write to MH i2c: D1 01 00 74 20 01 66 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: D1 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: D1 01 00 [13:52:14]MH_I2C_Read... [13:52:14]Read from MH i2c: D1 01 00 74 20 00 65 [13:52:14]Write to MH i2c: 01 00 00 75 20 95 [13:52:14]Write i2c OK [13:52:14]MH_I2C_Read... [13:52:14]OFD Sender: No OFD packet to send [13:52:14]*** Cut start [13:52:14]*** Partial cut [13:52:14]*** CUTSNS_PIN = 1 [13:52:15]*** CUTSNS_PIN = 0 [13:52:15]*** Brake cut motor [13:52:15]Read from MH i2c: 01 [13:52:15]MH_I2C_Read... [13:52:15]*** Stop cut motor [13:52:15]*** Cut end [13:52:15]Read from MH i2c: 01 07 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: 01 07 00 75 20 00 00 00 00 00 FF 0F AA [13:52:15]process_action close_receipt done [13:52:15]requested_data is exist [13:52:15]produce_requested_data [13:52:15]requested_item fm.sn is exist - process it [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 11 00 00 [13:52:15]Write to MH i2c: E2 08 00 76 20 80 11 00 00 00 00 00 00 10 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 17 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 17 00 76 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [13:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:52:15]wFMCommunicate OK [13:52:15]requested_item fd.num is exist - process it [13:52:15]SAM_PROTO_GetFieldsCounters [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 13 00 00 [13:52:15]Write to MH i2c: E2 08 00 77 20 80 13 00 00 00 00 00 00 13 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 62 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 62 00 77 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F5 95 01 00 0E 04 04 00 62 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 72 [13:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F5 95 01 00 0E 04 04 00 62 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:52:15]wFMCommunicate OK [13:52:15]SAM_PROTO_GetFieldsCounters done [13:52:15]requested_item shift.num is exist - process it [13:52:15]requested_item shift.opened is exist - process it [13:52:15]req_shift_opened [13:52:15]FM_GetShiftState [13:52:15]SAM_PROTO_GetShiftState [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 13 01 00 [13:52:15]Write to MH i2c: E2 08 00 78 20 80 13 01 00 00 00 00 00 15 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 0E 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 0E 00 78 20 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 64 [13:52:15]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:52:15]wFMCommunicate OK [13:52:15]SAM_PROTO_GetShiftState done [13:52:15]FM_GetShiftState done [13:52:15]req_shift_opened done [13:52:15]requested_item shift.open_date is exist - process it [13:52:15]req_shift_open_date [13:52:15]req_shift_open_date done [13:52:15]produce_requested_data done [13:52:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103925,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:52:15]process_action_free close_receipt [13:52:15]json_value_free [13:52:15]json_value_free done [13:52:15]process_json_proto returns [13:52:15]Send response to host [13:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103925,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:52:15]free response buf [13:52:15]execute_script done [13:52:15]execute_script returns [13:52:15]free content buf [13:52:15]Sock 7.Close socket [13:52:15]Sock 7.Thread stoped [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:24]accept exits with 9 [13:52:24]New connection [13:52:24]New thread 3067063652 created [13:52:24]Thread 3067207012 joined [13:52:24]Waiting for new connection... [13:52:24] Sock 9.Parse request [13:52:24]Sock 9.Check first char [13:52:24]Sock 9.First char is OK [13:52:24]request: POST /json_proto HTTP/1.0 [13:52:24]Method: POST [13:52:24]URL: /json_proto [13:52:24]Method is POST - this is cgi request [13:52:24]url: /json_proto [13:52:24]query_string will be loaded in cgi processing [13:52:24]execute_cgi json_proto POST (null) [13:52:24]execute_cgi path=json_proto method=POST [13:52:24]POST find Content-Length [13:52:24]Host: 172.17.38.133:8080 [13:52:24]Content-Length: 677 [13:52:24]Content-Type: application/json [13:52:24] [13:52:24]POST finish read [13:52:24]Found Content-Length = 677 [13:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:24]execute_script... [13:52: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)673275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:24]POST & json_proto [13:52:24]process_json_proto [13:52:24]json parsed OK: [13:52:24]protocol is kg_v1.0 [13:52:24]action value=close_receipt [13:52:24]process_action close_receipt [13:52:24]cmd_close_receipt [13:52:24]MH_GetDate [13:52:24]Write to MH i2c: F0 00 00 79 20 88 [13:52:24]Write i2c OK [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: F0 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: F0 09 00 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: F0 09 00 79 20 00 1B 34 74 66 BD 8F 7C 64 E6 [13:52:24]GetLastDocTimeStamp 1718891533 [13:52:24]current date 1718891547 [13:52:24]FM_GetShiftState [13:52:24]SAM_PROTO_GetShiftState [13:52:24]wFMCommunicate request_size=4 [13:52:24]MH_SAM_APDU [13:52:24]CAPDU: 80 13 01 00 [13:52:24]Write to MH i2c: E2 08 00 7A 20 80 13 01 00 00 00 00 00 17 [13:52:24]Write i2c OK [13:52:24]MH_I2C_Read... [13:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:25]Read from MH i2c: E2 [13:52:25]MH_I2C_Read... [13:52:25]Read from MH i2c: E2 0E 00 [13:52:25]MH_I2C_Read... [13:52:25]Read from MH i2c: E2 0E 00 7A 20 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 66 [13:52:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:52:25]wFMCommunicate OK [13:52:25]SAM_PROTO_GetShiftState done [13:52:25]FM_GetShiftState done [13:52:25]opened in 1718843124 [13:52:25]opened+sec_in_day 1718929524 [13:52:25]quantity*price = 50065 [13:52:25]sum+1 = 50067 [13:52:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 111 20.06.2024 13:52 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103926 ФПД: 76807805204914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135227&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103926&fm=76807805204914&tin=02508201610067®Number=0000000000092785&sum=50000 [13:52:26]StoreToDocumentArchive [13:52:26]shift 354 fd 103926 [13:52:26]save to /storage/0354/doc_00103926 [13:52:26]save last doc name /storage/0354/doc_00103926 to /storage/kkm_last_doc_name [13:52:26]save OK [13:52:26]Clear old archive folders... [13:52:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:26]tlvbuf is 0087CCC0 [13:52:26]SAM_PROTO_ClearQueue [13:52:26]wFMCommunicate request_size=4 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 09 00 00 [13:52:26]Write to MH i2c: E2 08 00 87 20 80 09 00 00 00 00 00 00 19 [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 87 20 00 90 00 1B [13:52:26]RAPDU: 90 00 [13:52:26]wFMCommunicate OK [13:52:26]SAM_PROTO_ClearQueue done [13:52:26]KKMCreateOFDPacket [13:52:26]OFDProtocolAddRootSTLVToBuf [13:52:26]FM_MakeSignedData [13:52:26]FM_MakeSignedData [13:52:26]SAM_PROTO_SignData [13:52:26]wFMCommunicate request_size=4 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 0D 01 02 [13:52:26]Write to MH i2c: E2 08 00 88 20 80 0D 01 02 00 00 00 00 21 [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 88 20 00 90 00 1C [13:52:26]RAPDU: 90 00 [13:52:26]wFMCommunicate OK [13:52:26]wFMCommunicate request_size=255 [13:52:26]MH_SAM_APDU [13:52: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1B 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 95 01 00 35 04 06 00 45 [13:52:26]Write to MH i2c: E2 02 01 89 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1B 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 95 01 00 35 04 06 00 45 00 00 A7 [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 89 20 00 90 00 1D [13:52:26]RAPDU: 90 00 [13:52:26]wFMCommunicate OK [13:52:26]wFMCommunicate request_size=10 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 0D 02 02 05 DB 35 F1 F9 B2 [13:52:26]Write to MH i2c: E2 0D 00 8A 20 80 0D 02 02 05 00 DB 35 F1 F9 B2 00 00 DA [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 03 00 8A 20 00 90 00 1E [13:52:26]RAPDU: 90 00 [13:52:26]wFMCommunicate OK [13:52:26]wFMCommunicate request_size=4 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 0D 03 02 [13:52:26]Write to MH i2c: E2 08 00 8B 20 80 0D 03 02 00 00 00 00 26 [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 0B 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 0B 00 8B 20 00 E2 7A 2F 35 9D 43 E3 94 90 00 3E [13:52:26]RAPDU: E2 7A 2F 35 9D 43 E3 94 90 00 [13:52:26]wFMCommunicate OK [13:52:26]SAM_PROTO_SignData done [13:52:26]FM_MakeSignedData done [13:52:26]CreateOFDProtocolMessage [13:52:26]wFMCommunicate request_size=4 [13:52:26]MH_SAM_APDU [13:52:26]CAPDU: 80 11 00 00 [13:52:26]Write to MH i2c: E2 08 00 8C 20 80 11 00 00 00 00 00 00 26 [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:26]Read from MH i2c: E2 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 17 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: E2 17 00 8C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 79 [13:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:52:26]wFMCommunicate OK [13:52:26]CreateOFDProtocolMessage done [13:52:26]OFDSenderStorePacket 103926 [13:52:26]StoreOFDPacket docnum=103926 [13:52:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 20 6D 07 01 56 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1B 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 95 01 00 35 04 06 00 45 DB 35 F1 F9 B2 E2 7A 2F 35 9D 43 E3 94 [13:52:26]CheckFolder [13:52:26]dirname=/storage/ofd_packets [13:52:26]CheckFolder done [13:52:26]ProducePacketName [13:52:26]name=ofd_packets/00103926 [13:52:26]NVStorageSaveData ofd_packets/00103926 [13:52:26]File name is /storage/ofd_packets/00103926 [13:52:26]Write 301 bytes [13:52:26]NVStorageSaveData done [13:52:26]OFDSenderStorePacket done [13:52:26]KKMCreateOFDPacket done [13:52:26]NVStorageSaveData kkm_last_timestamp [13:52:26]File name is /storage/kkm_last_timestamp [13:52:26]Write 4 bytes [13:52:26]NVStorageSaveData done [13:52:26]ExternCall_PrintAddStr [13:52:26]wPrintStart [13:52:26]Write to MH i2c: 01 00 00 8D 20 AD [13:52:26]Write i2c OK [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: 01 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: 01 07 00 [13:52:26]MH_I2C_Read... [13:52:26]Read from MH i2c: 01 07 00 8D 20 00 00 00 00 00 FF 0F C2 [13:52:26]RasterBufferAndPrint [13:52:26]line Счет N : (1)673275 [13:52:26]line ИНН: 02508201610067 [13:52:26]line Контрольно-Кассовый Чек [13:52:26]line ПРОДАЖА [13:52:26]line ТРК (МРК, ГНК) : 32 [13:52:26]line Товар: 2710124130 [13:52:26]line Аи-92-К-5 [13:52:26]line 7.540 * 66.40 [13:52:26]line = 500.66 [13:52:26]line НДС 12% НСП 1% [13:52:26]line > о реализуемом товаре [13:52:26]line ОКРУГЛЕНИЕ: -0.66 [13:52:26]line ИТОГО: 500.00 [13:52:26]line Внесено: 500.00 [13:52:26]line СДАЧА: 0.00 [13:52:26]line НСП 1% : 4.43 [13:52:26]line НДС 12% : 53.17 [13:52:26]line Наличными: 500.00 [13:52:26]line Безнал.: 0.00 [13:52:26]line Место: АЗС № 120 "Партнер Нефть" [13:52:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:52:26]line СНО: Общий режим [13:52:26]line Чек 111 20.06.2024 13:52 [13:52:26]line Смена: 354 ФФД: 1.0 [13:52:26]line ЗНМ: 0300000164 [13:52:26]line РНМ: 0000000000092785 [13:52:26]line Версия ККМ: 001 [13:52:26]line ФМ: 0000000000875093 [13:52:26]line ФД: 103926 [13:52:26]line ФПД: 76807805204914 [13:52:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135227&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103926&fm=76807805204914&tin=02508201610067®Number=0000000000092785&sum=50000 [13:52:26]written 0, free lines is 4095 [13:52:26]OFD Sender: Processing packet 103926 [packets to send 17, broken 16] [13:52:26]ProducePacketName [13:52:26]name=ofd_packets/00103926 [13:52:26]OFD Sender: To server: pG, [13:52:26]CommunicateWithHost lk.salyk.kg:30040 [13:52:26]ConnectInit lk.salyk.kg [13:52:26]Connected sock=7 [13:52:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 20 6D 07 01 56 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 1B 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 95 01 00 35 04 06 00 45 DB 35 F1 F9 B2 E2 7A 2F 35 9D 43 E3 94 [13:52:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4F CD 47 00 60 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F6 95 01 00 F4 03 04 00 A0 DA 73 66 B6 04 01 00 00 87 FB 43 3F C4 00 F6 80 [13:52:27]CommunicateWithHost err = 0 [13:52:27]CheckOFDResponse [13:52:27]1017 (14) - 77093643461234 [13:52:27]1041 (16) - 0000000000875093 [13:52:27]1040 (4) - 103926 [13:52:27]1012 (4) - 20.06.2024 07:30 [13:52:27]1206 (1) - 0 [13:52:27]OFD Sender: Remove packet 103926 [13:52:27]ProducePacketName [13:52:27]name=ofd_packets/00103926 [13:52:27]NVStorageDeleteData [13:52:27]Write to MH i2c: 01 00 00 B8 20 D8 [13:52:27]Write i2c OK [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: 01 [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: 01 07 00 [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: 01 07 00 B8 20 00 00 00 00 00 E4 0C CF [13:52:27]RasterBufferAndPrint [13:52:27]line [13:52:27]line [13:52:27]line [13:52:27]line [13:52:27]line [13:52:27]written 0, free lines is 3306 [13:52:27]MH_Cut [13:52:27]Write to MH i2c: D1 01 00 BF 20 01 B1 [13:52:27]Write i2c OK [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: D1 [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: D1 01 00 [13:52:27]MH_I2C_Read... [13:52:27]Read from MH i2c: D1 01 00 BF 20 00 B0 [13:52:27]Write to MH i2c: 01 00 00 C0 20 E0 [13:52:27]Write i2c OK [13:52:27]MH_I2C_Read... [13:52:27]OFD Sender: No OFD packet to send [13:52:27]*** Cut start [13:52:27]*** Partial cut [13:52:27]*** CUTSNS_PIN = 1 [13:52:27]*** CUTSNS_PIN = 0 [13:52:28]*** Brake cut motor [13:52:28]Read from MH i2c: 01 [13:52:28]MH_I2C_Read... [13:52:28]*** Stop cut motor [13:52:28]*** Cut end [13:52:28]Read from MH i2c: 01 07 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: 01 07 00 C0 20 00 00 00 00 00 FF 0F F5 [13:52:28]process_action close_receipt done [13:52:28]requested_data is exist [13:52:28]produce_requested_data [13:52:28]requested_item fm.sn is exist - process it [13:52:28]wFMCommunicate request_size=4 [13:52:28]MH_SAM_APDU [13:52:28]CAPDU: 80 11 00 00 [13:52:28]Write to MH i2c: E2 08 00 C1 20 80 11 00 00 00 00 00 00 5B [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 17 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 17 00 C1 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AE [13:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:52:28]wFMCommunicate OK [13:52:28]requested_item fd.num is exist - process it [13:52:28]SAM_PROTO_GetFieldsCounters [13:52:28]wFMCommunicate request_size=4 [13:52:28]MH_SAM_APDU [13:52:28]CAPDU: 80 13 00 00 [13:52:28]Write to MH i2c: E2 08 00 C2 20 80 13 00 00 00 00 00 00 5E [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 62 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 62 00 C2 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F6 95 01 00 0E 04 04 00 62 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 C1 [13:52:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F6 95 01 00 0E 04 04 00 62 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:52:28]wFMCommunicate OK [13:52:28]SAM_PROTO_GetFieldsCounters done [13:52:28]requested_item shift.num is exist - process it [13:52:28]requested_item shift.opened is exist - process it [13:52:28]req_shift_opened [13:52:28]FM_GetShiftState [13:52:28]SAM_PROTO_GetShiftState [13:52:28]wFMCommunicate request_size=4 [13:52:28]MH_SAM_APDU [13:52:28]CAPDU: 80 13 01 00 [13:52:28]Write to MH i2c: E2 08 00 C3 20 80 13 01 00 00 00 00 00 60 [13:52:28]Write i2c OK [13:52:28]MH_I2C_Read... [13:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:28]Read from MH i2c: E2 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 0E 00 [13:52:28]MH_I2C_Read... [13:52:28]Read from MH i2c: E2 0E 00 C3 20 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AF [13:52:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:52:28]wFMCommunicate OK [13:52:28]SAM_PROTO_GetShiftState done [13:52:28]FM_GetShiftState done [13:52:28]req_shift_opened done [13:52:28]requested_item shift.open_date is exist - process it [13:52:28]req_shift_open_date [13:52:28]req_shift_open_date done [13:52:28]produce_requested_data done [13:52:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103926,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:52:28]process_action_free close_receipt [13:52:28]json_value_free [13:52:28]json_value_free done [13:52:28]process_json_proto returns [13:52:28]Send response to host [13:52:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103926,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:52:28]free response buf [13:52:28]execute_script done [13:52:28]execute_script returns [13:52:28]free content buf [13:52:28]Sock 9.Close socket [13:52:28]Sock 9.Thread stoped [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [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:16]accept exits with 10 [13:55:16]New connection [13:55:16]New thread 3067207012 created [13:55:16]Thread 3067063652 joined [13:55:16]Waiting for new connection... [13:55:16] Sock 10.Parse request [13:55:16]Sock 10.Check first char [13:55:16]Sock 10.First char is OK [13:55:16]request: POST /json_proto HTTP/1.0 [13:55:16]Method: POST [13:55:16]URL: /json_proto [13:55:16]Method is POST - this is cgi request [13:55:16]url: /json_proto [13:55:16]query_string will be loaded in cgi processing [13:55:16]execute_cgi json_proto POST (null) [13:55:16]execute_cgi path=json_proto method=POST [13:55:16]POST find Content-Length [13:55:16]Host: 172.17.38.133:8080 [13:55:16]Content-Length: 682 [13:55:16]Content-Type: application/json [13:55:16] [13:55:16]POST finish read [13:55:16]Found Content-Length = 682 [13:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.190, "sum" : 1340.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:16]execute_script... [13:55:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.190, "sum" : 1340.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:16]POST & json_proto [13:55:16]process_json_proto [13:55:16]json parsed OK: [13:55:16]protocol is kg_v1.0 [13:55:16]action value=close_receipt [13:55:16]process_action close_receipt [13:55:16]cmd_close_receipt [13:55:16]MH_GetDate [13:55:16]Write to MH i2c: F0 00 00 C4 20 D3 [13:55:16]Write i2c OK [13:55:16]MH_I2C_Read... [13:55:16]Read from MH i2c: F0 [13:55:16]MH_I2C_Read... [13:55:16]Read from MH i2c: F0 09 00 [13:55:16]MH_I2C_Read... [13:55:16]Read from MH i2c: F0 09 00 C4 20 00 C6 34 74 66 BD 8F 7C 64 DC [13:55:16]GetLastDocTimeStamp 1718891547 [13:55:16]current date 1718891718 [13:55:16]FM_GetShiftState [13:55:16]SAM_PROTO_GetShiftState [13:55:16]wFMCommunicate request_size=4 [13:55:16]MH_SAM_APDU [13:55:16]CAPDU: 80 13 01 00 [13:55:16]Write to MH i2c: E2 08 00 C5 20 80 13 01 00 00 00 00 00 62 [13:55:16]Write i2c OK [13:55:16]MH_I2C_Read... [13:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:16]Read from MH i2c: E2 [13:55:16]MH_I2C_Read... [13:55:16]Read from MH i2c: E2 0E 00 [13:55:16]MH_I2C_Read... [13:55:16]Read from MH i2c: E2 0E 00 C5 20 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B1 [13:55:16]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:55:16]wFMCommunicate OK [13:55:16]SAM_PROTO_GetShiftState done [13:55:16]FM_GetShiftState done [13:55:16]opened in 1718843124 [13:55:16]opened+sec_in_day 1718929524 [13:55:16]quantity*price = 134061 [13:55:16]sum+1 = 134063 [13:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1340.00 Внесено: 1340.00 СДАЧА: 0.00 НСП 1% : 11.86 НДС 12% : 142.37 Наличными: 1340.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 112 20.06.2024 13:55 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103927 ФПД: 195394102333634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135518&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103927&fm=195394102333634&tin=02508201610067®Number=0000000000092785&sum=134000 [13:55:17]StoreToDocumentArchive [13:55:17]shift 354 fd 103927 [13:55:17]save to /storage/0354/doc_00103927 [13:55:17]save last doc name /storage/0354/doc_00103927 to /storage/kkm_last_doc_name [13:55:17]save OK [13:55:17]Clear old archive folders... [13:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:17]tlvbuf is 0087C870 [13:55:17]SAM_PROTO_ClearQueue [13:55:17]wFMCommunicate request_size=4 [13:55:17]MH_SAM_APDU [13:55:17]CAPDU: 80 09 00 00 [13:55:17]Write to MH i2c: E2 08 00 D2 20 80 09 00 00 00 00 00 00 64 [13:55:17]Write i2c OK [13:55:17]MH_I2C_Read... [13:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:17]Read from MH i2c: E2 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 D2 20 00 90 00 66 [13:55:17]RAPDU: 90 00 [13:55:17]wFMCommunicate OK [13:55:17]SAM_PROTO_ClearQueue done [13:55:17]KKMCreateOFDPacket [13:55:17]OFDProtocolAddRootSTLVToBuf [13:55:17]FM_MakeSignedData [13:55:17]FM_MakeSignedData [13:55:17]SAM_PROTO_SignData [13:55:17]wFMCommunicate request_size=4 [13:55:17]MH_SAM_APDU [13:55:17]CAPDU: 80 0D 01 02 [13:55:17]Write to MH i2c: E2 08 00 D3 20 80 0D 01 02 00 00 00 00 6C [13:55:17]Write i2c OK [13:55:17]MH_I2C_Read... [13:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:17]Read from MH i2c: E2 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 D3 20 00 90 00 67 [13:55:17]RAPDU: 90 00 [13:55:17]wFMCommunicate OK [13:55:17]wFMCommunicate request_size=255 [13:55:17]MH_SAM_APDU [13:55:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AE 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 37 00 00 00 00 07 04 06 00 70 0B 02 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 C6 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 95 01 00 35 04 06 00 B1 [13:55:17]Write to MH i2c: E2 02 01 D4 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AE 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 37 00 00 00 00 07 04 06 00 70 0B 02 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 C6 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 95 01 00 35 04 06 00 B1 00 00 C5 [13:55:17]Write i2c OK [13:55:17]MH_I2C_Read... [13:55:17]OFD Sender: No OFD packet to send [13:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:17]Read from MH i2c: E2 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 D4 20 00 90 00 68 [13:55:17]RAPDU: 90 00 [13:55:17]wFMCommunicate OK [13:55:17]wFMCommunicate request_size=10 [13:55:17]MH_SAM_APDU [13:55:17]CAPDU: 80 0D 02 02 05 B5 BC 0F 90 C2 [13:55:17]Write to MH i2c: E2 0D 00 D5 20 80 0D 02 02 05 00 B5 BC 0F 90 C2 00 00 4B [13:55:17]Write i2c OK [13:55:17]MH_I2C_Read... [13:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:17]Read from MH i2c: E2 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 03 00 D5 20 00 90 00 69 [13:55:17]RAPDU: 90 00 [13:55:17]wFMCommunicate OK [13:55:17]wFMCommunicate request_size=4 [13:55:17]MH_SAM_APDU [13:55:17]CAPDU: 80 0D 03 02 [13:55:17]Write to MH i2c: E2 08 00 D6 20 80 0D 03 02 00 00 00 00 71 [13:55:17]Write i2c OK [13:55:17]MH_I2C_Read... [13:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:17]Read from MH i2c: E2 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 0B 00 [13:55:17]MH_I2C_Read... [13:55:17]Read from MH i2c: E2 0B 00 D6 20 00 B2 10 58 10 92 5A 09 1B 90 00 AC [13:55:17]RAPDU: B2 10 58 10 92 5A 09 1B 90 00 [13:55:17]wFMCommunicate OK [13:55:17]SAM_PROTO_SignData done [13:55:17]FM_MakeSignedData done [13:55:17]CreateOFDProtocolMessage [13:55:17]wFMCommunicate request_size=4 [13:55:17]MH_SAM_APDU [13:55:17]CAPDU: 80 11 00 00 [13:55:17]Write to MH i2c: E2 08 00 D7 20 80 11 00 00 00 00 00 00 71 [13:55:17]Write i2c OK [13:55:17]MH_I2C_Read... [13:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:18]Read from MH i2c: E2 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: E2 17 00 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: E2 17 00 D7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C4 [13:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:55:18]wFMCommunicate OK [13:55:18]CreateOFDProtocolMessage done [13:55:18]OFDSenderStorePacket 103927 [13:55:18]StoreOFDPacket docnum=103927 [13:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 93 55 07 01 60 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 DE 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AE 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 37 00 00 00 00 07 04 06 00 70 0B 02 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 C6 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 95 01 00 35 04 06 00 B1 B5 BC 0F 90 C2 B2 10 58 10 92 5A 09 1B [13:55:18]CheckFolder [13:55:18]dirname=/storage/ofd_packets [13:55:18]CheckFolder done [13:55:18]ProducePacketName [13:55:18]name=ofd_packets/00103927 [13:55:18]NVStorageSaveData ofd_packets/00103927 [13:55:18]File name is /storage/ofd_packets/00103927 [13:55:18]Write 301 bytes [13:55:18]NVStorageSaveData done [13:55:18]OFDSenderStorePacket done [13:55:18]KKMCreateOFDPacket done [13:55:18]NVStorageSaveData kkm_last_timestamp [13:55:18]File name is /storage/kkm_last_timestamp [13:55:18]Write 4 bytes [13:55:18]NVStorageSaveData done [13:55:18]ExternCall_PrintAddStr [13:55:18]wPrintStart [13:55:18]Write to MH i2c: 01 00 00 D8 20 F8 [13:55:18]Write i2c OK [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 07 00 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 07 00 D8 20 00 00 00 00 00 FF 0F 0D [13:55:18]RasterBufferAndPrint [13:55:18]line Счет N : (1)673276 [13:55:18]line ИНН: 02508201610067 [13:55:18]line Контрольно-Кассовый Чек [13:55:18]line ПРОДАЖА [13:55:18]line ТРК (МРК, ГНК) : 42 [13:55:18]line Товар: 2710124130 [13:55:18]line Аи-92-К-5 [13:55:18]line 20.190 * 66.40 [13:55:18]line = 1340.62 [13:55:18]line НДС 12% НСП 1% [13:55:18]line > о реализуемом товаре [13:55:18]line ОКРУГЛЕНИЕ: -0.62 [13:55:18]line ИТОГО: 1340.00 [13:55:18]line Внесено: 1340.00 [13:55:18]line СДАЧА: 0.00 [13:55:18]line НСП 1% : 11.86 [13:55:18]line НДС 12% : 142.37 [13:55:18]line Наличными: 1340.00 [13:55:18]line Безнал.: 0.00 [13:55:18]line Место: АЗС № 120 "Партнер Нефть" [13:55:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:55:18]line СНО: Общий режим [13:55:18]line Чек 112 20.06.2024 13:55 [13:55:18]line Смена: 354 ФФД: 1.0 [13:55:18]line ЗНМ: 0300000164 [13:55:18]line РНМ: 0000000000092785 [13:55:18]line Версия ККМ: 001 [13:55:18]line ФМ: 0000000000875093 [13:55:18]line ФД: 103927 [13:55:18]line ФПД: 195394102333634 [13:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135518&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103927&fm=195394102333634&tin=02508201610067®Number=0000000000092785&sum=134000 [13:55:18]written 0, free lines is 4095 [13:55:18]OFD Sender: Processing packet 103927 [packets to send 17, broken 16] [13:55:18]ProducePacketName [13:55:18]name=ofd_packets/00103927 [13:55:18]OFD Sender: To server: pG, [13:55:18]CommunicateWithHost lk.salyk.kg:30040 [13:55:18]ConnectInit lk.salyk.kg [13:55:18]Connected sock=9 [13:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 93 55 07 01 60 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 DE 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 AE 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 37 00 00 00 00 07 04 06 00 70 0B 02 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 C6 34 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 95 01 00 35 04 06 00 B1 B5 BC 0F 90 C2 B2 10 58 10 92 5A 09 1B [13:55:18]Write to MH i2c: 01 00 00 03 21 24 [13:55:18]Write i2c OK [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 07 00 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: 01 07 00 03 21 00 00 00 00 00 FC 0C 33 [13:55:18]RasterBufferAndPrint [13:55:18]line [13:55:18]line [13:55:18]line [13:55:18]line [13:55:18]line [13:55:18]written 0, free lines is 3333 [13:55:18]MH_Cut [13:55:18]Write to MH i2c: D1 01 00 0A 21 01 FD [13:55:18]Write i2c OK [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: D1 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: D1 01 00 [13:55:18]MH_I2C_Read... [13:55:18]Read from MH i2c: D1 01 00 0A 21 00 FC [13:55:18]Write to MH i2c: 01 00 00 0B 21 2C [13:55:18]Write i2c OK [13:55:18]MH_I2C_Read... [13:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 45 D5 47 00 EA BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F7 95 01 00 F4 03 04 00 4B DB 73 66 B6 04 01 00 00 8E 8D 81 51 A9 08 2A D1 [13:55:18]CommunicateWithHost err = 0 [13:55:18]CheckOFDResponse [13:55:18]1017 (14) - 77093643461234 [13:55:18]1041 (16) - 0000000000875093 [13:55:18]1040 (4) - 103927 [13:55:18]1012 (4) - 20.06.2024 07:33 [13:55:18]1206 (1) - 0 [13:55:18]OFD Sender: Remove packet 103927 [13:55:18]ProducePacketName [13:55:18]name=ofd_packets/00103927 [13:55:18]NVStorageDeleteData [13:55:19]*** Cut start [13:55:19]*** Partial cut [13:55:19]*** CUTSNS_PIN = 1 [13:55:19]OFD Sender: No OFD packet to send [13:55:19]*** CUTSNS_PIN = 0 [13:55:19]*** Brake cut motor [13:55:19]Read from MH i2c: 01 [13:55:19]MH_I2C_Read... [13:55:19]*** Stop cut motor [13:55:19]*** Cut end [13:55:19]Read from MH i2c: 01 07 00 [13:55:19]MH_I2C_Read... [13:55:19]Read from MH i2c: 01 07 00 0B 21 00 00 00 00 00 FF 0F 41 [13:55:19]process_action close_receipt done [13:55:19]requested_data is exist [13:55:19]produce_requested_data [13:55:19]requested_item fm.sn is exist - process it [13:55:19]wFMCommunicate request_size=4 [13:55:19]MH_SAM_APDU [13:55:19]CAPDU: 80 11 00 00 [13:55:19]Write to MH i2c: E2 08 00 0C 21 80 11 00 00 00 00 00 00 A7 [13:55:19]Write i2c OK [13:55:19]MH_I2C_Read... [13:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:19]Read from MH i2c: E2 [13:55:19]MH_I2C_Read... [13:55:19]Read from MH i2c: E2 17 00 [13:55:19]MH_I2C_Read... [13:55:19]Read from MH i2c: E2 17 00 0C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FA [13:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:55:19]wFMCommunicate OK [13:55:19]requested_item fd.num is exist - process it [13:55:19]SAM_PROTO_GetFieldsCounters [13:55:19]wFMCommunicate request_size=4 [13:55:19]MH_SAM_APDU [13:55:19]CAPDU: 80 13 00 00 [13:55:19]Write to MH i2c: E2 08 00 0D 21 80 13 00 00 00 00 00 00 AA [13:55:19]Write i2c OK [13:55:19]MH_I2C_Read... [13:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:20]Read from MH i2c: E2 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 62 00 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 62 00 0D 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F7 95 01 00 0E 04 04 00 62 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 11 [13:55:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F7 95 01 00 0E 04 04 00 62 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:55:20]wFMCommunicate OK [13:55:20]SAM_PROTO_GetFieldsCounters done [13:55:20]requested_item shift.num is exist - process it [13:55:20]requested_item shift.opened is exist - process it [13:55:20]req_shift_opened [13:55:20]FM_GetShiftState [13:55:20]SAM_PROTO_GetShiftState [13:55:20]wFMCommunicate request_size=4 [13:55:20]MH_SAM_APDU [13:55:20]CAPDU: 80 13 01 00 [13:55:20]Write to MH i2c: E2 08 00 0E 21 80 13 01 00 00 00 00 00 AC [13:55:20]Write i2c OK [13:55:20]MH_I2C_Read... [13:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:20]Read from MH i2c: E2 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 0E 00 [13:55:20]MH_I2C_Read... [13:55:20]Read from MH i2c: E2 0E 00 0E 21 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FB [13:55:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:55:20]wFMCommunicate OK [13:55:20]SAM_PROTO_GetShiftState done [13:55:20]FM_GetShiftState done [13:55:20]req_shift_opened done [13:55:20]requested_item shift.open_date is exist - process it [13:55:20]req_shift_open_date [13:55:20]req_shift_open_date done [13:55:20]produce_requested_data done [13:55:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103927,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:55:20]process_action_free close_receipt [13:55:20]json_value_free [13:55:20]json_value_free done [13:55:20]process_json_proto returns [13:55:20]Send response to host [13:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103927,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:55:20]free response buf [13:55:20]execute_script done [13:55:20]execute_script returns [13:55:20]free content buf [13:55:20]Sock 10.Close socket [13:55:20]Sock 10.Thread stoped [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:35]accept exits with 7 [13:57:35]New connection [13:57:35]New thread 3067063652 created [13:57:35]Thread 3067207012 joined [13:57:35]Waiting for new connection... [13:57:35] Sock 7.Parse request [13:57:35]Sock 7.Check first char [13:57:35]Sock 7.First char is OK [13:57:35]request: POST /json_proto HTTP/1.0 [13:57:35]Method: POST [13:57:35]URL: /json_proto [13:57:35]Method is POST - this is cgi request [13:57:35]url: /json_proto [13:57:35]query_string will be loaded in cgi processing [13:57:35]execute_cgi json_proto POST (null) [13:57:35]execute_cgi path=json_proto method=POST [13:57:35]POST find Content-Length [13:57:35]Host: 172.17.38.133:8080 [13:57:35]Content-Length: 819 [13:57:35]Content-Type: application/json [13:57:35] [13:57:35]POST finish read [13:57:35]Found Content-Length = 819 [13:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:35]execute_script... [13:57: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)673277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:35]POST & json_proto [13:57:35]process_json_proto [13:57:35]json parsed OK: [13:57:35]protocol is kg_v1.0 [13:57:35]action value=close_receipt [13:57:35]process_action close_receipt [13:57:35]cmd_close_receipt [13:57:35]MH_GetDate [13:57:35]Write to MH i2c: F0 00 00 0F 21 1F [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 09 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 09 00 0F 21 00 51 35 74 66 BD 8F 7C 64 B4 [13:57:35]GetLastDocTimeStamp 1718891718 [13:57:35]current date 1718891857 [13:57:35]FM_GetShiftState [13:57:35]SAM_PROTO_GetShiftState [13:57:35]wFMCommunicate request_size=4 [13:57:35]MH_SAM_APDU [13:57:35]CAPDU: 80 13 01 00 [13:57:35]Write to MH i2c: E2 08 00 10 21 80 13 01 00 00 00 00 00 AE [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:35]Read from MH i2c: E2 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 0E 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 0E 00 10 21 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FD [13:57:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:57:35]wFMCommunicate OK [13:57:35]SAM_PROTO_GetShiftState done [13:57:35]FM_GetShiftState done [13:57:35]opened in 1718843124 [13:57:35]opened+sec_in_day 1718929524 [13:57:35]quantity*price = 100064 [13:57:35]sum+1 = 100066 [13:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 113 20.06.2024 13:57 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103928 ФПД: 12413029544058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135737&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103928&fm=12413029544058&tin=02508201610067®Number=0000000000092785&sum=100065 [13:57:36]StoreToDocumentArchive [13:57:36]shift 354 fd 103928 [13:57:36]save to /storage/0354/doc_00103928 [13:57:36]save last doc name /storage/0354/doc_00103928 to /storage/kkm_last_doc_name [13:57:36]save OK [13:57:36]Clear old archive folders... [13:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:36]tlvbuf is B6F18B10 [13:57:36]SAM_PROTO_ClearQueue [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 09 00 00 [13:57:36]Write to MH i2c: E2 08 00 1D 21 80 09 00 00 00 00 00 00 B0 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 1D 21 00 90 00 B2 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]SAM_PROTO_ClearQueue done [13:57:36]KKMCreateOFDPacket [13:57:36]OFDProtocolAddRootSTLVToBuf [13:57:36]FM_MakeSignedData [13:57:36]FM_MakeSignedData [13:57:36]SAM_PROTO_SignData [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 0D 01 02 [13:57:36]Write to MH i2c: E2 08 00 1E 21 80 0D 01 02 00 00 00 00 B8 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 1E 21 00 90 00 B3 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]wFMCommunicate request_size=255 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 51 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 95 01 00 35 04 06 00 0B [13:57:36]Write to MH i2c: E2 02 01 1F 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 51 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 95 01 00 35 04 06 00 0B 00 00 11 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 1F 21 00 90 00 B4 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]wFMCommunicate request_size=10 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 0D 02 02 05 4A 22 37 70 7A [13:57:36]Write to MH i2c: E2 0D 00 20 21 80 0D 02 02 05 00 4A 22 37 70 7A 00 00 52 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 20 21 00 90 00 B5 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 0D 03 02 [13:57:36]Write to MH i2c: E2 08 00 21 21 80 0D 03 02 00 00 00 00 BD [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 0B 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 0B 00 21 21 00 5F 1F 4F A4 19 B1 86 D8 90 00 57 [13:57:36]RAPDU: 5F 1F 4F A4 19 B1 86 D8 90 00 [13:57:36]wFMCommunicate OK [13:57:36]SAM_PROTO_SignData done [13:57:36]FM_MakeSignedData done [13:57:36]CreateOFDProtocolMessage [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 11 00 00 [13:57:36]Write to MH i2c: E2 08 00 22 21 80 11 00 00 00 00 00 00 BD [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 17 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 17 00 22 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 10 [13:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:57:36]wFMCommunicate OK [13:57:36]CreateOFDProtocolMessage done [13:57:36]OFDSenderStorePacket 103928 [13:57:36]StoreOFDPacket docnum=103928 [13:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A8 D0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 51 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 95 01 00 35 04 06 00 0B 4A 22 37 70 7A 5F 1F 4F A4 19 B1 86 D8 [13:57:36]CheckFolder [13:57:36]dirname=/storage/ofd_packets [13:57:36]CheckFolder done [13:57:36]ProducePacketName [13:57:36]name=ofd_packets/00103928 [13:57:36]NVStorageSaveData ofd_packets/00103928 [13:57:36]File name is /storage/ofd_packets/00103928 [13:57:36]Write 301 bytes [13:57:36]NVStorageSaveData done [13:57:36]OFDSenderStorePacket done [13:57:36]KKMCreateOFDPacket done [13:57:36]NVStorageSaveData kkm_last_timestamp [13:57:36]File name is /storage/kkm_last_timestamp [13:57:36]Write 4 bytes [13:57:36]NVStorageSaveData done [13:57:36]ExternCall_PrintAddStr [13:57:36]wPrintStart [13:57:36]Write to MH i2c: 01 00 00 23 21 44 [13:57:36]OFD Sender: Processing packet 103928 [packets to send 17, broken 16] [13:57:36]ProducePacketName [13:57:36]name=ofd_packets/00103928 [13:57:36]OFD Sender: To server: pG, [13:57:36]CommunicateWithHost lk.salyk.kg:30040 [13:57:36]ConnectInit lk.salyk.kg [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: 01 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: 01 07 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: 01 07 00 23 21 00 00 00 00 00 FF 0F 59 [13:57:36]RasterBufferAndPrint [13:57:36]line Счет N : (1)673277 [13:57:36]line ИНН: 02508201610067 [13:57:36]line Контрольно-Кассовый Чек [13:57:36]line ПРОДАЖА [13:57:36]line ТРК (МРК, ГНК) : 32 [13:57:36]line Товар: 2710124130 [13:57:36]line Аи-92-К-5 [13:57:36]line 15.070 * 66.40 [13:57:36]line = 1000.65 [13:57:36]line НДС 12% НСП 1% [13:57:36]line > о реализуемом товаре [13:57:36]line ИТОГО: 1000.65 [13:57:36]line НСП 1% : 8.85 [13:57:36]line НДС 12% : 106.26 [13:57:36]line Наличными: 0.00 [13:57:36]line Безнал.: 1000.65 [13:57:36]line Место: АЗС № 120 "Партнер Нефть" [13:57:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:57:36]line СНО: Общий режим [13:57:36]line Чек 113 20.06.2024 13:57 [13:57:36]line Смена: 354 ФФД: 1.0 [13:57:36]line ЗНМ: 0300000164 [13:57:36]line РНМ: 0000000000092785 [13:57:36]line Версия ККМ: 001 [13:57:36]line Платежная система: Бакай Банк [13:57:36]line ФМ: 0000000000875093 [13:57:36]line ФД: 103928 [13:57:36]line ФПД: 12413029544058 [13:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135737&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103928&fm=12413029544058&tin=02508201610067®Number=0000000000092785&sum=100065 [13:57:36]written 0, free lines is 4095 [13:57:36]Connected sock=10 [13:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A8 D0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 51 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 95 01 00 35 04 06 00 0B 4A 22 37 70 7A 5F 1F 4F A4 19 B1 86 D8 [13:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E0 FE 47 00 4D B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F8 95 01 00 F4 03 04 00 D6 DB 73 66 B6 04 01 00 00 D4 B0 3B BB 13 89 B7 12 [13:57:37]CommunicateWithHost err = 0 [13:57:37]CheckOFDResponse [13:57:37]1017 (14) - 77093643461234 [13:57:37]1041 (16) - 0000000000875093 [13:57:37]1040 (4) - 103928 [13:57:37]1012 (4) - 20.06.2024 07:35 [13:57:37]1206 (1) - 0 [13:57:37]OFD Sender: Remove packet 103928 [13:57:37]ProducePacketName [13:57:37]name=ofd_packets/00103928 [13:57:37]NVStorageDeleteData [13:57:37]Write to MH i2c: 01 00 00 4D 21 6E [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 4D 21 00 00 00 00 00 F3 0C 74 [13:57:37]RasterBufferAndPrint [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]written 0, free lines is 3322 [13:57:37]MH_Cut [13:57:37]Write to MH i2c: D1 01 00 54 21 01 47 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: D1 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: D1 01 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: D1 01 00 54 21 00 46 [13:57:37]Write to MH i2c: 01 00 00 55 21 76 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]OFD Sender: No OFD packet to send [13:57:38]*** Cut start [13:57:38]*** Partial cut [13:57:38]*** CUTSNS_PIN = 1 [13:57:38]*** CUTSNS_PIN = 0 [13:57:38]*** Brake cut motor [13:57:38]Read from MH i2c: 01 [13:57:38]MH_I2C_Read... [13:57:38]*** Stop cut motor [13:57:38]*** Cut end [13:57:38]Read from MH i2c: 01 07 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: 01 07 00 55 21 00 00 00 00 00 FF 0F 8B [13:57:38]process_action close_receipt done [13:57:38]requested_data is exist [13:57:38]produce_requested_data [13:57:38]requested_item fm.sn is exist - process it [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 11 00 00 [13:57:38]Write to MH i2c: E2 08 00 56 21 80 11 00 00 00 00 00 00 F1 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 17 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 17 00 56 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [13:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:57:38]wFMCommunicate OK [13:57:38]requested_item fd.num is exist - process it [13:57:38]SAM_PROTO_GetFieldsCounters [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 13 00 00 [13:57:38]Write to MH i2c: E2 08 00 57 21 80 13 00 00 00 00 00 00 F4 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 62 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 62 00 57 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F8 95 01 00 0E 04 04 00 62 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 5F [13:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F8 95 01 00 0E 04 04 00 62 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:57:38]wFMCommunicate OK [13:57:38]SAM_PROTO_GetFieldsCounters done [13:57:38]requested_item shift.num is exist - process it [13:57:38]requested_item shift.opened is exist - process it [13:57:38]req_shift_opened [13:57:38]FM_GetShiftState [13:57:38]SAM_PROTO_GetShiftState [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 13 01 00 [13:57:38]Write to MH i2c: E2 08 00 58 21 80 13 01 00 00 00 00 00 F6 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 0E 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 0E 00 58 21 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 45 [13:57:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:57:38]wFMCommunicate OK [13:57:38]SAM_PROTO_GetShiftState done [13:57:38]FM_GetShiftState done [13:57:38]req_shift_opened done [13:57:38]requested_item shift.open_date is exist - process it [13:57:38]req_shift_open_date [13:57:38]req_shift_open_date done [13:57:38]produce_requested_data done [13:57:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103928,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:57:38]process_action_free close_receipt [13:57:38]json_value_free [13:57:38]json_value_free done [13:57:38]process_json_proto returns [13:57:38]Send response to host [13:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103928,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:57:38]free response buf [13:57:38]execute_script done [13:57:38]execute_script returns [13:57:38]free content buf [13:57:38]Sock 7.Close socket [13:57:38]Sock 7.Thread stoped [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]accept exits with 9 [13:58:07]New connection [13:58:07]New thread 3067207012 created [13:58:07]Thread 3067063652 joined [13:58:07]Waiting for new connection... [13:58:07] Sock 9.Parse request [13:58:07]Sock 9.Check first char [13:58:07]Sock 9.First char is OK [13:58:07]request: POST /json_proto HTTP/1.0 [13:58:07]Method: POST [13:58:07]URL: /json_proto [13:58:07]Method is POST - this is cgi request [13:58:07]url: /json_proto [13:58:07]query_string will be loaded in cgi processing [13:58:07]execute_cgi json_proto POST (null) [13:58:07]execute_cgi path=json_proto method=POST [13:58:07]POST find Content-Length [13:58:07]Host: 172.17.38.133:8080 [13:58:07]Content-Length: 817 [13:58:07]Content-Type: application/json [13:58:07] [13:58:07]POST finish read [13:58:07]Found Content-Length = 817 [13:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.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" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:07]execute_script... [13:58: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)673278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.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" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:07]POST & json_proto [13:58:07]process_json_proto [13:58:07]json parsed OK: [13:58:07]protocol is kg_v1.0 [13:58:07]action value=close_receipt [13:58:07]process_action close_receipt [13:58:07]cmd_close_receipt [13:58:07]MH_GetDate [13:58:07]Write to MH i2c: F0 00 00 59 21 69 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: F0 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: F0 09 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: F0 09 00 59 21 00 71 35 74 66 BD 8F 7C 64 1E [13:58:07]GetLastDocTimeStamp 1718891857 [13:58:07]current date 1718891889 [13:58:07]FM_GetShiftState [13:58:07]SAM_PROTO_GetShiftState [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 13 01 00 [13:58:07]Write to MH i2c: E2 08 00 5A 21 80 13 01 00 00 00 00 00 F8 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0E 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0E 00 5A 21 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 47 [13:58:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_GetShiftState done [13:58:07]FM_GetShiftState done [13:58:07]opened in 1718843124 [13:58:07]opened+sec_in_day 1718929524 [13:58:07]quantity*price = 66400 [13:58:07]sum+1 = 66401 [13:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 0.00 Безнал.: 664.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 114 20.06.2024 13:58 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103929 ФПД: 146016704152077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135809&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103929&fm=146016704152077&tin=02508201610067®Number=0000000000092785&sum=66400 [13:58:08]StoreToDocumentArchive [13:58:08]shift 354 fd 103929 [13:58:08]save to /storage/0354/doc_00103929 [13:58:08]save last doc name /storage/0354/doc_00103929 to /storage/kkm_last_doc_name [13:58:08]save OK [13:58:08]Clear old archive folders... [13:58:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:08]tlvbuf is 0086A240 [13:58:08]SAM_PROTO_ClearQueue [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 09 00 00 [13:58:08]Write to MH i2c: E2 08 00 67 21 80 09 00 00 00 00 00 00 FA [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 67 21 00 90 00 FC [13:58:08]RAPDU: 90 00 [13:58:08]wFMCommunicate OK [13:58:08]SAM_PROTO_ClearQueue done [13:58:08]KKMCreateOFDPacket [13:58:08]OFDProtocolAddRootSTLVToBuf [13:58:08]FM_MakeSignedData [13:58:08]FM_MakeSignedData [13:58:08]SAM_PROTO_SignData [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 0D 01 02 [13:58:08]Write to MH i2c: E2 08 00 68 21 80 0D 01 02 00 00 00 00 02 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 68 21 00 90 00 FD [13:58:08]RAPDU: 90 00 [13:58:08]wFMCommunicate OK [13:58:08]wFMCommunicate request_size=255 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 71 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 95 01 00 35 04 06 00 84 [13:58:08]Write to MH i2c: E2 02 01 69 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 71 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 95 01 00 35 04 06 00 84 00 00 DA [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 69 21 00 90 00 FE [13:58:08]RAPDU: 90 00 [13:58:08]wFMCommunicate OK [13:58:08]wFMCommunicate request_size=10 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 0D 02 02 05 CD 29 C8 42 0D [13:58:08]Write to MH i2c: E2 0D 00 6A 21 80 0D 02 02 05 00 CD 29 C8 42 0D 00 00 1C [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 6A 21 00 90 00 FF [13:58:08]RAPDU: 90 00 [13:58:08]wFMCommunicate OK [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 0D 03 02 [13:58:08]Write to MH i2c: E2 08 00 6B 21 80 0D 03 02 00 00 00 00 07 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 0B 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 0B 00 6B 21 00 F7 77 56 60 DC 3E AF F8 90 00 ED [13:58:08]RAPDU: F7 77 56 60 DC 3E AF F8 90 00 [13:58:08]wFMCommunicate OK [13:58:08]SAM_PROTO_SignData done [13:58:08]FM_MakeSignedData done [13:58:08]CreateOFDProtocolMessage [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 11 00 00 [13:58:08]Write to MH i2c: E2 08 00 6C 21 80 11 00 00 00 00 00 00 07 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 17 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 17 00 6C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [13:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:58:08]wFMCommunicate OK [13:58:08]CreateOFDProtocolMessage done [13:58:08]OFDSenderStorePacket 103929 [13:58:08]StoreOFDPacket docnum=103929 [13:58:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DF AD 07 01 75 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 71 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 95 01 00 35 04 06 00 84 CD 29 C8 42 0D F7 77 56 60 DC 3E AF F8 [13:58:08]CheckFolder [13:58:08]dirname=/storage/ofd_packets [13:58:08]CheckFolder done [13:58:08]ProducePacketName [13:58:08]name=ofd_packets/00103929 [13:58:08]NVStorageSaveData ofd_packets/00103929 [13:58:08]File name is /storage/ofd_packets/00103929 [13:58:08]Write 301 bytes [13:58:08]NVStorageSaveData done [13:58:08]OFDSenderStorePacket done [13:58:08]KKMCreateOFDPacket done [13:58:08]NVStorageSaveData kkm_last_timestamp [13:58:08]File name is /storage/kkm_last_timestamp [13:58:08]Write 4 bytes [13:58:08]NVStorageSaveData done [13:58:08]ExternCall_PrintAddStr [13:58:08]wPrintStart [13:58:08]Write to MH i2c: 01 00 00 6D 21 8E [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 6D 21 00 00 00 00 00 FF 0F A3 [13:58:08]RasterBufferAndPrint [13:58:08]line Счет N : (1)673278 [13:58:08]line ИНН: 02508201610067 [13:58:08]line Контрольно-Кассовый Чек [13:58:08]line ПРОДАЖА [13:58:08]line ТРК (МРК, ГНК) : 42 [13:58:08]line Товар: 2710124130 [13:58:08]line Аи-92-К-5 [13:58:08]line 10.000 * 66.40 [13:58:08]line = 664.00 [13:58:08]line НДС 12% НСП 1% [13:58:08]line > о реализуемом товаре [13:58:08]line ИТОГО: 664.00 [13:58:08]line НСП 1% : 5.88 [13:58:08]line НДС 12% : 70.51 [13:58:08]line Наличными: 0.00 [13:58:08]line Безнал.: 664.00 [13:58:08]line Место: АЗС № 120 "Партнер Нефть" [13:58:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:58:08]line СНО: Общий режим [13:58:08]line Чек 114 20.06.2024 13:58 [13:58:08]line Смена: 354 ФФД: 1.0 [13:58:08]line ЗНМ: 0300000164 [13:58:08]line РНМ: 0000000000092785 [13:58:08]line Версия ККМ: 001 [13:58:08]line Платежная система: Бакай Банк [13:58:08]line ФМ: 0000000000875093 [13:58:08]line ФД: 103929 [13:58:08]line ФПД: 146016704152077 [13:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135809&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103929&fm=146016704152077&tin=02508201610067®Number=0000000000092785&sum=66400 [13:58:09]OFD Sender: Processing packet 103929 [packets to send 17, broken 16] [13:58:09]ProducePacketName [13:58:09]name=ofd_packets/00103929 [13:58:09]OFD Sender: To server: pG, [13:58:09]CommunicateWithHost lk.salyk.kg:30040 [13:58:09]ConnectInit lk.salyk.kg [13:58:09]written 0, free lines is 4095 [13:58:09]Connected sock=10 [13:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DF AD 07 01 75 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 71 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 95 01 00 35 04 06 00 84 CD 29 C8 42 0D F7 77 56 60 DC 3E AF F8 [13:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DC 08 47 00 D3 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 F9 95 01 00 F4 03 04 00 F6 DB 73 66 B6 04 01 00 00 3C 8B AE F4 4B 69 5E 6B [13:58:09]CommunicateWithHost err = 0 [13:58:09]CheckOFDResponse [13:58:09]1017 (14) - 77093643461234 [13:58:09]1041 (16) - 0000000000875093 [13:58:09]1040 (4) - 103929 [13:58:09]1012 (4) - 20.06.2024 07:36 [13:58:09]1206 (1) - 0 [13:58:09]OFD Sender: Remove packet 103929 [13:58:09]ProducePacketName [13:58:09]name=ofd_packets/00103929 [13:58:09]NVStorageDeleteData [13:58:09]Write to MH i2c: 01 00 00 97 21 B8 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 97 21 00 00 00 00 00 F5 0C C0 [13:58:09]RasterBufferAndPrint [13:58:09]line [13:58:09]line [13:58:09]line [13:58:09]line [13:58:09]line [13:58:09]written 0, free lines is 3324 [13:58:09]MH_Cut [13:58:09]Write to MH i2c: D1 01 00 9E 21 01 91 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: D1 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: D1 01 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: D1 01 00 9E 21 00 90 [13:58:09]Write to MH i2c: 01 00 00 9F 21 C0 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:10]OFD Sender: No OFD packet to send [13:58:10]*** Cut start [13:58:10]*** Partial cut [13:58:10]*** CUTSNS_PIN = 1 [13:58:10]*** CUTSNS_PIN = 0 [13:58:10]*** Brake cut motor [13:58:11]Read from MH i2c: 01 [13:58:11]MH_I2C_Read... [13:58:11]*** Stop cut motor [13:58:11]*** Cut end [13:58:11]Read from MH i2c: 01 07 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: 01 07 00 9F 21 00 00 00 00 00 FF 0F D5 [13:58:11]process_action close_receipt done [13:58:11]requested_data is exist [13:58:11]produce_requested_data [13:58:11]requested_item fm.sn is exist - process it [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 11 00 00 [13:58:11]Write to MH i2c: E2 08 00 A0 21 80 11 00 00 00 00 00 00 3B [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 17 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 17 00 A0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8E [13:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:58:11]wFMCommunicate OK [13:58:11]requested_item fd.num is exist - process it [13:58:11]SAM_PROTO_GetFieldsCounters [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 13 00 00 [13:58:11]Write to MH i2c: E2 08 00 A1 21 80 13 00 00 00 00 00 00 3E [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 62 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 62 00 A1 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F9 95 01 00 0E 04 04 00 62 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 AD [13: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 F9 95 01 00 0E 04 04 00 62 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:58:11]wFMCommunicate OK [13:58:11]SAM_PROTO_GetFieldsCounters done [13:58:11]requested_item shift.num is exist - process it [13:58:11]requested_item shift.opened is exist - process it [13:58:11]req_shift_opened [13:58:11]FM_GetShiftState [13:58:11]SAM_PROTO_GetShiftState [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 13 01 00 [13:58:11]Write to MH i2c: E2 08 00 A2 21 80 13 01 00 00 00 00 00 40 [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 0E 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 0E 00 A2 21 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8F [13:58:11]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:58:11]wFMCommunicate OK [13:58:11]SAM_PROTO_GetShiftState done [13:58:11]FM_GetShiftState done [13:58:11]req_shift_opened done [13:58:11]requested_item shift.open_date is exist - process it [13:58:11]req_shift_open_date [13:58:11]req_shift_open_date done [13:58:11]produce_requested_data done [13:58:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103929,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:58:11]process_action_free close_receipt [13:58:11]json_value_free [13:58:11]json_value_free done [13:58:11]process_json_proto returns [13:58:11]Send response to host [13:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103929,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:58:11]free response buf [13:58:11]execute_script done [13:58:11]execute_script returns [13:58:11]free content buf [13:58:11]Sock 9.Close socket [13:58:11]Sock 9.Thread stoped [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:43]accept exits with 7 [13:59:43]New connection [13:59:43]New thread 3067063652 created [13:59:43]Thread 3067207012 joined [13:59:43]Waiting for new connection... [13:59:43] Sock 7.Parse request [13:59:43]Sock 7.Check first char [13:59:43]Sock 7.First char is OK [13:59:43]request: POST /json_proto HTTP/1.0 [13:59:43]Method: POST [13:59:43]URL: /json_proto [13:59:43]Method is POST - this is cgi request [13:59:43]url: /json_proto [13:59:43]query_string will be loaded in cgi processing [13:59:43]execute_cgi json_proto POST (null) [13:59:43]execute_cgi path=json_proto method=POST [13:59:43]POST find Content-Length [13:59:43]Host: 172.17.38.133:8080 [13:59:43]Content-Length: 678 [13:59:43]Content-Type: application/json [13:59:43] [13:59:43]POST finish read [13:59:43]Found Content-Length = 678 [13:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:59:43]execute_script... [13:59: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)673279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:59:43]POST & json_proto [13:59:43]process_json_proto [13:59:43]json parsed OK: [13:59:43]protocol is kg_v1.0 [13:59:43]action value=close_receipt [13:59:43]process_action close_receipt [13:59:43]cmd_close_receipt [13:59:43]MH_GetDate [13:59:43]Write to MH i2c: F0 00 00 A3 21 B3 [13:59:43]Write i2c OK [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: F0 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: F0 09 00 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: F0 09 00 A3 21 00 D1 35 74 66 BD 8F 7C 64 C8 [13:59:43]GetLastDocTimeStamp 1718891889 [13:59:43]current date 1718891985 [13:59:43]FM_GetShiftState [13:59:43]SAM_PROTO_GetShiftState [13:59:43]wFMCommunicate request_size=4 [13:59:43]MH_SAM_APDU [13:59:43]CAPDU: 80 13 01 00 [13:59:43]Write to MH i2c: E2 08 00 A4 21 80 13 01 00 00 00 00 00 42 [13:59:43]Write i2c OK [13:59:43]MH_I2C_Read... [13:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:43]Read from MH i2c: E2 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: E2 0E 00 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: E2 0E 00 A4 21 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 91 [13:59:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:59:43]wFMCommunicate OK [13:59:43]SAM_PROTO_GetShiftState done [13:59:43]FM_GetShiftState done [13:59:43]opened in 1718843124 [13:59:43]opened+sec_in_day 1718929524 [13:59:43]quantity*price = 70052 [13:59:43]sum+1 = 70053 [13:59:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 115 20.06.2024 13:59 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103930 ФПД: 205610102021750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135945&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103930&fm=205610102021750&tin=02508201610067®Number=0000000000092785&sum=70000 [13:59:44]StoreToDocumentArchive [13:59:44]shift 354 fd 103930 [13:59:44]save to /storage/0354/doc_00103930 [13:59:44]save last doc name /storage/0354/doc_00103930 to /storage/kkm_last_doc_name [13:59:44]save OK [13:59:44]Clear old archive folders... [13:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:44]tlvbuf is 0086A590 [13:59:44]SAM_PROTO_ClearQueue [13:59:44]wFMCommunicate request_size=4 [13:59:44]MH_SAM_APDU [13:59:44]CAPDU: 80 09 00 00 [13:59:44]Write to MH i2c: E2 08 00 B1 21 80 09 00 00 00 00 00 00 44 [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:44]Read from MH i2c: E2 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 B1 21 00 90 00 46 [13:59:44]RAPDU: 90 00 [13:59:44]wFMCommunicate OK [13:59:44]SAM_PROTO_ClearQueue done [13:59:44]KKMCreateOFDPacket [13:59:44]OFDProtocolAddRootSTLVToBuf [13:59:44]FM_MakeSignedData [13:59:44]FM_MakeSignedData [13:59:44]SAM_PROTO_SignData [13:59:44]wFMCommunicate request_size=4 [13:59:44]MH_SAM_APDU [13:59:44]CAPDU: 80 0D 01 02 [13:59:44]Write to MH i2c: E2 08 00 B2 21 80 0D 01 02 00 00 00 00 4C [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:44]Read from MH i2c: E2 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 B2 21 00 90 00 47 [13:59:44]RAPDU: 90 00 [13:59:44]wFMCommunicate OK [13:59:44]wFMCommunicate request_size=255 [13:59:44]MH_SAM_APDU [13:59:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 73 00 00 00 F4 03 04 00 D1 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 95 01 00 35 04 06 00 BB [13:59:44]Write to MH i2c: E2 02 01 B3 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 73 00 00 00 F4 03 04 00 D1 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 95 01 00 35 04 06 00 BB 00 00 19 [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:45]Read from MH i2c: E2 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 03 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 03 00 B3 21 00 90 00 48 [13:59:45]RAPDU: 90 00 [13:59:45]wFMCommunicate OK [13:59:45]wFMCommunicate request_size=10 [13:59:45]MH_SAM_APDU [13:59:45]CAPDU: 80 0D 02 02 05 00 55 17 DE 76 [13:59:45]Write to MH i2c: E2 0D 00 B4 21 80 0D 02 02 05 00 00 55 17 DE 76 00 00 19 [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:45]Read from MH i2c: E2 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 03 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 03 00 B4 21 00 90 00 49 [13:59:45]RAPDU: 90 00 [13:59:45]wFMCommunicate OK [13:59:45]wFMCommunicate request_size=4 [13:59:45]MH_SAM_APDU [13:59:45]CAPDU: 80 0D 03 02 [13:59:45]Write to MH i2c: E2 08 00 B5 21 80 0D 03 02 00 00 00 00 51 [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]OFD Sender: No OFD packet to send [13:59:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:45]Read from MH i2c: E2 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 0B 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 0B 00 B5 21 00 0B AF 1E C8 54 60 B9 9C 90 00 FB [13:59:45]RAPDU: 0B AF 1E C8 54 60 B9 9C 90 00 [13:59:45]wFMCommunicate OK [13:59:45]SAM_PROTO_SignData done [13:59:45]FM_MakeSignedData done [13:59:45]CreateOFDProtocolMessage [13:59:45]wFMCommunicate request_size=4 [13:59:45]MH_SAM_APDU [13:59:45]CAPDU: 80 11 00 00 [13:59:45]Write to MH i2c: E2 08 00 B6 21 80 11 00 00 00 00 00 00 51 [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:45]Read from MH i2c: E2 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 17 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 17 00 B6 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A4 [13:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:59:45]wFMCommunicate OK [13:59:45]CreateOFDProtocolMessage done [13:59:45]OFDSenderStorePacket 103930 [13:59:45]StoreOFDPacket docnum=103930 [13:59:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 09 E4 07 01 F8 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 73 00 00 00 F4 03 04 00 D1 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 95 01 00 35 04 06 00 BB 00 55 17 DE 76 0B AF 1E C8 54 60 B9 9C [13:59:45]CheckFolder [13:59:45]dirname=/storage/ofd_packets [13:59:45]CheckFolder done [13:59:45]ProducePacketName [13:59:45]name=ofd_packets/00103930 [13:59:45]NVStorageSaveData ofd_packets/00103930 [13:59:45]File name is /storage/ofd_packets/00103930 [13:59:45]Write 301 bytes [13:59:45]NVStorageSaveData done [13:59:45]OFDSenderStorePacket done [13:59:45]KKMCreateOFDPacket done [13:59:45]NVStorageSaveData kkm_last_timestamp [13:59:45]File name is /storage/kkm_last_timestamp [13:59:45]Write 4 bytes [13:59:45]NVStorageSaveData done [13:59:45]ExternCall_PrintAddStr [13:59:45]wPrintStart [13:59:45]Write to MH i2c: 01 00 00 B7 21 D8 [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: 01 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: 01 07 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: 01 07 00 B7 21 00 00 00 00 00 FF 0F ED [13:59:45]RasterBufferAndPrint [13:59:45]line Счет N : (1)673279 [13:59:45]line ИНН: 02508201610067 [13:59:45]line Контрольно-Кассовый Чек [13:59:45]line ПРОДАЖА [13:59:45]line ТРК (МРК, ГНК) : 32 [13:59:45]line Товар: 2710124130 [13:59:45]line Аи-92-К-5 [13:59:45]line 10.550 * 66.40 [13:59:45]line = 700.52 [13:59:45]line НДС 12% НСП 1% [13:59:45]line > о реализуемом товаре [13:59:45]line ОКРУГЛЕНИЕ: -0.52 [13:59:45]line ИТОГО: 700.00 [13:59:45]line Внесено: 700.00 [13:59:45]line СДАЧА: 0.00 [13:59:45]line НСП 1% : 6.20 [13:59:45]line НДС 12% : 74.39 [13:59:45]line Наличными: 700.00 [13:59:45]line Безнал.: 0.00 [13:59:45]line Место: АЗС № 120 "Партнер Нефть" [13:59:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [13:59:45]line СНО: Общий режим [13:59:45]line Чек 115 20.06.2024 13:59 [13:59:45]line Смена: 354 ФФД: 1.0 [13:59:45]line ЗНМ: 0300000164 [13:59:45]line РНМ: 0000000000092785 [13:59:45]line Версия ККМ: 001 [13:59:45]line ФМ: 0000000000875093 [13:59:45]line ФД: 103930 [13:59:45]line ФПД: 205610102021750 [13:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T135945&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103930&fm=205610102021750&tin=02508201610067®Number=0000000000092785&sum=70000 [13:59:45]OFD Sender: Processing packet 103930 [packets to send 17, broken 16] [13:59:45]ProducePacketName [13:59:45]name=ofd_packets/00103930 [13:59:45]OFD Sender: To server: pG, [13:59:45]CommunicateWithHost lk.salyk.kg:30040 [13:59:45]ConnectInit lk.salyk.kg [13:59:45]written 0, free lines is 4095 [13:59:45]Connected sock=10 [13:59:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 09 E4 07 01 F8 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 73 00 00 00 F4 03 04 00 D1 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FA 95 01 00 35 04 06 00 BB 00 55 17 DE 76 0B AF 1E C8 54 60 B9 9C [13:59:46]Write to MH i2c: 01 00 00 E2 21 03 [13:59:46]Write i2c OK [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: 01 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: 01 07 00 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: 01 07 00 E2 21 00 00 00 00 00 E1 0C F7 [13:59:46]RasterBufferAndPrint [13:59:46]line [13:59:46]line [13:59:46]line [13:59:46]line [13:59:46]line [13:59:46]written 0, free lines is 3306 [13:59:46]MH_Cut [13:59:46]Write to MH i2c: D1 01 00 E9 21 01 DC [13:59:46]Write i2c OK [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: D1 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: D1 01 00 [13:59:46]MH_I2C_Read... [13:59:46]Read from MH i2c: D1 01 00 E9 21 00 DB [13:59:46]Write to MH i2c: 01 00 00 EA 21 0B [13:59:46]Write i2c OK [13:59:46]MH_I2C_Read... [13:59:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 14 84 47 00 8D 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 35 30 39 33 10 04 04 00 FA 95 01 00 F4 03 04 00 57 DC 73 66 B6 04 01 00 00 1C D3 08 0D 58 89 1E E1 [13:59:46]CommunicateWithHost err = 0 [13:59:46]CheckOFDResponse [13:59:46]1017 (14) - 77093643461234 [13:59:46]1041 (16) - 0000000000875093 [13:59:46]1040 (4) - 103930 [13:59:46]1012 (4) - 20.06.2024 07:37 [13:59:46]1206 (1) - 0 [13:59:46]OFD Sender: Remove packet 103930 [13:59:46]ProducePacketName [13:59:46]name=ofd_packets/00103930 [13:59:46]NVStorageDeleteData [13:59:46]OFD Sender: No OFD packet to send [13:59:46]*** Cut start [13:59:46]*** Partial cut [13:59:46]*** CUTSNS_PIN = 1 [13:59:46]*** CUTSNS_PIN = 0 [13:59:47]*** Brake cut motor [13:59:47]Read from MH i2c: 01 [13:59:47]MH_I2C_Read... [13:59:47]*** Stop cut motor [13:59:47]*** Cut end [13:59:47]Read from MH i2c: 01 07 00 [13:59:47]MH_I2C_Read... [13:59:47]Read from MH i2c: 01 07 00 EA 21 00 00 00 00 00 FF 0F 20 [13:59:47]process_action close_receipt done [13:59:47]requested_data is exist [13:59:47]produce_requested_data [13:59:47]requested_item fm.sn is exist - process it [13:59:47]wFMCommunicate request_size=4 [13:59:47]MH_SAM_APDU [13:59:47]CAPDU: 80 11 00 00 [13:59:47]Write to MH i2c: E2 08 00 EB 21 80 11 00 00 00 00 00 00 86 [13:59:47]Write i2c OK [13:59:47]MH_I2C_Read... [13:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:47]Read from MH i2c: E2 [13:59:47]MH_I2C_Read... [13:59:47]Read from MH i2c: E2 17 00 [13:59:47]MH_I2C_Read... [13:59:47]Read from MH i2c: E2 17 00 EB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D9 [13:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [13:59:47]wFMCommunicate OK [13:59:47]requested_item fd.num is exist - process it [13:59:47]SAM_PROTO_GetFieldsCounters [13:59:47]wFMCommunicate request_size=4 [13:59:47]MH_SAM_APDU [13:59:47]CAPDU: 80 13 00 00 [13:59:47]Write to MH i2c: E2 08 00 EC 21 80 13 00 00 00 00 00 00 89 [13:59:47]Write i2c OK [13:59:47]MH_I2C_Read... [13:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:47]Read from MH i2c: E2 [13:59:47]MH_I2C_Read... [13:59:47]Read from MH i2c: E2 62 00 [13:59:47]MH_I2C_Read... [13:59:47]Read from MH i2c: E2 62 00 EC 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FA 95 01 00 0E 04 04 00 62 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 FC [13:59:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FA 95 01 00 0E 04 04 00 62 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:59:47]wFMCommunicate OK [13:59:47]SAM_PROTO_GetFieldsCounters done [13:59:47]requested_item shift.num is exist - process it [13:59:47]requested_item shift.opened is exist - process it [13:59:47]req_shift_opened [13:59:47]FM_GetShiftState [13:59:47]SAM_PROTO_GetShiftState [13:59:47]wFMCommunicate request_size=4 [13:59:47]MH_SAM_APDU [13:59:47]CAPDU: 80 13 01 00 [13:59:47]Write to MH i2c: E2 08 00 ED 21 80 13 01 00 00 00 00 00 8B [13:59:47]Write i2c OK [13:59:47]MH_I2C_Read... [13:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:47]Read from MH i2c: E2 [13:59:47]MH_I2C_Read... [13:59:47]Read from MH i2c: E2 0E 00 [13:59:47]MH_I2C_Read... [13:59:47]Read from MH i2c: E2 0E 00 ED 21 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DA [13:59:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [13:59:47]wFMCommunicate OK [13:59:47]SAM_PROTO_GetShiftState done [13:59:47]FM_GetShiftState done [13:59:47]req_shift_opened done [13:59:47]requested_item shift.open_date is exist - process it [13:59:47]req_shift_open_date [13:59:47]req_shift_open_date done [13:59:47]produce_requested_data done [13:59:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103930,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [13:59:47]process_action_free close_receipt [13:59:47]json_value_free [13:59:47]json_value_free done [13:59:47]process_json_proto returns [13:59:47]Send response to host [13:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103930,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [13:59:47]free response buf [13:59:47]execute_script done [13:59:47]execute_script returns [13:59:47]free content buf [13:59:47]Sock 7.Close socket [13:59:47]Sock 7.Thread stoped [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:27]accept exits with 9 [14:00:27]New connection [14:00:27]New thread 3067207012 created [14:00:27]Thread 3067063652 joined [14:00:27]Waiting for new connection... [14:00:27] Sock 9.Parse request [14:00:27]Sock 9.Check first char [14:00:27]Sock 9.First char is OK [14:00:27]request: POST /json_proto HTTP/1.0 [14:00:27]Method: POST [14:00:27]URL: /json_proto [14:00:27]Method is POST - this is cgi request [14:00:27]url: /json_proto [14:00:27]query_string will be loaded in cgi processing [14:00:27]execute_cgi json_proto POST (null) [14:00:27]execute_cgi path=json_proto method=POST [14:00:27]POST find Content-Length [14:00:27]Host: 172.17.38.133:8080 [14:00:27]Content-Length: 639 [14:00:27]Content-Type: application/json [14:00:27] [14:00:27]POST finish read [14:00:27]Found Content-Length = 639 [14:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:27]execute_script... [14:00: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)673280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:27]POST & json_proto [14:00:27]process_json_proto [14:00:27]json parsed OK: [14:00:27]protocol is kg_v1.0 [14:00:27]action value=close_receipt [14:00:27]process_action close_receipt [14:00:27]cmd_close_receipt [14:00:27]MH_GetDate [14:00:27]Write to MH i2c: F0 00 00 EE 21 FE [14:00:27]Write i2c OK [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: F0 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: F0 09 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: F0 09 00 EE 21 00 FD 35 74 66 BD 8F 7C 64 3F [14:00:27]GetLastDocTimeStamp 1718891985 [14:00:27]current date 1718892029 [14:00:27]FM_GetShiftState [14:00:27]SAM_PROTO_GetShiftState [14:00:27]wFMCommunicate request_size=4 [14:00:27]MH_SAM_APDU [14:00:27]CAPDU: 80 13 01 00 [14:00:27]Write to MH i2c: E2 08 00 EF 21 80 13 01 00 00 00 00 00 8D [14:00:27]Write i2c OK [14:00:27]MH_I2C_Read... [14:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:27]Read from MH i2c: E2 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 0E 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 0E 00 EF 21 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DC [14:00:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:00:27]wFMCommunicate OK [14:00:27]SAM_PROTO_GetShiftState done [14:00:27]FM_GetShiftState done [14:00:27]opened in 1718843124 [14:00:27]opened+sec_in_day 1718929524 [14:00:27]quantity*price = 33200 [14:00:27]sum+1 = 33201 [14:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 116 20.06.2024 14:00 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103931 ФПД: 32471808116355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140029&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103931&fm=32471808116355&tin=02508201610067®Number=0000000000092785&sum=33200 [14:00:28]StoreToDocumentArchive [14:00:28]shift 354 fd 103931 [14:00:28]save to /storage/0354/doc_00103931 [14:00:28]save last doc name /storage/0354/doc_00103931 to /storage/kkm_last_doc_name [14:00:28]save OK [14:00:28]Clear old archive folders... [14:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:28]tlvbuf is 00847490 [14:00:28]SAM_PROTO_ClearQueue [14:00:28]wFMCommunicate request_size=4 [14:00:28]MH_SAM_APDU [14:00:28]CAPDU: 80 09 00 00 [14:00:28]Write to MH i2c: E2 08 00 FC 21 80 09 00 00 00 00 00 00 8F [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 [14:00:28]MH_I2C_Read... [14:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:28]Read from MH i2c: E2 03 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 03 00 FC 21 00 90 00 91 [14:00:28]RAPDU: 90 00 [14:00:28]wFMCommunicate OK [14:00:28]SAM_PROTO_ClearQueue done [14:00:28]KKMCreateOFDPacket [14:00:28]OFDProtocolAddRootSTLVToBuf [14:00:28]FM_MakeSignedData [14:00:28]FM_MakeSignedData [14:00:28]SAM_PROTO_SignData [14:00:28]wFMCommunicate request_size=4 [14:00:28]MH_SAM_APDU [14:00:28]CAPDU: 80 0D 01 02 [14:00:28]Write to MH i2c: E2 08 00 FD 21 80 0D 01 02 00 00 00 00 97 [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 [14:00:28]MH_I2C_Read... [14:00:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:28]Read from MH i2c: E2 03 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 03 00 FD 21 00 90 00 92 [14:00:28]RAPDU: 90 00 [14:00:28]wFMCommunicate OK [14:00:28]wFMCommunicate request_size=255 [14:00:28]MH_SAM_APDU [14:00:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FD 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 95 01 00 35 04 06 00 1D [14:00:28]Write to MH i2c: E2 02 01 FE 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FD 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 95 01 00 35 04 06 00 1D 00 00 69 [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:28]Read from MH i2c: E2 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 03 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 03 00 FE 21 00 90 00 93 [14:00:28]RAPDU: 90 00 [14:00:28]wFMCommunicate OK [14:00:28]wFMCommunicate request_size=10 [14:00:28]MH_SAM_APDU [14:00:28]CAPDU: 80 0D 02 02 05 88 6E 96 86 83 [14:00:28]Write to MH i2c: E2 0D 00 FF 21 80 0D 02 02 05 00 88 6E 96 86 83 00 00 39 [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:28]Read from MH i2c: E2 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 03 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 03 00 FF 21 00 90 00 94 [14:00:28]RAPDU: 90 00 [14:00:28]wFMCommunicate OK [14:00:28]wFMCommunicate request_size=4 [14:00:28]MH_SAM_APDU [14:00:28]CAPDU: 80 0D 03 02 [14:00:28]Write to MH i2c: E2 08 00 00 22 80 0D 03 02 00 00 00 00 9D [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:28]Read from MH i2c: E2 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 0B 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 0B 00 00 22 00 FD B1 28 5C 5B 3F 60 91 90 00 5B [14:00:28]RAPDU: FD B1 28 5C 5B 3F 60 91 90 00 [14:00:28]wFMCommunicate OK [14:00:28]SAM_PROTO_SignData done [14:00:28]FM_MakeSignedData done [14:00:28]CreateOFDProtocolMessage [14:00:28]wFMCommunicate request_size=4 [14:00:28]MH_SAM_APDU [14:00:28]CAPDU: 80 11 00 00 [14:00:28]Write to MH i2c: E2 08 00 01 22 80 11 00 00 00 00 00 00 9D [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:28]Read from MH i2c: E2 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 17 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 17 00 01 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [14:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:00:28]wFMCommunicate OK [14:00:28]CreateOFDProtocolMessage done [14:00:28]OFDSenderStorePacket 103931 [14:00:28]StoreOFDPacket docnum=103931 [14:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D8 56 07 01 98 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FD 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 95 01 00 35 04 06 00 1D 88 6E 96 86 83 FD B1 28 5C 5B 3F 60 91 [14:00:28]CheckFolder [14:00:28]dirname=/storage/ofd_packets [14:00:28]CheckFolder done [14:00:28]ProducePacketName [14:00:28]name=ofd_packets/00103931 [14:00:28]NVStorageSaveData ofd_packets/00103931 [14:00:28]File name is /storage/ofd_packets/00103931 [14:00:28]Write 301 bytes [14:00:28]NVStorageSaveData done [14:00:28]OFDSenderStorePacket done [14:00:28]KKMCreateOFDPacket done [14:00:28]NVStorageSaveData kkm_last_timestamp [14:00:28]File name is /storage/kkm_last_timestamp [14:00:28]Write 4 bytes [14:00:28]NVStorageSaveData done [14:00:28]ExternCall_PrintAddStr [14:00:28]wPrintStart [14:00:28]Write to MH i2c: 01 00 00 02 22 24 [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: 01 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: 01 07 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: 01 07 00 02 22 00 00 00 00 00 FF 0F 39 [14:00:28]RasterBufferAndPrint [14:00:28]line Счет N : (1)673280 [14:00:28]line ИНН: 02508201610067 [14:00:28]line Контрольно-Кассовый Чек [14:00:28]line ПРОДАЖА [14:00:28]line ТРК (МРК, ГНК) : 42 [14:00:28]line Товар: 2710124130 [14:00:28]line Аи-92-К-5 [14:00:28]line 5.000 * 66.40 [14:00:28]line = 332.00 [14:00:28]line НДС 12% НСП 1% [14:00:28]line > о реализуемом товаре [14:00:28]line ИТОГО: 332.00 [14:00:28]line НСП 1% : 2.94 [14:00:28]line НДС 12% : 35.26 [14:00:28]line Наличными: 332.00 [14:00:28]line Безнал.: 0.00 [14:00:28]line Место: АЗС № 120 "Партнер Нефть" [14:00:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:00:28]line СНО: Общий режим [14:00:28]line Чек 116 20.06.2024 14:00 [14:00:28]line Смена: 354 ФФД: 1.0 [14:00:28]line ЗНМ: 0300000164 [14:00:28]line РНМ: 0000000000092785 [14:00:28]line Версия ККМ: 001 [14:00:28]line ФМ: 0000000000875093 [14:00:28]line ФД: 103931 [14:00:28]line ФПД: 32471808116355 [14:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140029&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103931&fm=32471808116355&tin=02508201610067®Number=0000000000092785&sum=33200 [14:00:29]OFD Sender: Processing packet 103931 [packets to send 17, broken 16] [14:00:29]ProducePacketName [14:00:29]name=ofd_packets/00103931 [14:00:29]OFD Sender: To server: pG, [14:00:29]CommunicateWithHost lk.salyk.kg:30040 [14:00:29]ConnectInit lk.salyk.kg [14:00:29]written 0, free lines is 4095 [14:00:29]Connected sock=10 [14:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D8 56 07 01 98 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 FD 35 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 95 01 00 35 04 06 00 1D 88 6E 96 86 83 FD B1 28 5C 5B 3F 60 91 [14:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9C 84 47 00 99 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FB 95 01 00 F4 03 04 00 82 DC 73 66 B6 04 01 00 00 EB F9 D9 71 AD 05 41 2C [14:00:29]CommunicateWithHost err = 0 [14:00:29]CheckOFDResponse [14:00:29]1017 (14) - 77093643461234 [14:00:29]1041 (16) - 0000000000875093 [14:00:29]1040 (4) - 103931 [14:00:29]1012 (4) - 20.06.2024 07:38 [14:00:29]1206 (1) - 0 [14:00:29]OFD Sender: Remove packet 103931 [14:00:29]ProducePacketName [14:00:29]name=ofd_packets/00103931 [14:00:29]NVStorageDeleteData [14:00:29]Write to MH i2c: 01 00 00 2A 22 4C [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: 01 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: 01 07 00 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: 01 07 00 2A 22 00 00 00 00 00 16 0D 76 [14:00:29]RasterBufferAndPrint [14:00:29]line [14:00:29]line [14:00:29]line [14:00:29]line [14:00:29]line [14:00:29]written 0, free lines is 3357 [14:00:29]MH_Cut [14:00:29]Write to MH i2c: D1 01 00 31 22 01 25 [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: D1 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: D1 01 00 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: D1 01 00 31 22 00 24 [14:00:29]Write to MH i2c: 01 00 00 32 22 54 [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:29]OFD Sender: No OFD packet to send [14:00:30]*** Cut start [14:00:30]*** Partial cut [14:00:30]*** CUTSNS_PIN = 1 [14:00:30]*** CUTSNS_PIN = 0 [14:00:30]*** Brake cut motor [14:00:30]Read from MH i2c: 01 [14:00:30]MH_I2C_Read... [14:00:30]*** Stop cut motor [14:00:30]*** Cut end [14:00:30]Read from MH i2c: 01 07 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: 01 07 00 32 22 00 00 00 00 00 FF 0F 69 [14:00:30]process_action close_receipt done [14:00:30]requested_data is exist [14:00:30]produce_requested_data [14:00:30]requested_item fm.sn is exist - process it [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 11 00 00 [14:00:30]Write to MH i2c: E2 08 00 33 22 80 11 00 00 00 00 00 00 CF [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 17 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 17 00 33 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 22 [14:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:00:30]wFMCommunicate OK [14:00:30]requested_item fd.num is exist - process it [14:00:30]SAM_PROTO_GetFieldsCounters [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 13 00 00 [14:00:30]Write to MH i2c: E2 08 00 34 22 80 13 00 00 00 00 00 00 D2 [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 62 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 62 00 34 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FB 95 01 00 0E 04 04 00 62 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 49 [14:00:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FB 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:31]wFMCommunicate OK [14:00:31]SAM_PROTO_GetFieldsCounters done [14:00:31]requested_item shift.num is exist - process it [14:00:31]requested_item shift.opened is exist - process it [14:00:31]req_shift_opened [14:00:31]FM_GetShiftState [14:00:31]SAM_PROTO_GetShiftState [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 13 01 00 [14:00:31]Write to MH i2c: E2 08 00 35 22 80 13 01 00 00 00 00 00 D4 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 0E 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 0E 00 35 22 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 23 [14:00:31]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:00:31]wFMCommunicate OK [14:00:31]SAM_PROTO_GetShiftState done [14:00:31]FM_GetShiftState done [14:00:31]req_shift_opened done [14:00:31]requested_item shift.open_date is exist - process it [14:00:31]req_shift_open_date [14:00:31]req_shift_open_date done [14:00:31]produce_requested_data done [14:00:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103931,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:00:31]process_action_free close_receipt [14:00:31]json_value_free [14:00:31]json_value_free done [14:00:31]process_json_proto returns [14:00:31]Send response to host [14:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103931,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:00:31]free response buf [14:00:31]execute_script done [14:00:31]execute_script returns [14:00:31]free content buf [14:00:31]Sock 9.Close socket [14:00:31]Sock 9.Thread stoped [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:16]accept exits with 7 [14:03:16]New connection [14:03:16]New thread 3067063652 created [14:03:16]Thread 3067207012 joined [14:03:16]Waiting for new connection... [14:03:16] Sock 7.Parse request [14:03:16]Sock 7.Check first char [14:03:16]Sock 7.First char is OK [14:03:16]request: POST /json_proto HTTP/1.0 [14:03:16]Method: POST [14:03:16]URL: /json_proto [14:03:16]Method is POST - this is cgi request [14:03:16]url: /json_proto [14:03:16]query_string will be loaded in cgi processing [14:03:16]execute_cgi json_proto POST (null) [14:03:16]execute_cgi path=json_proto method=POST [14:03:16]POST find Content-Length [14:03:16]Host: 172.17.38.133:8080 [14:03:16]Content-Length: 682 [14:03:16]Content-Type: application/json [14:03:16] [14:03:16]POST finish read [14:03:16]Found Content-Length = 682 [14:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673282", "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" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:16]execute_script... [14:03: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)673282", "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" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:16]POST & json_proto [14:03:16]process_json_proto [14:03:16]json parsed OK: [14:03:16]protocol is kg_v1.0 [14:03:16]action value=close_receipt [14:03:16]process_action close_receipt [14:03:16]cmd_close_receipt [14:03:16]MH_GetDate [14:03:16]Write to MH i2c: F0 00 00 36 22 47 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: F0 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: F0 09 00 [14:03:16]MH_I2C_Read... [14:03:16]Read from MH i2c: F0 09 00 36 22 00 A7 36 74 66 BD 8F 7C 64 33 [14:03:16]GetLastDocTimeStamp 1718892029 [14:03:16]current date 1718892199 [14:03:16]FM_GetShiftState [14:03:16]SAM_PROTO_GetShiftState [14:03:16]wFMCommunicate request_size=4 [14:03:16]MH_SAM_APDU [14:03:16]CAPDU: 80 13 01 00 [14:03:16]Write to MH i2c: E2 08 00 37 22 80 13 01 00 00 00 00 00 D6 [14:03:16]Write i2c OK [14:03:16]MH_I2C_Read... [14:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:17]Read from MH i2c: E2 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 0E 00 [14:03:17]MH_I2C_Read... [14:03:17]Read from MH i2c: E2 0E 00 37 22 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 25 [14:03:17]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:03:17]wFMCommunicate OK [14:03:17]SAM_PROTO_GetShiftState done [14:03:17]FM_GetShiftState done [14:03:17]opened in 1718843124 [14:03:17]opened+sec_in_day 1718929524 [14:03:17]quantity*price = 200047 [14:03:17]sum+1 = 200048 [14:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 117 20.06.2024 14:03 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103932 ФПД: 265690640168004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140319&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103932&fm=265690640168004&tin=02508201610067®Number=0000000000092785&sum=200000 [14:03:18]StoreToDocumentArchive [14:03:18]shift 354 fd 103932 [14:03:18]save to /storage/0354/doc_00103932 [14:03:18]save last doc name /storage/0354/doc_00103932 to /storage/kkm_last_doc_name [14:03:18]save OK [14:03:18]Clear old archive folders... [14:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:18]tlvbuf is 00846D60 [14:03:18]SAM_PROTO_ClearQueue [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 09 00 00 [14:03:18]Write to MH i2c: E2 08 00 44 22 80 09 00 00 00 00 00 00 D8 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 44 22 00 90 00 DA [14:03:18]RAPDU: 90 00 [14:03:18]wFMCommunicate OK [14:03:18]SAM_PROTO_ClearQueue done [14:03:18]KKMCreateOFDPacket [14:03:18]OFDProtocolAddRootSTLVToBuf [14:03:18]FM_MakeSignedData [14:03:18]FM_MakeSignedData [14:03:18]SAM_PROTO_SignData [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 0D 01 02 [14:03:18]Write to MH i2c: E2 08 00 45 22 80 0D 01 02 00 00 00 00 E0 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 45 22 00 90 00 DB [14:03:18]RAPDU: 90 00 [14:03:18]wFMCommunicate OK [14:03:18]wFMCommunicate request_size=255 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A7 36 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 95 01 00 35 04 06 00 F1 [14:03:18]Write to MH i2c: E2 02 01 46 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A7 36 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 95 01 00 35 04 06 00 F1 00 00 84 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 46 22 00 90 00 DC [14:03:18]RAPDU: 90 00 [14:03:18]wFMCommunicate OK [14:03:18]wFMCommunicate request_size=10 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 0D 02 02 05 A4 EC 3A 34 44 [14:03:18]Write to MH i2c: E2 0D 00 47 22 80 0D 02 02 05 00 A4 EC 3A 34 44 00 00 2F [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 03 00 47 22 00 90 00 DD [14:03:18]RAPDU: 90 00 [14:03:18]wFMCommunicate OK [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 0D 03 02 [14:03:18]Write to MH i2c: E2 08 00 48 22 80 0D 03 02 00 00 00 00 E5 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 0B 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 0B 00 48 22 00 64 F6 9F E5 8A D5 2F 3D 90 00 8F [14:03:18]RAPDU: 64 F6 9F E5 8A D5 2F 3D 90 00 [14:03:18]wFMCommunicate OK [14:03:18]SAM_PROTO_SignData done [14:03:18]FM_MakeSignedData done [14:03:18]CreateOFDProtocolMessage [14:03:18]wFMCommunicate request_size=4 [14:03:18]MH_SAM_APDU [14:03:18]CAPDU: 80 11 00 00 [14:03:18]Write to MH i2c: E2 08 00 49 22 80 11 00 00 00 00 00 00 E5 [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:18]Read from MH i2c: E2 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 17 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: E2 17 00 49 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 38 [14:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:03:18]wFMCommunicate OK [14:03:18]CreateOFDProtocolMessage done [14:03:18]OFDSenderStorePacket 103932 [14:03:18]StoreOFDPacket docnum=103932 [14:03:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B1 F3 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A7 36 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 95 01 00 35 04 06 00 F1 A4 EC 3A 34 44 64 F6 9F E5 8A D5 2F 3D [14:03:18]CheckFolder [14:03:18]dirname=/storage/ofd_packets [14:03:18]CheckFolder done [14:03:18]ProducePacketName [14:03:18]name=ofd_packets/00103932 [14:03:18]NVStorageSaveData ofd_packets/00103932 [14:03:18]File name is /storage/ofd_packets/00103932 [14:03:18]Write 301 bytes [14:03:18]NVStorageSaveData done [14:03:18]OFDSenderStorePacket done [14:03:18]KKMCreateOFDPacket done [14:03:18]NVStorageSaveData kkm_last_timestamp [14:03:18]File name is /storage/kkm_last_timestamp [14:03:18]Write 4 bytes [14:03:18]NVStorageSaveData done [14:03:18]ExternCall_PrintAddStr [14:03:18]wPrintStart [14:03:18]Write to MH i2c: 01 00 00 4A 22 6C [14:03:18]Write i2c OK [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: 01 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: 01 07 00 [14:03:18]MH_I2C_Read... [14:03:18]Read from MH i2c: 01 07 00 4A 22 00 00 00 00 00 FF 0F 81 [14:03:18]RasterBufferAndPrint [14:03:18]line Счет N : (1)673282 [14:03:18]line ИНН: 02508201610067 [14:03:18]line Контрольно-Кассовый Чек [14:03:18]line ПРОДАЖА [14:03:18]line ТРК (МРК, ГНК) : 31 [14:03:18]line Товар: 2710124500 [14:03:18]line Аи-95-К-5 [14:03:18]line 27.070 * 73.90 [14:03:18]line = 2000.47 [14:03:18]line НДС 12% НСП 1% [14:03:18]line > о реализуемом товаре [14:03:18]line ОКРУГЛЕНИЕ: -0.47 [14:03:18]line ИТОГО: 2000.00 [14:03:18]line Внесено: 2000.00 [14:03:18]line СДАЧА: 0.00 [14:03:18]line НСП 1% : 17.70 [14:03:18]line НДС 12% : 212.44 [14:03:18]line Наличными: 2000.00 [14:03:18]line Безнал.: 0.00 [14:03:18]line Место: АЗС № 120 "Партнер Нефть" [14:03:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:03:18]line СНО: Общий режим [14:03:18]line Чек 117 20.06.2024 14:03 [14:03:18]line Смена: 354 ФФД: 1.0 [14:03:18]line ЗНМ: 0300000164 [14:03:18]line РНМ: 0000000000092785 [14:03:18]line Версия ККМ: 001 [14:03:18]line ФМ: 0000000000875093 [14:03:18]line ФД: 103932 [14:03:18]line ФПД: 265690640168004 [14:03:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140319&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103932&fm=265690640168004&tin=02508201610067®Number=0000000000092785&sum=200000 [14:03:19]OFD Sender: Processing packet 103932 [packets to send 17, broken 16] [14:03:19]ProducePacketName [14:03:19]name=ofd_packets/00103932 [14:03:19]OFD Sender: To server: pG, [14:03:19]CommunicateWithHost lk.salyk.kg:30040 [14:03:19]ConnectInit lk.salyk.kg [14:03:19]written 0, free lines is 4095 [14:03:19]Connected sock=10 [14:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B1 F3 07 01 14 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 A7 36 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 95 01 00 35 04 06 00 F1 A4 EC 3A 34 44 64 F6 9F E5 8A D5 2F 3D [14:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 62 A2 47 00 0C 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FC 95 01 00 F4 03 04 00 2C DD 73 66 B6 04 01 00 00 A6 A4 AD CA 21 1D F2 8F [14:03:19]CommunicateWithHost err = 0 [14:03:19]CheckOFDResponse [14:03:19]1017 (14) - 77093643461234 [14:03:19]1041 (16) - 0000000000875093 [14:03:19]1040 (4) - 103932 [14:03:19]1012 (4) - 20.06.2024 07:41 [14:03:19]1206 (1) - 0 [14:03:19]OFD Sender: Remove packet 103932 [14:03:19]ProducePacketName [14:03:19]name=ofd_packets/00103932 [14:03:19]NVStorageDeleteData [14:03:19]Write to MH i2c: 01 00 00 75 22 97 [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 07 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: 01 07 00 75 22 00 00 00 00 00 EA 0C 94 [14:03:19]RasterBufferAndPrint [14:03:19]line [14:03:19]line [14:03:19]line [14:03:19]line [14:03:19]line [14:03:19]written 0, free lines is 3312 [14:03:19]MH_Cut [14:03:19]Write to MH i2c: D1 01 00 7C 22 01 70 [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: D1 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: D1 01 00 [14:03:19]MH_I2C_Read... [14:03:19]Read from MH i2c: D1 01 00 7C 22 00 6F [14:03:19]Write to MH i2c: 01 00 00 7D 22 9F [14:03:19]Write i2c OK [14:03:19]MH_I2C_Read... [14:03:19]OFD Sender: No OFD packet to send [14:03:20]*** Cut start [14:03:20]*** Partial cut [14:03:20]*** CUTSNS_PIN = 1 [14:03:20]*** CUTSNS_PIN = 0 [14:03:20]*** Brake cut motor [14:03:20]Read from MH i2c: 01 [14:03:20]MH_I2C_Read... [14:03:20]*** Stop cut motor [14:03:20]*** Cut end [14:03:20]Read from MH i2c: 01 07 00 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: 01 07 00 7D 22 00 00 00 00 00 FF 0F B4 [14:03:20]process_action close_receipt done [14:03:20]requested_data is exist [14:03:20]produce_requested_data [14:03:20]requested_item fm.sn is exist - process it [14:03:20]wFMCommunicate request_size=4 [14:03:20]MH_SAM_APDU [14:03:20]CAPDU: 80 11 00 00 [14:03:20]Write to MH i2c: E2 08 00 7E 22 80 11 00 00 00 00 00 00 1A [14:03:20]Write i2c OK [14:03:20]MH_I2C_Read... [14:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:20]Read from MH i2c: E2 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: E2 17 00 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: E2 17 00 7E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6D [14:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:03:20]wFMCommunicate OK [14:03:20]requested_item fd.num is exist - process it [14:03:20]SAM_PROTO_GetFieldsCounters [14:03:20]wFMCommunicate request_size=4 [14:03:20]MH_SAM_APDU [14:03:20]CAPDU: 80 13 00 00 [14:03:20]Write to MH i2c: E2 08 00 7F 22 80 13 00 00 00 00 00 00 1D [14:03:20]Write i2c OK [14:03:20]MH_I2C_Read... [14:03:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:20]Read from MH i2c: E2 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: E2 62 00 [14:03:20]MH_I2C_Read... [14:03:20]Read from MH i2c: E2 62 00 7F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FC 95 01 00 0E 04 04 00 62 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 98 [14: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FC 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:20]wFMCommunicate OK [14:03:20]SAM_PROTO_GetFieldsCounters done [14:03:20]requested_item shift.num is exist - process it [14:03:20]requested_item shift.opened is exist - process it [14:03:20]req_shift_opened [14:03:20]FM_GetShiftState [14:03:21]SAM_PROTO_GetShiftState [14:03:21]wFMCommunicate request_size=4 [14:03:21]MH_SAM_APDU [14:03:21]CAPDU: 80 13 01 00 [14:03:21]Write to MH i2c: E2 08 00 80 22 80 13 01 00 00 00 00 00 1F [14:03:21]Write i2c OK [14:03:21]MH_I2C_Read... [14:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:21]Read from MH i2c: E2 [14:03:21]MH_I2C_Read... [14:03:21]Read from MH i2c: E2 0E 00 [14:03:21]MH_I2C_Read... [14:03:21]Read from MH i2c: E2 0E 00 80 22 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 6E [14:03:21]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:03:21]wFMCommunicate OK [14:03:21]SAM_PROTO_GetShiftState done [14:03:21]FM_GetShiftState done [14:03:21]req_shift_opened done [14:03:21]requested_item shift.open_date is exist - process it [14:03:21]req_shift_open_date [14:03:21]req_shift_open_date done [14:03:21]produce_requested_data done [14:03:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103932,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:03:21]process_action_free close_receipt [14:03:21]json_value_free [14:03:21]json_value_free done [14:03:21]process_json_proto returns [14:03:21]Send response to host [14:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103932,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:03:21]free response buf [14:03:21]execute_script done [14:03:21]execute_script returns [14:03:21]free content buf [14:03:21]Sock 7.Close socket [14:03:21]Sock 7.Thread stoped [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]accept exits with 9 [14:03:44]New connection [14:03:44]New thread 3067207012 created [14:03:44]Thread 3067063652 joined [14:03:44]Waiting for new connection... [14:03:44] Sock 9.Parse request [14:03:44]Sock 9.Check first char [14:03:44]Sock 9.First char is OK [14:03:44]request: POST /json_proto HTTP/1.0 [14:03:44]Method: POST [14:03:44]URL: /json_proto [14:03:44]Method is POST - this is cgi request [14:03:44]url: /json_proto [14:03:44]query_string will be loaded in cgi processing [14:03:44]execute_cgi json_proto POST (null) [14:03:44]execute_cgi path=json_proto method=POST [14:03:44]POST find Content-Length [14:03:44]Host: 172.17.38.133:8080 [14:03:44]Content-Length: 682 [14:03:44]Content-Type: application/json [14:03:44] [14:03:44]POST finish read [14:03:44]Found Content-Length = 682 [14:03:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:03:44]execute_script... [14:03: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)673281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:03:44]POST & json_proto [14:03:44]process_json_proto [14:03:44]json parsed OK: [14:03:44]protocol is kg_v1.0 [14:03:44]action value=close_receipt [14:03:44]process_action close_receipt [14:03:44]cmd_close_receipt [14:03:44]MH_GetDate [14:03:44]Write to MH i2c: F0 00 00 81 22 92 [14:03:44]Write i2c OK [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: F0 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: F0 09 00 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: F0 09 00 81 22 00 C2 36 74 66 BD 8F 7C 64 99 [14:03:44]GetLastDocTimeStamp 1718892199 [14:03:44]current date 1718892226 [14:03:44]FM_GetShiftState [14:03:44]SAM_PROTO_GetShiftState [14:03:44]wFMCommunicate request_size=4 [14:03:44]MH_SAM_APDU [14:03:44]CAPDU: 80 13 01 00 [14:03:44]Write to MH i2c: E2 08 00 82 22 80 13 01 00 00 00 00 00 21 [14:03:44]Write i2c OK [14:03:44]MH_I2C_Read... [14:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:44]Read from MH i2c: E2 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: E2 0E 00 [14:03:44]MH_I2C_Read... [14:03:44]Read from MH i2c: E2 0E 00 82 22 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 70 [14:03:44]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:03:44]wFMCommunicate OK [14:03:44]SAM_PROTO_GetShiftState done [14:03:44]FM_GetShiftState done [14:03:44]opened in 1718843124 [14:03:44]opened+sec_in_day 1718929524 [14:03:44]quantity*price = 100064 [14:03:44]sum+1 = 100066 [14:03:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 118 20.06.2024 14:03 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103933 ФПД: 188313268378935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103933&fm=188313268378935&tin=02508201610067®Number=0000000000092785&sum=100000 [14:03:45]StoreToDocumentArchive [14:03:45]shift 354 fd 103933 [14:03:45]save to /storage/0354/doc_00103933 [14:03:45]save last doc name /storage/0354/doc_00103933 to /storage/kkm_last_doc_name [14:03:45]save OK [14:03:45]Clear old archive folders... [14:03:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:45]tlvbuf is 008265C0 [14:03:45]SAM_PROTO_ClearQueue [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 09 00 00 [14:03:45]Write to MH i2c: E2 08 00 8F 22 80 09 00 00 00 00 00 00 23 [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 8F 22 00 90 00 25 [14:03:45]RAPDU: 90 00 [14:03:45]wFMCommunicate OK [14:03:45]SAM_PROTO_ClearQueue done [14:03:45]KKMCreateOFDPacket [14:03:45]OFDProtocolAddRootSTLVToBuf [14:03:45]FM_MakeSignedData [14:03:45]FM_MakeSignedData [14:03:45]SAM_PROTO_SignData [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 0D 01 02 [14:03:45]Write to MH i2c: E2 08 00 90 22 80 0D 01 02 00 00 00 00 2B [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [14:03:45]RAPDU: 90 00 [14:03:45]wFMCommunicate OK [14:03:45]wFMCommunicate request_size=255 [14:03:45]MH_SAM_APDU [14:03: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C2 36 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 95 01 00 35 04 06 00 AB [14:03:45]Write to MH i2c: E2 02 01 91 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C2 36 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 95 01 00 35 04 06 00 AB 00 00 1E [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 91 22 00 90 00 27 [14:03:45]RAPDU: 90 00 [14:03:45]wFMCommunicate OK [14:03:45]wFMCommunicate request_size=10 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 0D 02 02 05 45 19 77 DD 37 [14:03:45]Write to MH i2c: E2 0D 00 92 22 80 0D 02 02 05 00 45 19 77 DD 37 00 00 21 [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 03 00 92 22 00 90 00 28 [14:03:45]RAPDU: 90 00 [14:03:45]wFMCommunicate OK [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 0D 03 02 [14:03:45]Write to MH i2c: E2 08 00 93 22 80 0D 03 02 00 00 00 00 30 [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 0B 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 0B 00 93 22 00 FF 8B 68 4A 44 15 59 70 90 00 8F [14:03:45]RAPDU: FF 8B 68 4A 44 15 59 70 90 00 [14:03:45]wFMCommunicate OK [14:03:45]SAM_PROTO_SignData done [14:03:45]FM_MakeSignedData done [14:03:45]CreateOFDProtocolMessage [14:03:45]wFMCommunicate request_size=4 [14:03:45]MH_SAM_APDU [14:03:45]CAPDU: 80 11 00 00 [14:03:45]Write to MH i2c: E2 08 00 94 22 80 11 00 00 00 00 00 00 30 [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:45]Read from MH i2c: E2 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 17 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: E2 17 00 94 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 83 [14:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:03:45]wFMCommunicate OK [14:03:45]CreateOFDProtocolMessage done [14:03:45]OFDSenderStorePacket 103933 [14:03:45]StoreOFDPacket docnum=103933 [14:03:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 99 14 07 01 85 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C2 36 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 95 01 00 35 04 06 00 AB 45 19 77 DD 37 FF 8B 68 4A 44 15 59 70 [14:03:45]CheckFolder [14:03:45]dirname=/storage/ofd_packets [14:03:45]CheckFolder done [14:03:45]ProducePacketName [14:03:45]name=ofd_packets/00103933 [14:03:45]NVStorageSaveData ofd_packets/00103933 [14:03:45]File name is /storage/ofd_packets/00103933 [14:03:45]Write 301 bytes [14:03:45]NVStorageSaveData done [14:03:45]OFDSenderStorePacket done [14:03:45]KKMCreateOFDPacket done [14:03:45]NVStorageSaveData kkm_last_timestamp [14:03:45]File name is /storage/kkm_last_timestamp [14:03:45]Write 4 bytes [14:03:45]NVStorageSaveData done [14:03:45]ExternCall_PrintAddStr [14:03:45]wPrintStart [14:03:45]Write to MH i2c: 01 00 00 95 22 B7 [14:03:45]Write i2c OK [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: 01 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: 01 07 00 [14:03:45]MH_I2C_Read... [14:03:45]Read from MH i2c: 01 07 00 95 22 00 00 00 00 00 FF 0F CC [14:03:45]RasterBufferAndPrint [14:03:45]line Счет N : (1)673281 [14:03:45]line ИНН: 02508201610067 [14:03:45]line Контрольно-Кассовый Чек [14:03:45]line ПРОДАЖА [14:03:45]line ТРК (МРК, ГНК) : 42 [14:03:45]line Товар: 2710124130 [14:03:45]line Аи-92-К-5 [14:03:45]line 15.070 * 66.40 [14:03:45]line = 1000.65 [14:03:45]line НДС 12% НСП 1% [14:03:45]line > о реализуемом товаре [14:03:45]line ОКРУГЛЕНИЕ: -0.65 [14:03:45]line ИТОГО: 1000.00 [14:03:45]line Внесено: 1000.00 [14:03:45]line СДАЧА: 0.00 [14:03:45]line НСП 1% : 8.85 [14:03:45]line НДС 12% : 106.26 [14:03:45]line Наличными: 1000.00 [14:03:45]line Безнал.: 0.00 [14:03:45]line Место: АЗС № 120 "Партнер Нефть" [14:03:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:03:45]line СНО: Общий режим [14:03:45]line Чек 118 20.06.2024 14:03 [14:03:45]line Смена: 354 ФФД: 1.0 [14:03:45]line ЗНМ: 0300000164 [14:03:45]line РНМ: 0000000000092785 [14:03:45]line Версия ККМ: 001 [14:03:45]line ФМ: 0000000000875093 [14:03:45]line ФД: 103933 [14:03:45]line ФПД: 188313268378935 [14:03:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103933&fm=188313268378935&tin=02508201610067®Number=0000000000092785&sum=100000 [14:03:46]OFD Sender: Processing packet 103933 [packets to send 17, broken 16] [14:03:46]ProducePacketName [14:03:46]name=ofd_packets/00103933 [14:03:46]OFD Sender: To server: pG, [14:03:46]CommunicateWithHost lk.salyk.kg:30040 [14:03:46]ConnectInit lk.salyk.kg [14:03:46]written 0, free lines is 4095 [14:03:46]Connected sock=10 [14:03:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 99 14 07 01 85 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C2 36 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 95 01 00 35 04 06 00 AB 45 19 77 DD 37 FF 8B 68 4A 44 15 59 70 [14:03:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9D 38 47 00 AD E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FD 95 01 00 F4 03 04 00 47 DD 73 66 B6 04 01 00 00 9C 5F 44 BC 6A 00 50 01 [14:03:46]CommunicateWithHost err = 0 [14:03:46]CheckOFDResponse [14:03:46]1017 (14) - 77093643461234 [14:03:46]1041 (16) - 0000000000875093 [14:03:46]1040 (4) - 103933 [14:03:46]1012 (4) - 20.06.2024 07:41 [14:03:46]1206 (1) - 0 [14:03:46]OFD Sender: Remove packet 103933 [14:03:46]ProducePacketName [14:03:46]name=ofd_packets/00103933 [14:03:46]NVStorageDeleteData [14:03:46]Write to MH i2c: 01 00 00 C0 22 E2 [14:03:46]Write i2c OK [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: 01 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: 01 07 00 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: 01 07 00 C0 22 00 00 00 00 00 EA 0C DF [14:03:46]RasterBufferAndPrint [14:03:46]line [14:03:46]line [14:03:46]line [14:03:46]line [14:03:46]line [14:03:46]written 0, free lines is 3312 [14:03:46]MH_Cut [14:03:46]Write to MH i2c: D1 01 00 C7 22 01 BB [14:03:46]Write i2c OK [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: D1 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: D1 01 00 [14:03:46]MH_I2C_Read... [14:03:46]Read from MH i2c: D1 01 00 C7 22 00 BA [14:03:46]Write to MH i2c: 01 00 00 C8 22 EA [14:03:46]Write i2c OK [14:03:46]MH_I2C_Read... [14:03:47]OFD Sender: No OFD packet to send [14:03:47]*** Cut start [14:03:47]*** Partial cut [14:03:47]*** CUTSNS_PIN = 1 [14:03:47]*** CUTSNS_PIN = 0 [14:03:47]*** Brake cut motor [14:03:48]Read from MH i2c: 01 [14:03:48]MH_I2C_Read... [14:03:48]*** Stop cut motor [14:03:48]*** Cut end [14:03:48]Read from MH i2c: 01 07 00 [14:03:48]MH_I2C_Read... [14:03:48]Read from MH i2c: 01 07 00 C8 22 00 00 00 00 00 FF 0F FF [14:03:48]process_action close_receipt done [14:03:48]requested_data is exist [14:03:48]produce_requested_data [14:03:48]requested_item fm.sn is exist - process it [14:03:48]wFMCommunicate request_size=4 [14:03:48]MH_SAM_APDU [14:03:48]CAPDU: 80 11 00 00 [14:03:48]Write to MH i2c: E2 08 00 C9 22 80 11 00 00 00 00 00 00 65 [14:03:48]Write i2c OK [14:03:48]MH_I2C_Read... [14:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:48]Read from MH i2c: E2 [14:03:48]MH_I2C_Read... [14:03:48]Read from MH i2c: E2 17 00 [14:03:48]MH_I2C_Read... [14:03:48]Read from MH i2c: E2 17 00 C9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B8 [14:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:03:48]wFMCommunicate OK [14:03:48]requested_item fd.num is exist - process it [14:03:48]SAM_PROTO_GetFieldsCounters [14:03:48]wFMCommunicate request_size=4 [14:03:48]MH_SAM_APDU [14:03:48]CAPDU: 80 13 00 00 [14:03:48]Write to MH i2c: E2 08 00 CA 22 80 13 00 00 00 00 00 00 68 [14:03:48]Write i2c OK [14:03:48]MH_I2C_Read... [14:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:48]Read from MH i2c: E2 [14:03:48]MH_I2C_Read... [14:03:48]Read from MH i2c: E2 62 00 [14:03:48]MH_I2C_Read... [14:03:48]Read from MH i2c: E2 62 00 CA 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FD 95 01 00 0E 04 04 00 62 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 E7 [14:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FD 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:48]wFMCommunicate OK [14:03:48]SAM_PROTO_GetFieldsCounters done [14:03:48]requested_item shift.num is exist - process it [14:03:48]requested_item shift.opened is exist - process it [14:03:48]req_shift_opened [14:03:48]FM_GetShiftState [14:03:48]SAM_PROTO_GetShiftState [14:03:48]wFMCommunicate request_size=4 [14:03:48]MH_SAM_APDU [14:03:48]CAPDU: 80 13 01 00 [14:03:48]Write to MH i2c: E2 08 00 CB 22 80 13 01 00 00 00 00 00 6A [14:03:48]Write i2c OK [14:03:48]MH_I2C_Read... [14:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:48]Read from MH i2c: E2 [14:03:48]MH_I2C_Read... [14:03:48]Read from MH i2c: E2 0E 00 [14:03:48]MH_I2C_Read... [14:03:48]Read from MH i2c: E2 0E 00 CB 22 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B9 [14:03:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:03:48]wFMCommunicate OK [14:03:48]SAM_PROTO_GetShiftState done [14:03:48]FM_GetShiftState done [14:03:48]req_shift_opened done [14:03:48]requested_item shift.open_date is exist - process it [14:03:48]req_shift_open_date [14:03:48]req_shift_open_date done [14:03:48]produce_requested_data done [14:03:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103933,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:03:48]process_action_free close_receipt [14:03:48]json_value_free [14:03:48]json_value_free done [14:03:48]process_json_proto returns [14:03:48]Send response to host [14:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103933,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:03:48]free response buf [14:03:48]execute_script done [14:03:48]execute_script returns [14:03:48]free content buf [14:03:48]Sock 9.Close socket [14:03:48]Sock 9.Thread stoped [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:54]accept exits with 7 [14:06:54]New connection [14:06:54]New thread 3067063652 created [14:06:54]Thread 3067207012 joined [14:06:54]Waiting for new connection... [14:06:54] Sock 7.Parse request [14:06:54]Sock 7.Check first char [14:06:54]Sock 7.First char is OK [14:06:54]request: POST /json_proto HTTP/1.0 [14:06:54]Method: POST [14:06:54]URL: /json_proto [14:06:54]Method is POST - this is cgi request [14:06:54]url: /json_proto [14:06:54]query_string will be loaded in cgi processing [14:06:54]execute_cgi json_proto POST (null) [14:06:54]execute_cgi path=json_proto method=POST [14:06:54]POST find Content-Length [14:06:54]Host: 172.17.38.133:8080 [14:06:54]Content-Length: 819 [14:06:54]Content-Type: application/json [14:06:54] [14:06:54]POST finish read [14:06:54]Found Content-Length = 819 [14:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673283", "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" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:54]execute_script... [14:06: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)673283", "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" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:54]POST & json_proto [14:06:54]process_json_proto [14:06:54]json parsed OK: [14:06:54]protocol is kg_v1.0 [14:06:54]action value=close_receipt [14:06:54]process_action close_receipt [14:06:54]cmd_close_receipt [14:06:54]MH_GetDate [14:06:54]Write to MH i2c: F0 00 00 CC 22 DD [14:06:54]Write i2c OK [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: F0 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: F0 09 00 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: F0 09 00 CC 22 00 80 37 74 66 BD 8F 7C 64 A3 [14:06:54]GetLastDocTimeStamp 1718892226 [14:06:54]current date 1718892416 [14:06:54]FM_GetShiftState [14:06:54]SAM_PROTO_GetShiftState [14:06:54]wFMCommunicate request_size=4 [14:06:54]MH_SAM_APDU [14:06:54]CAPDU: 80 13 01 00 [14:06:54]Write to MH i2c: E2 08 00 CD 22 80 13 01 00 00 00 00 00 6C [14:06:54]Write i2c OK [14:06:54]MH_I2C_Read... [14:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:54]Read from MH i2c: E2 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: E2 0E 00 [14:06:54]MH_I2C_Read... [14:06:54]Read from MH i2c: E2 0E 00 CD 22 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BB [14:06:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:06:54]wFMCommunicate OK [14:06:54]SAM_PROTO_GetShiftState done [14:06:54]FM_GetShiftState done [14:06:54]opened in 1718843124 [14:06:54]opened+sec_in_day 1718929524 [14:06:54]quantity*price = 100060 [14:06:54]sum+1 = 100062 [14:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.61 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.61 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 119 20.06.2024 14:06 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103934 ФПД: 265286678061176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140656&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103934&fm=265286678061176&tin=02508201610067®Number=0000000000092785&sum=100061 [14:06:55]StoreToDocumentArchive [14:06:55]shift 354 fd 103934 [14:06:55]save to /storage/0354/doc_00103934 [14:06:55]save last doc name /storage/0354/doc_00103934 to /storage/kkm_last_doc_name [14:06:55]save OK [14:06:55]Clear old archive folders... [14:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:55]tlvbuf is 00823780 [14:06:55]SAM_PROTO_ClearQueue [14:06:55]wFMCommunicate request_size=4 [14:06:55]MH_SAM_APDU [14:06:55]CAPDU: 80 09 00 00 [14:06:55]Write to MH i2c: E2 08 00 DA 22 80 09 00 00 00 00 00 00 6E [14:06:55]Write i2c OK [14:06:55]MH_I2C_Read... [14:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:55]Read from MH i2c: E2 [14:06:55]MH_I2C_Read... [14:06:55]Read from MH i2c: E2 03 00 [14:06:55]MH_I2C_Read... [14:06:55]Read from MH i2c: E2 03 00 DA 22 00 90 00 70 [14:06:55]RAPDU: 90 00 [14:06:55]wFMCommunicate OK [14:06:55]SAM_PROTO_ClearQueue done [14:06:55]KKMCreateOFDPacket [14:06:55]OFDProtocolAddRootSTLVToBuf [14:06:55]FM_MakeSignedData [14:06:55]FM_MakeSignedData [14:06:55]SAM_PROTO_SignData [14:06:55]wFMCommunicate request_size=4 [14:06:55]MH_SAM_APDU [14:06:55]CAPDU: 80 0D 01 02 [14:06:55]Write to MH i2c: E2 08 00 DB 22 80 0D 01 02 00 00 00 00 76 [14:06:55]Write i2c OK [14:06:55]MH_I2C_Read... [14:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:55]Read from MH i2c: E2 [14:06:55]MH_I2C_Read... [14:06:55]Read from MH i2c: E2 03 00 [14:06:55]MH_I2C_Read... [14:06:55]Read from MH i2c: E2 03 00 DB 22 00 90 00 71 [14:06:55]RAPDU: 90 00 [14:06:55]wFMCommunicate OK [14:06:55]wFMCommunicate request_size=255 [14:06:55]MH_SAM_APDU [14:06: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 80 37 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 95 01 00 35 04 06 00 F1 [14:06:55]Write to MH i2c: E2 02 01 DC 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 80 37 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 95 01 00 35 04 06 00 F1 00 00 DB [14:06:55]Write i2c OK [14:06:55]MH_I2C_Read... [14:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:56]Read from MH i2c: E2 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 03 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 03 00 DC 22 00 90 00 72 [14:06:56]RAPDU: 90 00 [14:06:56]wFMCommunicate OK [14:06:56]wFMCommunicate request_size=10 [14:06:56]MH_SAM_APDU [14:06:56]CAPDU: 80 0D 02 02 05 46 DE 35 A0 78 [14:06:56]Write to MH i2c: E2 0D 00 DD 22 80 0D 02 02 05 00 46 DE 35 A0 78 00 00 F4 [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:56]Read from MH i2c: E2 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 03 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 03 00 DD 22 00 90 00 73 [14:06:56]RAPDU: 90 00 [14:06:56]wFMCommunicate OK [14:06:56]wFMCommunicate request_size=4 [14:06:56]MH_SAM_APDU [14:06:56]CAPDU: 80 0D 03 02 [14:06:56]Write to MH i2c: E2 08 00 DE 22 80 0D 03 02 00 00 00 00 7B [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:56]Read from MH i2c: E2 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 0B 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 0B 00 DE 22 00 E0 D8 79 AD 58 36 0A B1 90 00 A3 [14:06:56]RAPDU: E0 D8 79 AD 58 36 0A B1 90 00 [14:06:56]wFMCommunicate OK [14:06:56]SAM_PROTO_SignData done [14:06:56]FM_MakeSignedData done [14:06:56]CreateOFDProtocolMessage [14:06:56]wFMCommunicate request_size=4 [14:06:56]MH_SAM_APDU [14:06:56]CAPDU: 80 11 00 00 [14:06:56]Write to MH i2c: E2 08 00 DF 22 80 11 00 00 00 00 00 00 7B [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:56]Read from MH i2c: E2 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 17 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: E2 17 00 DF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [14:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:06:56]wFMCommunicate OK [14:06:56]CreateOFDProtocolMessage done [14:06:56]OFDSenderStorePacket 103934 [14:06:56]StoreOFDPacket docnum=103934 [14:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9E 08 07 01 4A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 80 37 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 95 01 00 35 04 06 00 F1 46 DE 35 A0 78 E0 D8 79 AD 58 36 0A B1 [14:06:56]CheckFolder [14:06:56]dirname=/storage/ofd_packets [14:06:56]CheckFolder done [14:06:56]ProducePacketName [14:06:56]name=ofd_packets/00103934 [14:06:56]NVStorageSaveData ofd_packets/00103934 [14:06:56]File name is /storage/ofd_packets/00103934 [14:06:56]Write 301 bytes [14:06:56]NVStorageSaveData done [14:06:56]OFDSenderStorePacket done [14:06:56]KKMCreateOFDPacket done [14:06:56]NVStorageSaveData kkm_last_timestamp [14:06:56]File name is /storage/kkm_last_timestamp [14:06:56]Write 4 bytes [14:06:56]NVStorageSaveData done [14:06:56]ExternCall_PrintAddStr [14:06:56]wPrintStart [14:06:56]Write to MH i2c: 01 00 00 E0 22 02 [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: 01 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: 01 07 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: 01 07 00 E0 22 00 00 00 00 00 FF 0F 17 [14:06:56]RasterBufferAndPrint [14:06:56]line Счет N : (1)673283 [14:06:56]line ИНН: 02508201610067 [14:06:56]line Контрольно-Кассовый Чек [14:06:56]line ПРОДАЖА [14:06:56]line ТРК (МРК, ГНК) : 41 [14:06:56]line Товар: 2710124500 [14:06:56]line Аи-95-К-5 [14:06:56]line 13.540 * 73.90 [14:06:56]line = 1000.61 [14:06:56]line НДС 12% НСП 1% [14:06:56]line > о реализуемом товаре [14:06:56]line ИТОГО: 1000.61 [14:06:56]line НСП 1% : 8.85 [14:06:56]line НДС 12% : 106.26 [14:06:56]line Наличными: 0.00 [14:06:56]line Безнал.: 1000.61 [14:06:56]line Место: АЗС № 120 "Партнер Нефть" [14:06:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:06:56]line СНО: Общий режим [14:06:56]line Чек 119 20.06.2024 14:06 [14:06:56]line Смена: 354 ФФД: 1.0 [14:06:56]line ЗНМ: 0300000164 [14:06:56]line РНМ: 0000000000092785 [14:06:56]line Версия ККМ: 001 [14:06:56]line Платежная система: Бакай Банк [14:06:56]line ФМ: 0000000000875093 [14:06:56]line ФД: 103934 [14:06:56]line ФПД: 265286678061176 [14:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140656&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103934&fm=265286678061176&tin=02508201610067®Number=0000000000092785&sum=100061 [14:06:56]OFD Sender: Processing packet 103934 [packets to send 17, broken 16] [14:06:56]ProducePacketName [14:06:56]name=ofd_packets/00103934 [14:06:56]OFD Sender: To server: pG, [14:06:56]CommunicateWithHost lk.salyk.kg:30040 [14:06:56]ConnectInit lk.salyk.kg [14:06:56]written 0, free lines is 4095 [14:06:56]Connected sock=10 [14:06:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9E 08 07 01 4A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 80 37 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 95 01 00 35 04 06 00 F1 46 DE 35 A0 78 E0 D8 79 AD 58 36 0A B1 [14:06:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AB B6 47 00 04 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FE 95 01 00 F4 03 04 00 06 DE 73 66 B6 04 01 00 00 D0 06 4B C6 0A 96 41 CD [14:06:56]CommunicateWithHost err = 0 [14:06:56]CheckOFDResponse [14:06:56]1017 (14) - 77093643461234 [14:06:56]1041 (16) - 0000000000875093 [14:06:56]1040 (4) - 103934 [14:06:56]1012 (4) - 20.06.2024 07:45 [14:06:56]1206 (1) - 0 [14:06:56]OFD Sender: Remove packet 103934 [14:06:56]ProducePacketName [14:06:56]name=ofd_packets/00103934 [14:06:56]NVStorageDeleteData [14:06:56]Write to MH i2c: 01 00 00 0A 23 2D [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: 01 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: 01 07 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: 01 07 00 0A 23 00 00 00 00 00 FB 0C 3B [14:06:56]RasterBufferAndPrint [14:06:56]line [14:06:56]line [14:06:56]line [14:06:56]line [14:06:56]line [14:06:56]written 0, free lines is 3330 [14:06:56]MH_Cut [14:06:56]Write to MH i2c: D1 01 00 11 23 01 06 [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: D1 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: D1 01 00 [14:06:56]MH_I2C_Read... [14:06:56]Read from MH i2c: D1 01 00 11 23 00 05 [14:06:56]Write to MH i2c: 01 00 00 12 23 35 [14:06:56]Write i2c OK [14:06:56]MH_I2C_Read... [14:06:57]OFD Sender: No OFD packet to send [14:06:57]*** Cut start [14:06:57]*** Partial cut [14:06:57]*** CUTSNS_PIN = 1 [14:06:57]*** CUTSNS_PIN = 0 [14:06:57]*** Brake cut motor [14:06:58]Read from MH i2c: 01 [14:06:58]MH_I2C_Read... [14:06:58]*** Stop cut motor [14:06:58]*** Cut end [14:06:58]Read from MH i2c: 01 07 00 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: 01 07 00 12 23 00 00 00 00 00 FF 0F 4A [14:06:58]process_action close_receipt done [14:06:58]requested_data is exist [14:06:58]produce_requested_data [14:06:58]requested_item fm.sn is exist - process it [14:06:58]wFMCommunicate request_size=4 [14:06:58]MH_SAM_APDU [14:06:58]CAPDU: 80 11 00 00 [14:06:58]Write to MH i2c: E2 08 00 13 23 80 11 00 00 00 00 00 00 B0 [14:06:58]Write i2c OK [14:06:58]MH_I2C_Read... [14:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:58]Read from MH i2c: E2 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 17 00 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 17 00 13 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 03 [14:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:06:58]wFMCommunicate OK [14:06:58]requested_item fd.num is exist - process it [14:06:58]SAM_PROTO_GetFieldsCounters [14:06:58]wFMCommunicate request_size=4 [14:06:58]MH_SAM_APDU [14:06:58]CAPDU: 80 13 00 00 [14:06:58]Write to MH i2c: E2 08 00 14 23 80 13 00 00 00 00 00 00 B3 [14:06:58]Write i2c OK [14:06:58]MH_I2C_Read... [14:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:58]Read from MH i2c: E2 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 62 00 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 62 00 14 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 95 01 00 0E 04 04 00 62 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 36 [14:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:58]wFMCommunicate OK [14:06:58]SAM_PROTO_GetFieldsCounters done [14:06:58]requested_item shift.num is exist - process it [14:06:58]requested_item shift.opened is exist - process it [14:06:58]req_shift_opened [14:06:58]FM_GetShiftState [14:06:58]SAM_PROTO_GetShiftState [14:06:58]wFMCommunicate request_size=4 [14:06:58]MH_SAM_APDU [14:06:58]CAPDU: 80 13 01 00 [14:06:58]Write to MH i2c: E2 08 00 15 23 80 13 01 00 00 00 00 00 B5 [14:06:58]Write i2c OK [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 [14:06:58]MH_I2C_Read... [14:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:58]Read from MH i2c: E2 0E 00 [14:06:58]MH_I2C_Read... [14:06:58]Read from MH i2c: E2 0E 00 15 23 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 04 [14:06:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:06:58]wFMCommunicate OK [14:06:58]SAM_PROTO_GetShiftState done [14:06:58]FM_GetShiftState done [14:06:58]req_shift_opened done [14:06:58]requested_item shift.open_date is exist - process it [14:06:58]req_shift_open_date [14:06:58]req_shift_open_date done [14:06:58]produce_requested_data done [14:06:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103934,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:06:58]process_action_free close_receipt [14:06:58]json_value_free [14:06:58]json_value_free done [14:06:58]process_json_proto returns [14:06:58]Send response to host [14:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103934,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:06:58]free response buf [14:06:58]execute_script done [14:06:58]execute_script returns [14:06:58]free content buf [14:06:58]Sock 7.Close socket [14:06:58]Sock 7.Thread stoped [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:20]accept exits with 9 [14:07:20]New connection [14:07:20]New thread 3067207012 created [14:07:20]Thread 3067063652 joined [14:07:20]Waiting for new connection... [14:07:20] Sock 9.Parse request [14:07:20]Sock 9.Check first char [14:07:20]Sock 9.First char is OK [14:07:20]request: POST /json_proto HTTP/1.0 [14:07:20]Method: POST [14:07:20]URL: /json_proto [14:07:20]Method is POST - this is cgi request [14:07:20]url: /json_proto [14:07:20]query_string will be loaded in cgi processing [14:07:20]execute_cgi json_proto POST (null) [14:07:20]execute_cgi path=json_proto method=POST [14:07:20]POST find Content-Length [14:07:20]Host: 172.17.38.133:8080 [14:07:20]Content-Length: 1212 [14:07:20]Content-Type: application/json [14:07:20] [14:07:20]POST finish read [14:07:20]Found Content-Length = 1212 [14:07: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673284\u000A20.06.2024 13:44\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 13.720 x 72.90\u000A\u0418\u0422\u041E\u0413: 1000.19\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\u000A76485\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:20]execute_script... [14:07: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673284\u000A20.06.2024 13:44\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 13.720 x 72.90\u000A\u0418\u0422\u041E\u0413: 1000.19\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\u000A76485\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:20]POST & json_proto [14:07:20]process_json_proto [14:07:20]json parsed OK: [14:07:20]protocol is kg_v1.0 [14:07:20]action value=print_text [14:07:20]process_action print_text [14:07:20]cmd_print_text [14:07:20]ExternCall_PrintAddStr [14:07:20]wPrintStart [14:07:20]Write to MH i2c: 01 00 00 16 23 39 [14:07:20]Write i2c OK [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: 01 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: 01 07 00 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: 01 07 00 16 23 00 00 00 00 00 FF 0F 4E [14:07:20]RasterBufferAndPrint [14:07:20]line *****ТОВАРНЫЙ ЧЕК***** [14:07:20]line АЗС 120 [14:07:20]line Партнер нефть [14:07:20]line 02508201610067 [14:07:20]line Кассир : Дуйшенбиев А. [14:07:20]line Счет N : (1)673284 [14:07:20]line 20.06.2024 13:44 [14:07:20]line ПРОДАЖА [14:07:20]line ТРК (МРК, ГНК): 21 [14:07:20]line Вид ГСМ : 2710194210 [14:07:20]line ДТ(л)-К-5 [14:07:20]line 13.720 x 72.90 [14:07:20]line ИТОГ: 1000.19 [14:07:20]line Тип оплаты: Талоны: Топливная Карта [14:07:20]line 76485 [14:07:20]line ______________________ [14:07:20]line (подпись) [14:07:20]written 0, free lines is 4095 [14:07:20]Write to MH i2c: 01 00 00 2A 23 4D [14:07:20]Write i2c OK [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: 01 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: 01 07 00 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: 01 07 00 2A 23 00 00 00 00 00 11 0E 73 [14:07:20]RasterBufferAndPrint [14:07:20]line [14:07:20]line [14:07:20]line [14:07:20]line [14:07:20]line [14:07:20]written 0, free lines is 3602 [14:07:20]MH_Cut [14:07:20]Write to MH i2c: D1 01 00 31 23 01 26 [14:07:20]Write i2c OK [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: D1 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: D1 01 00 [14:07:20]MH_I2C_Read... [14:07:20]Read from MH i2c: D1 01 00 31 23 00 25 [14:07:20]Write to MH i2c: 01 00 00 32 23 55 [14:07:20]Write i2c OK [14:07:20]MH_I2C_Read... [14:07:21]*** Cut start [14:07:21]*** Partial cut [14:07:21]*** CUTSNS_PIN = 1 [14:07:21]*** CUTSNS_PIN = 0 [14:07:21]*** Brake cut motor [14:07:22]Read from MH i2c: 01 [14:07:22]MH_I2C_Read... [14:07:22]*** Stop cut motor [14:07:22]*** Cut end [14:07:22]Read from MH i2c: 01 07 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: 01 07 00 32 23 00 00 00 00 00 FF 0F 6A [14:07:22]process_action print_text done [14:07:22]requested_data is exist [14:07:22]produce_requested_data [14:07:22]requested_item fm.sn is exist - process it [14:07:22]wFMCommunicate request_size=4 [14:07:22]MH_SAM_APDU [14:07:22]CAPDU: 80 11 00 00 [14:07:22]Write to MH i2c: E2 08 00 33 23 80 11 00 00 00 00 00 00 D0 [14:07:22]Write i2c OK [14:07:22]MH_I2C_Read... [14:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:22]Read from MH i2c: E2 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 17 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 17 00 33 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 23 [14:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:07:22]wFMCommunicate OK [14:07:22]requested_item fd.num is exist - process it [14:07:22]SAM_PROTO_GetFieldsCounters [14:07:22]wFMCommunicate request_size=4 [14:07:22]MH_SAM_APDU [14:07:22]CAPDU: 80 13 00 00 [14:07:22]Write to MH i2c: E2 08 00 34 23 80 13 00 00 00 00 00 00 D3 [14:07:22]Write i2c OK [14:07:22]MH_I2C_Read... [14:07:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:22]Read from MH i2c: E2 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 62 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 62 00 34 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 95 01 00 0E 04 04 00 62 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 56 [14:07:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:22]wFMCommunicate OK [14:07:22]SAM_PROTO_GetFieldsCounters done [14:07:22]requested_item shift.num is exist - process it [14:07:22]requested_item shift.opened is exist - process it [14:07:22]req_shift_opened [14:07:22]FM_GetShiftState [14:07:22]SAM_PROTO_GetShiftState [14:07:22]wFMCommunicate request_size=4 [14:07:22]MH_SAM_APDU [14:07:22]CAPDU: 80 13 01 00 [14:07:22]Write to MH i2c: E2 08 00 35 23 80 13 01 00 00 00 00 00 D5 [14:07:22]Write i2c OK [14:07:22]MH_I2C_Read... [14:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:22]Read from MH i2c: E2 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 0E 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 0E 00 35 23 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 24 [14:07:22]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:07:22]wFMCommunicate OK [14:07:22]SAM_PROTO_GetShiftState done [14:07:22]FM_GetShiftState done [14:07:22]req_shift_opened done [14:07:22]requested_item shift.open_date is exist - process it [14:07:22]req_shift_open_date [14:07:22]req_shift_open_date done [14:07:22]produce_requested_data done [14:07:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103934,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:07:22]process_action_free print_text [14:07:22]json_value_free [14:07:22]json_value_free done [14:07:22]process_json_proto returns [14:07:22]Send response to host [14:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103934,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:07:22]free response buf [14:07:22]execute_script done [14:07:22]execute_script returns [14:07:22]free content buf [14:07:22]Sock 9.Close socket [14:07:22]Sock 9.Thread stoped [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:08]accept exits with 7 [14:09:08]New connection [14:09:08]New thread 3067063652 created [14:09:08]Thread 3067207012 joined [14:09:08]Waiting for new connection... [14:09:08] Sock 7.Parse request [14:09:08]Sock 7.Check first char [14:09:08]Sock 7.First char is OK [14:09:08]request: POST /json_proto HTTP/1.0 [14:09:08]Method: POST [14:09:08]URL: /json_proto [14:09:08]Method is POST - this is cgi request [14:09:08]url: /json_proto [14:09:08]query_string will be loaded in cgi processing [14:09:08]execute_cgi json_proto POST (null) [14:09:08]execute_cgi path=json_proto method=POST [14:09:08]POST find Content-Length [14:09:08]Host: 172.17.38.133:8080 [14:09:08]Content-Length: 1212 [14:09:08]Content-Type: application/json [14:09:08] [14:09:08]POST finish read [14:09:08]Found Content-Length = 1212 [14:09: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673285\u000A20.06.2024 13:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 27.440 x 72.90\u000A\u0418\u0422\u041E\u0413: 2000.38\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\u000A76485\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:08]execute_script... [14:09: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673285\u000A20.06.2024 13:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 27.440 x 72.90\u000A\u0418\u0422\u041E\u0413: 2000.38\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\u000A76485\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:08]POST & json_proto [14:09:08]process_json_proto [14:09:08]json parsed OK: [14:09:08]protocol is kg_v1.0 [14:09:08]action value=print_text [14:09:08]process_action print_text [14:09:08]cmd_print_text [14:09:08]ExternCall_PrintAddStr [14:09:08]wPrintStart [14:09:08]Write to MH i2c: 01 00 00 36 23 59 [14:09:08]Write i2c OK [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: 01 [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: 01 07 00 [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: 01 07 00 36 23 00 00 00 00 00 FF 0F 6E [14:09:08]RasterBufferAndPrint [14:09:08]line *****ТОВАРНЫЙ ЧЕК***** [14:09:08]line АЗС 120 [14:09:08]line Партнер нефть [14:09:08]line 02508201610067 [14:09:08]line Кассир : Дуйшенбиев А. [14:09:08]line Счет N : (1)673285 [14:09:08]line 20.06.2024 13:46 [14:09:08]line ПРОДАЖА [14:09:08]line ТРК (МРК, ГНК): 11 [14:09:08]line Вид ГСМ : 2710194210 [14:09:08]line ДТ(л)-К-5 [14:09:08]line 27.440 x 72.90 [14:09:08]line ИТОГ: 2000.38 [14:09:08]line Тип оплаты: Талоны: Топливная Карта [14:09:08]line 76485 [14:09:08]line ______________________ [14:09:08]line (подпись) [14:09:08]written 0, free lines is 4095 [14:09:08]Write to MH i2c: 01 00 00 4A 23 6D [14:09:08]Write i2c OK [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: 01 [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: 01 07 00 [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: 01 07 00 4A 23 00 00 00 00 00 11 0E 93 [14:09:08]RasterBufferAndPrint [14:09:08]line [14:09:08]line [14:09:08]line [14:09:08]line [14:09:08]line [14:09:08]written 0, free lines is 3603 [14:09:08]MH_Cut [14:09:08]Write to MH i2c: D1 01 00 51 23 01 46 [14:09:08]Write i2c OK [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: D1 [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: D1 01 00 [14:09:08]MH_I2C_Read... [14:09:08]Read from MH i2c: D1 01 00 51 23 00 45 [14:09:08]Write to MH i2c: 01 00 00 52 23 75 [14:09:08]Write i2c OK [14:09:08]MH_I2C_Read... [14:09:08]*** Cut start [14:09:08]*** Partial cut [14:09:08]*** CUTSNS_PIN = 1 [14:09:08]*** CUTSNS_PIN = 0 [14:09:09]*** Brake cut motor [14:09:09]Read from MH i2c: 01 [14:09:09]MH_I2C_Read... [14:09:09]*** Stop cut motor [14:09:09]*** Cut end [14:09:09]Read from MH i2c: 01 07 00 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: 01 07 00 52 23 00 00 00 00 00 FF 0F 8A [14:09:09]process_action print_text done [14:09:09]requested_data is exist [14:09:09]produce_requested_data [14:09:09]requested_item fm.sn is exist - process it [14:09:09]wFMCommunicate request_size=4 [14:09:09]MH_SAM_APDU [14:09:09]CAPDU: 80 11 00 00 [14:09:09]Write to MH i2c: E2 08 00 53 23 80 11 00 00 00 00 00 00 F0 [14:09:09]Write i2c OK [14:09:09]MH_I2C_Read... [14:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:09]Read from MH i2c: E2 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 17 00 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 17 00 53 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 43 [14:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:09:09]wFMCommunicate OK [14:09:09]requested_item fd.num is exist - process it [14:09:09]SAM_PROTO_GetFieldsCounters [14:09:09]wFMCommunicate request_size=4 [14:09:09]MH_SAM_APDU [14:09:09]CAPDU: 80 13 00 00 [14:09:09]Write to MH i2c: E2 08 00 54 23 80 13 00 00 00 00 00 00 F3 [14:09:09]Write i2c OK [14:09:09]MH_I2C_Read... [14:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:09]Read from MH i2c: E2 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 62 00 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 62 00 54 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 95 01 00 0E 04 04 00 62 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 76 [14:09:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FE 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:09]wFMCommunicate OK [14:09:09]SAM_PROTO_GetFieldsCounters done [14:09:09]requested_item shift.num is exist - process it [14:09:09]requested_item shift.opened is exist - process it [14:09:09]req_shift_opened [14:09:09]FM_GetShiftState [14:09:09]SAM_PROTO_GetShiftState [14:09:09]wFMCommunicate request_size=4 [14:09:09]MH_SAM_APDU [14:09:09]CAPDU: 80 13 01 00 [14:09:09]Write to MH i2c: E2 08 00 55 23 80 13 01 00 00 00 00 00 F5 [14:09:09]Write i2c OK [14:09:09]MH_I2C_Read... [14:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:09]Read from MH i2c: E2 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 0E 00 [14:09:09]MH_I2C_Read... [14:09:09]Read from MH i2c: E2 0E 00 55 23 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 44 [14:09:09]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:09:09]wFMCommunicate OK [14:09:09]SAM_PROTO_GetShiftState done [14:09:09]FM_GetShiftState done [14:09:09]req_shift_opened done [14:09:09]requested_item shift.open_date is exist - process it [14:09:09]req_shift_open_date [14:09:09]req_shift_open_date done [14:09:09]produce_requested_data done [14:09:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103934,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:09:09]process_action_free print_text [14:09:09]json_value_free [14:09:09]json_value_free done [14:09:09]process_json_proto returns [14:09:09]Send response to host [14:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103934,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:09:09]free response buf [14:09:09]execute_script done [14:09:09]execute_script returns [14:09:09]free content buf [14:09:09]Sock 7.Close socket [14:09:09]Sock 7.Thread stoped [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]accept exits with 9 [14:09:47]New connection [14:09:47]New thread 3067207012 created [14:09:47]Thread 3067063652 joined [14:09:47]Waiting for new connection... [14:09:47] Sock 9.Parse request [14:09:47]Sock 9.Check first char [14:09:47]Sock 9.First char is OK [14:09:47]request: POST /json_proto HTTP/1.0 [14:09:47]Method: POST [14:09:47]URL: /json_proto [14:09:47]Method is POST - this is cgi request [14:09:47]url: /json_proto [14:09:47]query_string will be loaded in cgi processing [14:09:47]execute_cgi json_proto POST (null) [14:09:47]execute_cgi path=json_proto method=POST [14:09:47]POST find Content-Length [14:09:47]Host: 172.17.38.133:8080 [14:09:47]Content-Length: 682 [14:09:47]Content-Type: application/json [14:09:47] [14:09:47]POST finish read [14:09:47]Found Content-Length = 682 [14:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.970, "sum" : 1060.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1060.00, "total" : 1060.00, "payments": [ { "type": 0, "sum" : 1060.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:47]execute_script... [14:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.970, "sum" : 1060.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1060.00, "total" : 1060.00, "payments": [ { "type": 0, "sum" : 1060.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:47]POST & json_proto [14:09:47]process_json_proto [14:09:47]json parsed OK: [14:09:47]protocol is kg_v1.0 [14:09:47]action value=close_receipt [14:09:47]process_action close_receipt [14:09:47]cmd_close_receipt [14:09:47]MH_GetDate [14:09:47]Write to MH i2c: F0 00 00 56 23 68 [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: F0 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: F0 09 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: F0 09 00 56 23 00 2D 38 74 66 BD 8F 7C 64 DC [14:09:47]GetLastDocTimeStamp 1718892416 [14:09:47]current date 1718892589 [14:09:47]FM_GetShiftState [14:09:47]SAM_PROTO_GetShiftState [14:09:47]wFMCommunicate request_size=4 [14:09:47]MH_SAM_APDU [14:09:47]CAPDU: 80 13 01 00 [14:09:47]Write to MH i2c: E2 08 00 57 23 80 13 01 00 00 00 00 00 F7 [14:09:47]Write i2c OK [14:09:47]MH_I2C_Read... [14:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:47]Read from MH i2c: E2 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 0E 00 [14:09:47]MH_I2C_Read... [14:09:47]Read from MH i2c: E2 0E 00 57 23 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 46 [14:09:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:09:47]wFMCommunicate OK [14:09:47]SAM_PROTO_GetShiftState done [14:09:47]FM_GetShiftState done [14:09:47]opened in 1718843124 [14:09:47]opened+sec_in_day 1718929524 [14:09:47]quantity*price = 106040 [14:09:47]sum+1 = 106042 [14:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1060.00 Внесено: 1060.00 СДАЧА: 0.00 НСП 1% : 9.38 НДС 12% : 112.61 Наличными: 1060.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 120 20.06.2024 14:09 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103935 ФПД: 172102035343734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140949&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103935&fm=172102035343734&tin=02508201610067®Number=0000000000092785&sum=106000 [14:09:48]StoreToDocumentArchive [14:09:48]shift 354 fd 103935 [14:09:48]save to /storage/0354/doc_00103935 [14:09:48]save last doc name /storage/0354/doc_00103935 to /storage/kkm_last_doc_name [14:09:48]save OK [14:09:48]Clear old archive folders... [14:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:48]tlvbuf is 00825EF0 [14:09:48]SAM_PROTO_ClearQueue [14:09:48]wFMCommunicate request_size=4 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 09 00 00 [14:09:48]Write to MH i2c: E2 08 00 64 23 80 09 00 00 00 00 00 00 F9 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 64 23 00 90 00 FB [14:09:48]RAPDU: 90 00 [14:09:48]wFMCommunicate OK [14:09:48]SAM_PROTO_ClearQueue done [14:09:48]KKMCreateOFDPacket [14:09:48]OFDProtocolAddRootSTLVToBuf [14:09:48]FM_MakeSignedData [14:09:48]FM_MakeSignedData [14:09:48]SAM_PROTO_SignData [14:09:48]wFMCommunicate request_size=4 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 0D 01 02 [14:09:48]Write to MH i2c: E2 08 00 65 23 80 0D 01 02 00 00 00 00 01 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 03 00 65 23 00 90 00 FC [14:09:48]RAPDU: 90 00 [14:09:48]wFMCommunicate OK [14:09:48]wFMCommunicate request_size=255 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 3E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 39 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2D 38 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 95 01 00 35 04 06 00 9C [14:09:48]Write to MH i2c: E2 02 01 66 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 3E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 39 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2D 38 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 95 01 00 35 04 06 00 9C 00 00 10 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:49]Read from MH i2c: E2 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: E2 03 00 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: E2 03 00 66 23 00 90 00 FD [14:09:49]RAPDU: 90 00 [14:09:49]wFMCommunicate OK [14:09:49]wFMCommunicate request_size=10 [14:09:49]MH_SAM_APDU [14:09:49]CAPDU: 80 0D 02 02 05 86 A0 AE 89 76 [14:09:49]Write to MH i2c: E2 0D 00 67 23 80 0D 02 02 05 00 86 A0 AE 89 76 00 00 E1 [14:09:49]Write i2c OK [14:09:49]MH_I2C_Read... [14:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:49]Read from MH i2c: E2 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: E2 03 00 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: E2 03 00 67 23 00 90 00 FE [14:09:49]RAPDU: 90 00 [14:09:49]wFMCommunicate OK [14:09:49]wFMCommunicate request_size=4 [14:09:49]MH_SAM_APDU [14:09:49]CAPDU: 80 0D 03 02 [14:09:49]Write to MH i2c: E2 08 00 68 23 80 0D 03 02 00 00 00 00 06 [14:09:49]Write i2c OK [14:09:49]MH_I2C_Read... [14:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:49]Read from MH i2c: E2 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: E2 0B 00 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: E2 0B 00 68 23 00 BF E6 F1 43 59 57 35 D8 90 00 9D [14:09:49]RAPDU: BF E6 F1 43 59 57 35 D8 90 00 [14:09:49]wFMCommunicate OK [14:09:49]SAM_PROTO_SignData done [14:09:49]FM_MakeSignedData done [14:09:49]CreateOFDProtocolMessage [14:09:49]wFMCommunicate request_size=4 [14:09:49]MH_SAM_APDU [14:09:49]CAPDU: 80 11 00 00 [14:09:49]Write to MH i2c: E2 08 00 69 23 80 11 00 00 00 00 00 00 06 [14:09:49]Write i2c OK [14:09:49]MH_I2C_Read... [14:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:49]Read from MH i2c: E2 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: E2 17 00 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: E2 17 00 69 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 59 [14:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:09:49]wFMCommunicate OK [14:09:49]CreateOFDProtocolMessage done [14:09:49]OFDSenderStorePacket 103935 [14:09:49]StoreOFDPacket docnum=103935 [14:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB F3 07 01 BC B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 3E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 39 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2D 38 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 95 01 00 35 04 06 00 9C 86 A0 AE 89 76 BF E6 F1 43 59 57 35 D8 [14:09:49]CheckFolder [14:09:49]dirname=/storage/ofd_packets [14:09:49]CheckFolder done [14:09:49]ProducePacketName [14:09:49]name=ofd_packets/00103935 [14:09:49]NVStorageSaveData ofd_packets/00103935 [14:09:49]File name is /storage/ofd_packets/00103935 [14:09:49]Write 301 bytes [14:09:49]NVStorageSaveData done [14:09:49]OFDSenderStorePacket done [14:09:49]KKMCreateOFDPacket done [14:09:49]NVStorageSaveData kkm_last_timestamp [14:09:49]File name is /storage/kkm_last_timestamp [14:09:49]Write 4 bytes [14:09:49]NVStorageSaveData done [14:09:49]ExternCall_PrintAddStr [14:09:49]wPrintStart [14:09:49]Write to MH i2c: 01 00 00 6A 23 8D [14:09:49]Write i2c OK [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: 01 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: 01 07 00 [14:09:49]MH_I2C_Read... [14:09:49]Read from MH i2c: 01 07 00 6A 23 00 00 00 00 00 FF 0F A2 [14:09:49]RasterBufferAndPrint [14:09:49]line Счет N : (1)673287 [14:09:49]line ИНН: 02508201610067 [14:09:49]line Контрольно-Кассовый Чек [14:09:49]line ПРОДАЖА [14:09:49]line ТРК (МРК, ГНК) : 42 [14:09:49]line Товар: 2710124130 [14:09:49]line Аи-92-К-5 [14:09:49]line 15.970 * 66.40 [14:09:49]line = 1060.41 [14:09:49]line НДС 12% НСП 1% [14:09:49]line > о реализуемом товаре [14:09:49]line ОКРУГЛЕНИЕ: -0.41 [14:09:49]line ИТОГО: 1060.00 [14:09:49]line Внесено: 1060.00 [14:09:49]line СДАЧА: 0.00 [14:09:49]line НСП 1% : 9.38 [14:09:49]line НДС 12% : 112.61 [14:09:49]line Наличными: 1060.00 [14:09:49]line Безнал.: 0.00 [14:09:49]line Место: АЗС № 120 "Партнер Нефть" [14:09:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:09:49]line СНО: Общий режим [14:09:49]line Чек 120 20.06.2024 14:09 [14:09:49]line Смена: 354 ФФД: 1.0 [14:09:49]line ЗНМ: 0300000164 [14:09:49]line РНМ: 0000000000092785 [14:09:49]line Версия ККМ: 001 [14:09:49]line ФМ: 0000000000875093 [14:09:49]line ФД: 103935 [14:09:49]line ФПД: 172102035343734 [14:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T140949&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103935&fm=172102035343734&tin=02508201610067®Number=0000000000092785&sum=106000 [14:09:49]OFD Sender: Processing packet 103935 [packets to send 17, broken 16] [14:09:49]ProducePacketName [14:09:49]name=ofd_packets/00103935 [14:09:49]OFD Sender: To server: pG, [14:09:49]CommunicateWithHost lk.salyk.kg:30040 [14:09:49]ConnectInit lk.salyk.kg [14:09:49]written 0, free lines is 4095 [14:09:49]Connected sock=10 [14:09:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DB F3 07 01 BC B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 3E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 39 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 2D 38 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 FF 95 01 00 35 04 06 00 9C 86 A0 AE 89 76 BF E6 F1 43 59 57 35 D8 [14:09:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 3E 6D 47 00 44 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 35 30 39 33 10 04 04 00 FF 95 01 00 F4 03 04 00 B3 DE 73 66 B6 04 01 00 00 12 97 02 03 0B 4F 22 14 [14:09:49]CommunicateWithHost err = 0 [14:09:49]CheckOFDResponse [14:09:49]1017 (14) - 77093643461234 [14:09:49]1041 (16) - 0000000000875093 [14:09:49]1040 (4) - 103935 [14:09:49]1012 (4) - 20.06.2024 07:48 [14:09:49]1206 (1) - 0 [14:09:49]OFD Sender: Remove packet 103935 [14:09:49]ProducePacketName [14:09:49]name=ofd_packets/00103935 [14:09:49]NVStorageDeleteData [14:09:50]Write to MH i2c: 01 00 00 95 23 B8 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: 01 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: 01 07 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: 01 07 00 95 23 00 00 00 00 00 D9 0C A4 [14:09:50]RasterBufferAndPrint [14:09:50]line [14:09:50]line [14:09:50]line [14:09:50]line [14:09:50]line [14:09:50]written 0, free lines is 3296 [14:09:50]MH_Cut [14:09:50]Write to MH i2c: D1 01 00 9C 23 01 91 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: D1 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: D1 01 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: D1 01 00 9C 23 00 90 [14:09:50]Write to MH i2c: 01 00 00 9D 23 C0 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]OFD Sender: No OFD packet to send [14:09:50]*** Cut start [14:09:50]*** Partial cut [14:09:50]*** CUTSNS_PIN = 1 [14:09:50]*** CUTSNS_PIN = 0 [14:09:50]*** Brake cut motor [14:09:51]Read from MH i2c: 01 [14:09:51]MH_I2C_Read... [14:09:51]*** Stop cut motor [14:09:51]*** Cut end [14:09:51]Read from MH i2c: 01 07 00 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: 01 07 00 9D 23 00 00 00 00 00 FF 0F D5 [14:09:51]process_action close_receipt done [14:09:51]requested_data is exist [14:09:51]produce_requested_data [14:09:51]requested_item fm.sn is exist - process it [14:09:51]wFMCommunicate request_size=4 [14:09:51]MH_SAM_APDU [14:09:51]CAPDU: 80 11 00 00 [14:09:51]Write to MH i2c: E2 08 00 9E 23 80 11 00 00 00 00 00 00 3B [14:09:51]Write i2c OK [14:09:51]MH_I2C_Read... [14:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:51]Read from MH i2c: E2 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: E2 17 00 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: E2 17 00 9E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8E [14:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:09:51]wFMCommunicate OK [14:09:51]requested_item fd.num is exist - process it [14:09:51]SAM_PROTO_GetFieldsCounters [14:09:51]wFMCommunicate request_size=4 [14:09:51]MH_SAM_APDU [14:09:51]CAPDU: 80 13 00 00 [14:09:51]Write to MH i2c: E2 08 00 9F 23 80 13 00 00 00 00 00 00 3E [14:09:51]Write i2c OK [14:09:51]MH_I2C_Read... [14:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:51]Read from MH i2c: E2 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: E2 62 00 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: E2 62 00 9F 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FF 95 01 00 0E 04 04 00 62 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 C5 [14:09:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FF 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:51]wFMCommunicate OK [14:09:51]SAM_PROTO_GetFieldsCounters done [14:09:51]requested_item shift.num is exist - process it [14:09:51]requested_item shift.opened is exist - process it [14:09:51]req_shift_opened [14:09:51]FM_GetShiftState [14:09:51]SAM_PROTO_GetShiftState [14:09:51]wFMCommunicate request_size=4 [14:09:51]MH_SAM_APDU [14:09:51]CAPDU: 80 13 01 00 [14:09:51]Write to MH i2c: E2 08 00 A0 23 80 13 01 00 00 00 00 00 40 [14:09:51]Write i2c OK [14:09:51]MH_I2C_Read... [14:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:51]Read from MH i2c: E2 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: E2 0E 00 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: E2 0E 00 A0 23 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8F [14:09:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:09:51]wFMCommunicate OK [14:09:51]SAM_PROTO_GetShiftState done [14:09:51]FM_GetShiftState done [14:09:51]req_shift_opened done [14:09:51]requested_item shift.open_date is exist - process it [14:09:51]req_shift_open_date [14:09:51]req_shift_open_date done [14:09:51]produce_requested_data done [14:09:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103935,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:09:51]process_action_free close_receipt [14:09:51]json_value_free [14:09:51]json_value_free done [14:09:51]process_json_proto returns [14:09:51]Send response to host [14:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103935,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:09:51]free response buf [14:09:51]execute_script done [14:09:51]execute_script returns [14:09:51]free content buf [14:09:51]Sock 9.Close socket [14:09:51]Sock 9.Thread stoped [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:04]accept exits with 7 [14:10:04]New connection [14:10:04]New thread 3067063652 created [14:10:04]Thread 3067207012 joined [14:10:04]Waiting for new connection... [14:10:04] Sock 7.Parse request [14:10:04]Sock 7.Check first char [14:10:04]Sock 7.First char is OK [14:10:04]request: POST /json_proto HTTP/1.0 [14:10:04]Method: POST [14:10:04]URL: /json_proto [14:10:04]Method is POST - this is cgi request [14:10:04]url: /json_proto [14:10:04]query_string will be loaded in cgi processing [14:10:04]execute_cgi json_proto POST (null) [14:10:04]execute_cgi path=json_proto method=POST [14:10:04]POST find Content-Length [14:10:04]Host: 172.17.38.133:8080 [14:10:04]Content-Length: 1210 [14:10:04]Content-Type: application/json [14:10:04] [14:10:04]POST finish read [14:10:04]Found Content-Length = 1210 [14:10: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673286\u000A20.06.2024 13:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 6.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 437.40\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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:04]execute_script... [14:10: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673286\u000A20.06.2024 13:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 6.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 437.40\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\u000A00562\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:04]POST & json_proto [14:10:04]process_json_proto [14:10:04]json parsed OK: [14:10:04]protocol is kg_v1.0 [14:10:04]action value=print_text [14:10:04]process_action print_text [14:10:04]cmd_print_text [14:10:04]ExternCall_PrintAddStr [14:10:04]wPrintStart [14:10:04]Write to MH i2c: 01 00 00 A1 23 C4 [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 07 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 07 00 A1 23 00 00 00 00 00 FF 0F D9 [14:10:04]RasterBufferAndPrint [14:10:04]line *****ТОВАРНЫЙ ЧЕК***** [14:10:04]line АЗС 120 [14:10:04]line Партнер нефть [14:10:04]line 02508201610067 [14:10:04]line Кассир : Дуйшенбиев А. [14:10:04]line Счет N : (1)673286 [14:10:04]line 20.06.2024 13:47 [14:10:04]line ПРОДАЖА [14:10:04]line ТРК (МРК, ГНК): 21 [14:10:04]line Вид ГСМ : 2710194210 [14:10:04]line ДТ(л)-К-5 [14:10:04]line 6.000 x 72.90 [14:10:04]line ИТОГ: 437.40 [14:10:04]line Тип оплаты: Талоны: Топливная Карта [14:10:04]line 00562 [14:10:04]line ______________________ [14:10:04]line (подпись) [14:10:04]written 0, free lines is 4095 [14:10:04]Write to MH i2c: 01 00 00 B5 23 D8 [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 07 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 07 00 B5 23 00 00 00 00 00 10 0E FD [14:10:04]RasterBufferAndPrint [14:10:04]line [14:10:04]line [14:10:04]line [14:10:04]line [14:10:04]line [14:10:04]written 0, free lines is 3601 [14:10:04]MH_Cut [14:10:04]Write to MH i2c: D1 01 00 BC 23 01 B1 [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: D1 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: D1 01 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: D1 01 00 BC 23 00 B0 [14:10:04]Write to MH i2c: 01 00 00 BD 23 E0 [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]*** Cut start [14:10:04]*** Partial cut [14:10:04]*** CUTSNS_PIN = 1 [14:10:04]*** CUTSNS_PIN = 0 [14:10:05]*** Brake cut motor [14:10:05]OFD Sender: No OFD packet to send [14:10:05]Read from MH i2c: 01 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: 01 07 00 [14:10:05]MH_I2C_Read... [14:10:05]*** Stop cut motor [14:10:05]*** Cut end [14:10:05]Read from MH i2c: 01 07 00 BD 23 00 00 00 00 00 FF 0F F5 [14:10:05]process_action print_text done [14:10:05]requested_data is exist [14:10:05]produce_requested_data [14:10:05]requested_item fm.sn is exist - process it [14:10:05]wFMCommunicate request_size=4 [14:10:05]MH_SAM_APDU [14:10:05]CAPDU: 80 11 00 00 [14:10:05]Write to MH i2c: E2 08 00 BE 23 80 11 00 00 00 00 00 00 5B [14:10:05]Write i2c OK [14:10:05]MH_I2C_Read... [14:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:05]Read from MH i2c: E2 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 17 00 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 17 00 BE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AE [14:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:10:05]wFMCommunicate OK [14:10:05]requested_item fd.num is exist - process it [14:10:05]SAM_PROTO_GetFieldsCounters [14:10:05]wFMCommunicate request_size=4 [14:10:05]MH_SAM_APDU [14:10:05]CAPDU: 80 13 00 00 [14:10:05]Write to MH i2c: E2 08 00 BF 23 80 13 00 00 00 00 00 00 5E [14:10:05]Write i2c OK [14:10:05]MH_I2C_Read... [14:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:05]Read from MH i2c: E2 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 62 00 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 62 00 BF 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FF 95 01 00 0E 04 04 00 62 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 E5 [14:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FF 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:05]wFMCommunicate OK [14:10:05]SAM_PROTO_GetFieldsCounters done [14:10:05]requested_item shift.num is exist - process it [14:10:05]requested_item shift.opened is exist - process it [14:10:05]req_shift_opened [14:10:05]FM_GetShiftState [14:10:05]SAM_PROTO_GetShiftState [14:10:05]wFMCommunicate request_size=4 [14:10:05]MH_SAM_APDU [14:10:05]CAPDU: 80 13 01 00 [14:10:05]Write to MH i2c: E2 08 00 C0 23 80 13 01 00 00 00 00 00 60 [14:10:05]Write i2c OK [14:10:05]MH_I2C_Read... [14:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:05]Read from MH i2c: E2 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 0E 00 [14:10:05]MH_I2C_Read... [14:10:05]Read from MH i2c: E2 0E 00 C0 23 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AF [14:10:05]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:10:05]wFMCommunicate OK [14:10:05]SAM_PROTO_GetShiftState done [14:10:05]FM_GetShiftState done [14:10:05]req_shift_opened done [14:10:05]requested_item shift.open_date is exist - process it [14:10:05]req_shift_open_date [14:10:05]req_shift_open_date done [14:10:05]produce_requested_data done [14:10:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103935,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:10:05]process_action_free print_text [14:10:05]json_value_free [14:10:05]json_value_free done [14:10:05]process_json_proto returns [14:10:05]Send response to host [14:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103935,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:10:05]free response buf [14:10:05]execute_script done [14:10:05]execute_script returns [14:10:05]free content buf [14:10:05]Sock 7.Close socket [14:10:05]Sock 7.Thread stoped [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:49]accept exits with 9 [14:12:49]New connection [14:12:49]New thread 3067207012 created [14:12:49]Thread 3067063652 joined [14:12:49]Waiting for new connection... [14:12:49] Sock 9.Parse request [14:12:49]Sock 9.Check first char [14:12:49]Sock 9.First char is OK [14:12:49]request: POST /json_proto HTTP/1.0 [14:12:49]Method: POST [14:12:49]URL: /json_proto [14:12:49]Method is POST - this is cgi request [14:12:49]url: /json_proto [14:12:49]query_string will be loaded in cgi processing [14:12:49]execute_cgi json_proto POST (null) [14:12:49]execute_cgi path=json_proto method=POST [14:12:49]POST find Content-Length [14:12:49]Host: 172.17.38.133:8080 [14:12:49]Content-Length: 1207 [14:12:49]Content-Type: application/json [14:12:49] [14:12:49]POST finish read [14:12:49]Found Content-Length = 1207 [14:12: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673288\u000A20.06.2024 13:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 27.070 x 73.90\u000A\u0418\u0422\u041E\u0413: 2000.47\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\u000A76485\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:49]execute_script... [14:12: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673288\u000A20.06.2024 13:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 27.070 x 73.90\u000A\u0418\u0422\u041E\u0413: 2000.47\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\u000A76485\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:49]POST & json_proto [14:12:49]process_json_proto [14:12:49]json parsed OK: [14:12:49]protocol is kg_v1.0 [14:12:49]action value=print_text [14:12:49]process_action print_text [14:12:49]cmd_print_text [14:12:49]ExternCall_PrintAddStr [14:12:49]wPrintStart [14:12:49]Write to MH i2c: 01 00 00 C1 23 E4 [14:12:49]Write i2c OK [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: 01 [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: 01 07 00 [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: 01 07 00 C1 23 00 00 00 00 00 FF 0F F9 [14:12:49]RasterBufferAndPrint [14:12:49]line *****ТОВАРНЫЙ ЧЕК***** [14:12:49]line АЗС 120 [14:12:49]line Партнер нефть [14:12:49]line 02508201610067 [14:12:49]line Кассир : Дуйшенбиев А. [14:12:49]line Счет N : (1)673288 [14:12:49]line 20.06.2024 13:50 [14:12:49]line ПРОДАЖА [14:12:49]line ТРК (МРК, ГНК): 31 [14:12:49]line Вид ГСМ : 2710124500 [14:12:49]line Аи-95-К-5 [14:12:49]line 27.070 x 73.90 [14:12:49]line ИТОГ: 2000.47 [14:12:49]line Тип оплаты: Талоны: Топливная Карта [14:12:49]line 76485 [14:12:49]line ______________________ [14:12:49]line (подпись) [14:12:49]written 0, free lines is 4095 [14:12:49]Write to MH i2c: 01 00 00 D5 23 F8 [14:12:49]Write i2c OK [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: 01 [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: 01 07 00 [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: 01 07 00 D5 23 00 00 00 00 00 11 0E 1E [14:12:49]RasterBufferAndPrint [14:12:49]line [14:12:49]line [14:12:49]line [14:12:49]line [14:12:49]line [14:12:49]written 0, free lines is 3603 [14:12:49]MH_Cut [14:12:49]Write to MH i2c: D1 01 00 DC 23 01 D1 [14:12:49]Write i2c OK [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: D1 [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: D1 01 00 [14:12:49]MH_I2C_Read... [14:12:49]Read from MH i2c: D1 01 00 DC 23 00 D0 [14:12:49]Write to MH i2c: 01 00 00 DD 23 00 [14:12:49]Write i2c OK [14:12:49]MH_I2C_Read... [14:12:50]*** Cut start [14:12:50]*** Partial cut [14:12:50]*** CUTSNS_PIN = 1 [14:12:50]*** CUTSNS_PIN = 0 [14:12:50]*** Brake cut motor [14:12:50]OFD Sender: No OFD packet to send [14:12:50]Read from MH i2c: 01 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: 01 07 00 [14:12:50]MH_I2C_Read... [14:12:50]*** Stop cut motor [14:12:50]*** Cut end [14:12:50]Read from MH i2c: 01 07 00 DD 23 00 00 00 00 00 FF 0F 15 [14:12:50]process_action print_text done [14:12:50]requested_data is exist [14:12:50]produce_requested_data [14:12:50]requested_item fm.sn is exist - process it [14:12:50]wFMCommunicate request_size=4 [14:12:50]MH_SAM_APDU [14:12:50]CAPDU: 80 11 00 00 [14:12:50]Write to MH i2c: E2 08 00 DE 23 80 11 00 00 00 00 00 00 7B [14:12:50]Write i2c OK [14:12:50]MH_I2C_Read... [14:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:50]Read from MH i2c: E2 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 17 00 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 17 00 DE 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [14:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:12:50]wFMCommunicate OK [14:12:50]requested_item fd.num is exist - process it [14:12:50]SAM_PROTO_GetFieldsCounters [14:12:50]wFMCommunicate request_size=4 [14:12:50]MH_SAM_APDU [14:12:50]CAPDU: 80 13 00 00 [14:12:50]Write to MH i2c: E2 08 00 DF 23 80 13 00 00 00 00 00 00 7E [14:12:50]Write i2c OK [14:12:50]MH_I2C_Read... [14:12:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:50]Read from MH i2c: E2 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 62 00 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 62 00 DF 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FF 95 01 00 0E 04 04 00 62 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 05 [14:12:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 FF 95 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:50]wFMCommunicate OK [14:12:50]SAM_PROTO_GetFieldsCounters done [14:12:50]requested_item shift.num is exist - process it [14:12:50]requested_item shift.opened is exist - process it [14:12:50]req_shift_opened [14:12:50]FM_GetShiftState [14:12:50]SAM_PROTO_GetShiftState [14:12:50]wFMCommunicate request_size=4 [14:12:50]MH_SAM_APDU [14:12:50]CAPDU: 80 13 01 00 [14:12:50]Write to MH i2c: E2 08 00 E0 23 80 13 01 00 00 00 00 00 80 [14:12:50]Write i2c OK [14:12:50]MH_I2C_Read... [14:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:50]Read from MH i2c: E2 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 0E 00 [14:12:50]MH_I2C_Read... [14:12:50]Read from MH i2c: E2 0E 00 E0 23 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CF [14:12:50]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:12:50]wFMCommunicate OK [14:12:50]SAM_PROTO_GetShiftState done [14:12:50]FM_GetShiftState done [14:12:50]req_shift_opened done [14:12:50]requested_item shift.open_date is exist - process it [14:12:50]req_shift_open_date [14:12:50]req_shift_open_date done [14:12:50]produce_requested_data done [14:12:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103935,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:12:50]process_action_free print_text [14:12:50]json_value_free [14:12:50]json_value_free done [14:12:50]process_json_proto returns [14:12:50]Send response to host [14:12:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103935,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:12:50]free response buf [14:12:50]execute_script done [14:12:50]execute_script returns [14:12:50]free content buf [14:12:50]Sock 9.Close socket [14:12:50]Sock 9.Thread stoped [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]OFD Sender: No OFD packet to send [14:18:05]OFD Sender: No OFD packet to send [14:18:10]OFD Sender: No OFD packet to send [14:18:15]OFD Sender: No OFD packet to send [14:18:20]OFD Sender: No OFD packet to send [14:18:25]OFD Sender: No OFD packet to send [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:48]accept exits with 7 [14:19:48]New connection [14:19:48]New thread 3067063652 created [14:19:48]Thread 3067207012 joined [14:19:48]Waiting for new connection... [14:19:48] Sock 7.Parse request [14:19:48]Sock 7.Check first char [14:19:48]Sock 7.First char is OK [14:19:48]request: POST /json_proto HTTP/1.0 [14:19:48]Method: POST [14:19:48]URL: /json_proto [14:19:48]Method is POST - this is cgi request [14:19:48]url: /json_proto [14:19:48]query_string will be loaded in cgi processing [14:19:48]execute_cgi json_proto POST (null) [14:19:48]execute_cgi path=json_proto method=POST [14:19:48]POST find Content-Length [14:19:48]Host: 172.17.38.133:8080 [14:19:48]Content-Length: 677 [14:19:48]Content-Type: application/json [14:19:48] [14:19:48]POST finish read [14:19:48]Found Content-Length = 677 [14:19:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:48]execute_script... [14:19: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)673289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:48]POST & json_proto [14:19:48]process_json_proto [14:19:48]json parsed OK: [14:19:48]protocol is kg_v1.0 [14:19:48]action value=close_receipt [14:19:48]process_action close_receipt [14:19:48]cmd_close_receipt [14:19:48]MH_GetDate [14:19:48]Write to MH i2c: F0 00 00 E1 23 F3 [14:19:48]Write i2c OK [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: F0 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: F0 09 00 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: F0 09 00 E1 23 00 87 3A 74 66 BD 8F 7C 64 C3 [14:19:48]GetLastDocTimeStamp 1718892589 [14:19:48]current date 1718893191 [14:19:48]FM_GetShiftState [14:19:48]SAM_PROTO_GetShiftState [14:19:48]wFMCommunicate request_size=4 [14:19:48]MH_SAM_APDU [14:19:48]CAPDU: 80 13 01 00 [14:19:48]Write to MH i2c: E2 08 00 E2 23 80 13 01 00 00 00 00 00 82 [14:19:48]Write i2c OK [14:19:48]MH_I2C_Read... [14:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:48]Read from MH i2c: E2 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: E2 0E 00 [14:19:48]MH_I2C_Read... [14:19:48]Read from MH i2c: E2 0E 00 E2 23 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D1 [14:19:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:19:48]wFMCommunicate OK [14:19:48]SAM_PROTO_GetShiftState done [14:19:48]FM_GetShiftState done [14:19:48]opened in 1718843124 [14:19:48]opened+sec_in_day 1718929524 [14:19:48]quantity*price = 50065 [14:19:48]sum+1 = 50067 [14:19:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 121 20.06.2024 14:19 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103936 ФПД: 180061134367949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141951&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103936&fm=180061134367949&tin=02508201610067®Number=0000000000092785&sum=50000 [14:19:50]StoreToDocumentArchive [14:19:50]shift 354 fd 103936 [14:19:50]save to /storage/0354/doc_00103936 [14:19:50]save last doc name /storage/0354/doc_00103936 to /storage/kkm_last_doc_name [14:19:50]save OK [14:19:50]Clear old archive folders... [14:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:50]tlvbuf is 008785D0 [14:19:50]SAM_PROTO_ClearQueue [14:19:50]wFMCommunicate request_size=4 [14:19:50]MH_SAM_APDU [14:19:50]CAPDU: 80 09 00 00 [14:19:50]Write to MH i2c: E2 08 00 EF 23 80 09 00 00 00 00 00 00 84 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:50]Read from MH i2c: E2 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 03 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 03 00 EF 23 00 90 00 86 [14:19:50]RAPDU: 90 00 [14:19:50]wFMCommunicate OK [14:19:50]SAM_PROTO_ClearQueue done [14:19:50]KKMCreateOFDPacket [14:19:50]OFDProtocolAddRootSTLVToBuf [14:19:50]FM_MakeSignedData [14:19:50]FM_MakeSignedData [14:19:50]SAM_PROTO_SignData [14:19:50]wFMCommunicate request_size=4 [14:19:50]MH_SAM_APDU [14:19:50]CAPDU: 80 0D 01 02 [14:19:50]Write to MH i2c: E2 08 00 F0 23 80 0D 01 02 00 00 00 00 8C [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:50]Read from MH i2c: E2 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 03 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 03 00 F0 23 00 90 00 87 [14:19:50]RAPDU: 90 00 [14:19:50]wFMCommunicate OK [14:19:50]wFMCommunicate request_size=255 [14:19:50]MH_SAM_APDU [14:19:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 87 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 96 01 00 35 04 06 00 A3 [14:19:50]Write to MH i2c: E2 02 01 F1 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 87 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 96 01 00 35 04 06 00 A3 00 00 F7 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:50]Read from MH i2c: E2 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 03 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 03 00 F1 23 00 90 00 88 [14:19:50]RAPDU: 90 00 [14:19:50]wFMCommunicate OK [14:19:50]wFMCommunicate request_size=10 [14:19:50]MH_SAM_APDU [14:19:50]CAPDU: 80 0D 02 02 05 C3 BF F3 AC CD [14:19:50]Write to MH i2c: E2 0D 00 F2 23 80 0D 02 02 05 00 C3 BF F3 AC CD 00 00 87 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:50]Read from MH i2c: E2 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 03 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 03 00 F2 23 00 90 00 89 [14:19:50]RAPDU: 90 00 [14:19:50]wFMCommunicate OK [14:19:50]wFMCommunicate request_size=4 [14:19:50]MH_SAM_APDU [14:19:50]CAPDU: 80 0D 03 02 [14:19:50]Write to MH i2c: E2 08 00 F3 23 80 0D 03 02 00 00 00 00 91 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:50]Read from MH i2c: E2 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 0B 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 0B 00 F3 23 00 26 DA 74 DB CB 01 0D 5C 90 00 16 [14:19:50]RAPDU: 26 DA 74 DB CB 01 0D 5C 90 00 [14:19:50]wFMCommunicate OK [14:19:50]SAM_PROTO_SignData done [14:19:50]FM_MakeSignedData done [14:19:50]CreateOFDProtocolMessage [14:19:50]wFMCommunicate request_size=4 [14:19:50]MH_SAM_APDU [14:19:50]CAPDU: 80 11 00 00 [14:19:50]Write to MH i2c: E2 08 00 F4 23 80 11 00 00 00 00 00 00 91 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:50]Read from MH i2c: E2 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 17 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 17 00 F4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E4 [14:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:19:50]wFMCommunicate OK [14:19:50]CreateOFDProtocolMessage done [14:19:50]OFDSenderStorePacket 103936 [14:19:50]StoreOFDPacket docnum=103936 [14:19:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 EE 09 07 01 56 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 87 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 96 01 00 35 04 06 00 A3 C3 BF F3 AC CD 26 DA 74 DB CB 01 0D 5C [14:19:50]CheckFolder [14:19:50]dirname=/storage/ofd_packets [14:19:50]CheckFolder done [14:19:50]ProducePacketName [14:19:50]name=ofd_packets/00103936 [14:19:50]NVStorageSaveData ofd_packets/00103936 [14:19:50]File name is /storage/ofd_packets/00103936 [14:19:50]Write 301 bytes [14:19:50]NVStorageSaveData done [14:19:50]OFDSenderStorePacket done [14:19:50]KKMCreateOFDPacket done [14:19:50]NVStorageSaveData kkm_last_timestamp [14:19:50]File name is /storage/kkm_last_timestamp [14:19:50]Write 4 bytes [14:19:50]NVStorageSaveData done [14:19:50]ExternCall_PrintAddStr [14:19:50]wPrintStart [14:19:50]Write to MH i2c: 01 00 00 F5 23 18 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: 01 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: 01 07 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: 01 07 00 F5 23 00 00 00 00 00 FF 0F 2D [14:19:50]RasterBufferAndPrint [14:19:50]line Счет N : (1)673289 [14:19:50]line ИНН: 02508201610067 [14:19:50]line Контрольно-Кассовый Чек [14:19:50]line ПРОДАЖА [14:19:50]line ТРК (МРК, ГНК) : 32 [14:19:50]line Товар: 2710124130 [14:19:50]line Аи-92-К-5 [14:19:50]line 7.540 * 66.40 [14:19:50]line = 500.66 [14:19:50]line НДС 12% НСП 1% [14:19:50]line > о реализуемом товаре [14:19:50]line ОКРУГЛЕНИЕ: -0.66 [14:19:50]line ИТОГО: 500.00 [14:19:50]line Внесено: 500.00 [14:19:50]line СДАЧА: 0.00 [14:19:50]line НСП 1% : 4.43 [14:19:50]line НДС 12% : 53.17 [14:19:50]line Наличными: 500.00 [14:19:50]line Безнал.: 0.00 [14:19:50]line Место: АЗС № 120 "Партнер Нефть" [14:19:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:19:50]line СНО: Общий режим [14:19:50]line Чек 121 20.06.2024 14:19 [14:19:50]line Смена: 354 ФФД: 1.0 [14:19:50]line ЗНМ: 0300000164 [14:19:50]line РНМ: 0000000000092785 [14:19:50]line Версия ККМ: 001 [14:19:50]line ФМ: 0000000000875093 [14:19:50]line ФД: 103936 [14:19:50]line ФПД: 180061134367949 [14:19:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T141951&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103936&fm=180061134367949&tin=02508201610067®Number=0000000000092785&sum=50000 [14:19:50]OFD Sender: Processing packet 103936 [packets to send 17, broken 16] [14:19:50]ProducePacketName [14:19:50]name=ofd_packets/00103936 [14:19:50]OFD Sender: To server: pG, [14:19:50]CommunicateWithHost lk.salyk.kg:30040 [14:19:50]ConnectInit lk.salyk.kg [14:19:50]written 0, free lines is 4095 [14:19:51]Connected sock=10 [14: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 35 30 39 33 0F 01 00 00 EE 09 07 01 56 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 87 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 96 01 00 35 04 06 00 A3 C3 BF F3 AC CD 26 DA 74 DB CB 01 0D 5C [14:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0C 8B 47 00 EE 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 00 96 01 00 F4 03 04 00 0C E1 73 66 B6 04 01 00 00 7A 5F F3 77 9C 85 02 B7 [14:19:51]CommunicateWithHost err = 0 [14:19:51]CheckOFDResponse [14:19:51]1017 (14) - 77093643461234 [14:19:51]1041 (16) - 0000000000875093 [14:19:51]1040 (4) - 103936 [14:19:51]1012 (4) - 20.06.2024 07:58 [14:19:51]1206 (1) - 0 [14:19:51]OFD Sender: Remove packet 103936 [14:19:51]ProducePacketName [14:19:51]name=ofd_packets/00103936 [14:19:51]NVStorageDeleteData [14:19:51]Write to MH i2c: 01 00 00 20 24 44 [14:19:51]Write i2c OK [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: 01 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: 01 07 00 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: 01 07 00 20 24 00 00 00 00 00 E4 0C 3B [14:19:51]RasterBufferAndPrint [14:19:51]line [14:19:51]line [14:19:51]line [14:19:51]line [14:19:51]line [14:19:51]written 0, free lines is 3306 [14:19:51]MH_Cut [14:19:51]Write to MH i2c: D1 01 00 27 24 01 1D [14:19:51]Write i2c OK [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: D1 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: D1 01 00 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: D1 01 00 27 24 00 1C [14:19:51]Write to MH i2c: 01 00 00 28 24 4C [14:19:51]Write i2c OK [14:19:51]MH_I2C_Read... [14:19:51]OFD Sender: No OFD packet to send [14:19:52]*** Cut start [14:19:52]*** Partial cut [14:19:52]*** CUTSNS_PIN = 1 [14:19:52]*** CUTSNS_PIN = 0 [14:19:52]*** Brake cut motor [14:19:52]Read from MH i2c: 01 [14:19:52]MH_I2C_Read... [14:19:52]*** Stop cut motor [14:19:52]*** Cut end [14:19:52]Read from MH i2c: 01 07 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 07 00 28 24 00 00 00 00 00 FF 0F 61 [14:19:52]process_action close_receipt done [14:19:52]requested_data is exist [14:19:52]produce_requested_data [14:19:52]requested_item fm.sn is exist - process it [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 11 00 00 [14:19:52]Write to MH i2c: E2 08 00 29 24 80 11 00 00 00 00 00 00 C7 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 17 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 17 00 29 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [14:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:19:52]wFMCommunicate OK [14:19:52]requested_item fd.num is exist - process it [14:19:52]SAM_PROTO_GetFieldsCounters [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 13 00 00 [14:19:52]Write to MH i2c: E2 08 00 2A 24 80 13 00 00 00 00 00 00 CA [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 62 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 62 00 2A 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 00 96 01 00 0E 04 04 00 62 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 56 [14: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 00 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:52]wFMCommunicate OK [14:19:52]SAM_PROTO_GetFieldsCounters done [14:19:52]requested_item shift.num is exist - process it [14:19:52]requested_item shift.opened is exist - process it [14:19:52]req_shift_opened [14:19:52]FM_GetShiftState [14:19:52]SAM_PROTO_GetShiftState [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 13 01 00 [14:19:52]Write to MH i2c: E2 08 00 2B 24 80 13 01 00 00 00 00 00 CC [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 0E 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 0E 00 2B 24 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [14:19:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:19:52]wFMCommunicate OK [14:19:52]SAM_PROTO_GetShiftState done [14:19:52]FM_GetShiftState done [14:19:52]req_shift_opened done [14:19:52]requested_item shift.open_date is exist - process it [14:19:52]req_shift_open_date [14:19:52]req_shift_open_date done [14:19:52]produce_requested_data done [14:19:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103936,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:19:52]process_action_free close_receipt [14:19:52]json_value_free [14:19:52]json_value_free done [14:19:52]process_json_proto returns [14:19:52]Send response to host [14:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103936,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:19:53]free response buf [14:19:53]execute_script done [14:19:53]execute_script returns [14:19:53]free content buf [14:19:53]Sock 7.Close socket [14:19:53]Sock 7.Thread stoped [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:53]accept exits with 9 [14:20:53]New connection [14:20:53]New thread 3067207012 created [14:20:53]Thread 3067063652 joined [14:20:53]Waiting for new connection... [14:20:53] Sock 9.Parse request [14:20:53]Sock 9.Check first char [14:20:53]Sock 9.First char is OK [14:20:53]request: POST /json_proto HTTP/1.0 [14:20:53]Method: POST [14:20:53]URL: /json_proto [14:20:53]Method is POST - this is cgi request [14:20:53]url: /json_proto [14:20:53]query_string will be loaded in cgi processing [14:20:53]execute_cgi json_proto POST (null) [14:20:53]execute_cgi path=json_proto method=POST [14:20:53]POST find Content-Length [14:20:53]Host: 172.17.38.133:8080 [14:20:53]Content-Length: 639 [14:20:53]Content-Type: application/json [14:20:53] [14:20:53]POST finish read [14:20:53]Found Content-Length = 639 [14:20:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:53]execute_script... [14:20:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:53]POST & json_proto [14:20:53]process_json_proto [14:20:53]json parsed OK: [14:20:53]protocol is kg_v1.0 [14:20:53]action value=close_receipt [14:20:53]process_action close_receipt [14:20:53]cmd_close_receipt [14:20:53]MH_GetDate [14:20:53]Write to MH i2c: F0 00 00 2C 24 3F [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: F0 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: F0 09 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: F0 09 00 2C 24 00 C7 3A 74 66 BD 8F 7C 64 4F [14:20:53]GetLastDocTimeStamp 1718893191 [14:20:53]current date 1718893255 [14:20:53]FM_GetShiftState [14:20:53]SAM_PROTO_GetShiftState [14:20:53]wFMCommunicate request_size=4 [14:20:53]MH_SAM_APDU [14:20:53]CAPDU: 80 13 01 00 [14:20:53]Write to MH i2c: E2 08 00 2D 24 80 13 01 00 00 00 00 00 CE [14:20:53]Write i2c OK [14:20:53]MH_I2C_Read... [14:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:53]Read from MH i2c: E2 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 0E 00 [14:20:53]MH_I2C_Read... [14:20:53]Read from MH i2c: E2 0E 00 2D 24 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1D [14:20:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:20:53]wFMCommunicate OK [14:20:53]SAM_PROTO_GetShiftState done [14:20:53]FM_GetShiftState done [14:20:53]opened in 1718843124 [14:20:53]opened+sec_in_day 1718929524 [14:20:53]quantity*price = 33200 [14:20:53]sum+1 = 33201 [14:20:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 122 20.06.2024 14:20 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103937 ФПД: 16556313590380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142055&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103937&fm=16556313590380&tin=02508201610067®Number=0000000000092785&sum=33200 [14:20:54]StoreToDocumentArchive [14:20:54]shift 354 fd 103937 [14:20:54]save to /storage/0354/doc_00103937 [14:20:54]save last doc name /storage/0354/doc_00103937 to /storage/kkm_last_doc_name [14:20:54]save OK [14:20:54]Clear old archive folders... [14:20:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:54]tlvbuf is B6F936F0 [14:20:54]SAM_PROTO_ClearQueue [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 09 00 00 [14:20:54]Write to MH i2c: E2 08 00 3A 24 80 09 00 00 00 00 00 00 D0 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:54]Read from MH i2c: E2 03 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 3A 24 00 90 00 D2 [14:20:54]RAPDU: 90 00 [14:20:54]wFMCommunicate OK [14:20:54]SAM_PROTO_ClearQueue done [14:20:54]KKMCreateOFDPacket [14:20:54]OFDProtocolAddRootSTLVToBuf [14:20:54]FM_MakeSignedData [14:20:54]FM_MakeSignedData [14:20:54]SAM_PROTO_SignData [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 0D 01 02 [14:20:54]Write to MH i2c: E2 08 00 3B 24 80 0D 01 02 00 00 00 00 D8 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 3B 24 00 90 00 D3 [14:20:54]RAPDU: 90 00 [14:20:54]wFMCommunicate OK [14:20:54]wFMCommunicate request_size=255 [14:20:54]MH_SAM_APDU [14:20: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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C7 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 96 01 00 35 04 06 00 0F [14:20:54]Write to MH i2c: E2 02 01 3C 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C7 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 96 01 00 35 04 06 00 0F 00 00 78 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 3C 24 00 90 00 D4 [14:20:54]RAPDU: 90 00 [14:20:54]wFMCommunicate OK [14:20:54]wFMCommunicate request_size=10 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 0D 02 02 05 0E D1 30 BA 6C [14:20:54]Write to MH i2c: E2 0D 00 3D 24 80 0D 02 02 05 00 0E D1 30 BA 6C 00 00 1A [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 03 00 3D 24 00 90 00 D5 [14:20:54]RAPDU: 90 00 [14:20:54]wFMCommunicate OK [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 0D 03 02 [14:20:54]Write to MH i2c: E2 08 00 3E 24 80 0D 03 02 00 00 00 00 DD [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0B 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0B 00 3E 24 00 D4 D1 85 BC 5A 10 8D D4 90 00 8F [14:20:54]RAPDU: D4 D1 85 BC 5A 10 8D D4 90 00 [14:20:54]wFMCommunicate OK [14:20:54]SAM_PROTO_SignData done [14:20:54]FM_MakeSignedData done [14:20:54]CreateOFDProtocolMessage [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 11 00 00 [14:20:54]Write to MH i2c: E2 08 00 3F 24 80 11 00 00 00 00 00 00 DD [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 17 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 17 00 3F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 30 [14:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:20:54]wFMCommunicate OK [14:20:54]CreateOFDProtocolMessage done [14:20:54]OFDSenderStorePacket 103937 [14:20:54]StoreOFDPacket docnum=103937 [14:20:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AC 65 07 01 D1 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C7 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 96 01 00 35 04 06 00 0F 0E D1 30 BA 6C D4 D1 85 BC 5A 10 8D D4 [14:20:54]CheckFolder [14:20:54]dirname=/storage/ofd_packets [14:20:54]CheckFolder done [14:20:54]ProducePacketName [14:20:54]name=ofd_packets/00103937 [14:20:54]NVStorageSaveData ofd_packets/00103937 [14:20:54]File name is /storage/ofd_packets/00103937 [14:20:54]Write 301 bytes [14:20:54]NVStorageSaveData done [14:20:54]OFDSenderStorePacket done [14:20:54]KKMCreateOFDPacket done [14:20:54]NVStorageSaveData kkm_last_timestamp [14:20:54]File name is /storage/kkm_last_timestamp [14:20:54]Write 4 bytes [14:20:54]NVStorageSaveData done [14:20:54]ExternCall_PrintAddStr [14:20:54]wPrintStart [14:20:54]Write to MH i2c: 01 00 00 40 24 64 [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: 01 07 00 40 24 00 00 00 00 00 FF 0F 79 [14:20:54]RasterBufferAndPrint [14:20:54]line Счет N : (1)673290 [14:20:54]line ИНН: 02508201610067 [14:20:54]line Контрольно-Кассовый Чек [14:20:54]line ПРОДАЖА [14:20:54]line ТРК (МРК, ГНК) : 42 [14:20:54]line Товар: 2710124130 [14:20:54]line Аи-92-К-5 [14:20:54]line 5.000 * 66.40 [14:20:54]line = 332.00 [14:20:54]line НДС 12% НСП 1% [14:20:54]line > о реализуемом товаре [14:20:54]line ИТОГО: 332.00 [14:20:54]line НСП 1% : 2.94 [14:20:54]line НДС 12% : 35.26 [14:20:54]line Наличными: 332.00 [14:20:54]line Безнал.: 0.00 [14:20:54]line Место: АЗС № 120 "Партнер Нефть" [14:20:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:20:54]line СНО: Общий режим [14:20:54]line Чек 122 20.06.2024 14:20 [14:20:54]line Смена: 354 ФФД: 1.0 [14:20:54]line ЗНМ: 0300000164 [14:20:54]line РНМ: 0000000000092785 [14:20:54]line Версия ККМ: 001 [14:20:54]line ФМ: 0000000000875093 [14:20:54]line ФД: 103937 [14:20:54]line ФПД: 16556313590380 [14:20:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142055&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103937&fm=16556313590380&tin=02508201610067®Number=0000000000092785&sum=33200 [14:20:54]written 0, free lines is 4095 [14:20:54]OFD Sender: Processing packet 103937 [packets to send 17, broken 16] [14:20:54]ProducePacketName [14:20:54]name=ofd_packets/00103937 [14:20:54]OFD Sender: To server: pG, [14:20:54]CommunicateWithHost lk.salyk.kg:30040 [14:20:54]ConnectInit lk.salyk.kg [14:20:55]Connected sock=10 [14:20:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AC 65 07 01 D1 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 B0 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C7 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 96 01 00 35 04 06 00 0F 0E D1 30 BA 6C D4 D1 85 BC 5A 10 8D D4 [14:20:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 30 E8 47 00 0D C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 01 96 01 00 F4 03 04 00 4C E1 73 66 B6 04 01 00 00 34 EF 17 05 C9 CD ED B3 [14:20:55]CommunicateWithHost err = 0 [14:20:55]CheckOFDResponse [14:20:55]1017 (14) - 77093643461234 [14:20:55]1041 (16) - 0000000000875093 [14:20:55]1040 (4) - 103937 [14:20:55]1012 (4) - 20.06.2024 07:59 [14:20:55]1206 (1) - 0 [14:20:55]OFD Sender: Remove packet 103937 [14:20:55]ProducePacketName [14:20:55]name=ofd_packets/00103937 [14:20:55]NVStorageDeleteData [14:20:55]Write to MH i2c: 01 00 00 68 24 8C [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: 01 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: 01 07 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: 01 07 00 68 24 00 00 00 00 00 1F 0D BF [14:20:55]RasterBufferAndPrint [14:20:55]line [14:20:55]line [14:20:55]line [14:20:55]line [14:20:55]line [14:20:55]written 0, free lines is 3366 [14:20:55]MH_Cut [14:20:55]Write to MH i2c: D1 01 00 6F 24 01 65 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: D1 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: D1 01 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: D1 01 00 6F 24 00 64 [14:20:55]Write to MH i2c: 01 00 00 70 24 94 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]OFD Sender: No OFD packet to send [14:20:55]*** Cut start [14:20:55]*** Partial cut [14:20:55]*** CUTSNS_PIN = 1 [14:20:56]*** CUTSNS_PIN = 0 [14:20:56]*** Brake cut motor [14:20:56]Read from MH i2c: 01 [14:20:56]MH_I2C_Read... [14:20:56]*** Stop cut motor [14:20:56]*** Cut end [14:20:56]Read from MH i2c: 01 07 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 07 00 70 24 00 00 00 00 00 FF 0F A9 [14:20:56]process_action close_receipt done [14:20:56]requested_data is exist [14:20:56]produce_requested_data [14:20:56]requested_item fm.sn is exist - process it [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 11 00 00 [14:20:56]Write to MH i2c: E2 08 00 71 24 80 11 00 00 00 00 00 00 0F [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 17 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 17 00 71 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 62 [14:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:20:56]wFMCommunicate OK [14:20:56]requested_item fd.num is exist - process it [14:20:56]SAM_PROTO_GetFieldsCounters [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 13 00 00 [14:20:56]Write to MH i2c: E2 08 00 72 24 80 13 00 00 00 00 00 00 12 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 62 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 62 00 72 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 01 96 01 00 0E 04 04 00 62 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 A2 [14:20:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 01 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:56]wFMCommunicate OK [14:20:56]SAM_PROTO_GetFieldsCounters done [14:20:56]requested_item shift.num is exist - process it [14:20:56]requested_item shift.opened is exist - process it [14:20:56]req_shift_opened [14:20:56]FM_GetShiftState [14:20:56]SAM_PROTO_GetShiftState [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 13 01 00 [14:20:56]Write to MH i2c: E2 08 00 73 24 80 13 01 00 00 00 00 00 14 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 0E 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 0E 00 73 24 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 63 [14:20:56]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:20:56]wFMCommunicate OK [14:20:56]SAM_PROTO_GetShiftState done [14:20:56]FM_GetShiftState done [14:20:56]req_shift_opened done [14:20:56]requested_item shift.open_date is exist - process it [14:20:56]req_shift_open_date [14:20:56]req_shift_open_date done [14:20:56]produce_requested_data done [14:20:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103937,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:20:56]process_action_free close_receipt [14:20:56]json_value_free [14:20:56]json_value_free done [14:20:56]process_json_proto returns [14:20:56]Send response to host [14:20:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103937,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:20:56]free response buf [14:20:56]execute_script done [14:20:56]execute_script returns [14:20:56]free content buf [14:20:56]Sock 9.Close socket [14:20:56]Sock 9.Thread stoped [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:47]accept exits with 7 [14:21:47]New connection [14:21:47]New thread 3067063652 created [14:21:47]Thread 3067207012 joined [14:21:47]Waiting for new connection... [14:21:47] Sock 7.Parse request [14:21:47]Sock 7.Check first char [14:21:47]Sock 7.First char is OK [14:21:47]request: POST /json_proto HTTP/1.0 [14:21:47]Method: POST [14:21:47]URL: /json_proto [14:21:47]Method is POST - this is cgi request [14:21:47]url: /json_proto [14:21:47]query_string will be loaded in cgi processing [14:21:47]execute_cgi json_proto POST (null) [14:21:47]execute_cgi path=json_proto method=POST [14:21:47]POST find Content-Length [14:21:47]Host: 172.17.38.133:8080 [14:21:47]Content-Length: 677 [14:21:47]Content-Type: application/json [14:21:47] [14:21:47]POST finish read [14:21:47]Found Content-Length = 677 [14:21:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:47]execute_script... [14:21: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)673291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:47]POST & json_proto [14:21:47]process_json_proto [14:21:47]json parsed OK: [14:21:47]protocol is kg_v1.0 [14:21:47]action value=close_receipt [14:21:47]process_action close_receipt [14:21:47]cmd_close_receipt [14:21:47]MH_GetDate [14:21:47]Write to MH i2c: F0 00 00 74 24 87 [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: F0 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: F0 09 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: F0 09 00 74 24 00 FE 3A 74 66 BD 8F 7C 64 CE [14:21:47]GetLastDocTimeStamp 1718893255 [14:21:47]current date 1718893310 [14:21:47]FM_GetShiftState [14:21:47]SAM_PROTO_GetShiftState [14:21:47]wFMCommunicate request_size=4 [14:21:47]MH_SAM_APDU [14:21:47]CAPDU: 80 13 01 00 [14:21:47]Write to MH i2c: E2 08 00 75 24 80 13 01 00 00 00 00 00 16 [14:21:47]Write i2c OK [14:21:47]MH_I2C_Read... [14:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:47]Read from MH i2c: E2 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 0E 00 [14:21:47]MH_I2C_Read... [14:21:47]Read from MH i2c: E2 0E 00 75 24 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 65 [14:21:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:21:47]wFMCommunicate OK [14:21:47]SAM_PROTO_GetShiftState done [14:21:47]FM_GetShiftState done [14:21:47]opened in 1718843124 [14:21:47]opened+sec_in_day 1718929524 [14:21:47]quantity*price = 50065 [14:21:47]sum+1 = 50067 [14:21:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 123 20.06.2024 14:21 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103938 ФПД: 69616667062753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142150&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103938&fm=69616667062753&tin=02508201610067®Number=0000000000092785&sum=50000 [14:21:48]StoreToDocumentArchive [14:21:48]shift 354 fd 103938 [14:21:48]save to /storage/0354/doc_00103938 [14:21:48]save last doc name /storage/0354/doc_00103938 to /storage/kkm_last_doc_name [14:21:48]save OK [14:21:48]Clear old archive folders... [14:21:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:48]tlvbuf is B6DE6030 [14:21:48]SAM_PROTO_ClearQueue [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 09 00 00 [14:21:48]Write to MH i2c: E2 08 00 82 24 80 09 00 00 00 00 00 00 18 [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:48]Read from MH i2c: E2 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 03 00 [14:21:48]MH_I2C_Read... [14:21:48]Read from MH i2c: E2 03 00 82 24 00 90 00 1A [14:21:48]RAPDU: 90 00 [14:21:48]wFMCommunicate OK [14:21:48]SAM_PROTO_ClearQueue done [14:21:48]KKMCreateOFDPacket [14:21:48]OFDProtocolAddRootSTLVToBuf [14:21:48]FM_MakeSignedData [14:21:48]FM_MakeSignedData [14:21:48]SAM_PROTO_SignData [14:21:48]wFMCommunicate request_size=4 [14:21:48]MH_SAM_APDU [14:21:48]CAPDU: 80 0D 01 02 [14:21:48]Write to MH i2c: E2 08 00 83 24 80 0D 01 02 00 00 00 00 20 [14:21:48]Write i2c OK [14:21:48]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 83 24 00 90 00 1B [14:21:49]RAPDU: 90 00 [14:21:49]wFMCommunicate OK [14:21:49]wFMCommunicate request_size=255 [14:21:49]MH_SAM_APDU [14:21: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FE 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 96 01 00 35 04 06 00 3F [14:21:49]Write to MH i2c: E2 02 01 84 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FE 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 96 01 00 35 04 06 00 3F 00 00 A2 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 84 24 00 90 00 1C [14:21:49]RAPDU: 90 00 [14:21:49]wFMCommunicate OK [14:21:49]wFMCommunicate request_size=10 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 0D 02 02 05 50 E4 B5 F1 E1 [14:21:49]Write to MH i2c: E2 0D 00 85 24 80 0D 02 02 05 00 50 E4 B5 F1 E1 00 00 E8 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 03 00 85 24 00 90 00 1D [14:21:49]RAPDU: 90 00 [14:21:49]wFMCommunicate OK [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 0D 03 02 [14:21:49]Write to MH i2c: E2 08 00 86 24 80 0D 03 02 00 00 00 00 25 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 0B 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 0B 00 86 24 00 1A BD 4E 46 24 49 A4 6B 90 00 0D [14:21:49]RAPDU: 1A BD 4E 46 24 49 A4 6B 90 00 [14:21:49]wFMCommunicate OK [14:21:49]SAM_PROTO_SignData done [14:21:49]FM_MakeSignedData done [14:21:49]CreateOFDProtocolMessage [14:21:49]wFMCommunicate request_size=4 [14:21:49]MH_SAM_APDU [14:21:49]CAPDU: 80 11 00 00 [14:21:49]Write to MH i2c: E2 08 00 87 24 80 11 00 00 00 00 00 00 25 [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:49]Read from MH i2c: E2 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 17 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: E2 17 00 87 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 78 [14:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:21:49]wFMCommunicate OK [14:21:49]CreateOFDProtocolMessage done [14:21:49]OFDSenderStorePacket 103938 [14:21:49]StoreOFDPacket docnum=103938 [14:21:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 29 4C 07 01 80 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FE 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 96 01 00 35 04 06 00 3F 50 E4 B5 F1 E1 1A BD 4E 46 24 49 A4 6B [14:21:49]CheckFolder [14:21:49]dirname=/storage/ofd_packets [14:21:49]CheckFolder done [14:21:49]ProducePacketName [14:21:49]name=ofd_packets/00103938 [14:21:49]NVStorageSaveData ofd_packets/00103938 [14:21:49]File name is /storage/ofd_packets/00103938 [14:21:49]Write 301 bytes [14:21:49]NVStorageSaveData done [14:21:49]OFDSenderStorePacket done [14:21:49]KKMCreateOFDPacket done [14:21:49]NVStorageSaveData kkm_last_timestamp [14:21:49]File name is /storage/kkm_last_timestamp [14:21:49]Write 4 bytes [14:21:49]NVStorageSaveData done [14:21:49]ExternCall_PrintAddStr [14:21:49]wPrintStart [14:21:49]Write to MH i2c: 01 00 00 88 24 AC [14:21:49]Write i2c OK [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: 01 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: 01 07 00 [14:21:49]MH_I2C_Read... [14:21:49]Read from MH i2c: 01 07 00 88 24 00 00 00 00 00 FF 0F C1 [14:21:49]RasterBufferAndPrint [14:21:49]line Счет N : (1)673291 [14:21:49]line ИНН: 02508201610067 [14:21:49]line Контрольно-Кассовый Чек [14:21:49]line ПРОДАЖА [14:21:49]line ТРК (МРК, ГНК) : 42 [14:21:49]line Товар: 2710124130 [14:21:49]line Аи-92-К-5 [14:21:49]line 7.540 * 66.40 [14:21:49]line = 500.66 [14:21:49]line НДС 12% НСП 1% [14:21:49]line > о реализуемом товаре [14:21:49]line ОКРУГЛЕНИЕ: -0.66 [14:21:49]line ИТОГО: 500.00 [14:21:49]line Внесено: 500.00 [14:21:49]line СДАЧА: 0.00 [14:21:49]line НСП 1% : 4.43 [14:21:49]line НДС 12% : 53.17 [14:21:49]line Наличными: 500.00 [14:21:49]line Безнал.: 0.00 [14:21:49]line Место: АЗС № 120 "Партнер Нефть" [14:21:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:21:49]line СНО: Общий режим [14:21:49]line Чек 123 20.06.2024 14:21 [14:21:49]line Смена: 354 ФФД: 1.0 [14:21:49]line ЗНМ: 0300000164 [14:21:49]line РНМ: 0000000000092785 [14:21:49]line Версия ККМ: 001 [14:21:49]line ФМ: 0000000000875093 [14:21:49]line ФД: 103938 [14:21:49]line ФПД: 69616667062753 [14:21:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142150&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103938&fm=69616667062753&tin=02508201610067®Number=0000000000092785&sum=50000 [14:21:49]written 0, free lines is 4095 [14:21:49]OFD Sender: Processing packet 103938 [packets to send 17, broken 16] [14:21:49]ProducePacketName [14:21:49]name=ofd_packets/00103938 [14:21:49]OFD Sender: To server: pG, [14:21:49]CommunicateWithHost lk.salyk.kg:30040 [14:21:49]ConnectInit lk.salyk.kg [14:21:49]Connected sock=10 [14:21:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 29 4C 07 01 80 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FE 3A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 96 01 00 35 04 06 00 3F 50 E4 B5 F1 E1 1A BD 4E 46 24 49 A4 6B [14:21:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 14 71 47 00 0B 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 02 96 01 00 F4 03 04 00 83 E1 73 66 B6 04 01 00 00 4A 46 54 69 D6 CE DF 07 [14:21:50]CommunicateWithHost err = 0 [14:21:50]CheckOFDResponse [14:21:50]1017 (14) - 77093643461234 [14:21:50]1041 (16) - 0000000000875093 [14:21:50]Write to MH i2c: 01 00 00 B3 24 D7 [14:21:50]1040 (4) - 103938 [14:21:50]1012 (4) - 20.06.2024 08:00 [14:21:50]1206 (1) - 0 [14:21:50]OFD Sender: Remove packet 103938 [14:21:50]ProducePacketName [14:21:50]name=ofd_packets/00103938 [14:21:50]NVStorageDeleteData [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 07 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: 01 07 00 B3 24 00 00 00 00 00 EA 0C D4 [14:21:50]RasterBufferAndPrint [14:21:50]line [14:21:50]line [14:21:50]line [14:21:50]line [14:21:50]line [14:21:50]written 0, free lines is 3327 [14:21:50]MH_Cut [14:21:50]Write to MH i2c: D1 01 00 BA 24 01 B0 [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: D1 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: D1 01 00 [14:21:50]MH_I2C_Read... [14:21:50]Read from MH i2c: D1 01 00 BA 24 00 AF [14:21:50]Write to MH i2c: 01 00 00 BB 24 DF [14:21:50]Write i2c OK [14:21:50]MH_I2C_Read... [14:21:50]OFD Sender: No OFD packet to send [14:21:50]*** Cut start [14:21:50]*** Partial cut [14:21:50]*** CUTSNS_PIN = 1 [14:21:51]*** CUTSNS_PIN = 0 [14:21:51]*** Brake cut motor [14:21:51]Read from MH i2c: 01 [14:21:51]MH_I2C_Read... [14:21:51]*** Stop cut motor [14:21:51]*** Cut end [14:21:51]Read from MH i2c: 01 07 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: 01 07 00 BB 24 00 00 00 00 00 FF 0F F4 [14:21:51]process_action close_receipt done [14:21:51]requested_data is exist [14:21:51]produce_requested_data [14:21:51]requested_item fm.sn is exist - process it [14:21:51]wFMCommunicate request_size=4 [14:21:51]MH_SAM_APDU [14:21:51]CAPDU: 80 11 00 00 [14:21:51]Write to MH i2c: E2 08 00 BC 24 80 11 00 00 00 00 00 00 5A [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:51]Read from MH i2c: E2 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 17 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 17 00 BC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [14:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:21:51]wFMCommunicate OK [14:21:51]requested_item fd.num is exist - process it [14:21:51]SAM_PROTO_GetFieldsCounters [14:21:51]wFMCommunicate request_size=4 [14:21:51]MH_SAM_APDU [14:21:51]CAPDU: 80 13 00 00 [14:21:51]Write to MH i2c: E2 08 00 BD 24 80 13 00 00 00 00 00 00 5D [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:51]Read from MH i2c: E2 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 62 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 62 00 BD 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 02 96 01 00 0E 04 04 00 62 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 F1 [14:21:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 02 96 01 00 0E 04 04 00 62 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:21:51]wFMCommunicate OK [14:21:51]SAM_PROTO_GetFieldsCounters done [14:21:51]requested_item shift.num is exist - process it [14:21:51]requested_item shift.opened is exist - process it [14:21:51]req_shift_opened [14:21:51]FM_GetShiftState [14:21:51]SAM_PROTO_GetShiftState [14:21:51]wFMCommunicate request_size=4 [14:21:51]MH_SAM_APDU [14:21:51]CAPDU: 80 13 01 00 [14:21:51]Write to MH i2c: E2 08 00 BE 24 80 13 01 00 00 00 00 00 5F [14:21:51]Write i2c OK [14:21:51]MH_I2C_Read... [14:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:51]Read from MH i2c: E2 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 0E 00 [14:21:51]MH_I2C_Read... [14:21:51]Read from MH i2c: E2 0E 00 BE 24 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AE [14:21:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:21:51]wFMCommunicate OK [14:21:51]SAM_PROTO_GetShiftState done [14:21:51]FM_GetShiftState done [14:21:51]req_shift_opened done [14:21:51]requested_item shift.open_date is exist - process it [14:21:51]req_shift_open_date [14:21:51]req_shift_open_date done [14:21:51]produce_requested_data done [14:21:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103938,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:21:51]process_action_free close_receipt [14:21:51]json_value_free [14:21:51]json_value_free done [14:21:51]process_json_proto returns [14:21:51]Send response to host [14:21:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103938,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:21:51]free response buf [14:21:51]execute_script done [14:21:51]execute_script returns [14:21:51]free content buf [14:21:51]Sock 7.Close socket [14:21:51]Sock 7.Thread stoped [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:53]accept exits with 9 [14:25:53]New connection [14:25:53]New thread 3067207012 created [14:25:53]Thread 3067063652 joined [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.38.133:8080 [14:25:53]Content-Length: 682 [14:25:53]Content-Type: application/json [14:25:53] [14:25:53]POST finish read [14:25:53]Found Content-Length = 682 [14:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 29.370, "sum" : 1950.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1950.00, "total" : 1950.00, "payments": [ { "type": 0, "sum" : 1950.00 } ] } , "requested_data" : [ "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" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 29.370, "sum" : 1950.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1950.00, "total" : 1950.00, "payments": [ { "type": 0, "sum" : 1950.00 } ] } , "requested_data" : [ "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=close_receipt [14:25:53]process_action close_receipt [14:25:53]cmd_close_receipt [14:25:53]MH_GetDate [14:25:53]Write to MH i2c: F0 00 00 BF 24 D2 [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: F0 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: F0 09 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: F0 09 00 BF 24 00 F3 3B 74 66 BD 8F 7C 64 0F [14:25:53]GetLastDocTimeStamp 1718893310 [14:25:53]current date 1718893555 [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 C0 24 80 13 01 00 00 00 00 00 61 [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 C0 24 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B0 [14:25:53]RAPDU: 09 00 01 F4 76 73 66 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]opened in 1718843124 [14:25:53]opened+sec_in_day 1718929524 [14:25:53]quantity*price = 195016 [14:25:53]sum+1 = 195018 [14:25:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1950.00 Внесено: 1950.00 СДАЧА: 0.00 НСП 1% : 17.26 НДС 12% : 207.10 Наличными: 1950.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 124 20.06.2024 14:25 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103939 ФПД: 20728171810969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142555&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103939&fm=20728171810969&tin=02508201610067®Number=0000000000092785&sum=195000 [14:25:54]StoreToDocumentArchive [14:25:54]shift 354 fd 103939 [14:25:54]save to /storage/0354/doc_00103939 [14:25:54]save last doc name /storage/0354/doc_00103939 to /storage/kkm_last_doc_name [14:25:54]save OK [14:25:54]Clear old archive folders... [14:25:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:54]tlvbuf is B6DE62D0 [14:25:54]SAM_PROTO_ClearQueue [14:25:54]wFMCommunicate request_size=4 [14:25:54]MH_SAM_APDU [14:25:54]CAPDU: 80 09 00 00 [14:25:54]Write to MH i2c: E2 08 00 CD 24 80 09 00 00 00 00 00 00 63 [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:54]Read from MH i2c: E2 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 03 00 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 03 00 CD 24 00 90 00 65 [14:25:54]RAPDU: 90 00 [14:25:54]wFMCommunicate OK [14:25:54]SAM_PROTO_ClearQueue done [14:25:54]KKMCreateOFDPacket [14:25:54]OFDProtocolAddRootSTLVToBuf [14:25:54]FM_MakeSignedData [14:25:54]FM_MakeSignedData [14:25:54]SAM_PROTO_SignData [14:25:54]wFMCommunicate request_size=4 [14:25:54]MH_SAM_APDU [14:25:54]CAPDU: 80 0D 01 02 [14:25:54]Write to MH i2c: E2 08 00 CE 24 80 0D 01 02 00 00 00 00 6B [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:54]Read from MH i2c: E2 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 03 00 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 03 00 CE 24 00 90 00 66 [14:25:54]RAPDU: 90 00 [14:25:54]wFMCommunicate OK [14:25:54]wFMCommunicate request_size=255 [14:25:54]MH_SAM_APDU [14:25: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 BA 72 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F3 3B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 96 01 00 35 04 06 00 12 [14:25:54]Write to MH i2c: E2 02 01 CF 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 72 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F3 3B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 96 01 00 35 04 06 00 12 00 00 67 [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:55]Read from MH i2c: E2 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 03 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 03 00 CF 24 00 90 00 67 [14:25:55]RAPDU: 90 00 [14:25:55]wFMCommunicate OK [14:25:55]wFMCommunicate request_size=10 [14:25:55]MH_SAM_APDU [14:25:55]CAPDU: 80 0D 02 02 05 DA 27 51 50 99 [14:25:55]Write to MH i2c: E2 0D 00 D0 24 80 0D 02 02 05 00 DA 27 51 50 99 00 00 B3 [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:55]Read from MH i2c: E2 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 03 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 03 00 D0 24 00 90 00 68 [14:25:55]RAPDU: 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 0D 03 02 [14:25:55]Write to MH i2c: E2 08 00 D1 24 80 0D 03 02 00 00 00 00 70 [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:55]Read from MH i2c: E2 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 0B 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 0B 00 D1 24 00 DE 20 DA 30 0D 51 EB 53 90 00 15 [14:25:55]RAPDU: DE 20 DA 30 0D 51 EB 53 90 00 [14:25:55]wFMCommunicate OK [14:25:55]SAM_PROTO_SignData done [14:25:55]FM_MakeSignedData done [14:25:55]CreateOFDProtocolMessage [14:25:55]wFMCommunicate request_size=4 [14:25:55]MH_SAM_APDU [14:25:55]CAPDU: 80 11 00 00 [14:25:55]Write to MH i2c: E2 08 00 D2 24 80 11 00 00 00 00 00 00 70 [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:55]Read from MH i2c: E2 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 17 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 17 00 D2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C3 [14:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:25:55]wFMCommunicate OK [14:25:55]CreateOFDProtocolMessage done [14:25:55]OFDSenderStorePacket 103939 [14:25:55]StoreOFDPacket docnum=103939 [14:25:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 07 29 07 01 A6 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 72 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F3 3B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 96 01 00 35 04 06 00 12 DA 27 51 50 99 DE 20 DA 30 0D 51 EB 53 [14:25:55]CheckFolder [14:25:55]dirname=/storage/ofd_packets [14:25:55]CheckFolder done [14:25:55]ProducePacketName [14:25:55]name=ofd_packets/00103939 [14:25:55]NVStorageSaveData ofd_packets/00103939 [14:25:55]File name is /storage/ofd_packets/00103939 [14:25:55]Write 301 bytes [14:25:55]NVStorageSaveData done [14:25:55]OFDSenderStorePacket done [14:25:55]KKMCreateOFDPacket done [14:25:55]NVStorageSaveData kkm_last_timestamp [14:25:55]File name is /storage/kkm_last_timestamp [14:25:55]Write 4 bytes [14:25:55]NVStorageSaveData done [14:25:55]ExternCall_PrintAddStr [14:25:55]wPrintStart [14:25:55]Write to MH i2c: 01 00 00 D3 24 F7 [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: 01 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: 01 07 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: 01 07 00 D3 24 00 00 00 00 00 FF 0F 0C [14:25:55]RasterBufferAndPrint [14:25:55]line Счет N : (1)673292 [14:25:55]line ИНН: 02508201610067 [14:25:55]line Контрольно-Кассовый Чек [14:25:55]line ПРОДАЖА [14:25:55]line ТРК (МРК, ГНК) : 42 [14:25:55]line Товар: 2710124130 [14:25:55]line Аи-92-К-5 [14:25:55]line 29.370 * 66.40 [14:25:55]line = 1950.17 [14:25:55]line НДС 12% НСП 1% [14:25:55]line > о реализуемом товаре [14:25:55]line ОКРУГЛЕНИЕ: -0.17 [14:25:55]line ИТОГО: 1950.00 [14:25:55]line Внесено: 1950.00 [14:25:55]line СДАЧА: 0.00 [14:25:55]line НСП 1% : 17.26 [14:25:55]line НДС 12% : 207.10 [14:25:55]line Наличными: 1950.00 [14:25:55]line Безнал.: 0.00 [14:25:55]line Место: АЗС № 120 "Партнер Нефть" [14:25:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:25:55]line СНО: Общий режим [14:25:55]line Чек 124 20.06.2024 14:25 [14:25:55]line Смена: 354 ФФД: 1.0 [14:25:55]line ЗНМ: 0300000164 [14:25:55]line РНМ: 0000000000092785 [14:25:55]line Версия ККМ: 001 [14:25:55]line ФМ: 0000000000875093 [14:25:55]line ФД: 103939 [14:25:55]line ФПД: 20728171810969 [14:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142555&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103939&fm=20728171810969&tin=02508201610067®Number=0000000000092785&sum=195000 [14:25:55]OFD Sender: Processing packet 103939 [packets to send 17, broken 16] [14:25:55]ProducePacketName [14:25:55]name=ofd_packets/00103939 [14:25:55]OFD Sender: To server: pG, [14:25:55]CommunicateWithHost lk.salyk.kg:30040 [14:25:55]ConnectInit lk.salyk.kg [14:25:55]written 0, free lines is 4095 [14:25:55]Connected sock=10 [14:25:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 07 29 07 01 A6 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 72 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 F3 3B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 96 01 00 35 04 06 00 12 DA 27 51 50 99 DE 20 DA 30 0D 51 EB 53 [14:25:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6E A4 47 00 56 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 03 96 01 00 F4 03 04 00 79 E2 73 66 B6 04 01 00 00 AE 5A DB 31 1B 46 04 62 [14:25:56]CommunicateWithHost err = 0 [14:25:56]CheckOFDResponse [14:25:56]1017 (14) - 77093643461234 [14:25:56]1041 (16) - 0000000000875093 [14:25:56]1040 (4) - 103939 [14:25:56]1012 (4) - 20.06.2024 08:04 [14:25:56]1206 (1) - 0 [14:25:56]OFD Sender: Remove packet 103939 [14:25:56]ProducePacketName [14:25:56]name=ofd_packets/00103939 [14:25:56]NVStorageDeleteData [14:25:56]Write to MH i2c: 01 00 00 FE 24 22 [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: 01 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: 01 07 00 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: 01 07 00 FE 24 00 00 00 00 00 E5 0C 1A [14:25:56]RasterBufferAndPrint [14:25:56]line [14:25:56]line [14:25:56]line [14:25:56]line [14:25:56]line [14:25:56]written 0, free lines is 3307 [14:25:56]MH_Cut [14:25:56]Write to MH i2c: D1 01 00 05 25 01 FC [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: D1 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: D1 01 00 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: D1 01 00 05 25 00 FB [14:25:56]Write to MH i2c: 01 00 00 06 25 2B [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:56]OFD Sender: No OFD packet to send [14:25:56]*** Cut start [14:25:56]*** Partial cut [14:25:56]*** CUTSNS_PIN = 1 [14:25:56]*** CUTSNS_PIN = 0 [14:25:57]*** Brake cut motor [14:25:57]Read from MH i2c: 01 [14:25:57]MH_I2C_Read... [14:25:57]*** Stop cut motor [14:25:57]*** Cut end [14:25:57]Read from MH i2c: 01 07 00 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: 01 07 00 06 25 00 00 00 00 00 FF 0F 40 [14:25:57]process_action close_receipt done [14:25:57]requested_data is exist [14:25:57]produce_requested_data [14:25:57]requested_item fm.sn is exist - process it [14:25:57]wFMCommunicate request_size=4 [14:25:57]MH_SAM_APDU [14:25:57]CAPDU: 80 11 00 00 [14:25:57]Write to MH i2c: E2 08 00 07 25 80 11 00 00 00 00 00 00 A6 [14:25:57]Write i2c OK [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: E2 [14:25:57]MH_I2C_Read... [14:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:57]Read from MH i2c: E2 17 00 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: E2 17 00 07 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F9 [14:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:25:57]wFMCommunicate OK [14:25:57]requested_item fd.num is exist - process it [14:25:57]SAM_PROTO_GetFieldsCounters [14:25:57]wFMCommunicate request_size=4 [14:25:57]MH_SAM_APDU [14:25:57]CAPDU: 80 13 00 00 [14:25:57]Write to MH i2c: E2 08 00 08 25 80 13 00 00 00 00 00 00 A9 [14:25:57]Write i2c OK [14:25:57]MH_I2C_Read... [14:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:57]Read from MH i2c: E2 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: E2 62 00 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: E2 62 00 08 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 03 96 01 00 0E 04 04 00 62 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 41 [14:25:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 03 96 01 00 0E 04 04 00 62 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:25:57]wFMCommunicate OK [14:25:57]SAM_PROTO_GetFieldsCounters done [14:25:57]requested_item shift.num is exist - process it [14:25:57]requested_item shift.opened is exist - process it [14:25:57]req_shift_opened [14:25:57]FM_GetShiftState [14:25:57]SAM_PROTO_GetShiftState [14:25:57]wFMCommunicate request_size=4 [14:25:57]MH_SAM_APDU [14:25:57]CAPDU: 80 13 01 00 [14:25:57]Write to MH i2c: E2 08 00 09 25 80 13 01 00 00 00 00 00 AB [14:25:57]Write i2c OK [14:25:57]MH_I2C_Read... [14:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:57]Read from MH i2c: E2 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: E2 0E 00 [14:25:57]MH_I2C_Read... [14:25:57]Read from MH i2c: E2 0E 00 09 25 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FA [14:25:57]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:25:57]wFMCommunicate OK [14:25:57]SAM_PROTO_GetShiftState done [14:25:57]FM_GetShiftState done [14:25:57]req_shift_opened done [14:25:57]requested_item shift.open_date is exist - process it [14:25:57]req_shift_open_date [14:25:57]req_shift_open_date done [14:25:57]produce_requested_data done [14:25:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103939,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:25:57]process_action_free close_receipt [14:25:57]json_value_free [14:25:57]json_value_free done [14:25:57]process_json_proto returns [14:25:57]Send response to host [14:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103939,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:25:57]free response buf [14:25:57]execute_script done [14:25:57]execute_script returns [14:25:57]free content buf [14:25:57]Sock 9.Close socket [14:25:57]Sock 9.Thread stoped [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:43]accept exits with 7 [14:26:43]New connection [14:26:43]New thread 3067063652 created [14:26:43]Thread 3067207012 joined [14:26:43]Waiting for new connection... [14:26:43] Sock 7.Parse request [14:26:43]Sock 7.Check first char [14:26:43]Sock 7.First char is OK [14:26:43]request: POST /json_proto HTTP/1.0 [14:26:43]Method: POST [14:26:43]URL: /json_proto [14:26:43]Method is POST - this is cgi request [14:26:43]url: /json_proto [14:26:43]query_string will be loaded in cgi processing [14:26:43]execute_cgi json_proto POST (null) [14:26:43]execute_cgi path=json_proto method=POST [14:26:43]POST find Content-Length [14:26:43]Host: 172.17.38.133:8080 [14:26:43]Content-Length: 678 [14:26:43]Content-Type: application/json [14:26:43] [14:26:43]POST finish read [14:26:43]Found Content-Length = 678 [14:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:43]execute_script... [14:26: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)673293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:43]POST & json_proto [14:26:43]process_json_proto [14:26:43]json parsed OK: [14:26:43]protocol is kg_v1.0 [14:26:43]action value=close_receipt [14:26:43]process_action close_receipt [14:26:43]cmd_close_receipt [14:26:43]MH_GetDate [14:26:43]Write to MH i2c: F0 00 00 0A 25 1E [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 09 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: F0 09 00 0A 25 00 25 3C 74 66 BD 8F 7C 64 8E [14:26:43]GetLastDocTimeStamp 1718893555 [14:26:43]current date 1718893605 [14:26:43]FM_GetShiftState [14:26:43]SAM_PROTO_GetShiftState [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 13 01 00 [14:26:43]Write to MH i2c: E2 08 00 0B 25 80 13 01 00 00 00 00 00 AD [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:43]Read from MH i2c: E2 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0E 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: E2 0E 00 0B 25 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FC [14:26:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:26:43]wFMCommunicate OK [14:26:43]SAM_PROTO_GetShiftState done [14:26:43]FM_GetShiftState done [14:26:43]opened in 1718843124 [14:26:43]opened+sec_in_day 1718929524 [14:26:43]quantity*price = 80012 [14:26:43]sum+1 = 80013 [14:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 125 20.06.2024 14:26 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103940 ФПД: 220282056491603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142645&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103940&fm=220282056491603&tin=02508201610067®Number=0000000000092785&sum=80000 [14:26:44]StoreToDocumentArchive [14:26:44]shift 354 fd 103940 [14:26:44]save to /storage/0354/doc_00103940 [14:26:44]save last doc name /storage/0354/doc_00103940 to /storage/kkm_last_doc_name [14:26:44]save OK [14:26:44]Clear old archive folders... [14:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:44]tlvbuf is 00846C50 [14:26:44]SAM_PROTO_ClearQueue [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 09 00 00 [14:26:44]Write to MH i2c: E2 08 00 18 25 80 09 00 00 00 00 00 00 AF [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 18 25 00 90 00 B1 [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_ClearQueue done [14:26:44]KKMCreateOFDPacket [14:26:44]OFDProtocolAddRootSTLVToBuf [14:26:44]FM_MakeSignedData [14:26:44]FM_MakeSignedData [14:26:44]SAM_PROTO_SignData [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 01 02 [14:26:44]Write to MH i2c: E2 08 00 19 25 80 0D 01 02 00 00 00 00 B7 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 19 25 00 90 00 B2 [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]wFMCommunicate request_size=255 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 25 3C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 96 01 00 35 04 06 00 C8 [14:26:44]Write to MH i2c: E2 02 01 1A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 25 3C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 96 01 00 35 04 06 00 C8 00 00 DE [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 1A 25 00 90 00 B3 [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]wFMCommunicate request_size=10 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 02 02 05 58 69 BA 42 53 [14:26:44]Write to MH i2c: E2 0D 00 1B 25 80 0D 02 02 05 00 58 69 BA 42 53 00 00 D4 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 03 00 1B 25 00 90 00 B4 [14:26:45]RAPDU: 90 00 [14:26:45]wFMCommunicate OK [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 0D 03 02 [14:26:45]Write to MH i2c: E2 08 00 1C 25 80 0D 03 02 00 00 00 00 BC [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 0B 00 1C 25 00 2B AA B4 AB BD AA 95 80 90 00 6D [14:26:45]RAPDU: 2B AA B4 AB BD AA 95 80 90 00 [14:26:45]wFMCommunicate OK [14:26:45]SAM_PROTO_SignData done [14:26:45]FM_MakeSignedData done [14:26:45]CreateOFDProtocolMessage [14:26:45]wFMCommunicate request_size=4 [14:26:45]MH_SAM_APDU [14:26:45]CAPDU: 80 11 00 00 [14:26:45]Write to MH i2c: E2 08 00 1D 25 80 11 00 00 00 00 00 00 BC [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:45]Read from MH i2c: E2 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: E2 17 00 1D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0F [14:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:26:45]wFMCommunicate OK [14:26:45]CreateOFDProtocolMessage done [14:26:45]OFDSenderStorePacket 103940 [14:26:45]StoreOFDPacket docnum=103940 [14:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 98 49 07 01 51 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 25 3C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 96 01 00 35 04 06 00 C8 58 69 BA 42 53 2B AA B4 AB BD AA 95 80 [14:26:45]CheckFolder [14:26:45]dirname=/storage/ofd_packets [14:26:45]CheckFolder done [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00103940 [14:26:45]NVStorageSaveData ofd_packets/00103940 [14:26:45]File name is /storage/ofd_packets/00103940 [14:26:45]Write 301 bytes [14:26:45]NVStorageSaveData done [14:26:45]OFDSenderStorePacket done [14:26:45]KKMCreateOFDPacket done [14:26:45]NVStorageSaveData kkm_last_timestamp [14:26:45]File name is /storage/kkm_last_timestamp [14:26:45]Write 4 bytes [14:26:45]NVStorageSaveData done [14:26:45]ExternCall_PrintAddStr [14:26:45]wPrintStart [14:26:45]Write to MH i2c: 01 00 00 1E 25 43 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 1E 25 00 00 00 00 00 FF 0F 58 [14:26:45]RasterBufferAndPrint [14:26:45]line Счет N : (1)673293 [14:26:45]line ИНН: 02508201610067 [14:26:45]line Контрольно-Кассовый Чек [14:26:45]line ПРОДАЖА [14:26:45]line ТРК (МРК, ГНК) : 32 [14:26:45]line Товар: 2710124130 [14:26:45]line Аи-92-К-5 [14:26:45]line 12.050 * 66.40 [14:26:45]line = 800.12 [14:26:45]line НДС 12% НСП 1% [14:26:45]line > о реализуемом товаре [14:26:45]line ОКРУГЛЕНИЕ: -0.12 [14:26:45]line ИТОГО: 800.00 [14:26:45]line Внесено: 800.00 [14:26:45]line СДАЧА: 0.00 [14:26:45]line НСП 1% : 7.08 [14:26:45]line НДС 12% : 84.97 [14:26:45]line Наличными: 800.00 [14:26:45]line Безнал.: 0.00 [14:26:45]line Место: АЗС № 120 "Партнер Нефть" [14:26:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:26:45]line СНО: Общий режим [14:26:45]line Чек 125 20.06.2024 14:26 [14:26:45]line Смена: 354 ФФД: 1.0 [14:26:45]line ЗНМ: 0300000164 [14:26:45]line РНМ: 0000000000092785 [14:26:45]line Версия ККМ: 001 [14:26:45]line ФМ: 0000000000875093 [14:26:45]line ФД: 103940 [14:26:45]line ФПД: 220282056491603 [14:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T142645&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103940&fm=220282056491603&tin=02508201610067®Number=0000000000092785&sum=80000 [14:26:45]OFD Sender: Processing packet 103940 [packets to send 17, broken 16] [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00103940 [14:26:45]OFD Sender: To server: pG, [14:26:45]CommunicateWithHost lk.salyk.kg:30040 [14:26:45]ConnectInit lk.salyk.kg [14:26:45]written 0, free lines is 4095 [14:26:45]Connected sock=10 [14:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 98 49 07 01 51 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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 25 3C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 96 01 00 35 04 06 00 C8 58 69 BA 42 53 2B AA B4 AB BD AA 95 80 [14:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9F F3 47 00 59 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 04 96 01 00 F4 03 04 00 AB E2 73 66 B6 04 01 00 00 B6 DC BF 42 EE 05 79 AA [14:26:45]CommunicateWithHost err = 0 [14:26:45]CheckOFDResponse [14:26:45]1017 (14) - 77093643461234 [14:26:45]1041 (16) - 0000000000875093 [14:26:45]1040 (4) - 103940 [14:26:45]1012 (4) - 20.06.2024 08:04 [14:26:45]1206 (1) - 0 [14:26:45]OFD Sender: Remove packet 103940 [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00103940 [14:26:45]NVStorageDeleteData [14:26:45]Write to MH i2c: 01 00 00 49 25 6E [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 EF 0C 70 [14:26:45]RasterBufferAndPrint [14:26:45]line [14:26:45]line [14:26:45]line [14:26:45]line [14:26:45]line [14:26:45]written 0, free lines is 3317 [14:26:45]MH_Cut [14:26:45]Write to MH i2c: D1 01 00 50 25 01 47 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: D1 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: D1 01 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: D1 01 00 50 25 00 46 [14:26:45]Write to MH i2c: 01 00 00 51 25 76 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:46]OFD Sender: No OFD packet to send [14:26:46]*** Cut start [14:26:46]*** Partial cut [14:26:46]*** CUTSNS_PIN = 1 [14:26:46]*** CUTSNS_PIN = 0 [14:26:46]*** Brake cut motor [14:26:47]Read from MH i2c: 01 [14:26:47]MH_I2C_Read... [14:26:47]*** Stop cut motor [14:26:47]*** Cut end [14:26:47]Read from MH i2c: 01 07 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 07 00 51 25 00 00 00 00 00 FF 0F 8B [14:26:47]process_action close_receipt done [14:26:47]requested_data is exist [14:26:47]produce_requested_data [14:26:47]requested_item fm.sn is exist - process it [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 11 00 00 [14:26:47]Write to MH i2c: E2 08 00 52 25 80 11 00 00 00 00 00 00 F1 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 17 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 17 00 52 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 44 [14:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:26:47]wFMCommunicate OK [14:26:47]requested_item fd.num is exist - process it [14:26:47]SAM_PROTO_GetFieldsCounters [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 00 00 [14:26:47]Write to MH i2c: E2 08 00 53 25 80 13 00 00 00 00 00 00 F4 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 62 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 62 00 53 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 04 96 01 00 0E 04 04 00 62 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 90 [14:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 04 96 01 00 0E 04 04 00 62 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:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetFieldsCounters done [14:26:47]requested_item shift.num is exist - process it [14:26:47]requested_item shift.opened is exist - process it [14:26:47]req_shift_opened [14:26:47]FM_GetShiftState [14:26:47]SAM_PROTO_GetShiftState [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 01 00 [14:26:47]Write to MH i2c: E2 08 00 54 25 80 13 01 00 00 00 00 00 F6 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 54 25 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 45 [14:26:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetShiftState done [14:26:47]FM_GetShiftState done [14:26:47]req_shift_opened done [14:26:47]requested_item shift.open_date is exist - process it [14:26:47]req_shift_open_date [14:26:47]req_shift_open_date done [14:26:47]produce_requested_data done [14:26:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103940,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:26:47]process_action_free close_receipt [14:26:47]json_value_free [14:26:47]json_value_free done [14:26:47]process_json_proto returns [14:26:47]Send response to host [14:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103940,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:26:47]free response buf [14:26:47]execute_script done [14:26:47]execute_script returns [14:26:47]free content buf [14:26:47]Sock 7.Close socket [14:26:47]Sock 7.Thread stoped [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:45]accept exits with 9 [14:31:45]New connection [14:31:45]New thread 3067207012 created [14:31:45]Thread 3067063652 joined [14:31:45]Waiting for new connection... [14:31:45] Sock 9.Parse request [14:31:45]Sock 9.Check first char [14:31:45]Sock 9.First char is OK [14:31:45]request: POST /json_proto HTTP/1.0 [14:31:45]Method: POST [14:31:45]URL: /json_proto [14:31:45]Method is POST - this is cgi request [14:31:45]url: /json_proto [14:31:45]query_string will be loaded in cgi processing [14:31:45]execute_cgi json_proto POST (null) [14:31:45]execute_cgi path=json_proto method=POST [14:31:45]POST find Content-Length [14:31:45]Host: 172.17.38.133:8080 [14:31:45]Content-Length: 682 [14:31:45]Content-Type: application/json [14:31:45] [14:31:45]POST finish read [14:31:45]Found Content-Length = 682 [14:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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:31:45]execute_script... [14:31: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)673294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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:31:45]POST & json_proto [14:31:45]process_json_proto [14:31:45]json parsed OK: [14:31:45]protocol is kg_v1.0 [14:31:45]action value=close_receipt [14:31:45]process_action close_receipt [14:31:45]cmd_close_receipt [14:31:45]MH_GetDate [14:31:45]Write to MH i2c: F0 00 00 55 25 69 [14:31:45]Write i2c OK [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: F0 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: F0 09 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: F0 09 00 55 25 00 53 3D 74 66 BD 8F 7C 64 08 [14:31:45]GetLastDocTimeStamp 1718893605 [14:31:45]current date 1718893907 [14:31:45]FM_GetShiftState [14:31:45]SAM_PROTO_GetShiftState [14:31:45]wFMCommunicate request_size=4 [14:31:45]MH_SAM_APDU [14:31:45]CAPDU: 80 13 01 00 [14:31:45]Write to MH i2c: E2 08 00 56 25 80 13 01 00 00 00 00 00 F8 [14:31:45]Write i2c OK [14:31:45]MH_I2C_Read... [14:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:45]Read from MH i2c: E2 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 0E 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: E2 0E 00 56 25 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 47 [14:31:45]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:31:45]wFMCommunicate OK [14:31:45]SAM_PROTO_GetShiftState done [14:31:45]FM_GetShiftState done [14:31:45]opened in 1718843124 [14:31:45]opened+sec_in_day 1718929524 [14:31:45]quantity*price = 70056 [14:31:45]sum+1 = 70058 [14:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 126 20.06.2024 14:31 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103941 ФПД: 145685001123777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143147&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103941&fm=145685001123777&tin=02508201610067®Number=0000000000092785&sum=70000 [14:31:46]StoreToDocumentArchive [14:31:46]shift 354 fd 103941 [14:31:46]save to /storage/0354/doc_00103941 [14:31:46]save last doc name /storage/0354/doc_00103941 to /storage/kkm_last_doc_name [14:31:46]save OK [14:31:46]Clear old archive folders... [14:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:31:46]tlvbuf is B6DE6100 [14:31:46]SAM_PROTO_ClearQueue [14:31:46]wFMCommunicate request_size=4 [14:31:46]MH_SAM_APDU [14:31:46]CAPDU: 80 09 00 00 [14:31:46]Write to MH i2c: E2 08 00 63 25 80 09 00 00 00 00 00 00 FA [14:31:46]Write i2c OK [14:31:46]MH_I2C_Read... [14:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:46]Read from MH i2c: E2 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 03 00 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 03 00 63 25 00 90 00 FC [14:31:46]RAPDU: 90 00 [14:31:46]wFMCommunicate OK [14:31:46]SAM_PROTO_ClearQueue done [14:31:46]KKMCreateOFDPacket [14:31:46]OFDProtocolAddRootSTLVToBuf [14:31:46]FM_MakeSignedData [14:31:46]FM_MakeSignedData [14:31:46]SAM_PROTO_SignData [14:31:46]wFMCommunicate request_size=4 [14:31:46]MH_SAM_APDU [14:31:46]CAPDU: 80 0D 01 02 [14:31:46]Write to MH i2c: E2 08 00 64 25 80 0D 01 02 00 00 00 00 02 [14:31:46]Write i2c OK [14:31:46]MH_I2C_Read... [14:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:46]Read from MH i2c: E2 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 03 00 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 03 00 64 25 00 90 00 FD [14:31:46]RAPDU: 90 00 [14:31:46]wFMCommunicate OK [14:31:46]wFMCommunicate request_size=255 [14:31:46]MH_SAM_APDU [14:31: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 7E 00 00 00 F4 03 04 00 53 3D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 96 01 00 35 04 06 00 [14:31:46]Write to MH i2c: E2 02 01 65 25 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 7E 00 00 00 F4 03 04 00 53 3D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 96 01 00 35 04 06 00 00 00 D3 [14:31:46]Write i2c OK [14:31:46]MH_I2C_Read... [14:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:47]Read from MH i2c: E2 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 03 00 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 03 00 65 25 00 90 00 FE [14:31:47]RAPDU: 90 00 [14:31:47]wFMCommunicate OK [14:31:47]wFMCommunicate request_size=11 [14:31:47]MH_SAM_APDU [14:31:47]CAPDU: 80 0D 02 02 06 84 7F EE BD B7 C1 [14:31:47]Write to MH i2c: E2 0E 00 66 25 80 0D 02 02 06 00 84 7F EE BD B7 C1 00 00 37 [14:31:47]Write i2c OK [14:31:47]MH_I2C_Read... [14:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:47]Read from MH i2c: E2 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 03 00 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 03 00 66 25 00 90 00 FF [14:31:47]RAPDU: 90 00 [14:31:47]wFMCommunicate OK [14:31:47]wFMCommunicate request_size=4 [14:31:47]MH_SAM_APDU [14:31:47]CAPDU: 80 0D 03 02 [14:31:47]Write to MH i2c: E2 08 00 67 25 80 0D 03 02 00 00 00 00 07 [14:31:47]Write i2c OK [14:31:47]MH_I2C_Read... [14:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:47]Read from MH i2c: E2 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 0B 00 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 0B 00 67 25 00 39 1D 7C 9B 05 5A E2 43 90 00 F9 [14:31:47]RAPDU: 39 1D 7C 9B 05 5A E2 43 90 00 [14:31:47]wFMCommunicate OK [14:31:47]SAM_PROTO_SignData done [14:31:47]FM_MakeSignedData done [14:31:47]CreateOFDProtocolMessage [14:31:47]wFMCommunicate request_size=4 [14:31:47]MH_SAM_APDU [14:31:47]CAPDU: 80 11 00 00 [14:31:47]Write to MH i2c: E2 08 00 68 25 80 11 00 00 00 00 00 00 07 [14:31:47]Write i2c OK [14:31:47]MH_I2C_Read... [14:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:47]Read from MH i2c: E2 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 17 00 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: E2 17 00 68 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5A [14:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:31:47]wFMCommunicate OK [14:31:47]CreateOFDProtocolMessage done [14:31:47]OFDSenderStorePacket 103941 [14:31:47]StoreOFDPacket docnum=103941 [14:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 89 5A 08 01 E7 9A 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 7E 00 00 00 F4 03 04 00 53 3D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 96 01 00 35 04 06 00 84 7F EE BD B7 C1 39 1D 7C 9B 05 5A E2 43 [14:31:47]CheckFolder [14:31:47]dirname=/storage/ofd_packets [14:31:47]CheckFolder done [14:31:47]ProducePacketName [14:31:47]name=ofd_packets/00103941 [14:31:47]NVStorageSaveData ofd_packets/00103941 [14:31:47]File name is /storage/ofd_packets/00103941 [14:31:47]Write 302 bytes [14:31:47]NVStorageSaveData done [14:31:47]OFDSenderStorePacket done [14:31:47]KKMCreateOFDPacket done [14:31:47]NVStorageSaveData kkm_last_timestamp [14:31:47]File name is /storage/kkm_last_timestamp [14:31:47]Write 4 bytes [14:31:47]NVStorageSaveData done [14:31:47]ExternCall_PrintAddStr [14:31:47]wPrintStart [14:31:47]Write to MH i2c: 01 00 00 69 25 8E [14:31:47]Write i2c OK [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: 01 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: 01 07 00 [14:31:47]MH_I2C_Read... [14:31:47]Read from MH i2c: 01 07 00 69 25 00 00 00 00 00 FF 0F A3 [14:31:47]RasterBufferAndPrint [14:31:47]line Счет N : (1)673294 [14:31:47]line ИНН: 02508201610067 [14:31:47]line Контрольно-Кассовый Чек [14:31:47]line ПРОДАЖА [14:31:47]line ТРК (МРК, ГНК) : 21 [14:31:47]line Товар: 2710194210 [14:31:47]line ДТ(л)-К-5 [14:31:47]line 9.610 * 72.90 [14:31:47]line = 700.57 [14:31:47]line НДС 12% НСП 1% [14:31:47]line > о реализуемом товаре [14:31:47]line ОКРУГЛЕНИЕ: -0.57 [14:31:47]line ИТОГО: 700.00 [14:31:47]line Внесено: 700.00 [14:31:47]line СДАЧА: 0.00 [14:31:47]line НСП 1% : 6.20 [14:31:47]line НДС 12% : 74.40 [14:31:47]line Наличными: 700.00 [14:31:47]line Безнал.: 0.00 [14:31:47]line Место: АЗС № 120 "Партнер Нефть" [14:31:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:31:47]line СНО: Общий режим [14:31:47]line Чек 126 20.06.2024 14:31 [14:31:47]line Смена: 354 ФФД: 1.0 [14:31:47]line ЗНМ: 0300000164 [14:31:47]line РНМ: 0000000000092785 [14:31:47]line Версия ККМ: 001 [14:31:47]line ФМ: 0000000000875093 [14:31:47]line ФД: 103941 [14:31:47]line ФПД: 145685001123777 [14:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T143147&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103941&fm=145685001123777&tin=02508201610067®Number=0000000000092785&sum=70000 [14:31:47]OFD Sender: Processing packet 103941 [packets to send 17, broken 16] [14:31:47]ProducePacketName [14:31:47]name=ofd_packets/00103941 [14:31:47]OFD Sender: To server: pG, [14:31:47]CommunicateWithHost lk.salyk.kg:30040 [14:31:47]ConnectInit lk.salyk.kg [14:31:47]written 0, free lines is 4095 [14:31:47]Connected sock=10 [14:31:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 89 5A 08 01 E7 9A 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 7E 00 00 00 F4 03 04 00 53 3D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 96 01 00 35 04 06 00 84 7F EE BD B7 C1 39 1D 7C 9B 05 5A E2 43 [14:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F1 2F 47 00 3D 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 05 96 01 00 F4 03 04 00 D9 E3 73 66 B6 04 01 00 00 9E 30 CA 3D 44 37 B5 A4 [14:31:48]CommunicateWithHost err = 0 [14:31:48]CheckOFDResponse [14:31:48]1017 (14) - 77093643461234 [14:31:48]1041 (16) - 0000000000875093 [14:31:48]1040 (4) - 103941 [14:31:48]1012 (4) - 20.06.2024 08:10 [14:31:48]1206 (1) - 0 [14:31:48]OFD Sender: Remove packet 103941 [14:31:48]ProducePacketName [14:31:48]name=ofd_packets/00103941 [14:31:48]NVStorageDeleteData [14:31:48]Write to MH i2c: 01 00 00 94 25 B9 [14:31:48]Write i2c OK [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: 01 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: 01 07 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: 01 07 00 94 25 00 00 00 00 00 E5 0C B1 [14:31:48]RasterBufferAndPrint [14:31:48]line [14:31:48]line [14:31:48]line [14:31:48]line [14:31:48]line [14:31:48]written 0, free lines is 3310 [14:31:48]MH_Cut [14:31:48]Write to MH i2c: D1 01 00 9B 25 01 92 [14:31:48]Write i2c OK [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: D1 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: D1 01 00 [14:31:48]MH_I2C_Read... [14:31:48]Read from MH i2c: D1 01 00 9B 25 00 91 [14:31:48]Write to MH i2c: 01 00 00 9C 25 C1 [14:31:48]Write i2c OK [14:31:48]MH_I2C_Read... [14:31:48]OFD Sender: No OFD packet to send [14:31:48]*** Cut start [14:31:48]*** Partial cut [14:31:48]*** CUTSNS_PIN = 1 [14:31:48]*** CUTSNS_PIN = 0 [14:31:49]*** Brake cut motor [14:31:49]*** Stop cut motor [14:31:49]*** Cut end [14:31:49]Read from MH i2c: 01 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: 01 07 00 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: 01 07 00 9C 25 00 00 00 00 00 FF 0F D6 [14:31:49]process_action close_receipt done [14:31:49]requested_data is exist [14:31:49]produce_requested_data [14:31:49]requested_item fm.sn is exist - process it [14:31:49]wFMCommunicate request_size=4 [14:31:49]MH_SAM_APDU [14:31:49]CAPDU: 80 11 00 00 [14:31:49]Write to MH i2c: E2 08 00 9D 25 80 11 00 00 00 00 00 00 3C [14:31:49]Write i2c OK [14:31:49]MH_I2C_Read... [14:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:49]Read from MH i2c: E2 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: E2 17 00 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: E2 17 00 9D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8F [14:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:31:49]wFMCommunicate OK [14:31:49]requested_item fd.num is exist - process it [14:31:49]SAM_PROTO_GetFieldsCounters [14:31:49]wFMCommunicate request_size=4 [14:31:49]MH_SAM_APDU [14:31:49]CAPDU: 80 13 00 00 [14:31:49]Write to MH i2c: E2 08 00 9E 25 80 13 00 00 00 00 00 00 3F [14:31:49]Write i2c OK [14:31:49]MH_I2C_Read... [14:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:49]Read from MH i2c: E2 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: E2 62 00 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: E2 62 00 9E 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 05 96 01 00 0E 04 04 00 62 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 DF [14:31:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 05 96 01 00 0E 04 04 00 62 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:31:49]wFMCommunicate OK [14:31:49]SAM_PROTO_GetFieldsCounters done [14:31:49]requested_item shift.num is exist - process it [14:31:49]requested_item shift.opened is exist - process it [14:31:49]req_shift_opened [14:31:49]FM_GetShiftState [14:31:49]SAM_PROTO_GetShiftState [14:31:49]wFMCommunicate request_size=4 [14:31:49]MH_SAM_APDU [14:31:49]CAPDU: 80 13 01 00 [14:31:49]Write to MH i2c: E2 08 00 9F 25 80 13 01 00 00 00 00 00 41 [14:31:49]Write i2c OK [14:31:49]MH_I2C_Read... [14:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:49]Read from MH i2c: E2 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: E2 0E 00 [14:31:49]MH_I2C_Read... [14:31:49]Read from MH i2c: E2 0E 00 9F 25 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 90 [14:31:49]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:31:49]wFMCommunicate OK [14:31:49]SAM_PROTO_GetShiftState done [14:31:49]FM_GetShiftState done [14:31:49]req_shift_opened done [14:31:49]requested_item shift.open_date is exist - process it [14:31:49]req_shift_open_date [14:31:49]req_shift_open_date done [14:31:49]produce_requested_data done [14:31:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103941,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:31:49]process_action_free close_receipt [14:31:49]json_value_free [14:31:49]json_value_free done [14:31:49]process_json_proto returns [14:31:49]Send response to host [14:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103941,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:31:49]free response buf [14:31:49]execute_script done [14:31:49]execute_script returns [14:31:49]free content buf [14:31:49]Sock 9.Close socket [14:31:49]Sock 9.Thread stoped [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:41:59]accept exits with 7 [14:41:59]New connection [14:41:59]New thread 3067063652 created [14:41:59]Thread 3067207012 joined [14:41:59]Waiting for new connection... [14:41:59] Sock 7.Parse request [14:41:59]Sock 7.Check first char [14:41:59]Sock 7.First char is OK [14:41:59]request: POST /json_proto HTTP/1.0 [14:41:59]Method: POST [14:41:59]URL: /json_proto [14:41:59]Method is POST - this is cgi request [14:41:59]url: /json_proto [14:41:59]query_string will be loaded in cgi processing [14:41:59]execute_cgi json_proto POST (null) [14:41:59]execute_cgi path=json_proto method=POST [14:41:59]POST find Content-Length [14:41:59]Host: 172.17.38.133:8080 [14:41:59]Content-Length: 682 [14:41:59]Content-Type: application/json [14:41:59] [14:41:59]POST finish read [14:41:59]Found Content-Length = 682 [14:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:41:59]execute_script... [14:41: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)673296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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:41:59]POST & json_proto [14:41:59]process_json_proto [14:41:59]json parsed OK: [14:41:59]protocol is kg_v1.0 [14:41:59]action value=close_receipt [14:41:59]process_action close_receipt [14:41:59]cmd_close_receipt [14:41:59]MH_GetDate [14:41:59]Write to MH i2c: F0 00 00 A0 25 B4 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: F0 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: F0 09 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: F0 09 00 A0 25 00 B9 3F 74 66 BD 8F 7C 64 BB [14:41:59]GetLastDocTimeStamp 1718893907 [14:41:59]current date 1718894521 [14:41:59]FM_GetShiftState [14:41:59]SAM_PROTO_GetShiftState [14:41:59]wFMCommunicate request_size=4 [14:41:59]MH_SAM_APDU [14:41:59]CAPDU: 80 13 01 00 [14:41:59]Write to MH i2c: E2 08 00 A1 25 80 13 01 00 00 00 00 00 43 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:59]Read from MH i2c: E2 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 0E 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 0E 00 A1 25 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 92 [14:41:59]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:41:59]wFMCommunicate OK [14:41:59]SAM_PROTO_GetShiftState done [14:41:59]FM_GetShiftState done [14:41:59]opened in 1718843124 [14:41:59]opened+sec_in_day 1718929524 [14:41:59]quantity*price = 100064 [14:41:59]sum+1 = 100066 [14:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 127 20.06.2024 14:42 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103942 ФПД: 197833093205399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T144201&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103942&fm=197833093205399&tin=02508201610067®Number=0000000000092785&sum=100000 [14:42:00]StoreToDocumentArchive [14:42:00]shift 354 fd 103942 [14:42:00]save to /storage/0354/doc_00103942 [14:42:00]save last doc name /storage/0354/doc_00103942 to /storage/kkm_last_doc_name [14:42:00]save OK [14:42:00]Clear old archive folders... [14:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:00]tlvbuf is B6F93070 [14:42:00]SAM_PROTO_ClearQueue [14:42:00]wFMCommunicate request_size=4 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 09 00 00 [14:42:00]Write to MH i2c: E2 08 00 AE 25 80 09 00 00 00 00 00 00 45 [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 AE 25 00 90 00 47 [14:42:00]RAPDU: 90 00 [14:42:00]wFMCommunicate OK [14:42:00]SAM_PROTO_ClearQueue done [14:42:00]KKMCreateOFDPacket [14:42:00]OFDProtocolAddRootSTLVToBuf [14:42:00]FM_MakeSignedData [14:42:00]FM_MakeSignedData [14:42:00]SAM_PROTO_SignData [14:42:00]wFMCommunicate request_size=4 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 0D 01 02 [14:42:00]Write to MH i2c: E2 08 00 AF 25 80 0D 01 02 00 00 00 00 4D [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 AF 25 00 90 00 48 [14:42:00]RAPDU: 90 00 [14:42:00]wFMCommunicate OK [14:42:00]wFMCommunicate request_size=255 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 B9 3F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 96 01 00 35 04 06 00 B3 [14:42:00]Write to MH i2c: E2 02 01 B0 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 B9 3F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 96 01 00 35 04 06 00 B3 00 00 5B [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 B0 25 00 90 00 49 [14:42:00]RAPDU: 90 00 [14:42:00]wFMCommunicate OK [14:42:00]wFMCommunicate request_size=10 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 0D 02 02 05 ED 9B 3E CD 97 [14:42:00]Write to MH i2c: E2 0D 00 B1 25 80 0D 02 02 05 00 ED 9B 3E CD 97 00 00 84 [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 B1 25 00 90 00 4A [14:42:00]RAPDU: 90 00 [14:42:00]wFMCommunicate OK [14:42:00]wFMCommunicate request_size=4 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 0D 03 02 [14:42:00]Write to MH i2c: E2 08 00 B2 25 80 0D 03 02 00 00 00 00 52 [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 0B 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 0B 00 B2 25 00 25 7F 2E 85 F4 EE 67 2C 90 00 1F [14:42:01]RAPDU: 25 7F 2E 85 F4 EE 67 2C 90 00 [14:42:01]wFMCommunicate OK [14:42:01]SAM_PROTO_SignData done [14:42:01]FM_MakeSignedData done [14:42:01]CreateOFDProtocolMessage [14:42:01]wFMCommunicate request_size=4 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 11 00 00 [14:42:01]Write to MH i2c: E2 08 00 B3 25 80 11 00 00 00 00 00 00 52 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 17 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 17 00 B3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [14:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:42:01]wFMCommunicate OK [14:42:01]CreateOFDProtocolMessage done [14:42:01]OFDSenderStorePacket 103942 [14:42:01]StoreOFDPacket docnum=103942 [14:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DE 69 07 01 DF 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 B9 3F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 96 01 00 35 04 06 00 B3 ED 9B 3E CD 97 25 7F 2E 85 F4 EE 67 2C [14:42:01]CheckFolder [14:42:01]dirname=/storage/ofd_packets [14:42:01]CheckFolder done [14:42:01]ProducePacketName [14:42:01]name=ofd_packets/00103942 [14:42:01]NVStorageSaveData ofd_packets/00103942 [14:42:01]File name is /storage/ofd_packets/00103942 [14:42:01]Write 301 bytes [14:42:01]NVStorageSaveData done [14:42:01]OFDSenderStorePacket done [14:42:01]KKMCreateOFDPacket done [14:42:01]NVStorageSaveData kkm_last_timestamp [14:42:01]File name is /storage/kkm_last_timestamp [14:42:01]Write 4 bytes [14:42:01]NVStorageSaveData done [14:42:01]ExternCall_PrintAddStr [14:42:01]wPrintStart [14:42:01]Write to MH i2c: 01 00 00 B4 25 D9 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 B4 25 00 00 00 00 00 FF 0F EE [14:42:01]RasterBufferAndPrint [14:42:01]line Счет N : (1)673296 [14:42:01]line ИНН: 02508201610067 [14:42:01]line Контрольно-Кассовый Чек [14:42:01]line ПРОДАЖА [14:42:01]line ТРК (МРК, ГНК) : 32 [14:42:01]line Товар: 2710124130 [14:42:01]line Аи-92-К-5 [14:42:01]line 15.070 * 66.40 [14:42:01]line = 1000.65 [14:42:01]line НДС 12% НСП 1% [14:42:01]line > о реализуемом товаре [14:42:01]line ОКРУГЛЕНИЕ: -0.65 [14:42:01]line ИТОГО: 1000.00 [14:42:01]line Внесено: 1000.00 [14:42:01]line СДАЧА: 0.00 [14:42:01]line НСП 1% : 8.85 [14:42:01]line НДС 12% : 106.26 [14:42:01]line Наличными: 1000.00 [14:42:01]line Безнал.: 0.00 [14:42:01]line Место: АЗС № 120 "Партнер Нефть" [14:42:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:42:01]line СНО: Общий режим [14:42:01]line Чек 127 20.06.2024 14:42 [14:42:01]line Смена: 354 ФФД: 1.0 [14:42:01]line ЗНМ: 0300000164 [14:42:01]line РНМ: 0000000000092785 [14:42:01]line Версия ККМ: 001 [14:42:01]line ФМ: 0000000000875093 [14:42:01]line ФД: 103942 [14:42:01]line ФПД: 197833093205399 [14:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T144201&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103942&fm=197833093205399&tin=02508201610067®Number=0000000000092785&sum=100000 [14:42:01]OFD Sender: Processing packet 103942 [packets to send 17, broken 16] [14:42:01]ProducePacketName [14:42:01]name=ofd_packets/00103942 [14:42:01]OFD Sender: To server: pG, [14:42:01]CommunicateWithHost lk.salyk.kg:30040 [14:42:01]ConnectInit lk.salyk.kg [14:42:01]written 0, free lines is 4095 [14:42:01]Connected sock=10 [14:42:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DE 69 07 01 DF 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 B9 3F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 96 01 00 35 04 06 00 B3 ED 9B 3E CD 97 25 7F 2E 85 F4 EE 67 2C [14:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E9 37 47 00 E2 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 06 96 01 00 F4 03 04 00 3F E6 73 66 B6 04 01 00 00 62 88 FA A6 FD 04 D6 C5 [14:42:01]CommunicateWithHost err = 0 [14:42:01]CheckOFDResponse [14:42:01]1017 (14) - 77093643461234 [14:42:01]1041 (16) - 0000000000875093 [14:42:01]1040 (4) - 103942 [14:42:01]1012 (4) - 20.06.2024 08:20 [14:42:01]1206 (1) - 0 [14:42:01]OFD Sender: Remove packet 103942 [14:42:01]ProducePacketName [14:42:01]name=ofd_packets/00103942 [14:42:01]NVStorageDeleteData [14:42:01]Write to MH i2c: 01 00 00 DF 25 04 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 DF 25 00 00 00 00 00 EE 0C 05 [14:42:01]RasterBufferAndPrint [14:42:01]line [14:42:01]line [14:42:01]line [14:42:01]line [14:42:01]line [14:42:01]written 0, free lines is 3319 [14:42:01]MH_Cut [14:42:01]Write to MH i2c: D1 01 00 E6 25 01 DD [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: D1 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: D1 01 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: D1 01 00 E6 25 00 DC [14:42:01]Write to MH i2c: 01 00 00 E7 25 0C [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:02]OFD Sender: No OFD packet to send [14:42:02]*** Cut start [14:42:02]*** Partial cut [14:42:02]*** CUTSNS_PIN = 1 [14:42:02]*** CUTSNS_PIN = 0 [14:42:02]*** Brake cut motor [14:42:03]Read from MH i2c: 01 [14:42:03]MH_I2C_Read... [14:42:03]*** Stop cut motor [14:42:03]*** Cut end [14:42:03]Read from MH i2c: 01 07 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: 01 07 00 E7 25 00 00 00 00 00 FF 0F 21 [14:42:03]process_action close_receipt done [14:42:03]requested_data is exist [14:42:03]produce_requested_data [14:42:03]requested_item fm.sn is exist - process it [14:42:03]wFMCommunicate request_size=4 [14:42:03]MH_SAM_APDU [14:42:03]CAPDU: 80 11 00 00 [14:42:03]Write to MH i2c: E2 08 00 E8 25 80 11 00 00 00 00 00 00 87 [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:03]Read from MH i2c: E2 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 17 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 17 00 E8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [14:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:42:03]wFMCommunicate OK [14:42:03]requested_item fd.num is exist - process it [14:42:03]SAM_PROTO_GetFieldsCounters [14:42:03]wFMCommunicate request_size=4 [14:42:03]MH_SAM_APDU [14:42:03]CAPDU: 80 13 00 00 [14:42:03]Write to MH i2c: E2 08 00 E9 25 80 13 00 00 00 00 00 00 8A [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:03]Read from MH i2c: E2 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 62 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 62 00 E9 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 06 96 01 00 0E 04 04 00 62 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 2E [14:42:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 06 96 01 00 0E 04 04 00 62 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:42:03]wFMCommunicate OK [14:42:03]SAM_PROTO_GetFieldsCounters done [14:42:03]requested_item shift.num is exist - process it [14:42:03]requested_item shift.opened is exist - process it [14:42:03]req_shift_opened [14:42:03]FM_GetShiftState [14:42:03]SAM_PROTO_GetShiftState [14:42:03]wFMCommunicate request_size=4 [14:42:03]MH_SAM_APDU [14:42:03]CAPDU: 80 13 01 00 [14:42:03]Write to MH i2c: E2 08 00 EA 25 80 13 01 00 00 00 00 00 8C [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:03]Read from MH i2c: E2 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 0E 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 0E 00 EA 25 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DB [14:42:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:42:03]wFMCommunicate OK [14:42:03]SAM_PROTO_GetShiftState done [14:42:03]FM_GetShiftState done [14:42:03]req_shift_opened done [14:42:03]requested_item shift.open_date is exist - process it [14:42:03]req_shift_open_date [14:42:03]req_shift_open_date done [14:42:03]produce_requested_data done [14:42:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103942,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:42:03]process_action_free close_receipt [14:42:03]json_value_free [14:42:03]json_value_free done [14:42:03]process_json_proto returns [14:42:03]Send response to host [14:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103942,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:42:03]free response buf [14:42:03]execute_script done [14:42:03]execute_script returns [14:42:03]free content buf [14:42:03]Sock 7.Close socket [14:42:03]Sock 7.Thread stoped [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:42]accept exits with 9 [14:42:42]New connection [14:42:42]New thread 3067207012 created [14:42:42]Thread 3067063652 joined [14:42:42]Waiting for new connection... [14:42:42] Sock 9.Parse request [14:42:42]Sock 9.Check first char [14:42:42]Sock 9.First char is OK [14:42:42]request: POST /json_proto HTTP/1.0 [14:42:42]Method: POST [14:42:42]URL: /json_proto [14:42:42]Method is POST - this is cgi request [14:42:42]url: /json_proto [14:42:42]query_string will be loaded in cgi processing [14:42:42]execute_cgi json_proto POST (null) [14:42:42]execute_cgi path=json_proto method=POST [14:42:42]POST find Content-Length [14:42:42]Host: 172.17.38.133:8080 [14:42:42]Content-Length: 682 [14:42:42]Content-Type: application/json [14:42:42] [14:42:42]POST finish read [14:42:42]Found Content-Length = 682 [14:42:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673297", "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" : 73.90, "quantity" : 40.190, "sum" : 2970.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2970.00, "total" : 2970.00, "payments": [ { "type": 0, "sum" : 2970.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:42]execute_script... [14:42: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)673297", "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" : 73.90, "quantity" : 40.190, "sum" : 2970.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2970.00, "total" : 2970.00, "payments": [ { "type": 0, "sum" : 2970.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:42]POST & json_proto [14:42:42]process_json_proto [14:42:42]json parsed OK: [14:42:42]protocol is kg_v1.0 [14:42:42]action value=close_receipt [14:42:42]process_action close_receipt [14:42:42]cmd_close_receipt [14:42:42]MH_GetDate [14:42:42]Write to MH i2c: F0 00 00 EB 25 FF [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: F0 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: F0 09 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: F0 09 00 EB 25 00 E5 3F 74 66 BD 8F 7C 64 32 [14:42:42]GetLastDocTimeStamp 1718894521 [14:42:42]current date 1718894565 [14:42:42]FM_GetShiftState [14:42:42]SAM_PROTO_GetShiftState [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 13 01 00 [14:42:42]Write to MH i2c: E2 08 00 EC 25 80 13 01 00 00 00 00 00 8E [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0E 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0E 00 EC 25 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DD [14:42:42]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:42:42]wFMCommunicate OK [14:42:42]SAM_PROTO_GetShiftState done [14:42:42]FM_GetShiftState done [14:42:42]opened in 1718843124 [14:42:42]opened+sec_in_day 1718929524 [14:42:42]quantity*price = 297004 [14:42:42]sum+1 = 297005 [14:42:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2970.00 Внесено: 2970.00 СДАЧА: 0.00 НСП 1% : 26.28 НДС 12% : 315.40 Наличными: 2970.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 128 20.06.2024 14:42 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103943 ФПД: 121169562125287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T144245&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103943&fm=121169562125287&tin=02508201610067®Number=0000000000092785&sum=297000 [14:42:43]StoreToDocumentArchive [14:42:43]shift 354 fd 103943 [14:42:43]save to /storage/0354/doc_00103943 [14:42:43]save last doc name /storage/0354/doc_00103943 to /storage/kkm_last_doc_name [14:42:43]save OK [14:42:43]Clear old archive folders... [14:42:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:43]tlvbuf is 00846F10 [14:42:43]SAM_PROTO_ClearQueue [14:42:43]wFMCommunicate request_size=4 [14:42:43]MH_SAM_APDU [14:42:43]CAPDU: 80 09 00 00 [14:42:43]Write to MH i2c: E2 08 00 F9 25 80 09 00 00 00 00 00 00 90 [14:42:43]Write i2c OK [14:42:43]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 F9 25 00 90 00 92 [14:42:44]RAPDU: 90 00 [14:42:44]wFMCommunicate OK [14:42:44]SAM_PROTO_ClearQueue done [14:42:44]KKMCreateOFDPacket [14:42:44]OFDProtocolAddRootSTLVToBuf [14:42:44]FM_MakeSignedData [14:42:44]FM_MakeSignedData [14:42:44]SAM_PROTO_SignData [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 0D 01 02 [14:42:44]Write to MH i2c: E2 08 00 FA 25 80 0D 01 02 00 00 00 00 98 [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 FA 25 00 90 00 93 [14:42:44]RAPDU: 90 00 [14:42:44]wFMCommunicate OK [14:42:44]wFMCommunicate request_size=255 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FE 9C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 2C 88 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 88 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 7B 00 00 00 00 07 04 06 00 28 88 04 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 E5 3F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 96 01 00 35 04 06 00 6E [14:42:44]Write to MH i2c: E2 02 01 FB 25 80 0D 02 02 FA 00 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 FE 9C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 2C 88 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 88 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 7B 00 00 00 00 07 04 06 00 28 88 04 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 E5 3F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 96 01 00 35 04 06 00 6E 00 00 4A [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 FB 25 00 90 00 94 [14:42:44]RAPDU: 90 00 [14:42:44]wFMCommunicate OK [14:42:44]wFMCommunicate request_size=10 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 0D 02 02 05 33 FC B5 43 E7 [14:42:44]Write to MH i2c: E2 0D 00 FC 25 80 0D 02 02 05 00 33 FC B5 43 E7 00 00 B3 [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 03 00 FC 25 00 90 00 95 [14:42:44]RAPDU: 90 00 [14:42:44]wFMCommunicate OK [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 0D 03 02 [14:42:44]Write to MH i2c: E2 08 00 FD 25 80 0D 03 02 00 00 00 00 9D [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 0B 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 0B 00 FD 25 00 B8 89 6D 1A 07 CF 8A 58 90 00 1E [14:42:44]RAPDU: B8 89 6D 1A 07 CF 8A 58 90 00 [14:42:44]wFMCommunicate OK [14:42:44]SAM_PROTO_SignData done [14:42:44]FM_MakeSignedData done [14:42:44]CreateOFDProtocolMessage [14:42:44]wFMCommunicate request_size=4 [14:42:44]MH_SAM_APDU [14:42:44]CAPDU: 80 11 00 00 [14:42:44]Write to MH i2c: E2 08 00 FE 25 80 11 00 00 00 00 00 00 9D [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:44]Read from MH i2c: E2 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 17 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: E2 17 00 FE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [14:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:42:44]wFMCommunicate OK [14:42:44]CreateOFDProtocolMessage done [14:42:44]OFDSenderStorePacket 103943 [14:42:44]StoreOFDPacket docnum=103943 [14:42:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 42 6A 07 01 82 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FE 9C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 2C 88 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 88 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 7B 00 00 00 00 07 04 06 00 28 88 04 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 E5 3F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 96 01 00 35 04 06 00 6E 33 FC B5 43 E7 B8 89 6D 1A 07 CF 8A 58 [14:42:44]CheckFolder [14:42:44]dirname=/storage/ofd_packets [14:42:44]CheckFolder done [14:42:44]ProducePacketName [14:42:44]name=ofd_packets/00103943 [14:42:44]NVStorageSaveData ofd_packets/00103943 [14:42:44]File name is /storage/ofd_packets/00103943 [14:42:44]Write 301 bytes [14:42:44]NVStorageSaveData done [14:42:44]OFDSenderStorePacket done [14:42:44]KKMCreateOFDPacket done [14:42:44]NVStorageSaveData kkm_last_timestamp [14:42:44]File name is /storage/kkm_last_timestamp [14:42:44]Write 4 bytes [14:42:44]NVStorageSaveData done [14:42:44]ExternCall_PrintAddStr [14:42:44]wPrintStart [14:42:44]Write to MH i2c: 01 00 00 FF 25 24 [14:42:44]Write i2c OK [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: 01 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: 01 07 00 [14:42:44]MH_I2C_Read... [14:42:44]Read from MH i2c: 01 07 00 FF 25 00 00 00 00 00 FF 0F 39 [14:42:44]RasterBufferAndPrint [14:42:44]line Счет N : (1)673297 [14:42:44]line ИНН: 02508201610067 [14:42:44]line Контрольно-Кассовый Чек [14:42:44]line ПРОДАЖА [14:42:44]line ТРК (МРК, ГНК) : 41 [14:42:44]line Товар: 2710124500 [14:42:44]line Аи-95-К-5 [14:42:44]line 40.190 * 73.90 [14:42:44]line = 2970.04 [14:42:44]line НДС 12% НСП 1% [14:42:44]line > о реализуемом товаре [14:42:44]line ОКРУГЛЕНИЕ: -0.04 [14:42:44]line ИТОГО: 2970.00 [14:42:44]line Внесено: 2970.00 [14:42:44]line СДАЧА: 0.00 [14:42:44]line НСП 1% : 26.28 [14:42:44]line НДС 12% : 315.40 [14:42:44]line Наличными: 2970.00 [14:42:44]line Безнал.: 0.00 [14:42:44]line Место: АЗС № 120 "Партнер Нефть" [14:42:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:42:44]line СНО: Общий режим [14:42:44]line Чек 128 20.06.2024 14:42 [14:42:44]line Смена: 354 ФФД: 1.0 [14:42:44]line ЗНМ: 0300000164 [14:42:44]line РНМ: 0000000000092785 [14:42:44]line Версия ККМ: 001 [14:42:44]line ФМ: 0000000000875093 [14:42:44]line ФД: 103943 [14:42:44]line ФПД: 121169562125287 [14:42:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T144245&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103943&fm=121169562125287&tin=02508201610067®Number=0000000000092785&sum=297000 [14:42:44]OFD Sender: Processing packet 103943 [packets to send 17, broken 16] [14:42:44]ProducePacketName [14:42:44]name=ofd_packets/00103943 [14:42:44]OFD Sender: To server: pG, [14:42:44]CommunicateWithHost lk.salyk.kg:30040 [14:42:44]ConnectInit lk.salyk.kg [14:42:44]written 0, free lines is 4095 [14:42:45]Connected sock=10 [14:42:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 42 6A 07 01 82 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FE 9C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 2C 88 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 88 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 7B 00 00 00 00 07 04 06 00 28 88 04 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 E5 3F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 07 96 01 00 35 04 06 00 6E 33 FC B5 43 E7 B8 89 6D 1A 07 CF 8A 58 [14:42:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E2 69 47 00 16 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 35 30 39 33 10 04 04 00 07 96 01 00 F4 03 04 00 6A E6 73 66 B6 04 01 00 00 5C 11 52 D5 CD E6 12 30 [14:42:45]CommunicateWithHost err = 0 [14:42:45]CheckOFDResponse [14:42:45]1017 (14) - 77093643461234 [14:42:45]1041 (16) - 0000000000875093 [14:42:45]1040 (4) - 103943 [14:42:45]1012 (4) - 20.06.2024 08:20 [14:42:45]1206 (1) - 0 [14:42:45]OFD Sender: Remove packet 103943 [14:42:45]ProducePacketName [14:42:45]name=ofd_packets/00103943 [14:42:45]NVStorageDeleteData [14:42:45]Write to MH i2c: 01 00 00 2A 26 50 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: 01 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: 01 07 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: 01 07 00 2A 26 00 00 00 00 00 10 0D 74 [14:42:45]RasterBufferAndPrint [14:42:45]line [14:42:45]line [14:42:45]line [14:42:45]line [14:42:45]line [14:42:45]written 0, free lines is 3350 [14:42:45]MH_Cut [14:42:45]Write to MH i2c: D1 01 00 31 26 01 29 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: D1 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: D1 01 00 [14:42:45]MH_I2C_Read... [14:42:45]Read from MH i2c: D1 01 00 31 26 00 28 [14:42:45]Write to MH i2c: 01 00 00 32 26 58 [14:42:45]Write i2c OK [14:42:45]MH_I2C_Read... [14:42:45]OFD Sender: No OFD packet to send [14:42:46]*** Cut start [14:42:46]*** Partial cut [14:42:46]*** CUTSNS_PIN = 1 [14:42:46]*** CUTSNS_PIN = 0 [14:42:46]*** Brake cut motor [14:42:46]Read from MH i2c: 01 [14:42:46]MH_I2C_Read... [14:42:46]*** Stop cut motor [14:42:46]*** Cut end [14:42:46]Read from MH i2c: 01 07 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: 01 07 00 32 26 00 00 00 00 00 FF 0F 6D [14:42:46]process_action close_receipt done [14:42:46]requested_data is exist [14:42:46]produce_requested_data [14:42:46]requested_item fm.sn is exist - process it [14:42:46]wFMCommunicate request_size=4 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 11 00 00 [14:42:46]Write to MH i2c: E2 08 00 33 26 80 11 00 00 00 00 00 00 D3 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 17 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 17 00 33 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 26 [14:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:42:46]wFMCommunicate OK [14:42:46]requested_item fd.num is exist - process it [14:42:46]SAM_PROTO_GetFieldsCounters [14:42:46]wFMCommunicate request_size=4 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 13 00 00 [14:42:46]Write to MH i2c: E2 08 00 34 26 80 13 00 00 00 00 00 00 D6 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 62 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 62 00 34 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 07 96 01 00 0E 04 04 00 62 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 7E [14:42:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 07 96 01 00 0E 04 04 00 62 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:42:46]wFMCommunicate OK [14:42:46]SAM_PROTO_GetFieldsCounters done [14:42:46]requested_item shift.num is exist - process it [14:42:46]requested_item shift.opened is exist - process it [14:42:46]req_shift_opened [14:42:46]FM_GetShiftState [14:42:46]SAM_PROTO_GetShiftState [14:42:46]wFMCommunicate request_size=4 [14:42:46]MH_SAM_APDU [14:42:46]CAPDU: 80 13 01 00 [14:42:46]Write to MH i2c: E2 08 00 35 26 80 13 01 00 00 00 00 00 D8 [14:42:46]Write i2c OK [14:42:46]MH_I2C_Read... [14:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:46]Read from MH i2c: E2 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 0E 00 [14:42:46]MH_I2C_Read... [14:42:46]Read from MH i2c: E2 0E 00 35 26 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 27 [14:42:46]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:42:46]wFMCommunicate OK [14:42:46]SAM_PROTO_GetShiftState done [14:42:46]FM_GetShiftState done [14:42:46]req_shift_opened done [14:42:46]requested_item shift.open_date is exist - process it [14:42:46]req_shift_open_date [14:42:46]req_shift_open_date done [14:42:46]produce_requested_data done [14:42:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103943,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:42:46]process_action_free close_receipt [14:42:46]json_value_free [14:42:46]json_value_free done [14:42:46]process_json_proto returns [14:42:46]Send response to host [14:42:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103943,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:42:46]free response buf [14:42:46]execute_script done [14:42:46]execute_script returns [14:42:46]free content buf [14:42:46]Sock 9.Close socket [14:42:46]Sock 9.Thread stoped [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:07]accept exits with 7 [14:45:07]New connection [14:45:07]New thread 3067063652 created [14:45:07]Thread 3067207012 joined [14:45:07]Waiting for new connection... [14:45:07] Sock 7.Parse request [14:45:07]Sock 7.Check first char [14:45:07]Sock 7.First char is OK [14:45:07]request: POST /json_proto HTTP/1.0 [14:45:07]Method: POST [14:45:07]URL: /json_proto [14:45:07]Method is POST - this is cgi request [14:45:07]url: /json_proto [14:45:07]query_string will be loaded in cgi processing [14:45:07]execute_cgi json_proto POST (null) [14:45:07]execute_cgi path=json_proto method=POST [14:45:07]POST find Content-Length [14:45:07]Host: 172.17.38.133:8080 [14:45:07]Content-Length: 682 [14:45:07]Content-Type: application/json [14:45:07] [14:45:07]POST finish read [14:45:07]Found Content-Length = 682 [14:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:07]execute_script... [14: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)673298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:07]POST & json_proto [14:45:07]process_json_proto [14:45:07]json parsed OK: [14:45:07]protocol is kg_v1.0 [14:45:07]action value=close_receipt [14:45:07]process_action close_receipt [14:45:07]cmd_close_receipt [14:45:07]MH_GetDate [14:45:07]Write to MH i2c: F0 00 00 36 26 4B [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: F0 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: F0 09 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: F0 09 00 36 26 00 76 40 74 66 BD 8F 7C 64 10 [14:45:07]GetLastDocTimeStamp 1718894565 [14:45:07]current date 1718894710 [14:45:07]FM_GetShiftState [14:45:07]SAM_PROTO_GetShiftState [14:45:07]wFMCommunicate request_size=4 [14:45:07]MH_SAM_APDU [14:45:07]CAPDU: 80 13 01 00 [14:45:07]Write to MH i2c: E2 08 00 37 26 80 13 01 00 00 00 00 00 DA [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 0E 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 0E 00 37 26 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 29 [14:45:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:45:07]wFMCommunicate OK [14:45:07]SAM_PROTO_GetShiftState done [14:45:07]FM_GetShiftState done [14:45:07]opened in 1718843124 [14:45:07]opened+sec_in_day 1718929524 [14:45:07]quantity*price = 200063 [14:45:07]sum+1 = 200064 [14:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 129 20.06.2024 14:45 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103944 ФПД: 2965935506094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T144510&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103944&fm=2965935506094&tin=02508201610067®Number=0000000000092785&sum=200000 [14:45:09]StoreToDocumentArchive [14:45:09]shift 354 fd 103944 [14:45:09]save to /storage/0354/doc_00103944 [14:45:09]save last doc name /storage/0354/doc_00103944 to /storage/kkm_last_doc_name [14:45:09]save OK [14:45:09]Clear old archive folders... [14:45:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:09]tlvbuf is B6F93010 [14:45:09]SAM_PROTO_ClearQueue [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 09 00 00 [14:45:09]Write to MH i2c: E2 08 00 44 26 80 09 00 00 00 00 00 00 DC [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:09]Read from MH i2c: E2 03 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 44 26 00 90 00 DE [14:45:09]RAPDU: 90 00 [14:45:09]wFMCommunicate OK [14:45:09]SAM_PROTO_ClearQueue done [14:45:09]KKMCreateOFDPacket [14:45:09]OFDProtocolAddRootSTLVToBuf [14:45:09]FM_MakeSignedData [14:45:09]FM_MakeSignedData [14:45:09]SAM_PROTO_SignData [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 0D 01 02 [14:45:09]Write to MH i2c: E2 08 00 45 26 80 0D 01 02 00 00 00 00 E4 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [14:45:09]RAPDU: 90 00 [14:45:09]wFMCommunicate OK [14:45:09]wFMCommunicate request_size=255 [14:45:09]MH_SAM_APDU [14: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 81 00 00 00 F4 03 04 00 76 40 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 96 01 00 35 04 06 00 02 [14:45:09]Write to MH i2c: E2 02 01 46 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 81 00 00 00 F4 03 04 00 76 40 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 96 01 00 35 04 06 00 02 00 00 A8 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [14:45:09]RAPDU: 90 00 [14:45:09]wFMCommunicate OK [14:45:09]wFMCommunicate request_size=10 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 0D 02 02 05 B2 8F 88 42 AE [14:45:09]Write to MH i2c: E2 0D 00 47 26 80 0D 02 02 05 00 B2 8F 88 42 AE 00 00 AA [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 03 00 47 26 00 90 00 E1 [14:45:09]RAPDU: 90 00 [14:45:09]wFMCommunicate OK [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 0D 03 02 [14:45:09]Write to MH i2c: E2 08 00 48 26 80 0D 03 02 00 00 00 00 E9 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 0B 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 0B 00 48 26 00 C1 30 6E CB 91 74 FE 61 90 00 78 [14:45:09]RAPDU: C1 30 6E CB 91 74 FE 61 90 00 [14:45:09]wFMCommunicate OK [14:45:09]SAM_PROTO_SignData done [14:45:09]FM_MakeSignedData done [14:45:09]CreateOFDProtocolMessage [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 11 00 00 [14:45:09]Write to MH i2c: E2 08 00 49 26 80 11 00 00 00 00 00 00 E9 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 17 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 17 00 49 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3C [14:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:45:09]wFMCommunicate OK [14:45:09]CreateOFDProtocolMessage done [14:45:09]OFDSenderStorePacket 103944 [14:45:09]StoreOFDPacket docnum=103944 [14:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 98 BF 07 01 AD 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 81 00 00 00 F4 03 04 00 76 40 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 96 01 00 35 04 06 00 02 B2 8F 88 42 AE C1 30 6E CB 91 74 FE 61 [14:45:09]CheckFolder [14:45:09]dirname=/storage/ofd_packets [14:45:09]CheckFolder done [14:45:09]ProducePacketName [14:45:09]name=ofd_packets/00103944 [14:45:09]NVStorageSaveData ofd_packets/00103944 [14:45:09]File name is /storage/ofd_packets/00103944 [14:45:09]Write 301 bytes [14:45:09]NVStorageSaveData done [14:45:09]OFDSenderStorePacket done [14:45:09]KKMCreateOFDPacket done [14:45:09]NVStorageSaveData kkm_last_timestamp [14:45:09]File name is /storage/kkm_last_timestamp [14:45:09]Write 4 bytes [14:45:09]NVStorageSaveData done [14:45:09]ExternCall_PrintAddStr [14:45:09]wPrintStart [14:45:09]Write to MH i2c: 01 00 00 4A 26 70 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 07 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 07 00 4A 26 00 00 00 00 00 FF 0F 85 [14:45:09]RasterBufferAndPrint [14:45:09]line Счет N : (1)673298 [14:45:09]line ИНН: 02508201610067 [14:45:09]line Контрольно-Кассовый Чек [14:45:09]line ПРОДАЖА [14:45:09]line ТРК (МРК, ГНК) : 32 [14:45:09]line Товар: 2710124130 [14:45:09]line Аи-92-К-5 [14:45:09]line 30.130 * 66.40 [14:45:09]line = 2000.63 [14:45:09]line НДС 12% НСП 1% [14:45:09]line > о реализуемом товаре [14:45:09]line ОКРУГЛЕНИЕ: -0.63 [14:45:09]line ИТОГО: 2000.00 [14:45:09]line Внесено: 2000.00 [14:45:09]line СДАЧА: 0.00 [14:45:09]line НСП 1% : 17.70 [14:45:09]line НДС 12% : 212.46 [14:45:09]line Наличными: 2000.00 [14:45:09]line Безнал.: 0.00 [14:45:09]line Место: АЗС № 120 "Партнер Нефть" [14:45:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:45:09]line СНО: Общий режим [14:45:09]line Чек 129 20.06.2024 14:45 [14:45:09]line Смена: 354 ФФД: 1.0 [14:45:09]line ЗНМ: 0300000164 [14:45:09]line РНМ: 0000000000092785 [14:45:09]line Версия ККМ: 001 [14:45:09]line ФМ: 0000000000875093 [14:45:09]line ФД: 103944 [14:45:09]line ФПД: 2965935506094 [14:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T144510&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103944&fm=2965935506094&tin=02508201610067®Number=0000000000092785&sum=200000 [14:45:09]OFD Sender: Processing packet 103944 [packets to send 17, broken 16] [14:45:09]ProducePacketName [14:45:09]name=ofd_packets/00103944 [14:45:09]OFD Sender: To server: pG, [14:45:09]CommunicateWithHost lk.salyk.kg:30040 [14:45:09]ConnectInit lk.salyk.kg [14:45:09]written 0, free lines is 4095 [14:45:10]Connected sock=10 [14:45:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 98 BF 07 01 AD 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 81 00 00 00 F4 03 04 00 76 40 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 96 01 00 35 04 06 00 02 B2 8F 88 42 AE C1 30 6E CB 91 74 FE 61 [14:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1E E7 47 00 78 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 08 96 01 00 F4 03 04 00 FB E6 73 66 B6 04 01 00 00 ED 86 02 B6 8D B6 4F 39 [14:45:10]CommunicateWithHost err = 0 [14:45:10]CheckOFDResponse [14:45:10]1017 (14) - 77093643461234 [14:45:10]1041 (16) - 0000000000875093 [14:45:10]1040 (4) - 103944 [14:45:10]1012 (4) - 20.06.2024 08:23 [14:45:10]1206 (1) - 0 [14:45:10]OFD Sender: Remove packet 103944 [14:45:10]ProducePacketName [14:45:10]name=ofd_packets/00103944 [14:45:10]NVStorageDeleteData [14:45:10]Write to MH i2c: 01 00 00 75 26 9B [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: 01 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: 01 07 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: 01 07 00 75 26 00 00 00 00 00 EE 0C 9C [14:45:10]RasterBufferAndPrint [14:45:10]line [14:45:10]line [14:45:10]line [14:45:10]line [14:45:10]line [14:45:10]written 0, free lines is 3316 [14:45:10]MH_Cut [14:45:10]Write to MH i2c: D1 01 00 7C 26 01 74 [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: D1 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: D1 01 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: D1 01 00 7C 26 00 73 [14:45:10]Write to MH i2c: 01 00 00 7D 26 A3 [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]OFD Sender: No OFD packet to send [14:45:11]*** Cut start [14:45:11]*** Partial cut [14:45:11]*** CUTSNS_PIN = 1 [14:45:11]*** CUTSNS_PIN = 0 [14:45:11]*** Brake cut motor [14:45:11]Read from MH i2c: 01 [14:45:11]MH_I2C_Read... [14:45:11]*** Stop cut motor [14:45:11]*** Cut end [14:45:11]Read from MH i2c: 01 07 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: 01 07 00 7D 26 00 00 00 00 00 FF 0F B8 [14:45:11]process_action close_receipt done [14:45:11]requested_data is exist [14:45:11]produce_requested_data [14:45:11]requested_item fm.sn is exist - process it [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 11 00 00 [14:45:11]Write to MH i2c: E2 08 00 7E 26 80 11 00 00 00 00 00 00 1E [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 17 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 17 00 7E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [14:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:45:11]wFMCommunicate OK [14:45:11]requested_item fd.num is exist - process it [14:45:11]SAM_PROTO_GetFieldsCounters [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 13 00 00 [14:45:11]Write to MH i2c: E2 08 00 7F 26 80 13 00 00 00 00 00 00 21 [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 62 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 62 00 7F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 08 96 01 00 0E 04 04 00 62 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 CD [14:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 08 96 01 00 0E 04 04 00 62 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:45:11]wFMCommunicate OK [14:45:11]SAM_PROTO_GetFieldsCounters done [14:45:11]requested_item shift.num is exist - process it [14:45:11]requested_item shift.opened is exist - process it [14:45:11]req_shift_opened [14:45:11]FM_GetShiftState [14:45:11]SAM_PROTO_GetShiftState [14:45:11]wFMCommunicate request_size=4 [14:45:11]MH_SAM_APDU [14:45:11]CAPDU: 80 13 01 00 [14:45:11]Write to MH i2c: E2 08 00 80 26 80 13 01 00 00 00 00 00 23 [14:45:11]Write i2c OK [14:45:11]MH_I2C_Read... [14:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:11]Read from MH i2c: E2 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 0E 00 [14:45:11]MH_I2C_Read... [14:45:11]Read from MH i2c: E2 0E 00 80 26 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 72 [14:45:11]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:45:11]wFMCommunicate OK [14:45:11]SAM_PROTO_GetShiftState done [14:45:11]FM_GetShiftState done [14:45:11]req_shift_opened done [14:45:11]requested_item shift.open_date is exist - process it [14:45:11]req_shift_open_date [14:45:11]req_shift_open_date done [14:45:11]produce_requested_data done [14:45:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103944,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:45:11]process_action_free close_receipt [14:45:11]json_value_free [14:45:11]json_value_free done [14:45:11]process_json_proto returns [14:45:11]Send response to host [14:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103944,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:45:11]free response buf [14:45:11]execute_script done [14:45:11]execute_script returns [14:45:11]free content buf [14:45:11]Sock 7.Close socket [14:45:11]Sock 7.Thread stoped [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:45:58]accept exits with 9 [14:45:58]New connection [14:45:58]New thread 3067207012 created [14:45:58]Thread 3067063652 joined [14:45:58]Waiting for new connection... [14:45:58] Sock 9.Parse request [14:45:58]Sock 9.Check first char [14:45:58]Sock 9.First char is OK [14:45:58]request: POST /json_proto HTTP/1.0 [14:45:58]Method: POST [14:45:58]URL: /json_proto [14:45:58]Method is POST - this is cgi request [14:45:58]url: /json_proto [14:45:58]query_string will be loaded in cgi processing [14:45:58]execute_cgi json_proto POST (null) [14:45:58]execute_cgi path=json_proto method=POST [14:45:58]POST find Content-Length [14:45:58]Host: 172.17.38.133:8080 [14:45:58]Content-Length: 687 [14:45:58]Content-Type: application/json [14:45:58] [14:45:58]POST finish read [14:45:58]Found Content-Length = 687 [14:45:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:45:58]execute_script... [14:45: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)673299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:45:58]POST & json_proto [14:45:58]process_json_proto [14:45:58]json parsed OK: [14:45:58]protocol is kg_v1.0 [14:45:58]action value=close_receipt [14:45:58]process_action close_receipt [14:45:58]cmd_close_receipt [14:45:58]MH_GetDate [14:45:58]Write to MH i2c: F0 00 00 81 26 96 [14:45:58]Write i2c OK [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: F0 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: F0 09 00 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: F0 09 00 81 26 00 A8 40 74 66 BD 8F 7C 64 8D [14:45:58]GetLastDocTimeStamp 1718894710 [14:45:58]current date 1718894760 [14:45:58]FM_GetShiftState [14:45:58]SAM_PROTO_GetShiftState [14:45:58]wFMCommunicate request_size=4 [14:45:58]MH_SAM_APDU [14:45:58]CAPDU: 80 13 01 00 [14:45:58]Write to MH i2c: E2 08 00 82 26 80 13 01 00 00 00 00 00 25 [14:45:58]Write i2c OK [14:45:58]MH_I2C_Read... [14:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:58]Read from MH i2c: E2 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: E2 0E 00 [14:45:58]MH_I2C_Read... [14:45:58]Read from MH i2c: E2 0E 00 82 26 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 74 [14:45:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:45:58]wFMCommunicate OK [14:45:58]SAM_PROTO_GetShiftState done [14:45:58]FM_GetShiftState done [14:45:58]opened in 1718843124 [14:45:58]opened+sec_in_day 1718929524 [14:45:58]quantity*price = 100018 [14:45:58]sum+1 = 100020 [14:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 130 20.06.2024 14:46 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103945 ФПД: 127585288186542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T144600&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103945&fm=127585288186542&tin=02508201610067®Number=0000000000092785&sum=100000 [14:45:59]StoreToDocumentArchive [14:45:59]shift 354 fd 103945 [14:45:59]save to /storage/0354/doc_00103945 [14:45:59]save last doc name /storage/0354/doc_00103945 to /storage/kkm_last_doc_name [14:45:59]save OK [14:45:59]Clear old archive folders... [14:45:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:45:59]tlvbuf is 008263D0 [14:45:59]SAM_PROTO_ClearQueue [14:45:59]wFMCommunicate request_size=4 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 09 00 00 [14:45:59]Write to MH i2c: E2 08 00 8F 26 80 09 00 00 00 00 00 00 27 [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 8F 26 00 90 00 29 [14:45:59]RAPDU: 90 00 [14:45:59]wFMCommunicate OK [14:45:59]SAM_PROTO_ClearQueue done [14:45:59]KKMCreateOFDPacket [14:45:59]OFDProtocolAddRootSTLVToBuf [14:45:59]FM_MakeSignedData [14:45:59]FM_MakeSignedData [14:45:59]SAM_PROTO_SignData [14:45:59]wFMCommunicate request_size=4 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 0D 01 02 [14:45:59]Write to MH i2c: E2 08 00 90 26 80 0D 01 02 00 00 00 00 2F [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 90 26 00 90 00 2A [14:45:59]RAPDU: 90 00 [14:45:59]wFMCommunicate OK [14:45:59]wFMCommunicate request_size=255 [14:45:59]MH_SAM_APDU [14:45:59]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 A8 40 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 96 01 00 35 04 06 00 [14:45:59]Write to MH i2c: E2 02 01 91 26 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 A8 40 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 96 01 00 35 04 06 00 00 00 CA [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [14:45:59]RAPDU: 90 00 [14:45:59]wFMCommunicate OK [14:45:59]wFMCommunicate request_size=11 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 0D 02 02 06 74 09 C3 C7 EA AE [14:45:59]Write to MH i2c: E2 0E 00 92 26 80 0D 02 02 06 00 74 09 C3 C7 EA AE 00 00 DD [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 03 00 92 26 00 90 00 2C [14:45:59]RAPDU: 90 00 [14:45:59]wFMCommunicate OK [14:45:59]wFMCommunicate request_size=4 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 0D 03 02 [14:45:59]Write to MH i2c: E2 08 00 93 26 80 0D 03 02 00 00 00 00 34 [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 0B 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 0B 00 93 26 00 57 8C C5 33 AB 67 EB 36 90 00 43 [14:45:59]RAPDU: 57 8C C5 33 AB 67 EB 36 90 00 [14:45:59]wFMCommunicate OK [14:45:59]SAM_PROTO_SignData done [14:45:59]FM_MakeSignedData done [14:45:59]CreateOFDProtocolMessage [14:45:59]wFMCommunicate request_size=4 [14:45:59]MH_SAM_APDU [14:45:59]CAPDU: 80 11 00 00 [14:45:59]Write to MH i2c: E2 08 00 94 26 80 11 00 00 00 00 00 00 34 [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:59]Read from MH i2c: E2 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 17 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: E2 17 00 94 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [14:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:45:59]wFMCommunicate OK [14:45:59]CreateOFDProtocolMessage done [14:45:59]OFDSenderStorePacket 103945 [14:45:59]StoreOFDPacket docnum=103945 [14:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 71 0E 08 01 84 A5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 A8 40 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 96 01 00 35 04 06 00 74 09 C3 C7 EA AE 57 8C C5 33 AB 67 EB 36 [14:45:59]CheckFolder [14:45:59]dirname=/storage/ofd_packets [14:45:59]CheckFolder done [14:45:59]ProducePacketName [14:45:59]name=ofd_packets/00103945 [14:45:59]NVStorageSaveData ofd_packets/00103945 [14:45:59]File name is /storage/ofd_packets/00103945 [14:45:59]Write 302 bytes [14:45:59]NVStorageSaveData done [14:45:59]OFDSenderStorePacket done [14:45:59]KKMCreateOFDPacket done [14:45:59]NVStorageSaveData kkm_last_timestamp [14:45:59]File name is /storage/kkm_last_timestamp [14:45:59]Write 4 bytes [14:45:59]NVStorageSaveData done [14:45:59]ExternCall_PrintAddStr [14:45:59]wPrintStart [14:45:59]Write to MH i2c: 01 00 00 95 26 BB [14:45:59]Write i2c OK [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: 01 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: 01 07 00 [14:45:59]MH_I2C_Read... [14:45:59]Read from MH i2c: 01 07 00 95 26 00 00 00 00 00 FF 0F D0 [14:45:59]RasterBufferAndPrint [14:45:59]line Счет N : (1)673299 [14:45:59]line ИНН: 02508201610067 [14:45:59]line Контрольно-Кассовый Чек [14:45:59]line ПРОДАЖА [14:45:59]line ТРК (МРК, ГНК) : 11 [14:45:59]line Товар: 2710194210 [14:45:59]line ДТ(л)-К-5 [14:45:59]line 13.720 * 72.90 [14:45:59]line = 1000.19 [14:45:59]line НДС 12% НСП 1% [14:45:59]line > о реализуемом товаре [14:45:59]line ОКРУГЛЕНИЕ: -0.19 [14:45:59]line ИТОГО: 1000.00 [14:45:59]line Внесено: 1000.00 [14:45:59]line СДАЧА: 0.00 [14:45:59]line НСП 1% : 8.85 [14:45:59]line НДС 12% : 106.21 [14:45:59]line Наличными: 1000.00 [14:45:59]line Безнал.: 0.00 [14:45:59]line Место: АЗС № 120 "Партнер Нефть" [14:45:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:45:59]line СНО: Общий режим [14:45:59]line Чек 130 20.06.2024 14:46 [14:45:59]line Смена: 354 ФФД: 1.0 [14:45:59]line ЗНМ: 0300000164 [14:45:59]line РНМ: 0000000000092785 [14:45:59]line Версия ККМ: 001 [14:45:59]line ФМ: 0000000000875093 [14:45:59]line ФД: 103945 [14:45:59]line ФПД: 127585288186542 [14:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T144600&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103945&fm=127585288186542&tin=02508201610067®Number=0000000000092785&sum=100000 [14:46:00]OFD Sender: Processing packet 103945 [packets to send 17, broken 16] [14:46:00]ProducePacketName [14:46:00]name=ofd_packets/00103945 [14:46:00]OFD Sender: To server: pG, [14:46:00]CommunicateWithHost lk.salyk.kg:30040 [14:46:00]ConnectInit lk.salyk.kg [14:46:00]written 0, free lines is 4095 [14:46:00]Connected sock=10 [14:46:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 71 0E 08 01 84 A5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 82 00 00 00 F4 03 04 00 A8 40 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 96 01 00 35 04 06 00 74 09 C3 C7 EA AE 57 8C C5 33 AB 67 EB 36 [14:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 97 BA 47 00 D0 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 09 96 01 00 F4 03 04 00 2D E7 73 66 B6 04 01 00 00 F6 95 21 C9 1D A4 12 2B [14:46:00]CommunicateWithHost err = 0 [14:46:00]CheckOFDResponse [14:46:00]1017 (14) - 77093643461234 [14:46:00]1041 (16) - 0000000000875093 [14:46:00]1040 (4) - 103945 [14:46:00]1012 (4) - 20.06.2024 08:24 [14:46:00]1206 (1) - 0 [14:46:00]OFD Sender: Remove packet 103945 [14:46:00]ProducePacketName [14:46:00]name=ofd_packets/00103945 [14:46:00]NVStorageDeleteData [14:46:00]Write to MH i2c: 01 00 00 C0 26 E6 [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: 01 07 00 C0 26 00 00 00 00 00 EF 0C E8 [14:46:00]RasterBufferAndPrint [14:46:00]line [14:46:00]line [14:46:00]line [14:46:00]line [14:46:00]line [14:46:00]written 0, free lines is 3320 [14:46:00]MH_Cut [14:46:00]Write to MH i2c: D1 01 00 C7 26 01 BF [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: D1 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: D1 01 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: D1 01 00 C7 26 00 BE [14:46:00]Write to MH i2c: 01 00 00 C8 26 EE [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:01]OFD Sender: No OFD packet to send [14:46:01]*** Cut start [14:46:01]*** Partial cut [14:46:01]*** CUTSNS_PIN = 1 [14:46:01]*** CUTSNS_PIN = 0 [14:46:01]*** Brake cut motor [14:46:01]Read from MH i2c: 01 [14:46:01]MH_I2C_Read... [14:46:01]*** Stop cut motor [14:46:01]*** Cut end [14:46:01]Read from MH i2c: 01 07 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: 01 07 00 C8 26 00 00 00 00 00 FF 0F 03 [14:46:01]process_action close_receipt done [14:46:01]requested_data is exist [14:46:01]produce_requested_data [14:46:01]requested_item fm.sn is exist - process it [14:46:01]wFMCommunicate request_size=4 [14:46:01]MH_SAM_APDU [14:46:01]CAPDU: 80 11 00 00 [14:46:01]Write to MH i2c: E2 08 00 C9 26 80 11 00 00 00 00 00 00 69 [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:01]Read from MH i2c: E2 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 17 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 17 00 C9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BC [14:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:46:01]wFMCommunicate OK [14:46:01]requested_item fd.num is exist - process it [14:46:01]SAM_PROTO_GetFieldsCounters [14:46:01]wFMCommunicate request_size=4 [14:46:01]MH_SAM_APDU [14:46:01]CAPDU: 80 13 00 00 [14:46:01]Write to MH i2c: E2 08 00 CA 26 80 13 00 00 00 00 00 00 6C [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 62 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 62 00 CA 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 09 96 01 00 0E 04 04 00 62 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 1C [14:46:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 09 96 01 00 0E 04 04 00 62 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:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_GetFieldsCounters done [14:46:02]requested_item shift.num is exist - process it [14:46:02]requested_item shift.opened is exist - process it [14:46:02]req_shift_opened [14:46:02]FM_GetShiftState [14:46:02]SAM_PROTO_GetShiftState [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 13 01 00 [14:46:02]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0E 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BD [14:46:02]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_GetShiftState done [14:46:02]FM_GetShiftState done [14:46:02]req_shift_opened done [14:46:02]requested_item shift.open_date is exist - process it [14:46:02]req_shift_open_date [14:46:02]req_shift_open_date done [14:46:02]produce_requested_data done [14:46:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103945,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:46:02]process_action_free close_receipt [14:46:02]json_value_free [14:46:02]json_value_free done [14:46:02]process_json_proto returns [14:46:02]Send response to host [14:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103945,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:46:02]free response buf [14:46:02]execute_script done [14:46:02]execute_script returns [14:46:02]free content buf [14:46:02]Sock 9.Close socket [14:46:02]Sock 9.Thread stoped [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]accept exits with 7 [14:46:56]New connection [14:46:56]New thread 3067063652 created [14:46:56]Thread 3067207012 joined [14:46:56]Waiting for new connection... [14:46:56] Sock 7.Parse request [14:46:56]Sock 7.Check first char [14:46:56]Sock 7.First char is OK [14:46:56]request: POST /json_proto HTTP/1.0 [14:46:56]Method: POST [14:46:56]URL: /json_proto [14:46:56]Method is POST - this is cgi request [14:46:56]url: /json_proto [14:46:56]query_string will be loaded in cgi processing [14:46:56]execute_cgi json_proto POST (null) [14:46:56]execute_cgi path=json_proto method=POST [14:46:56]POST find Content-Length [14:46:56]Host: 172.17.38.133:8080 [14:46:56]Content-Length: 1214 [14:46:56]Content-Type: application/json [14:46:56] [14:46:56]POST finish read [14:46:56]Found Content-Length = 1214 [14:46:56]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673295\u000A20.06.2024 14:24\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 200.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 14580.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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:56]execute_script... [14:46:56]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673295\u000A20.06.2024 14:24\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 200.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 14580.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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:56]POST & json_proto [14:46:56]process_json_proto [14:46:56]json parsed OK: [14:46:56]protocol is kg_v1.0 [14:46:56]action value=print_text [14:46:56]process_action print_text [14:46:56]cmd_print_text [14:46:56]ExternCall_PrintAddStr [14:46:56]wPrintStart [14:46:56]Write to MH i2c: 01 00 00 CC 26 F2 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 07 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 07 00 CC 26 00 00 00 00 00 FF 0F 07 [14:46:56]RasterBufferAndPrint [14:46:56]line *****ТОВАРНЫЙ ЧЕК***** [14:46:56]line АЗС 120 [14:46:56]line Партнер нефть [14:46:56]line 02508201610067 [14:46:56]line Кассир : Дуйшенбиев А. [14:46:56]line Счет N : (1)673295 [14:46:56]line 20.06.2024 14:24 [14:46:56]line ПРОДАЖА [14:46:56]line ТРК (МРК, ГНК): 21 [14:46:56]line Вид ГСМ : 2710194210 [14:46:56]line ДТ(л)-К-5 [14:46:56]line 200.000 x 72.90 [14:46:56]line ИТОГ: 14580.00 [14:46:56]line Тип оплаты: Талоны: Топливная Карта [14:46:56]line 72637 [14:46:56]line ______________________ [14:46:56]line (подпись) [14:46:56]written 0, free lines is 4095 [14:46:56]OFD Sender: No OFD packet to send [14:46:56]Write to MH i2c: 01 00 00 E0 26 06 [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 07 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: 01 07 00 E0 26 00 00 00 00 00 13 0E 2E [14:46:56]RasterBufferAndPrint [14:46:56]line [14:46:56]line [14:46:56]line [14:46:56]line [14:46:56]line [14:46:56]written 0, free lines is 3605 [14:46:56]MH_Cut [14:46:56]Write to MH i2c: D1 01 00 E7 26 01 DF [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: D1 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: D1 01 00 [14:46:56]MH_I2C_Read... [14:46:56]Read from MH i2c: D1 01 00 E7 26 00 DE [14:46:56]Write to MH i2c: 01 00 00 E8 26 0E [14:46:56]Write i2c OK [14:46:56]MH_I2C_Read... [14:46:56]*** Cut start [14:46:56]*** Partial cut [14:46:56]*** CUTSNS_PIN = 1 [14:46:56]*** CUTSNS_PIN = 0 [14:46:57]*** Brake cut motor [14:46:57]Read from MH i2c: 01 [14:46:57]MH_I2C_Read... [14:46:57]*** Stop cut motor [14:46:57]*** Cut end [14:46:57]Read from MH i2c: 01 07 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: 01 07 00 E8 26 00 00 00 00 00 FF 0F 23 [14:46:57]process_action print_text done [14:46:57]requested_data is exist [14:46:57]produce_requested_data [14:46:57]requested_item fm.sn is exist - process it [14:46:57]wFMCommunicate request_size=4 [14:46:57]MH_SAM_APDU [14:46:57]CAPDU: 80 11 00 00 [14:46:57]Write to MH i2c: E2 08 00 E9 26 80 11 00 00 00 00 00 00 89 [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:57]Read from MH i2c: E2 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 17 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 17 00 E9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DC [14:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:46:57]wFMCommunicate OK [14:46:57]requested_item fd.num is exist - process it [14:46:57]SAM_PROTO_GetFieldsCounters [14:46:57]wFMCommunicate request_size=4 [14:46:57]MH_SAM_APDU [14:46:57]CAPDU: 80 13 00 00 [14:46:57]Write to MH i2c: E2 08 00 EA 26 80 13 00 00 00 00 00 00 8C [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:57]Read from MH i2c: E2 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 62 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 62 00 EA 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 09 96 01 00 0E 04 04 00 62 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 3C [14:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 09 96 01 00 0E 04 04 00 62 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:46:57]wFMCommunicate OK [14:46:57]SAM_PROTO_GetFieldsCounters done [14:46:57]requested_item shift.num is exist - process it [14:46:57]requested_item shift.opened is exist - process it [14:46:57]req_shift_opened [14:46:57]FM_GetShiftState [14:46:57]SAM_PROTO_GetShiftState [14:46:57]wFMCommunicate request_size=4 [14:46:57]MH_SAM_APDU [14:46:57]CAPDU: 80 13 01 00 [14:46:57]Write to MH i2c: E2 08 00 EB 26 80 13 01 00 00 00 00 00 8E [14:46:57]Write i2c OK [14:46:57]MH_I2C_Read... [14:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:57]Read from MH i2c: E2 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 0E 00 [14:46:57]MH_I2C_Read... [14:46:57]Read from MH i2c: E2 0E 00 EB 26 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DD [14:46:57]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:46:57]wFMCommunicate OK [14:46:57]SAM_PROTO_GetShiftState done [14:46:57]FM_GetShiftState done [14:46:57]req_shift_opened done [14:46:57]requested_item shift.open_date is exist - process it [14:46:57]req_shift_open_date [14:46:57]req_shift_open_date done [14:46:57]produce_requested_data done [14:46:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103945,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:46:57]process_action_free print_text [14:46:57]json_value_free [14:46:57]json_value_free done [14:46:57]process_json_proto returns [14:46:57]Send response to host [14:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103945,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:46:57]free response buf [14:46:57]execute_script done [14:46:57]execute_script returns [14:46:57]free content buf [14:46:57]Sock 7.Close socket [14:46:57]Sock 7.Thread stoped [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]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:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:29]accept exits with 9 [14:52:29]New connection [14:52:29]New thread 3067207012 created [14:52:29]Thread 3067063652 joined [14:52:29]Waiting for new connection... [14:52:29] Sock 9.Parse request [14:52:29]Sock 9.Check first char [14:52:29]Sock 9.First char is OK [14:52:29]request: POST /json_proto HTTP/1.0 [14:52:29]Method: POST [14:52:29]URL: /json_proto [14:52:29]Method is POST - this is cgi request [14:52:29]url: /json_proto [14:52:29]query_string will be loaded in cgi processing [14:52:29]execute_cgi json_proto POST (null) [14:52:29]execute_cgi path=json_proto method=POST [14:52:29]POST find Content-Length [14:52:29]Host: 172.17.38.133:8080 [14:52:29]Content-Length: 682 [14:52:29]Content-Type: application/json [14:52:29] [14:52:29]POST finish read [14:52:29]Found Content-Length = 682 [14:52:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673301", "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" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:29]execute_script... [14:52:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673301", "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" : 73.90, "quantity" : 40.600, "sum" : 3000.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:29]POST & json_proto [14:52:29]process_json_proto [14:52:29]json parsed OK: [14:52:29]protocol is kg_v1.0 [14:52:29]action value=close_receipt [14:52:29]process_action close_receipt [14:52:29]cmd_close_receipt [14:52:29]MH_GetDate [14:52:29]Write to MH i2c: F0 00 00 EC 26 01 [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: F0 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: F0 09 00 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: F0 09 00 EC 26 00 30 42 74 66 BD 8F 7C 64 82 [14:52:29]GetLastDocTimeStamp 1718894760 [14:52:29]current date 1718895152 [14:52:29]FM_GetShiftState [14:52:29]SAM_PROTO_GetShiftState [14:52:29]wFMCommunicate request_size=4 [14:52:29]MH_SAM_APDU [14:52:29]CAPDU: 80 13 01 00 [14:52:29]Write to MH i2c: E2 08 00 ED 26 80 13 01 00 00 00 00 00 90 [14:52:29]Write i2c OK [14:52:29]MH_I2C_Read... [14:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:29]Read from MH i2c: E2 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: E2 0E 00 [14:52:29]MH_I2C_Read... [14:52:29]Read from MH i2c: E2 0E 00 ED 26 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DF [14:52:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:52:29]wFMCommunicate OK [14:52:29]SAM_PROTO_GetShiftState done [14:52:29]FM_GetShiftState done [14:52:29]opened in 1718843124 [14:52:29]opened+sec_in_day 1718929524 [14:52:29]quantity*price = 300034 [14:52:29]sum+1 = 300035 [14:52:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 131 20.06.2024 14:52 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103946 ФПД: 138663750922261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T145232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103946&fm=138663750922261&tin=02508201610067®Number=0000000000092785&sum=300000 [14:52:30]StoreToDocumentArchive [14:52:30]shift 354 fd 103946 [14:52:30]save to /storage/0354/doc_00103946 [14:52:30]save last doc name /storage/0354/doc_00103946 to /storage/kkm_last_doc_name [14:52:30]save OK [14:52:30]Clear old archive folders... [14:52:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:30]tlvbuf is B6DE6830 [14:52:30]SAM_PROTO_ClearQueue [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 09 00 00 [14:52:30]Write to MH i2c: E2 08 00 FA 26 80 09 00 00 00 00 00 00 92 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 FA 26 00 90 00 94 [14:52:30]RAPDU: 90 00 [14:52:30]wFMCommunicate OK [14:52:30]SAM_PROTO_ClearQueue done [14:52:30]KKMCreateOFDPacket [14:52:30]OFDProtocolAddRootSTLVToBuf [14:52:30]FM_MakeSignedData [14:52:30]FM_MakeSignedData [14:52:30]SAM_PROTO_SignData [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 0D 01 02 [14:52:30]Write to MH i2c: E2 08 00 FB 26 80 0D 01 02 00 00 00 00 9A [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 03 00 FB 26 00 90 00 95 [14:52:30]RAPDU: 90 00 [14:52:30]wFMCommunicate OK [14:52:30]wFMCommunicate request_size=255 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 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 76 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 83 00 00 00 F4 03 04 00 30 42 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 96 01 00 35 04 06 00 7E [14:52:30]Write to MH i2c: E2 02 01 FC 26 80 0D 02 02 FA 00 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 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 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 76 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 83 00 00 00 F4 03 04 00 30 42 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 96 01 00 35 04 06 00 7E 00 00 12 [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:31]Read from MH i2c: E2 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 03 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 03 00 FC 26 00 90 00 96 [14:52:31]RAPDU: 90 00 [14:52:31]wFMCommunicate OK [14:52:31]wFMCommunicate request_size=10 [14:52:31]MH_SAM_APDU [14:52:31]CAPDU: 80 0D 02 02 05 1D 2B 9D F0 15 [14:52:31]Write to MH i2c: E2 0D 00 FD 26 80 0D 02 02 05 00 1D 2B 9D F0 15 00 00 91 [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:31]Read from MH i2c: E2 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 03 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 03 00 FD 26 00 90 00 97 [14:52:31]RAPDU: 90 00 [14:52:31]wFMCommunicate OK [14:52:31]wFMCommunicate request_size=4 [14:52:31]MH_SAM_APDU [14:52:31]CAPDU: 80 0D 03 02 [14:52:31]Write to MH i2c: E2 08 00 FE 26 80 0D 03 02 00 00 00 00 9F [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:31]Read from MH i2c: E2 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 0B 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 0B 00 FE 26 00 F3 4D EE A1 D0 C7 90 97 90 00 2D [14:52:31]RAPDU: F3 4D EE A1 D0 C7 90 97 90 00 [14:52:31]wFMCommunicate OK [14:52:31]SAM_PROTO_SignData done [14:52:31]FM_MakeSignedData done [14:52:31]CreateOFDProtocolMessage [14:52:31]wFMCommunicate request_size=4 [14:52:31]MH_SAM_APDU [14:52:31]CAPDU: 80 11 00 00 [14:52:31]Write to MH i2c: E2 08 00 FF 26 80 11 00 00 00 00 00 00 9F [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:31]Read from MH i2c: E2 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 17 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: E2 17 00 FF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F2 [14:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:52:31]wFMCommunicate OK [14:52:31]CreateOFDProtocolMessage done [14:52:31]OFDSenderStorePacket 103946 [14:52:31]StoreOFDPacket docnum=103946 [14:52:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0C 8E 07 01 DC 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 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 76 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 83 00 00 00 F4 03 04 00 30 42 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 96 01 00 35 04 06 00 7E 1D 2B 9D F0 15 F3 4D EE A1 D0 C7 90 97 [14:52:31]CheckFolder [14:52:31]dirname=/storage/ofd_packets [14:52:31]CheckFolder done [14:52:31]ProducePacketName [14:52:31]name=ofd_packets/00103946 [14:52:31]NVStorageSaveData ofd_packets/00103946 [14:52:31]File name is /storage/ofd_packets/00103946 [14:52:31]Write 301 bytes [14:52:31]NVStorageSaveData done [14:52:31]OFDSenderStorePacket done [14:52:31]KKMCreateOFDPacket done [14:52:31]NVStorageSaveData kkm_last_timestamp [14:52:31]File name is /storage/kkm_last_timestamp [14:52:31]OFD Sender: Processing packet 103946 [packets to send 17, broken 16] [14:52:31]ProducePacketName [14:52:31]name=ofd_packets/00103946 [14:52:31]OFD Sender: To server: pG, [14:52:31]CommunicateWithHost lk.salyk.kg:30040 [14:52:31]ConnectInit lk.salyk.kg [14:52:31]Write 4 bytes [14:52:31]NVStorageSaveData done [14:52:31]ExternCall_PrintAddStr [14:52:31]wPrintStart [14:52:31]Write to MH i2c: 01 00 00 00 27 27 [14:52:31]Write i2c OK [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: 01 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: 01 07 00 [14:52:31]MH_I2C_Read... [14:52:31]Read from MH i2c: 01 07 00 00 27 00 00 00 00 00 FF 0F 3C [14:52:31]RasterBufferAndPrint [14:52:31]line Счет N : (1)673301 [14:52:31]line ИНН: 02508201610067 [14:52:31]line Контрольно-Кассовый Чек [14:52:31]line ПРОДАЖА [14:52:31]line ТРК (МРК, ГНК) : 41 [14:52:31]line Товар: 2710124500 [14:52:31]line Аи-95-К-5 [14:52:31]line 40.600 * 73.90 [14:52:31]line = 3000.34 [14:52:31]line НДС 12% НСП 1% [14:52:31]line > о реализуемом товаре [14:52:31]line ОКРУГЛЕНИЕ: -0.34 [14:52:31]line ИТОГО: 3000.00 [14:52:31]line Внесено: 3000.00 [14:52:31]line СДАЧА: 0.00 [14:52:31]line НСП 1% : 26.55 [14:52:31]line НДС 12% : 318.62 [14:52:31]line Наличными: 3000.00 [14:52:31]line Безнал.: 0.00 [14:52:31]line Место: АЗС № 120 "Партнер Нефть" [14:52:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [14:52:31]line СНО: Общий режим [14:52:31]line Чек 131 20.06.2024 14:52 [14:52:31]line Смена: 354 ФФД: 1.0 [14:52:31]line ЗНМ: 0300000164 [14:52:31]line РНМ: 0000000000092785 [14:52:31]line Версия ККМ: 001 [14:52:31]line ФМ: 0000000000875093 [14:52:31]line ФД: 103946 [14:52:31]line ФПД: 138663750922261 [14:52:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T145232&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103946&fm=138663750922261&tin=02508201610067®Number=0000000000092785&sum=300000 [14:52:31]Connected sock=11 [14:52:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0C 8E 07 01 DC 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 98 9E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 02 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 76 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 83 00 00 00 F4 03 04 00 30 42 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 96 01 00 35 04 06 00 7E 1D 2B 9D F0 15 F3 4D EE A1 D0 C7 90 97 [14:52:31]written 0, free lines is 4095 [14:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 50 C5 47 00 B0 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0A 96 01 00 F4 03 04 00 B5 E8 73 66 B6 04 01 00 00 E5 96 7C F5 DF 99 4C 87 [14:52:31]CommunicateWithHost err = 0 [14:52:31]CheckOFDResponse [14:52:31]1017 (14) - 77093643461234 [14:52:31]1041 (16) - 0000000000875093 [14:52:31]1040 (4) - 103946 [14:52:31]1012 (4) - 20.06.2024 08:30 [14:52:31]1206 (1) - 0 [14:52:31]OFD Sender: Remove packet 103946 [14:52:31]ProducePacketName [14:52:31]name=ofd_packets/00103946 [14:52:31]NVStorageDeleteData [14:52:32]Write to MH i2c: 01 00 00 2B 27 52 [14:52:32]Write i2c OK [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: 01 [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: 01 07 00 [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: 01 07 00 2B 27 00 00 00 00 00 EC 0C 51 [14:52:32]RasterBufferAndPrint [14:52:32]line [14:52:32]line [14:52:32]line [14:52:32]line [14:52:32]line [14:52:32]written 0, free lines is 3314 [14:52:32]MH_Cut [14:52:32]Write to MH i2c: D1 01 00 32 27 01 2B [14:52:32]Write i2c OK [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: D1 [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: D1 01 00 [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: D1 01 00 32 27 00 2A [14:52:32]Write to MH i2c: 01 00 00 33 27 5A [14:52:32]Write i2c OK [14:52:32]MH_I2C_Read... [14:52:32]OFD Sender: No OFD packet to send [14:52:32]*** Cut start [14:52:32]*** Partial cut [14:52:32]*** CUTSNS_PIN = 1 [14:52:32]*** CUTSNS_PIN = 0 [14:52:33]*** Brake cut motor [14:52:33]Read from MH i2c: 01 [14:52:33]MH_I2C_Read... [14:52:33]*** Stop cut motor [14:52:33]*** Cut end [14:52:33]Read from MH i2c: 01 07 00 [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: 01 07 00 33 27 00 00 00 00 00 FF 0F 6F [14:52:33]process_action close_receipt done [14:52:33]requested_data is exist [14:52:33]produce_requested_data [14:52:33]requested_item fm.sn is exist - process it [14:52:33]wFMCommunicate request_size=4 [14:52:33]MH_SAM_APDU [14:52:33]CAPDU: 80 11 00 00 [14:52:33]Write to MH i2c: E2 08 00 34 27 80 11 00 00 00 00 00 00 D5 [14:52:33]Write i2c OK [14:52:33]MH_I2C_Read... [14:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:33]Read from MH i2c: E2 [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: E2 17 00 [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: E2 17 00 34 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 28 [14:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:52:33]wFMCommunicate OK [14:52:33]requested_item fd.num is exist - process it [14:52:33]SAM_PROTO_GetFieldsCounters [14:52:33]wFMCommunicate request_size=4 [14:52:33]MH_SAM_APDU [14:52:33]CAPDU: 80 13 00 00 [14:52:33]Write to MH i2c: E2 08 00 35 27 80 13 00 00 00 00 00 00 D8 [14:52:33]Write i2c OK [14:52:33]MH_I2C_Read... [14:52:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:33]Read from MH i2c: E2 [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: E2 62 00 [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: E2 62 00 35 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0A 96 01 00 0E 04 04 00 62 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 8C [14:52:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0A 96 01 00 0E 04 04 00 62 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:52:33]wFMCommunicate OK [14:52:33]SAM_PROTO_GetFieldsCounters done [14:52:33]requested_item shift.num is exist - process it [14:52:33]requested_item shift.opened is exist - process it [14:52:33]req_shift_opened [14:52:33]FM_GetShiftState [14:52:33]SAM_PROTO_GetShiftState [14:52:33]wFMCommunicate request_size=4 [14:52:33]MH_SAM_APDU [14:52:33]CAPDU: 80 13 01 00 [14:52:33]Write to MH i2c: E2 08 00 36 27 80 13 01 00 00 00 00 00 DA [14:52:33]Write i2c OK [14:52:33]MH_I2C_Read... [14:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:33]Read from MH i2c: E2 [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: E2 0E 00 [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: E2 0E 00 36 27 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 29 [14:52:33]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:52:33]wFMCommunicate OK [14:52:33]SAM_PROTO_GetShiftState done [14:52:33]FM_GetShiftState done [14:52:33]req_shift_opened done [14:52:33]requested_item shift.open_date is exist - process it [14:52:33]req_shift_open_date [14:52:33]req_shift_open_date done [14:52:33]produce_requested_data done [14:52:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103946,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:52:33]process_action_free close_receipt [14:52:33]json_value_free [14:52:33]json_value_free done [14:52:33]process_json_proto returns [14:52:33]Send response to host [14:52:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103946,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:52:33]free response buf [14:52:33]execute_script done [14:52:33]execute_script returns [14:52:33]free content buf [14:52:33]Sock 9.Close socket [14:52:33]Sock 9.Thread stoped [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:09]accept exits with 7 [14:58:09]New connection [14:58:09]New thread 3067063652 created [14:58:09]Thread 3067207012 joined [14:58:09]Waiting for new connection... [14:58:09] Sock 7.Parse request [14:58:09]Sock 7.Check first char [14:58:09]Sock 7.First char is OK [14:58:09]request: POST /json_proto HTTP/1.0 [14:58:09]Method: POST [14:58:09]URL: /json_proto [14:58:09]Method is POST - this is cgi request [14:58:09]url: /json_proto [14:58:09]query_string will be loaded in cgi processing [14:58:09]execute_cgi json_proto POST (null) [14:58:09]execute_cgi path=json_proto method=POST [14:58:09]POST find Content-Length [14:58:09]Host: 172.17.38.133:8080 [14:58:09]Content-Length: 1214 [14:58:09]Content-Type: application/json [14:58:09] [14:58:09]POST finish read [14:58:09]Found Content-Length = 1214 [14:58:09]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673300\u000A20.06.2024 14:35\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 199.800 x 72.90\u000A\u0418\u0422\u041E\u0413: 14565.42\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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:09]execute_script... [14:58:09]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673300\u000A20.06.2024 14:35\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 199.800 x 72.90\u000A\u0418\u0422\u041E\u0413: 14565.42\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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:09]POST & json_proto [14:58:09]process_json_proto [14:58:09]json parsed OK: [14:58:09]protocol is kg_v1.0 [14:58:09]action value=print_text [14:58:09]process_action print_text [14:58:09]cmd_print_text [14:58:09]ExternCall_PrintAddStr [14:58:09]wPrintStart [14:58:09]Write to MH i2c: 01 00 00 37 27 5E [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: 01 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: 01 07 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: 01 07 00 37 27 00 00 00 00 00 FF 0F 73 [14:58:09]RasterBufferAndPrint [14:58:09]line *****ТОВАРНЫЙ ЧЕК***** [14:58:09]line АЗС 120 [14:58:09]line Партнер нефть [14:58:09]line 02508201610067 [14:58:09]line Кассир : Дуйшенбиев А. [14:58:09]line Счет N : (1)673300 [14:58:09]line 20.06.2024 14:35 [14:58:09]line ПРОДАЖА [14:58:09]line ТРК (МРК, ГНК): 21 [14:58:09]line Вид ГСМ : 2710194210 [14:58:09]line ДТ(л)-К-5 [14:58:09]line 199.800 x 72.90 [14:58:09]line ИТОГ: 14565.42 [14:58:09]line Тип оплаты: Талоны: Топливная Карта [14:58:09]line 72637 [14:58:09]line ______________________ [14:58:09]line (подпись) [14:58:09]written 0, free lines is 4095 [14:58:09]Write to MH i2c: 01 00 00 4B 27 72 [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: 01 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: 01 07 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: 01 07 00 4B 27 00 00 00 00 00 13 0E 9A [14:58:09]RasterBufferAndPrint [14:58:09]line [14:58:09]line [14:58:09]line [14:58:09]line [14:58:09]line [14:58:09]written 0, free lines is 3605 [14:58:09]MH_Cut [14:58:09]Write to MH i2c: D1 01 00 52 27 01 4B [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: D1 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: D1 01 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: D1 01 00 52 27 00 4A [14:58:09]Write to MH i2c: 01 00 00 53 27 7A [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]*** Cut start [14:58:09]*** Partial cut [14:58:09]*** CUTSNS_PIN = 1 [14:58:10]*** CUTSNS_PIN = 0 [14:58:10]*** Brake cut motor [14:58:10]Read from MH i2c: 01 [14:58:10]MH_I2C_Read... [14:58:10]*** Stop cut motor [14:58:10]*** Cut end [14:58:10]Read from MH i2c: 01 07 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: 01 07 00 53 27 00 00 00 00 00 FF 0F 8F [14:58:10]process_action print_text done [14:58:10]requested_data is exist [14:58:10]produce_requested_data [14:58:10]requested_item fm.sn is exist - process it [14:58:10]wFMCommunicate request_size=4 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 11 00 00 [14:58:10]Write to MH i2c: E2 08 00 54 27 80 11 00 00 00 00 00 00 F5 [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 17 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 17 00 54 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 48 [14:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [14:58:10]wFMCommunicate OK [14:58:10]requested_item fd.num is exist - process it [14:58:10]SAM_PROTO_GetFieldsCounters [14:58:10]wFMCommunicate request_size=4 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 13 00 00 [14:58:10]Write to MH i2c: E2 08 00 55 27 80 13 00 00 00 00 00 00 F8 [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 62 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 62 00 55 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0A 96 01 00 0E 04 04 00 62 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 AC [14:58:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0A 96 01 00 0E 04 04 00 62 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:58:10]wFMCommunicate OK [14:58:10]SAM_PROTO_GetFieldsCounters done [14:58:10]requested_item shift.num is exist - process it [14:58:10]requested_item shift.opened is exist - process it [14:58:10]req_shift_opened [14:58:10]FM_GetShiftState [14:58:10]SAM_PROTO_GetShiftState [14:58:10]wFMCommunicate request_size=4 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 13 01 00 [14:58:10]Write to MH i2c: E2 08 00 56 27 80 13 01 00 00 00 00 00 FA [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 0E 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 0E 00 56 27 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 49 [14:58:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [14:58:10]wFMCommunicate OK [14:58:10]SAM_PROTO_GetShiftState done [14:58:10]FM_GetShiftState done [14:58:10]req_shift_opened done [14:58:10]requested_item shift.open_date is exist - process it [14:58:10]req_shift_open_date [14:58:10]req_shift_open_date done [14:58:10]produce_requested_data done [14:58:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103946,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [14:58:10]process_action_free print_text [14:58:10]json_value_free [14:58:10]json_value_free done [14:58:10]process_json_proto returns [14:58:10]Send response to host [14:58:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103946,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [14:58:10]free response buf [14:58:10]execute_script done [14:58:10]execute_script returns [14:58:10]free content buf [14:58:10]Sock 7.Close socket [14:58:10]Sock 7.Thread stoped [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]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:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]accept exits with 10 [15:00:27]New connection [15:00:27]New thread 3067207012 created [15:00:27]Thread 3067063652 joined [15:00:27]Waiting for new connection... [15:00:27] Sock 10.Parse request [15:00:27]Sock 10.Check first char [15:00:27]Sock 10.First char is OK [15:00:27]request: POST /json_proto HTTP/1.0 [15:00:27]Method: POST [15:00:27]URL: /json_proto [15:00:27]Method is POST - this is cgi request [15:00:27]url: /json_proto [15:00:27]query_string will be loaded in cgi processing [15:00:27]execute_cgi json_proto POST (null) [15:00:27]execute_cgi path=json_proto method=POST [15:00:27]POST find Content-Length [15:00:27]Host: 172.17.38.133:8080 [15:00:27]Content-Length: 819 [15:00:27]Content-Type: application/json [15:00:27] [15:00:27]POST finish read [15:00:27]Found Content-Length = 819 [15:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673302", "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" : 73.90, "quantity" : 34.390, "sum" : 2541.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2541.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:27]execute_script... [15:00: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)673302", "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" : 73.90, "quantity" : 34.390, "sum" : 2541.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2541.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:27]POST & json_proto [15:00:27]process_json_proto [15:00:27]json parsed OK: [15:00:27]protocol is kg_v1.0 [15:00:27]action value=close_receipt [15:00:27]process_action close_receipt [15:00:27]cmd_close_receipt [15:00:27]MH_GetDate [15:00:27]Write to MH i2c: F0 00 00 57 27 6D [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: F0 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: F0 09 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: F0 09 00 57 27 00 0D 44 74 66 BD 8F 7C 64 CD [15:00:27]GetLastDocTimeStamp 1718895152 [15:00:27]current date 1718895629 [15:00:27]FM_GetShiftState [15:00:27]SAM_PROTO_GetShiftState [15:00:27]wFMCommunicate request_size=4 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 13 01 00 [15:00:27]Write to MH i2c: E2 08 00 58 27 80 13 01 00 00 00 00 00 FC [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 0E 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 0E 00 58 27 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 4B [15:00:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:00:27]wFMCommunicate OK [15:00:27]SAM_PROTO_GetShiftState done [15:00:27]FM_GetShiftState done [15:00:27]opened in 1718843124 [15:00:27]opened+sec_in_day 1718929524 [15:00:27]quantity*price = 254142 [15:00:27]sum+1 = 254143 [15:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2541.42 НСП 1% : 22.49 НДС 12% : 269.88 Наличными: 0.00 Безнал.: 2541.42 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 132 20.06.2024 15:00 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103947 ФПД: 245902293057333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150029&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103947&fm=245902293057333&tin=02508201610067®Number=0000000000092785&sum=254142 [15:00:28]StoreToDocumentArchive [15:00:28]shift 354 fd 103947 [15:00:28]save to /storage/0354/doc_00103947 [15:00:28]save last doc name /storage/0354/doc_00103947 to /storage/kkm_last_doc_name [15:00:28]save OK [15:00:28]Clear old archive folders... [15:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:28]tlvbuf is 00846D70 [15:00:28]SAM_PROTO_ClearQueue [15:00:28]wFMCommunicate request_size=4 [15:00:28]MH_SAM_APDU [15:00:28]CAPDU: 80 09 00 00 [15:00:28]Write to MH i2c: E2 08 00 65 27 80 09 00 00 00 00 00 00 FE [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:28]Read from MH i2c: E2 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 65 27 00 90 00 00 [15:00:28]RAPDU: 90 00 [15:00:28]wFMCommunicate OK [15:00:28]SAM_PROTO_ClearQueue done [15:00:28]KKMCreateOFDPacket [15:00:28]OFDProtocolAddRootSTLVToBuf [15:00:28]FM_MakeSignedData [15:00:28]FM_MakeSignedData [15:00:28]SAM_PROTO_SignData [15:00:28]wFMCommunicate request_size=4 [15:00:28]MH_SAM_APDU [15:00:28]CAPDU: 80 0D 01 02 [15:00:28]Write to MH i2c: E2 08 00 66 27 80 0D 01 02 00 00 00 00 06 [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:28]Read from MH i2c: E2 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 66 27 00 90 00 01 [15:00:28]RAPDU: 90 00 [15:00:28]wFMCommunicate OK [15:00:28]wFMCommunicate request_size=255 [15:00:28]MH_SAM_APDU [15:00: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 56 86 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 BE E0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE E0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE E0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 0D 44 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 96 01 00 35 04 06 00 DF [15:00:28]Write to MH i2c: E2 02 01 67 27 80 0D 02 02 FA 00 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 86 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 BE E0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE E0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE E0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 0D 44 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 96 01 00 35 04 06 00 DF 00 00 0C [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:28]Read from MH i2c: E2 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 67 27 00 90 00 02 [15:00:28]RAPDU: 90 00 [15:00:28]wFMCommunicate OK [15:00:28]wFMCommunicate request_size=10 [15:00:28]MH_SAM_APDU [15:00:28]CAPDU: 80 0D 02 02 05 A5 96 D3 BF 35 [15:00:28]Write to MH i2c: E2 0D 00 68 27 80 0D 02 02 05 00 A5 96 D3 BF 35 00 00 15 [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:28]Read from MH i2c: E2 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 68 27 00 90 00 03 [15:00:28]RAPDU: 90 00 [15:00:28]wFMCommunicate OK [15:00:28]wFMCommunicate request_size=4 [15:00:28]MH_SAM_APDU [15:00:28]CAPDU: 80 0D 03 02 [15:00:28]Write to MH i2c: E2 08 00 69 27 80 0D 03 02 00 00 00 00 0B [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:28]Read from MH i2c: E2 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 0B 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 0B 00 69 27 00 E8 C0 DF 8F E2 B3 D7 97 90 00 25 [15:00:28]RAPDU: E8 C0 DF 8F E2 B3 D7 97 90 00 [15:00:28]wFMCommunicate OK [15:00:28]SAM_PROTO_SignData done [15:00:28]FM_MakeSignedData done [15:00:28]CreateOFDProtocolMessage [15:00:28]wFMCommunicate request_size=4 [15:00:28]MH_SAM_APDU [15:00:28]CAPDU: 80 11 00 00 [15:00:28]Write to MH i2c: E2 08 00 6A 27 80 11 00 00 00 00 00 00 0B [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:28]Read from MH i2c: E2 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 17 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 17 00 6A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5E [15:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:00:28]wFMCommunicate OK [15:00:28]CreateOFDProtocolMessage done [15:00:28]OFDSenderStorePacket 103947 [15:00:28]StoreOFDPacket docnum=103947 [15:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 72 63 07 01 B5 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 86 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 BE E0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE E0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE E0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 0D 44 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 96 01 00 35 04 06 00 DF A5 96 D3 BF 35 E8 C0 DF 8F E2 B3 D7 97 [15:00:28]CheckFolder [15:00:28]dirname=/storage/ofd_packets [15:00:28]CheckFolder done [15:00:28]ProducePacketName [15:00:28]name=ofd_packets/00103947 [15:00:28]NVStorageSaveData ofd_packets/00103947 [15:00:28]File name is /storage/ofd_packets/00103947 [15:00:28]Write 301 bytes [15:00:28]NVStorageSaveData done [15:00:28]OFDSenderStorePacket done [15:00:28]KKMCreateOFDPacket done [15:00:28]NVStorageSaveData kkm_last_timestamp [15:00:28]File name is /storage/kkm_last_timestamp [15:00:28]Write 4 bytes [15:00:28]NVStorageSaveData done [15:00:28]ExternCall_PrintAddStr [15:00:28]wPrintStart [15:00:28]Write to MH i2c: 01 00 00 6B 27 92 [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: 01 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: 01 07 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: 01 07 00 6B 27 00 00 00 00 00 FF 0F A7 [15:00:28]RasterBufferAndPrint [15:00:28]line Счет N : (1)673302 [15:00:28]line ИНН: 02508201610067 [15:00:28]line Контрольно-Кассовый Чек [15:00:28]line ПРОДАЖА [15:00:28]line ТРК (МРК, ГНК) : 41 [15:00:28]line Товар: 2710124500 [15:00:28]line Аи-95-К-5 [15:00:28]line 34.390 * 73.90 [15:00:28]line = 2541.42 [15:00:28]line НДС 12% НСП 1% [15:00:28]line > о реализуемом товаре [15:00:28]line ИТОГО: 2541.42 [15:00:28]line НСП 1% : 22.49 [15:00:28]line НДС 12% : 269.88 [15:00:28]line Наличными: 0.00 [15:00:28]line Безнал.: 2541.42 [15:00:28]line Место: АЗС № 120 "Партнер Нефть" [15:00:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:00:28]line СНО: Общий режим [15:00:28]line Чек 132 20.06.2024 15:00 [15:00:28]line Смена: 354 ФФД: 1.0 [15:00:28]line ЗНМ: 0300000164 [15:00:28]line РНМ: 0000000000092785 [15:00:28]line Версия ККМ: 001 [15:00:28]line Платежная система: Бакай Банк [15:00:28]line ФМ: 0000000000875093 [15:00:28]line ФД: 103947 [15:00:28]line ФПД: 245902293057333 [15:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150029&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103947&fm=245902293057333&tin=02508201610067®Number=0000000000092785&sum=254142 [15:00:29]OFD Sender: Processing packet 103947 [packets to send 17, broken 16] [15:00:29]ProducePacketName [15:00:29]name=ofd_packets/00103947 [15:00:29]OFD Sender: To server: pG, [15:00:29]CommunicateWithHost lk.salyk.kg:30040 [15:00:29]ConnectInit lk.salyk.kg [15:00:29]written 0, free lines is 4095 [15:00:29]Connected sock=9 [15:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 72 63 07 01 B5 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 86 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 BE E0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE E0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 69 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE E0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 0D 44 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0B 96 01 00 35 04 06 00 DF A5 96 D3 BF 35 E8 C0 DF 8F E2 B3 D7 97 [15:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BB 6A 47 00 7C 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 35 30 39 33 10 04 04 00 0B 96 01 00 F4 03 04 00 92 EA 73 66 B6 04 01 00 00 73 A7 1B 36 81 6B 6D 9E [15:00:29]CommunicateWithHost err = 0 [15:00:29]CheckOFDResponse [15:00:29]1017 (14) - 77093643461234 [15:00:29]1041 (16) - 0000000000875093 [15:00:29]1040 (4) - 103947 [15:00:29]1012 (4) - 20.06.2024 08:38 [15:00:29]1206 (1) - 0 [15:00:29]OFD Sender: Remove packet 103947 [15:00:29]ProducePacketName [15:00:29]name=ofd_packets/00103947 [15:00:29]NVStorageDeleteData [15:00:29]Write to MH i2c: 01 00 00 95 27 BC [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: 01 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: 01 07 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: 01 07 00 95 27 00 00 00 00 00 0A 0D DA [15:00:29]RasterBufferAndPrint [15:00:29]line [15:00:29]line [15:00:29]line [15:00:29]line [15:00:29]line [15:00:29]written 0, free lines is 3346 [15:00:29]MH_Cut [15:00:29]Write to MH i2c: D1 01 00 9C 27 01 95 [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: D1 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: D1 01 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: D1 01 00 9C 27 00 94 [15:00:29]Write to MH i2c: 01 00 00 9D 27 C4 [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:30]OFD Sender: No OFD packet to send [15:00:30]*** Cut start [15:00:30]*** Partial cut [15:00:30]*** CUTSNS_PIN = 1 [15:00:30]*** CUTSNS_PIN = 0 [15:00:30]*** Brake cut motor [15:00:30]Read from MH i2c: 01 [15:00:31]MH_I2C_Read... [15:00:31]*** Stop cut motor [15:00:31]*** Cut end [15:00:31]Read from MH i2c: 01 07 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: 01 07 00 9D 27 00 00 00 00 00 FF 0F D9 [15:00:31]process_action close_receipt done [15:00:31]requested_data is exist [15:00:31]produce_requested_data [15:00:31]requested_item fm.sn is exist - process it [15:00:31]wFMCommunicate request_size=4 [15:00:31]MH_SAM_APDU [15:00:31]CAPDU: 80 11 00 00 [15:00:31]Write to MH i2c: E2 08 00 9E 27 80 11 00 00 00 00 00 00 3F [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 17 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 17 00 9E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 92 [15:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:00:31]wFMCommunicate OK [15:00:31]requested_item fd.num is exist - process it [15:00:31]SAM_PROTO_GetFieldsCounters [15:00:31]wFMCommunicate request_size=4 [15:00:31]MH_SAM_APDU [15:00:31]CAPDU: 80 13 00 00 [15:00:31]Write to MH i2c: E2 08 00 9F 27 80 13 00 00 00 00 00 00 42 [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 62 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 62 00 9F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 96 01 00 0E 04 04 00 62 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 FA [15:00:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:31]wFMCommunicate OK [15:00:31]SAM_PROTO_GetFieldsCounters done [15:00:31]requested_item shift.num is exist - process it [15:00:31]requested_item shift.opened is exist - process it [15:00:31]req_shift_opened [15:00:31]FM_GetShiftState [15:00:31]SAM_PROTO_GetShiftState [15:00:31]wFMCommunicate request_size=4 [15:00:31]MH_SAM_APDU [15:00:31]CAPDU: 80 13 01 00 [15:00:31]Write to MH i2c: E2 08 00 A0 27 80 13 01 00 00 00 00 00 44 [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:31]Read from MH i2c: E2 0E 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 0E 00 A0 27 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 93 [15:00:31]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:00:31]wFMCommunicate OK [15:00:31]SAM_PROTO_GetShiftState done [15:00:31]FM_GetShiftState done [15:00:31]req_shift_opened done [15:00:31]requested_item shift.open_date is exist - process it [15:00:31]req_shift_open_date [15:00:31]req_shift_open_date done [15:00:31]produce_requested_data done [15:00:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103947,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:00:31]process_action_free close_receipt [15:00:31]json_value_free [15:00:31]json_value_free done [15:00:31]process_json_proto returns [15:00:31]Send response to host [15:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103947,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:00:31]free response buf [15:00:31]execute_script done [15:00:31]execute_script returns [15:00:31]free content buf [15:00:31]Sock 10.Close socket [15:00:31]Sock 10.Thread stoped [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:08]accept exits with 7 [15:01:08]New connection [15:01:08]New thread 3067063652 created [15:01:08]Thread 3067207012 joined [15:01:08]Waiting for new connection... [15:01:08] Sock 7.Parse request [15:01:08]Sock 7.Check first char [15:01:08]Sock 7.First char is OK [15:01:08]request: POST /json_proto HTTP/1.0 [15:01:08]Method: POST [15:01:08]URL: /json_proto [15:01:08]Method is POST - this is cgi request [15:01:08]url: /json_proto [15:01:08]query_string will be loaded in cgi processing [15:01:08]execute_cgi json_proto POST (null) [15:01:08]execute_cgi path=json_proto method=POST [15:01:08]POST find Content-Length [15:01:08]Host: 172.17.38.133:8080 [15:01:08]Content-Length: 1168 [15:01:08]Content-Type: application/json [15:01:08] [15:01:08]POST finish read [15:01:08]Found Content-Length = 1168 [15:01: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673304\u000A20.06.2024 14:38\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 66.40\u000A\u0418\u0422\u041E\u0413: 996.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085056\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:08]execute_script... [15:01: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673304\u000A20.06.2024 14:38\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 66.40\u000A\u0418\u0422\u041E\u0413: 996.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085056\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:08]POST & json_proto [15:01:08]process_json_proto [15:01:08]json parsed OK: [15:01:08]protocol is kg_v1.0 [15:01:08]action value=print_text [15:01:08]process_action print_text [15:01:08]cmd_print_text [15:01:08]ExternCall_PrintAddStr [15:01:08]wPrintStart [15:01:08]Write to MH i2c: 01 00 00 A1 27 C8 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 07 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 07 00 A1 27 00 00 00 00 00 FF 0F DD [15:01:08]RasterBufferAndPrint [15:01:08]line *****ТОВАРНЫЙ ЧЕК***** [15:01:08]line АЗС 120 [15:01:08]line Партнер нефть [15:01:08]line 02508201610067 [15:01:08]line Кассир : Дуйшенбиев А. [15:01:08]line Счет N : (1)673304 [15:01:08]line 20.06.2024 14:38 [15:01:08]line ПРОДАЖА [15:01:08]line ТРК (МРК, ГНК): 32 [15:01:08]line Вид ГСМ : 2710124130 [15:01:08]line Аи-92-К-5 [15:01:08]line 15.000 x 66.40 [15:01:08]line ИТОГ: 996.00 [15:01:08]line Тип оплаты: Талоны: ТК ГПНА Online [15:01:08]line 30085056 [15:01:08]line ______________________ [15:01:08]line (подпись) [15:01:08]written 0, free lines is 4095 [15:01:08]Write to MH i2c: 01 00 00 B5 27 DC [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 07 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: 01 07 00 B5 27 00 00 00 00 00 12 0E 03 [15:01:08]RasterBufferAndPrint [15:01:08]line [15:01:08]line [15:01:08]line [15:01:08]line [15:01:08]line [15:01:08]written 0, free lines is 3604 [15:01:08]MH_Cut [15:01:08]Write to MH i2c: D1 01 00 BC 27 01 B5 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: D1 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: D1 01 00 [15:01:08]MH_I2C_Read... [15:01:08]Read from MH i2c: D1 01 00 BC 27 00 B4 [15:01:08]Write to MH i2c: 01 00 00 BD 27 E4 [15:01:08]Write i2c OK [15:01:08]MH_I2C_Read... [15:01:09]*** Cut start [15:01:09]*** Partial cut [15:01:09]*** CUTSNS_PIN = 1 [15:01:09]*** CUTSNS_PIN = 0 [15:01:09]*** Brake cut motor [15:01:10]Read from MH i2c: 01 [15:01:10]MH_I2C_Read... [15:01:10]*** Stop cut motor [15:01:10]*** Cut end [15:01:10]Read from MH i2c: 01 07 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: 01 07 00 BD 27 00 00 00 00 00 FF 0F F9 [15:01:10]process_action print_text done [15:01:10]requested_data is exist [15:01:10]produce_requested_data [15:01:10]requested_item fm.sn is exist - process it [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 11 00 00 [15:01:10]Write to MH i2c: E2 08 00 BE 27 80 11 00 00 00 00 00 00 5F [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 17 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 17 00 BE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [15:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:01:10]wFMCommunicate OK [15:01:10]requested_item fd.num is exist - process it [15:01:10]SAM_PROTO_GetFieldsCounters [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 13 00 00 [15:01:10]Write to MH i2c: E2 08 00 BF 27 80 13 00 00 00 00 00 00 62 [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]OFD Sender: No OFD packet to send [15:01:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 62 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 62 00 BF 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [15: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:10]wFMCommunicate OK [15:01:10]SAM_PROTO_GetFieldsCounters done [15:01:10]requested_item shift.num is exist - process it [15:01:10]requested_item shift.opened is exist - process it [15:01:10]req_shift_opened [15:01:10]FM_GetShiftState [15:01:10]SAM_PROTO_GetShiftState [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 13 01 00 [15:01:10]Write to MH i2c: E2 08 00 C0 27 80 13 01 00 00 00 00 00 64 [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 0E 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 0E 00 C0 27 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B3 [15:01:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:01:10]wFMCommunicate OK [15:01:10]SAM_PROTO_GetShiftState done [15:01:10]FM_GetShiftState done [15:01:10]req_shift_opened done [15:01:10]requested_item shift.open_date is exist - process it [15:01:10]req_shift_open_date [15:01:10]req_shift_open_date done [15:01:10]produce_requested_data done [15:01:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103947,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:01:10]process_action_free print_text [15:01:10]json_value_free [15:01:10]json_value_free done [15:01:10]process_json_proto returns [15:01:10]Send response to host [15:01:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103947,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:01:10]free response buf [15:01:10]execute_script done [15:01:10]execute_script returns [15:01:10]free content buf [15:01:10]Sock 7.Close socket [15:01:10]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [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:36]accept exits with 9 [15:04:36]New connection [15:04:36]New thread 3067207012 created [15:04:36]Thread 3067063652 joined [15:04:36]Waiting for new connection... [15:04:36] Sock 9.Parse request [15:04:36]Sock 9.Check first char [15:04:36]Sock 9.First char is OK [15:04:36]request: POST /json_proto HTTP/1.0 [15:04:36]Method: POST [15:04:36]URL: /json_proto [15:04:36]Method is POST - this is cgi request [15:04:36]url: /json_proto [15:04:36]query_string will be loaded in cgi processing [15:04:36]execute_cgi json_proto POST (null) [15:04:36]execute_cgi path=json_proto method=POST [15:04:36]POST find Content-Length [15:04:36]Host: 172.17.38.133:8080 [15:04:36]Content-Length: 1169 [15:04:36]Content-Type: application/json [15:04:36] [15:04:36]POST finish read [15:04:36]Found Content-Length = 1169 [15:04:36]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673305\u000A20.06.2024 14:41\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 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085080\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:36]execute_script... [15:04:36]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673305\u000A20.06.2024 14:41\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 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085080\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:36]POST & json_proto [15:04:36]process_json_proto [15:04:36]json parsed OK: [15:04:36]protocol is kg_v1.0 [15:04:36]action value=print_text [15:04:36]process_action print_text [15:04:36]cmd_print_text [15:04:36]ExternCall_PrintAddStr [15:04:36]wPrintStart [15:04:36]Write to MH i2c: 01 00 00 C1 27 E8 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 07 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 07 00 C1 27 00 00 00 00 00 FF 0F FD [15:04:36]RasterBufferAndPrint [15:04:36]line *****ТОВАРНЫЙ ЧЕК***** [15:04:36]line АЗС 120 [15:04:36]line Партнер нефть [15:04:36]line 02508201610067 [15:04:36]line Кассир : Дуйшенбиев А. [15:04:36]line Счет N : (1)673305 [15:04:36]line 20.06.2024 14:41 [15:04:36]line ПРОДАЖА [15:04:36]line ТРК (МРК, ГНК): 32 [15:04:36]line Вид ГСМ : 2710124130 [15:04:36]line Аи-92-К-5 [15:04:36]line 30.000 x 66.40 [15:04:36]line ИТОГ: 1992.00 [15:04:36]line Тип оплаты: Талоны: ТК ГПНА Online [15:04:36]line 30085080 [15:04:36]line ______________________ [15:04:36]line (подпись) [15:04:36]written 0, free lines is 4095 [15:04:36]Write to MH i2c: 01 00 00 D5 27 FC [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 07 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: 01 07 00 D5 27 00 00 00 00 00 13 0E 24 [15:04:36]RasterBufferAndPrint [15:04:36]line [15:04:36]line [15:04:36]line [15:04:36]line [15:04:36]line [15:04:36]written 0, free lines is 3605 [15:04:36]MH_Cut [15:04:36]Write to MH i2c: D1 01 00 DC 27 01 D5 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: D1 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: D1 01 00 [15:04:36]MH_I2C_Read... [15:04:36]Read from MH i2c: D1 01 00 DC 27 00 D4 [15:04:36]Write to MH i2c: 01 00 00 DD 27 04 [15:04:36]Write i2c OK [15:04:36]MH_I2C_Read... [15:04:37]*** Cut start [15:04:37]*** Partial cut [15:04:37]*** CUTSNS_PIN = 1 [15:04:37]*** CUTSNS_PIN = 0 [15:04:37]*** Brake cut motor [15:04:37]Read from MH i2c: 01 [15:04:37]MH_I2C_Read... [15:04:37]*** Stop cut motor [15:04:37]*** Cut end [15:04:37]Read from MH i2c: 01 07 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: 01 07 00 DD 27 00 00 00 00 00 FF 0F 19 [15:04:37]process_action print_text done [15:04:37]requested_data is exist [15:04:37]produce_requested_data [15:04:37]requested_item fm.sn is exist - process it [15:04:37]wFMCommunicate request_size=4 [15:04:37]MH_SAM_APDU [15:04:37]CAPDU: 80 11 00 00 [15:04:37]Write to MH i2c: E2 08 00 DE 27 80 11 00 00 00 00 00 00 7F [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:37]Read from MH i2c: E2 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 17 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 17 00 DE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [15:04:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:04:37]wFMCommunicate OK [15:04:37]requested_item fd.num is exist - process it [15:04:37]SAM_PROTO_GetFieldsCounters [15:04:37]wFMCommunicate request_size=4 [15:04:37]MH_SAM_APDU [15:04:37]CAPDU: 80 13 00 00 [15:04:37]Write to MH i2c: E2 08 00 DF 27 80 13 00 00 00 00 00 00 82 [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:37]Read from MH i2c: E2 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 62 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 62 00 DF 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 96 01 00 0E 04 04 00 62 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 3A [15:04:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:37]wFMCommunicate OK [15:04:37]SAM_PROTO_GetFieldsCounters done [15:04:37]requested_item shift.num is exist - process it [15:04:37]requested_item shift.opened is exist - process it [15:04:37]req_shift_opened [15:04:37]FM_GetShiftState [15:04:37]SAM_PROTO_GetShiftState [15:04:37]wFMCommunicate request_size=4 [15:04:37]MH_SAM_APDU [15:04:37]CAPDU: 80 13 01 00 [15:04:37]Write to MH i2c: E2 08 00 E0 27 80 13 01 00 00 00 00 00 84 [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:37]Read from MH i2c: E2 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 0E 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 0E 00 E0 27 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D3 [15:04:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:04:37]wFMCommunicate OK [15:04:37]SAM_PROTO_GetShiftState done [15:04:37]FM_GetShiftState done [15:04:37]req_shift_opened done [15:04:37]requested_item shift.open_date is exist - process it [15:04:37]req_shift_open_date [15:04:37]req_shift_open_date done [15:04:37]produce_requested_data done [15:04:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103947,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:04:37]process_action_free print_text [15:04:37]json_value_free [15:04:37]json_value_free done [15:04:37]process_json_proto returns [15:04:37]Send response to host [15:04:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103947,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:04:37]free response buf [15:04:37]execute_script done [15:04:37]execute_script returns [15:04:37]free content buf [15:04:37]Sock 9.Close socket [15:04:37]Sock 9.Thread stoped [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [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:09]accept exits with 7 [15:07:09]New connection [15:07:09]New thread 3067063652 created [15:07:09]Thread 3067207012 joined [15:07:09]Waiting for new connection... [15:07:09] Sock 7.Parse request [15:07:09]Sock 7.Check first char [15:07:09]Sock 7.First char is OK [15:07:09]request: POST /json_proto HTTP/1.0 [15:07:09]Method: POST [15:07:09]URL: /json_proto [15:07:09]Method is POST - this is cgi request [15:07:09]url: /json_proto [15:07:09]query_string will be loaded in cgi processing [15:07:09]execute_cgi json_proto POST (null) [15:07:09]execute_cgi path=json_proto method=POST [15:07:09]POST find Content-Length [15:07:09]Host: 172.17.38.133:8080 [15:07:09]Content-Length: 682 [15:07:09]Content-Type: application/json [15:07:09] [15:07:09]POST finish read [15:07:09]Found Content-Length = 682 [15:07:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 28.620, "sum" : 1900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:09]execute_script... [15:07: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)673307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 28.620, "sum" : 1900.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1900.00, "payments": [ { "type": 0, "sum" : 1900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:09]POST & json_proto [15:07:09]process_json_proto [15:07:09]json parsed OK: [15:07:09]protocol is kg_v1.0 [15:07:09]action value=close_receipt [15:07:09]process_action close_receipt [15:07:09]cmd_close_receipt [15:07:09]MH_GetDate [15:07:09]Write to MH i2c: F0 00 00 E1 27 F7 [15:07:09]Write i2c OK [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: F0 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: F0 09 00 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: F0 09 00 E1 27 00 9F 45 74 66 BD 8F 7C 64 EA [15:07:09]GetLastDocTimeStamp 1718895629 [15:07:09]current date 1718896031 [15:07:09]FM_GetShiftState [15:07:09]SAM_PROTO_GetShiftState [15:07:09]wFMCommunicate request_size=4 [15:07:09]MH_SAM_APDU [15:07:09]CAPDU: 80 13 01 00 [15:07:09]Write to MH i2c: E2 08 00 E2 27 80 13 01 00 00 00 00 00 86 [15:07:09]Write i2c OK [15:07:09]MH_I2C_Read... [15:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:09]Read from MH i2c: E2 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 0E 00 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 0E 00 E2 27 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D5 [15:07:09]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:07:09]wFMCommunicate OK [15:07:09]SAM_PROTO_GetShiftState done [15:07:09]FM_GetShiftState done [15:07:09]opened in 1718843124 [15:07:09]opened+sec_in_day 1718929524 [15:07:09]quantity*price = 190036 [15:07:09]sum+1 = 190038 [15:07:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1900.00 Внесено: 1900.00 СДАЧА: 0.00 НСП 1% : 16.82 НДС 12% : 201.81 Наличными: 1900.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 133 20.06.2024 15:07 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103948 ФПД: 211159691060668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150711&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103948&fm=211159691060668&tin=02508201610067®Number=0000000000092785&sum=190000 [15:07:10]StoreToDocumentArchive [15:07:10]shift 354 fd 103948 [15:07:10]save to /storage/0354/doc_00103948 [15:07:10]save last doc name /storage/0354/doc_00103948 to /storage/kkm_last_doc_name [15:07:10]save OK [15:07:10]Clear old archive folders... [15:07:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:10]tlvbuf is B6F18B40 [15:07:10]SAM_PROTO_ClearQueue [15:07:10]wFMCommunicate request_size=4 [15:07:10]MH_SAM_APDU [15:07:10]CAPDU: 80 09 00 00 [15:07:10]Write to MH i2c: E2 08 00 EF 27 80 09 00 00 00 00 00 00 88 [15:07:10]Write i2c OK [15:07:10]MH_I2C_Read... [15:07:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:10]Read from MH i2c: E2 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 03 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 03 00 EF 27 00 90 00 8A [15:07:10]RAPDU: 90 00 [15:07:10]wFMCommunicate OK [15:07:10]SAM_PROTO_ClearQueue done [15:07:10]KKMCreateOFDPacket [15:07:10]OFDProtocolAddRootSTLVToBuf [15:07:10]FM_MakeSignedData [15:07:10]FM_MakeSignedData [15:07:10]SAM_PROTO_SignData [15:07:10]wFMCommunicate request_size=4 [15:07:10]MH_SAM_APDU [15:07:10]CAPDU: 80 0D 01 02 [15:07:10]Write to MH i2c: E2 08 00 F0 27 80 0D 01 02 00 00 00 00 90 [15:07:10]Write i2c OK [15:07:10]MH_I2C_Read... [15:07:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:10]Read from MH i2c: E2 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 03 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 03 00 F0 27 00 90 00 8B [15:07:10]RAPDU: 90 00 [15:07:10]wFMCommunicate OK [15:07:10]wFMCommunicate request_size=255 [15:07:10]MH_SAM_APDU [15:07:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 9F 45 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 96 01 00 35 04 06 00 C0 [15:07:10]Write to MH i2c: E2 02 01 F1 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 9F 45 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 96 01 00 35 04 06 00 C0 00 00 15 [15:07:10]Write i2c OK [15:07:10]MH_I2C_Read... [15:07:10]OFD Sender: No OFD packet to send [15:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:10]Read from MH i2c: E2 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 03 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 03 00 F1 27 00 90 00 8C [15:07:10]RAPDU: 90 00 [15:07:10]wFMCommunicate OK [15:07:10]wFMCommunicate request_size=10 [15:07:10]MH_SAM_APDU [15:07:10]CAPDU: 80 0D 02 02 05 0C 72 60 65 BC [15:07:10]Write to MH i2c: E2 0D 00 F2 27 80 0D 02 02 05 00 0C 72 60 65 BC 00 00 9C [15:07:10]Write i2c OK [15:07:10]MH_I2C_Read... [15:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:10]Read from MH i2c: E2 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 03 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 03 00 F2 27 00 90 00 8D [15:07:10]RAPDU: 90 00 [15:07:10]wFMCommunicate OK [15:07:10]wFMCommunicate request_size=4 [15:07:10]MH_SAM_APDU [15:07:10]CAPDU: 80 0D 03 02 [15:07:10]Write to MH i2c: E2 08 00 F3 27 80 0D 03 02 00 00 00 00 95 [15:07:10]Write i2c OK [15:07:10]MH_I2C_Read... [15:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:10]Read from MH i2c: E2 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 0B 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 0B 00 F3 27 00 EB 37 F0 A4 7F FE 57 E2 90 00 02 [15:07:10]RAPDU: EB 37 F0 A4 7F FE 57 E2 90 00 [15:07:10]wFMCommunicate OK [15:07:10]SAM_PROTO_SignData done [15:07:10]FM_MakeSignedData done [15:07:10]CreateOFDProtocolMessage [15:07:10]wFMCommunicate request_size=4 [15:07:10]MH_SAM_APDU [15:07:10]CAPDU: 80 11 00 00 [15:07:10]Write to MH i2c: E2 08 00 F4 27 80 11 00 00 00 00 00 00 95 [15:07:10]Write i2c OK [15:07:10]MH_I2C_Read... [15:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:10]Read from MH i2c: E2 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 17 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: E2 17 00 F4 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [15:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:07:10]wFMCommunicate OK [15:07:10]CreateOFDProtocolMessage done [15:07:10]OFDSenderStorePacket 103948 [15:07:10]StoreOFDPacket docnum=103948 [15:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DF 6E 07 01 D9 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 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 9F 45 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 96 01 00 35 04 06 00 C0 0C 72 60 65 BC EB 37 F0 A4 7F FE 57 E2 [15:07:10]CheckFolder [15:07:10]dirname=/storage/ofd_packets [15:07:10]CheckFolder done [15:07:10]ProducePacketName [15:07:10]name=ofd_packets/00103948 [15:07:10]NVStorageSaveData ofd_packets/00103948 [15:07:10]File name is /storage/ofd_packets/00103948 [15:07:10]Write 301 bytes [15:07:10]NVStorageSaveData done [15:07:10]OFDSenderStorePacket done [15:07:10]KKMCreateOFDPacket done [15:07:10]NVStorageSaveData kkm_last_timestamp [15:07:10]File name is /storage/kkm_last_timestamp [15:07:10]Write 4 bytes [15:07:10]NVStorageSaveData done [15:07:10]ExternCall_PrintAddStr [15:07:10]wPrintStart [15:07:10]Write to MH i2c: 01 00 00 F5 27 1C [15:07:10]Write i2c OK [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: 01 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: 01 07 00 [15:07:10]MH_I2C_Read... [15:07:10]Read from MH i2c: 01 07 00 F5 27 00 00 00 00 00 FF 0F 31 [15:07:10]RasterBufferAndPrint [15:07:10]line Счет N : (1)673307 [15:07:10]line ИНН: 02508201610067 [15:07:10]line Контрольно-Кассовый Чек [15:07:10]line ПРОДАЖА [15:07:10]line ТРК (МРК, ГНК) : 32 [15:07:10]line Товар: 2710124130 [15:07:10]line Аи-92-К-5 [15:07:10]line 28.620 * 66.40 [15:07:10]line = 1900.37 [15:07:10]line НДС 12% НСП 1% [15:07:10]line > о реализуемом товаре [15:07:10]line ОКРУГЛЕНИЕ: -0.37 [15:07:10]line ИТОГО: 1900.00 [15:07:10]line Внесено: 1900.00 [15:07:10]line СДАЧА: 0.00 [15:07:10]line НСП 1% : 16.82 [15:07:10]line НДС 12% : 201.81 [15:07:10]line Наличными: 1900.00 [15:07:10]line Безнал.: 0.00 [15:07:10]line Место: АЗС № 120 "Партнер Нефть" [15:07:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:07:10]line СНО: Общий режим [15:07:10]line Чек 133 20.06.2024 15:07 [15:07:10]line Смена: 354 ФФД: 1.0 [15:07:10]line ЗНМ: 0300000164 [15:07:10]line РНМ: 0000000000092785 [15:07:10]line Версия ККМ: 001 [15:07:10]line ФМ: 0000000000875093 [15:07:10]line ФД: 103948 [15:07:10]line ФПД: 211159691060668 [15:07:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T150711&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103948&fm=211159691060668&tin=02508201610067®Number=0000000000092785&sum=190000 [15:07:10]written 0, free lines is 4095 [15:07:10]OFD Sender: Processing packet 103948 [packets to send 17, broken 16] [15:07:10]ProducePacketName [15:07:10]name=ofd_packets/00103948 [15:07:10]OFD Sender: To server: pG, [15:07:10]CommunicateWithHost lk.salyk.kg:30040 [15:07:10]ConnectInit lk.salyk.kg [15:07:10]Connected sock=10 [15:07:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DF 6E 07 01 D9 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 CC 6F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 E6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 E6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 4E 00 00 00 00 07 04 06 00 30 E6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 9F 45 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0C 96 01 00 35 04 06 00 C0 0C 72 60 65 BC EB 37 F0 A4 7F FE 57 E2 [15:07:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 21 65 47 00 D2 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 35 30 39 33 10 04 04 00 0C 96 01 00 F4 03 04 00 24 EC 73 66 B6 04 01 00 00 88 AD CD 18 A0 B0 45 58 [15:07:11]CommunicateWithHost err = 0 [15:07:11]CheckOFDResponse [15:07:11]1017 (14) - 77093643461234 [15:07:11]1041 (16) - 0000000000875093 [15:07:11]1040 (4) - 103948 [15:07:11]1012 (4) - 20.06.2024 08:45 [15:07:11]1206 (1) - 0 [15:07:11]OFD Sender: Remove packet 103948 [15:07:11]ProducePacketName [15:07:11]name=ofd_packets/00103948 [15:07:11]NVStorageDeleteData [15:07:11]Write to MH i2c: 01 00 00 20 28 48 [15:07:11]Write i2c OK [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 07 00 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: 01 07 00 20 28 00 00 00 00 00 00 0D 5C [15:07:11]RasterBufferAndPrint [15:07:11]line [15:07:11]line [15:07:11]line [15:07:11]line [15:07:11]line [15:07:11]written 0, free lines is 3334 [15:07:11]MH_Cut [15:07:11]Write to MH i2c: D1 01 00 27 28 01 21 [15:07:11]Write i2c OK [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: D1 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: D1 01 00 [15:07:11]MH_I2C_Read... [15:07:11]Read from MH i2c: D1 01 00 27 28 00 20 [15:07:11]Write to MH i2c: 01 00 00 28 28 50 [15:07:11]Write i2c OK [15:07:11]MH_I2C_Read... [15:07:11]OFD Sender: No OFD packet to send [15:07:11]*** Cut start [15:07:11]*** Partial cut [15:07:11]*** CUTSNS_PIN = 1 [15:07:12]*** CUTSNS_PIN = 0 [15:07:12]*** Brake cut motor [15:07:12]Read from MH i2c: 01 [15:07:12]MH_I2C_Read... [15:07:12]*** Stop cut motor [15:07:12]*** Cut end [15:07:12]Read from MH i2c: 01 07 00 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: 01 07 00 28 28 00 00 00 00 00 FF 0F 65 [15:07:12]process_action close_receipt done [15:07:12]requested_data is exist [15:07:12]produce_requested_data [15:07:12]requested_item fm.sn is exist - process it [15:07:12]wFMCommunicate request_size=4 [15:07:12]MH_SAM_APDU [15:07:12]CAPDU: 80 11 00 00 [15:07:12]Write to MH i2c: E2 08 00 29 28 80 11 00 00 00 00 00 00 CB [15:07:12]Write i2c OK [15:07:12]MH_I2C_Read... [15:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:12]Read from MH i2c: E2 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: E2 17 00 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: E2 17 00 29 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1E [15:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:07:12]wFMCommunicate OK [15:07:12]requested_item fd.num is exist - process it [15:07:12]SAM_PROTO_GetFieldsCounters [15:07:12]wFMCommunicate request_size=4 [15:07:12]MH_SAM_APDU [15:07:12]CAPDU: 80 13 00 00 [15:07:12]Write to MH i2c: E2 08 00 2A 28 80 13 00 00 00 00 00 00 CE [15:07:12]Write i2c OK [15:07:12]MH_I2C_Read... [15:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:12]Read from MH i2c: E2 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: E2 62 00 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: E2 62 00 2A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 96 01 00 0E 04 04 00 62 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 8A [15: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:12]wFMCommunicate OK [15:07:12]SAM_PROTO_GetFieldsCounters done [15:07:12]requested_item shift.num is exist - process it [15:07:12]requested_item shift.opened is exist - process it [15:07:12]req_shift_opened [15:07:12]FM_GetShiftState [15:07:12]SAM_PROTO_GetShiftState [15:07:12]wFMCommunicate request_size=4 [15:07:12]MH_SAM_APDU [15:07:12]CAPDU: 80 13 01 00 [15:07:12]Write to MH i2c: E2 08 00 2B 28 80 13 01 00 00 00 00 00 D0 [15:07:12]Write i2c OK [15:07:12]MH_I2C_Read... [15:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:12]Read from MH i2c: E2 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: E2 0E 00 [15:07:12]MH_I2C_Read... [15:07:12]Read from MH i2c: E2 0E 00 2B 28 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1F [15:07:12]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:07:12]wFMCommunicate OK [15:07:12]SAM_PROTO_GetShiftState done [15:07:12]FM_GetShiftState done [15:07:12]req_shift_opened done [15:07:12]requested_item shift.open_date is exist - process it [15:07:12]req_shift_open_date [15:07:12]req_shift_open_date done [15:07:12]produce_requested_data done [15:07:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103948,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:07:12]process_action_free close_receipt [15:07:12]json_value_free [15:07:12]json_value_free done [15:07:12]process_json_proto returns [15:07:12]Send response to host [15:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103948,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:07:12]free response buf [15:07:12]execute_script done [15:07:12]execute_script returns [15:07:12]free content buf [15:07:12]Sock 7.Close socket [15:07:12]Sock 7.Thread stoped [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]accept exits with 9 [15:08:36]New connection [15:08:36]New thread 3067207012 created [15:08:36]Thread 3067063652 joined [15:08:36]Waiting for new connection... [15:08:36] Sock 9.Parse request [15:08:36]Sock 9.Check first char [15:08:36]Sock 9.First char is OK [15:08:36]request: POST /json_proto HTTP/1.0 [15:08:36]Method: POST [15:08:36]URL: /json_proto [15:08:36]Method is POST - this is cgi request [15:08:36]url: /json_proto [15:08:36]query_string will be loaded in cgi processing [15:08:36]execute_cgi json_proto POST (null) [15:08:36]execute_cgi path=json_proto method=POST [15:08:36]POST find Content-Length [15:08:36]Host: 172.17.38.133:8080 [15:08:36]Content-Length: 1212 [15:08:36]Content-Type: application/json [15:08:36] [15:08:36]POST finish read [15:08:36]Found Content-Length = 1212 [15:08:36]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673306\u000A20.06.2024 14:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:36]execute_script... [15:08:36]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673306\u000A20.06.2024 14:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:36]POST & json_proto [15:08:36]process_json_proto [15:08:36]json parsed OK: [15:08:36]protocol is kg_v1.0 [15:08:36]action value=print_text [15:08:36]process_action print_text [15:08:36]cmd_print_text [15:08:36]ExternCall_PrintAddStr [15:08:36]wPrintStart [15:08:36]Write to MH i2c: 01 00 00 2C 28 54 [15:08:36]Write i2c OK [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: 01 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: 01 07 00 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: 01 07 00 2C 28 00 00 00 00 00 FF 0F 69 [15:08:36]RasterBufferAndPrint [15:08:36]line *****ТОВАРНЫЙ ЧЕК***** [15:08:36]line АЗС 120 [15:08:36]line Партнер нефть [15:08:36]line 02508201610067 [15:08:36]line Кассир : Дуйшенбиев А. [15:08:36]line Счет N : (1)673306 [15:08:36]line 20.06.2024 14:45 [15:08:36]line ПРОДАЖА [15:08:36]line ТРК (МРК, ГНК): 11 [15:08:36]line Вид ГСМ : 2710194210 [15:08:36]line ДТ(л)-К-5 [15:08:36]line 60.000 x 72.90 [15:08:36]line ИТОГ: 4374.00 [15:08:36]line Тип оплаты: Талоны: Топливная Карта [15:08:36]line 72637 [15:08:36]line ______________________ [15:08:36]line (подпись) [15:08:36]written 0, free lines is 4095 [15:08:36]Write to MH i2c: 01 00 00 40 28 68 [15:08:36]Write i2c OK [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: 01 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: 01 07 00 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: 01 07 00 40 28 00 00 00 00 00 12 0E 8F [15:08:36]RasterBufferAndPrint [15:08:36]line [15:08:36]line [15:08:36]line [15:08:36]line [15:08:36]line [15:08:36]written 0, free lines is 3603 [15:08:36]MH_Cut [15:08:36]Write to MH i2c: D1 01 00 47 28 01 41 [15:08:36]Write i2c OK [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: D1 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: D1 01 00 [15:08:36]MH_I2C_Read... [15:08:36]Read from MH i2c: D1 01 00 47 28 00 40 [15:08:36]Write to MH i2c: 01 00 00 48 28 70 [15:08:36]Write i2c OK [15:08:36]MH_I2C_Read... [15:08:36]OFD Sender: No OFD packet to send [15:08:37]*** Cut start [15:08:37]*** Partial cut [15:08:37]*** CUTSNS_PIN = 1 [15:08:37]*** CUTSNS_PIN = 0 [15:08:37]*** Brake cut motor [15:08:37]Read from MH i2c: 01 [15:08:37]MH_I2C_Read... [15:08:37]*** Stop cut motor [15:08:37]*** Cut end [15:08:37]Read from MH i2c: 01 07 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: 01 07 00 48 28 00 00 00 00 00 FF 0F 85 [15:08:37]process_action print_text done [15:08:37]requested_data is exist [15:08:37]produce_requested_data [15:08:37]requested_item fm.sn is exist - process it [15:08:37]wFMCommunicate request_size=4 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 11 00 00 [15:08:37]Write to MH i2c: E2 08 00 49 28 80 11 00 00 00 00 00 00 EB [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 17 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 17 00 49 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3E [15:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:08:37]wFMCommunicate OK [15:08:37]requested_item fd.num is exist - process it [15:08:37]SAM_PROTO_GetFieldsCounters [15:08:37]wFMCommunicate request_size=4 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 13 00 00 [15:08:37]Write to MH i2c: E2 08 00 4A 28 80 13 00 00 00 00 00 00 EE [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 62 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 62 00 4A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 96 01 00 0E 04 04 00 62 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 AA [15:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:37]wFMCommunicate OK [15:08:37]SAM_PROTO_GetFieldsCounters done [15:08:37]requested_item shift.num is exist - process it [15:08:37]requested_item shift.opened is exist - process it [15:08:37]req_shift_opened [15:08:37]FM_GetShiftState [15:08:37]SAM_PROTO_GetShiftState [15:08:37]wFMCommunicate request_size=4 [15:08:37]MH_SAM_APDU [15:08:37]CAPDU: 80 13 01 00 [15:08:37]Write to MH i2c: E2 08 00 4B 28 80 13 01 00 00 00 00 00 F0 [15:08:37]Write i2c OK [15:08:37]MH_I2C_Read... [15:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:37]Read from MH i2c: E2 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 0E 00 [15:08:37]MH_I2C_Read... [15:08:37]Read from MH i2c: E2 0E 00 4B 28 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3F [15:08:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:08:37]wFMCommunicate OK [15:08:37]SAM_PROTO_GetShiftState done [15:08:37]FM_GetShiftState done [15:08:37]req_shift_opened done [15:08:37]requested_item shift.open_date is exist - process it [15:08:37]req_shift_open_date [15:08:37]req_shift_open_date done [15:08:37]produce_requested_data done [15:08:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103948,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:08:37]process_action_free print_text [15:08:37]json_value_free [15:08:37]json_value_free done [15:08:37]process_json_proto returns [15:08:37]Send response to host [15:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103948,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:08:37]free response buf [15:08:37]execute_script done [15:08:37]execute_script returns [15:08:37]free content buf [15:08:37]Sock 9.Close socket [15:08:37]Sock 9.Thread stoped [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]accept exits with 7 [15:09:51]New connection [15:09:51]New thread 3067063652 created [15:09:51]Thread 3067207012 joined [15:09:51]Waiting for new connection... [15:09:51] Sock 7.Parse request [15:09:51]Sock 7.Check first char [15:09:51]Sock 7.First char is OK [15:09:51]request: POST /json_proto HTTP/1.0 [15:09:51]Method: POST [15:09:51]URL: /json_proto [15:09:51]Method is POST - this is cgi request [15:09:51]url: /json_proto [15:09:51]query_string will be loaded in cgi processing [15:09:51]execute_cgi json_proto POST (null) [15:09:51]execute_cgi path=json_proto method=POST [15:09:51]POST find Content-Length [15:09:51]Host: 172.17.38.133:8080 [15:09:51]Content-Length: 1214 [15:09:51]Content-Type: application/json [15:09:51] [15:09:51]POST finish read [15:09:51]Found Content-Length = 1214 [15:09:51]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673303\u000A20.06.2024 14:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 190.760 x 72.90\u000A\u0418\u0422\u041E\u0413: 13906.40\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\u000A76637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:51]execute_script... [15:09:51]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673303\u000A20.06.2024 14:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 190.760 x 72.90\u000A\u0418\u0422\u041E\u0413: 13906.40\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\u000A76637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:51]POST & json_proto [15:09:51]process_json_proto [15:09:51]json parsed OK: [15:09:51]protocol is kg_v1.0 [15:09:51]action value=print_text [15:09:51]process_action print_text [15:09:51]cmd_print_text [15:09:51]ExternCall_PrintAddStr [15:09:51]wPrintStart [15:09:51]Write to MH i2c: 01 00 00 4C 28 74 [15:09:51]Write i2c OK [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: 01 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: 01 07 00 [15:09:51]MH_I2C_Read... [15:09:51]Read from MH i2c: 01 07 00 4C 28 00 00 00 00 00 FF 0F 89 [15:09:51]RasterBufferAndPrint [15:09:51]line *****ТОВАРНЫЙ ЧЕК***** [15:09:51]line АЗС 120 [15:09:51]line Партнер нефть [15:09:51]line 02508201610067 [15:09:51]line Кассир : Дуйшенбиев А. [15:09:51]line Счет N : (1)673303 [15:09:51]line 20.06.2024 14:47 [15:09:51]line ПРОДАЖА [15:09:51]line ТРК (МРК, ГНК): 21 [15:09:51]line Вид ГСМ : 2710194210 [15:09:51]line ДТ(л)-К-5 [15:09:51]line 190.760 x 72.90 [15:09:51]line ИТОГ: 13906.40 [15:09:51]line Тип оплаты: Талоны: Топливная Карта [15:09:51]line 76637 [15:09:51]line ______________________ [15:09:51]line (подпись) [15:09:51]written 0, free lines is 4095 [15:09:51]OFD Sender: No OFD packet to send [15:09:52]Write to MH i2c: 01 00 00 60 28 88 [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: 01 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: 01 07 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: 01 07 00 60 28 00 00 00 00 00 13 0E B0 [15:09:52]RasterBufferAndPrint [15:09:52]line [15:09:52]line [15:09:52]line [15:09:52]line [15:09:52]line [15:09:52]written 0, free lines is 3605 [15:09:52]MH_Cut [15:09:52]Write to MH i2c: D1 01 00 67 28 01 61 [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: D1 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: D1 01 00 [15:09:52]MH_I2C_Read... [15:09:52]Read from MH i2c: D1 01 00 67 28 00 60 [15:09:52]Write to MH i2c: 01 00 00 68 28 90 [15:09:52]Write i2c OK [15:09:52]MH_I2C_Read... [15:09:52]*** Cut start [15:09:52]*** Partial cut [15:09:52]*** CUTSNS_PIN = 1 [15:09:52]*** CUTSNS_PIN = 0 [15:09:52]*** Brake cut motor [15:09:53]Read from MH i2c: 01 [15:09:53]MH_I2C_Read... [15:09:53]*** Stop cut motor [15:09:53]*** Cut end [15:09:53]Read from MH i2c: 01 07 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: 01 07 00 68 28 00 00 00 00 00 FF 0F A5 [15:09:53]process_action print_text done [15:09:53]requested_data is exist [15:09:53]produce_requested_data [15:09:53]requested_item fm.sn is exist - process it [15:09:53]wFMCommunicate request_size=4 [15:09:53]MH_SAM_APDU [15:09:53]CAPDU: 80 11 00 00 [15:09:53]Write to MH i2c: E2 08 00 69 28 80 11 00 00 00 00 00 00 0B [15:09:53]Write i2c OK [15:09:53]MH_I2C_Read... [15:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:53]Read from MH i2c: E2 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 17 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 17 00 69 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5E [15:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:09:53]wFMCommunicate OK [15:09:53]requested_item fd.num is exist - process it [15:09:53]SAM_PROTO_GetFieldsCounters [15:09:53]wFMCommunicate request_size=4 [15:09:53]MH_SAM_APDU [15:09:53]CAPDU: 80 13 00 00 [15:09:53]Write to MH i2c: E2 08 00 6A 28 80 13 00 00 00 00 00 00 0E [15:09:53]Write i2c OK [15:09:53]MH_I2C_Read... [15:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:53]Read from MH i2c: E2 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 62 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 62 00 6A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 96 01 00 0E 04 04 00 62 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 CA [15:09:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:53]wFMCommunicate OK [15:09:53]SAM_PROTO_GetFieldsCounters done [15:09:53]requested_item shift.num is exist - process it [15:09:53]requested_item shift.opened is exist - process it [15:09:53]req_shift_opened [15:09:53]FM_GetShiftState [15:09:53]SAM_PROTO_GetShiftState [15:09:53]wFMCommunicate request_size=4 [15:09:53]MH_SAM_APDU [15:09:53]CAPDU: 80 13 01 00 [15:09:53]Write to MH i2c: E2 08 00 6B 28 80 13 01 00 00 00 00 00 10 [15:09:53]Write i2c OK [15:09:53]MH_I2C_Read... [15:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:53]Read from MH i2c: E2 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 0E 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 0E 00 6B 28 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5F [15:09:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:09:53]wFMCommunicate OK [15:09:53]SAM_PROTO_GetShiftState done [15:09:53]FM_GetShiftState done [15:09:53]req_shift_opened done [15:09:53]requested_item shift.open_date is exist - process it [15:09:53]req_shift_open_date [15:09:53]req_shift_open_date done [15:09:53]produce_requested_data done [15:09:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103948,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:09:53]process_action_free print_text [15:09:53]json_value_free [15:09:53]json_value_free done [15:09:53]process_json_proto returns [15:09:53]Send response to host [15:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103948,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:09:53]free response buf [15:09:53]execute_script done [15:09:53]execute_script returns [15:09:53]free content buf [15:09:53]Sock 7.Close socket [15:09:53]Sock 7.Thread stoped [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11: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:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:04]accept exits with 9 [15:13:04]New connection [15:13:04]New thread 3067207012 created [15:13:04]Thread 3067063652 joined [15:13:04]Waiting for new connection... [15:13:04] Sock 9.Parse request [15:13:04]Sock 9.Check first char [15:13:04]Sock 9.First char is OK [15:13:04]request: POST /json_proto HTTP/1.0 [15:13:04]Method: POST [15:13:04]URL: /json_proto [15:13:04]Method is POST - this is cgi request [15:13:04]url: /json_proto [15:13:04]query_string will be loaded in cgi processing [15:13:04]execute_cgi json_proto POST (null) [15:13:04]execute_cgi path=json_proto method=POST [15:13:04]POST find Content-Length [15:13:04]Host: 172.17.38.133:8080 [15:13:04]Content-Length: 1210 [15:13:04]Content-Type: application/json [15:13:04] [15:13:04]POST finish read [15:13:04]Found Content-Length = 1210 [15:13: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673308\u000A20.06.2024 14:50\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 9.240 x 72.90\u000A\u0418\u0422\u041E\u0413: 673.60\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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:04]execute_script... [15:13: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673308\u000A20.06.2024 14:50\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 9.240 x 72.90\u000A\u0418\u0422\u041E\u0413: 673.60\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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:04]POST & json_proto [15:13:04]process_json_proto [15:13:04]json parsed OK: [15:13:04]protocol is kg_v1.0 [15:13:04]action value=print_text [15:13:04]process_action print_text [15:13:04]cmd_print_text [15:13:04]ExternCall_PrintAddStr [15:13:04]wPrintStart [15:13:04]Write to MH i2c: 01 00 00 6C 28 94 [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: 01 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: 01 07 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: 01 07 00 6C 28 00 00 00 00 00 FF 0F A9 [15:13:04]RasterBufferAndPrint [15:13:04]line *****ТОВАРНЫЙ ЧЕК***** [15:13:04]line АЗС 120 [15:13:04]line Партнер нефть [15:13:04]line 02508201610067 [15:13:04]line Кассир : Дуйшенбиев А. [15:13:04]line Счет N : (1)673308 [15:13:04]line 20.06.2024 14:50 [15:13:04]line ПРОДАЖА [15:13:04]line ТРК (МРК, ГНК): 21 [15:13:04]line Вид ГСМ : 2710194210 [15:13:04]line ДТ(л)-К-5 [15:13:04]line 9.240 x 72.90 [15:13:04]line ИТОГ: 673.60 [15:13:04]line Тип оплаты: Талоны: Топливная Карта [15:13:04]line 72637 [15:13:04]line ______________________ [15:13:04]line (подпись) [15:13:04]written 0, free lines is 4095 [15:13:04]Write to MH i2c: 01 00 00 80 28 A8 [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: 01 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: 01 07 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: 01 07 00 80 28 00 00 00 00 00 11 0E CE [15:13:04]RasterBufferAndPrint [15:13:04]line [15:13:04]line [15:13:04]line [15:13:04]line [15:13:04]line [15:13:04]written 0, free lines is 3603 [15:13:04]MH_Cut [15:13:04]Write to MH i2c: D1 01 00 87 28 01 81 [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: D1 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: D1 01 00 [15:13:04]MH_I2C_Read... [15:13:04]Read from MH i2c: D1 01 00 87 28 00 80 [15:13:04]Write to MH i2c: 01 00 00 88 28 B0 [15:13:04]Write i2c OK [15:13:04]MH_I2C_Read... [15:13:05]*** Cut start [15:13:05]*** Partial cut [15:13:05]*** CUTSNS_PIN = 1 [15:13:05]*** CUTSNS_PIN = 0 [15:13:05]*** Brake cut motor [15:13:05]Read from MH i2c: 01 [15:13:05]MH_I2C_Read... [15:13:05]*** Stop cut motor [15:13:05]*** Cut end [15:13:05]Read from MH i2c: 01 07 00 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: 01 07 00 88 28 00 00 00 00 00 FF 0F C5 [15:13:05]process_action print_text done [15:13:05]requested_data is exist [15:13:05]produce_requested_data [15:13:05]requested_item fm.sn is exist - process it [15:13:05]wFMCommunicate request_size=4 [15:13:05]MH_SAM_APDU [15:13:05]CAPDU: 80 11 00 00 [15:13:05]Write to MH i2c: E2 08 00 89 28 80 11 00 00 00 00 00 00 2B [15:13:05]Write i2c OK [15:13:05]MH_I2C_Read... [15:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:05]Read from MH i2c: E2 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: E2 17 00 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: E2 17 00 89 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [15:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:13:05]wFMCommunicate OK [15:13:05]requested_item fd.num is exist - process it [15:13:05]SAM_PROTO_GetFieldsCounters [15:13:05]wFMCommunicate request_size=4 [15:13:05]MH_SAM_APDU [15:13:05]CAPDU: 80 13 00 00 [15:13:05]Write to MH i2c: E2 08 00 8A 28 80 13 00 00 00 00 00 00 2E [15:13:05]Write i2c OK [15:13:05]MH_I2C_Read... [15:13:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:05]Read from MH i2c: E2 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: E2 62 00 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: E2 62 00 8A 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 96 01 00 0E 04 04 00 62 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 EA [15:13:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:05]wFMCommunicate OK [15:13:05]SAM_PROTO_GetFieldsCounters done [15:13:05]requested_item shift.num is exist - process it [15:13:05]requested_item shift.opened is exist - process it [15:13:05]req_shift_opened [15:13:05]FM_GetShiftState [15:13:05]SAM_PROTO_GetShiftState [15:13:05]wFMCommunicate request_size=4 [15:13:05]MH_SAM_APDU [15:13:05]CAPDU: 80 13 01 00 [15:13:05]Write to MH i2c: E2 08 00 8B 28 80 13 01 00 00 00 00 00 30 [15:13:05]Write i2c OK [15:13:05]MH_I2C_Read... [15:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:05]Read from MH i2c: E2 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: E2 0E 00 [15:13:05]MH_I2C_Read... [15:13:05]Read from MH i2c: E2 0E 00 8B 28 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 7F [15:13:05]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:13:05]wFMCommunicate OK [15:13:05]SAM_PROTO_GetShiftState done [15:13:05]FM_GetShiftState done [15:13:05]req_shift_opened done [15:13:05]requested_item shift.open_date is exist - process it [15:13:05]req_shift_open_date [15:13:05]req_shift_open_date done [15:13:05]produce_requested_data done [15:13:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103948,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:13:05]process_action_free print_text [15:13:05]json_value_free [15:13:05]json_value_free done [15:13:05]process_json_proto returns [15:13:05]Send response to host [15:13:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103948,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:13:05]free response buf [15:13:05]execute_script done [15:13:05]execute_script returns [15:13:05]free content buf [15:13:05]Sock 9.Close socket [15:13:05]Sock 9.Thread stoped [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]accept exits with 7 [15:17:52]New connection [15:17:52]New thread 3067063652 created [15:17:52]Thread 3067207012 joined [15:17:52]Waiting for new connection... [15:17:52] Sock 7.Parse request [15:17:52]Sock 7.Check first char [15:17:52]Sock 7.First char is OK [15:17:52]request: POST /json_proto HTTP/1.0 [15:17:52]Method: POST [15:17:52]URL: /json_proto [15:17:52]Method is POST - this is cgi request [15:17:52]url: /json_proto [15:17:52]query_string will be loaded in cgi processing [15:17:52]execute_cgi json_proto POST (null) [15:17:52]execute_cgi path=json_proto method=POST [15:17:52]POST find Content-Length [15:17:52]Host: 172.17.38.133:8080 [15:17:52]Content-Length: 1207 [15:17:52]Content-Type: application/json [15:17:52] [15:17:52]POST finish read [15:17:52]Found Content-Length = 1207 [15:17:52]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673309\u000A20.06.2024 14:55\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 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:52]execute_script... [15:17:52]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673309\u000A20.06.2024 14:55\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 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.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\u000A72637\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:52]POST & json_proto [15:17:52]process_json_proto [15:17:52]json parsed OK: [15:17:52]protocol is kg_v1.0 [15:17:52]action value=print_text [15:17:52]process_action print_text [15:17:52]cmd_print_text [15:17:52]ExternCall_PrintAddStr [15:17:52]wPrintStart [15:17:52]Write to MH i2c: 01 00 00 8C 28 B4 [15:17:52]Write i2c OK [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: 01 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: 01 07 00 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: 01 07 00 8C 28 00 00 00 00 00 FF 0F C9 [15:17:52]RasterBufferAndPrint [15:17:52]line *****ТОВАРНЫЙ ЧЕК***** [15:17:52]line АЗС 120 [15:17:52]line Партнер нефть [15:17:52]line 02508201610067 [15:17:52]line Кассир : Дуйшенбиев А. [15:17:52]line Счет N : (1)673309 [15:17:52]line 20.06.2024 14:55 [15:17:52]line ПРОДАЖА [15:17:52]line ТРК (МРК, ГНК): 32 [15:17:52]line Вид ГСМ : 2710124130 [15:17:52]line Аи-92-К-5 [15:17:52]line 40.000 x 66.40 [15:17:52]line ИТОГ: 2656.00 [15:17:52]line Тип оплаты: Талоны: Топливная Карта [15:17:52]line 72637 [15:17:52]line ______________________ [15:17:52]line (подпись) [15:17:52]written 0, free lines is 4095 [15:17:52]Write to MH i2c: 01 00 00 A0 28 C8 [15:17:52]Write i2c OK [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: 01 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: 01 07 00 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: 01 07 00 A0 28 00 00 00 00 00 13 0E F0 [15:17:52]RasterBufferAndPrint [15:17:52]line [15:17:52]line [15:17:52]line [15:17:52]line [15:17:52]line [15:17:52]written 0, free lines is 3605 [15:17:52]MH_Cut [15:17:52]Write to MH i2c: D1 01 00 A7 28 01 A1 [15:17:52]Write i2c OK [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: D1 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: D1 01 00 [15:17:52]MH_I2C_Read... [15:17:52]Read from MH i2c: D1 01 00 A7 28 00 A0 [15:17:52]Write to MH i2c: 01 00 00 A8 28 D0 [15:17:52]Write i2c OK [15:17:52]MH_I2C_Read... [15:17:52]OFD Sender: No OFD packet to send [15:17:52]*** Cut start [15:17:52]*** Partial cut [15:17:52]*** CUTSNS_PIN = 1 [15:17:52]*** CUTSNS_PIN = 0 [15:17:53]*** Brake cut motor [15:17:53]Read from MH i2c: 01 [15:17:53]MH_I2C_Read... [15:17:53]*** Stop cut motor [15:17:53]*** Cut end [15:17:53]Read from MH i2c: 01 07 00 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: 01 07 00 A8 28 00 00 00 00 00 FF 0F E5 [15:17:53]process_action print_text done [15:17:53]requested_data is exist [15:17:53]produce_requested_data [15:17:53]requested_item fm.sn is exist - process it [15:17:53]wFMCommunicate request_size=4 [15:17:53]MH_SAM_APDU [15:17:53]CAPDU: 80 11 00 00 [15:17:53]Write to MH i2c: E2 08 00 A9 28 80 11 00 00 00 00 00 00 4B [15:17:53]Write i2c OK [15:17:53]MH_I2C_Read... [15:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:53]Read from MH i2c: E2 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: E2 17 00 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: E2 17 00 A9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9E [15:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:17:53]wFMCommunicate OK [15:17:53]requested_item fd.num is exist - process it [15:17:53]SAM_PROTO_GetFieldsCounters [15:17:53]wFMCommunicate request_size=4 [15:17:53]MH_SAM_APDU [15:17:53]CAPDU: 80 13 00 00 [15:17:53]Write to MH i2c: E2 08 00 AA 28 80 13 00 00 00 00 00 00 4E [15:17:53]Write i2c OK [15:17:53]MH_I2C_Read... [15:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:53]Read from MH i2c: E2 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: E2 62 00 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: E2 62 00 AA 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 96 01 00 0E 04 04 00 62 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 0A [15:17:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:53]wFMCommunicate OK [15:17:53]SAM_PROTO_GetFieldsCounters done [15:17:53]requested_item shift.num is exist - process it [15:17:53]requested_item shift.opened is exist - process it [15:17:53]req_shift_opened [15:17:53]FM_GetShiftState [15:17:53]SAM_PROTO_GetShiftState [15:17:53]wFMCommunicate request_size=4 [15:17:53]MH_SAM_APDU [15:17:53]CAPDU: 80 13 01 00 [15:17:53]Write to MH i2c: E2 08 00 AB 28 80 13 01 00 00 00 00 00 50 [15:17:53]Write i2c OK [15:17:53]MH_I2C_Read... [15:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:53]Read from MH i2c: E2 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: E2 0E 00 [15:17:53]MH_I2C_Read... [15:17:53]Read from MH i2c: E2 0E 00 AB 28 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9F [15:17:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:17:53]wFMCommunicate OK [15:17:53]SAM_PROTO_GetShiftState done [15:17:53]FM_GetShiftState done [15:17:53]req_shift_opened done [15:17:53]requested_item shift.open_date is exist - process it [15:17:53]req_shift_open_date [15:17:53]req_shift_open_date done [15:17:53]produce_requested_data done [15:17:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103948,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:17:53]process_action_free print_text [15:17:53]json_value_free [15:17:53]json_value_free done [15:17:53]process_json_proto returns [15:17:53]Send response to host [15:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103948,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:17:53]free response buf [15:17:53]execute_script done [15:17:53]execute_script returns [15:17:53]free content buf [15:17:53]Sock 7.Close socket [15:17:53]Sock 7.Thread stoped [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:26]accept exits with 9 [15:18:26]New connection [15:18:26]New thread 3067207012 created [15:18:26]Thread 3067063652 joined [15:18:26]Waiting for new connection... [15:18:26] Sock 9.Parse request [15:18:26]Sock 9.Check first char [15:18:26]Sock 9.First char is OK [15:18:26]request: POST /json_proto HTTP/1.0 [15:18:26]Method: POST [15:18:26]URL: /json_proto [15:18:26]Method is POST - this is cgi request [15:18:26]url: /json_proto [15:18:26]query_string will be loaded in cgi processing [15:18:26]execute_cgi json_proto POST (null) [15:18:26]execute_cgi path=json_proto method=POST [15:18:26]POST find Content-Length [15:18:26]Host: 172.17.38.133:8080 [15:18:26]Content-Length: 819 [15:18:26]Content-Type: application/json [15:18:26] [15:18:26]POST finish read [15:18:26]Found Content-Length = 819 [15:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.580, "sum" : 1100.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1100.91 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:26]execute_script... [15:18: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)673310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.580, "sum" : 1100.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1100.91 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:26]POST & json_proto [15:18:26]process_json_proto [15:18:26]json parsed OK: [15:18:26]protocol is kg_v1.0 [15:18:26]action value=close_receipt [15:18:26]process_action close_receipt [15:18:26]cmd_close_receipt [15:18:26]MH_GetDate [15:18:26]Write to MH i2c: F0 00 00 AC 28 C3 [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 09 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: F0 09 00 AC 28 00 45 48 74 66 BD 8F 7C 64 5F [15:18:26]GetLastDocTimeStamp 1718896031 [15:18:26]current date 1718896709 [15:18:26]FM_GetShiftState [15:18:26]SAM_PROTO_GetShiftState [15:18:26]wFMCommunicate request_size=4 [15:18:26]MH_SAM_APDU [15:18:26]CAPDU: 80 13 01 00 [15:18:26]Write to MH i2c: E2 08 00 AD 28 80 13 01 00 00 00 00 00 52 [15:18:26]Write i2c OK [15:18:26]MH_I2C_Read... [15:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:26]Read from MH i2c: E2 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 0E 00 [15:18:26]MH_I2C_Read... [15:18:26]Read from MH i2c: E2 0E 00 AD 28 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A1 [15:18:26]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:18:26]wFMCommunicate OK [15:18:26]SAM_PROTO_GetShiftState done [15:18:26]FM_GetShiftState done [15:18:26]opened in 1718843124 [15:18:26]opened+sec_in_day 1718929524 [15:18:26]quantity*price = 110091 [15:18:26]sum+1 = 110092 [15:18:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.91 НСП 1% : 9.74 НДС 12% : 116.91 Наличными: 0.00 Безнал.: 1100.91 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 134 20.06.2024 15:18 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103949 ФПД: 77000783815857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151829&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103949&fm=77000783815857&tin=02508201610067®Number=0000000000092785&sum=110091 [15:18:27]StoreToDocumentArchive [15:18:27]shift 354 fd 103949 [15:18:27]save to /storage/0354/doc_00103949 [15:18:27]save last doc name /storage/0354/doc_00103949 to /storage/kkm_last_doc_name [15:18:27]save OK [15:18:27]Clear old archive folders... [15:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:27]tlvbuf is 0086A930 [15:18:27]SAM_PROTO_ClearQueue [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 09 00 00 [15:18:27]Write to MH i2c: E2 08 00 BA 28 80 09 00 00 00 00 00 00 54 [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 BA 28 00 90 00 56 [15:18:27]RAPDU: 90 00 [15:18:27]wFMCommunicate OK [15:18:27]SAM_PROTO_ClearQueue done [15:18:27]KKMCreateOFDPacket [15:18:27]OFDProtocolAddRootSTLVToBuf [15:18:27]FM_MakeSignedData [15:18:27]FM_MakeSignedData [15:18:27]SAM_PROTO_SignData [15:18:27]wFMCommunicate request_size=4 [15:18:27]MH_SAM_APDU [15:18:27]CAPDU: 80 0D 01 02 [15:18:27]Write to MH i2c: E2 08 00 BB 28 80 0D 01 02 00 00 00 00 5C [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:27]Read from MH i2c: E2 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 [15:18:27]MH_I2C_Read... [15:18:27]Read from MH i2c: E2 03 00 BB 28 00 90 00 57 [15:18:27]RAPDU: 90 00 [15:18:27]wFMCommunicate OK [15:18:27]wFMCommunicate request_size=255 [15:18:27]MH_SAM_APDU [15:18: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 C4 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0B AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0B AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0B AE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 45 48 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 96 01 00 35 04 06 00 46 [15:18:27]Write to MH i2c: E2 02 01 BC 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0B AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0B AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0B AE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 45 48 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 96 01 00 35 04 06 00 46 00 00 8A [15:18:27]Write i2c OK [15:18:27]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 BC 28 00 90 00 58 [15:18:28]RAPDU: 90 00 [15:18:28]wFMCommunicate OK [15:18:28]wFMCommunicate request_size=10 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 0D 02 02 05 08 24 5D E4 B1 [15:18:28]Write to MH i2c: E2 0D 00 BD 28 80 0D 02 02 05 00 08 24 5D E4 B1 00 00 87 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 03 00 BD 28 00 90 00 59 [15:18:28]RAPDU: 90 00 [15:18:28]wFMCommunicate OK [15:18:28]wFMCommunicate request_size=4 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 0D 03 02 [15:18:28]Write to MH i2c: E2 08 00 BE 28 80 0D 03 02 00 00 00 00 61 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 0B 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 0B 00 BE 28 00 68 C1 CE B2 D1 93 9A ED 90 00 F6 [15:18:28]RAPDU: 68 C1 CE B2 D1 93 9A ED 90 00 [15:18:28]wFMCommunicate OK [15:18:28]SAM_PROTO_SignData done [15:18:28]FM_MakeSignedData done [15:18:28]CreateOFDProtocolMessage [15:18:28]wFMCommunicate request_size=4 [15:18:28]MH_SAM_APDU [15:18:28]CAPDU: 80 11 00 00 [15:18:28]Write to MH i2c: E2 08 00 BF 28 80 11 00 00 00 00 00 00 61 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:28]Read from MH i2c: E2 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 17 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: E2 17 00 BF 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B4 [15:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:18:28]wFMCommunicate OK [15:18:28]CreateOFDProtocolMessage done [15:18:28]OFDSenderStorePacket 103949 [15:18:28]StoreOFDPacket docnum=103949 [15:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FA C9 07 01 E8 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 C4 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0B AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0B AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0B AE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 45 48 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 96 01 00 35 04 06 00 46 08 24 5D E4 B1 68 C1 CE B2 D1 93 9A ED [15:18:28]CheckFolder [15:18:28]dirname=/storage/ofd_packets [15:18:28]CheckFolder done [15:18:28]ProducePacketName [15:18:28]name=ofd_packets/00103949 [15:18:28]NVStorageSaveData ofd_packets/00103949 [15:18:28]File name is /storage/ofd_packets/00103949 [15:18:28]Write 301 bytes [15:18:28]NVStorageSaveData done [15:18:28]OFDSenderStorePacket done [15:18:28]KKMCreateOFDPacket done [15:18:28]NVStorageSaveData kkm_last_timestamp [15:18:28]File name is /storage/kkm_last_timestamp [15:18:28]Write 4 bytes [15:18:28]NVStorageSaveData done [15:18:28]ExternCall_PrintAddStr [15:18:28]wPrintStart [15:18:28]Write to MH i2c: 01 00 00 C0 28 E8 [15:18:28]Write i2c OK [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 07 00 [15:18:28]MH_I2C_Read... [15:18:28]Read from MH i2c: 01 07 00 C0 28 00 00 00 00 00 FF 0F FD [15:18:28]RasterBufferAndPrint [15:18:28]line Счет N : (1)673310 [15:18:28]line ИНН: 02508201610067 [15:18:28]line Контрольно-Кассовый Чек [15:18:28]line ПРОДАЖА [15:18:28]line ТРК (МРК, ГНК) : 42 [15:18:28]line Товар: 2710124130 [15:18:28]line Аи-92-К-5 [15:18:28]line 16.580 * 66.40 [15:18:28]line = 1100.91 [15:18:28]line НДС 12% НСП 1% [15:18:28]line > о реализуемом товаре [15:18:28]line ИТОГО: 1100.91 [15:18:28]line НСП 1% : 9.74 [15:18:28]line НДС 12% : 116.91 [15:18:28]line Наличными: 0.00 [15:18:28]line Безнал.: 1100.91 [15:18:28]line Место: АЗС № 120 "Партнер Нефть" [15:18:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:18:28]line СНО: Общий режим [15:18:28]line Чек 134 20.06.2024 15:18 [15:18:28]line Смена: 354 ФФД: 1.0 [15:18:28]line ЗНМ: 0300000164 [15:18:28]line РНМ: 0000000000092785 [15:18:28]line Версия ККМ: 001 [15:18:28]line Платежная система: Бакай Банк [15:18:28]line ФМ: 0000000000875093 [15:18:28]line ФД: 103949 [15:18:28]line ФПД: 77000783815857 [15:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T151829&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103949&fm=77000783815857&tin=02508201610067®Number=0000000000092785&sum=110091 [15:18:28]written 0, free lines is 4095 [15:18:28]OFD Sender: Processing packet 103949 [packets to send 17, broken 16] [15:18:28]ProducePacketName [15:18:28]name=ofd_packets/00103949 [15:18:28]OFD Sender: To server: pG, [15:18:28]CommunicateWithHost lk.salyk.kg:30040 [15:18:28]ConnectInit lk.salyk.kg [15:18:28]Connected sock=10 [15:18:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FA C9 07 01 E8 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 C4 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0B AE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0B AE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0B AE 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 45 48 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 96 01 00 35 04 06 00 46 08 24 5D E4 B1 68 C1 CE B2 D1 93 9A ED [15:18:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 38 D5 47 00 52 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0D 96 01 00 F4 03 04 00 CA EE 73 66 B6 04 01 00 00 04 EF ED C5 D8 35 8A 85 [15:18:29]CommunicateWithHost err = 0 [15:18:29]CheckOFDResponse [15:18:29]1017 (14) - 77093643461234 [15:18:29]1041 (16) - 0000000000875093 [15:18:29]1040 (4) - 103949 [15:18:29]1012 (4) - 20.06.2024 08:56 [15:18:29]1206 (1) - 0 [15:18:29]OFD Sender: Remove packet 103949 [15:18:29]ProducePacketName [15:18:29]name=ofd_packets/00103949 [15:18:29]NVStorageDeleteData [15:18:29]Write to MH i2c: 01 00 00 EA 28 12 [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 07 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: 01 07 00 EA 28 00 00 00 00 00 F2 0C 17 [15:18:29]RasterBufferAndPrint [15:18:29]line [15:18:29]line [15:18:29]line [15:18:29]line [15:18:29]line [15:18:29]written 0, free lines is 3320 [15:18:29]MH_Cut [15:18:29]Write to MH i2c: D1 01 00 F1 28 01 EB [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: D1 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: D1 01 00 [15:18:29]MH_I2C_Read... [15:18:29]Read from MH i2c: D1 01 00 F1 28 00 EA [15:18:29]Write to MH i2c: 01 00 00 F2 28 1A [15:18:29]Write i2c OK [15:18:29]MH_I2C_Read... [15:18:29]OFD Sender: No OFD packet to send [15:18:29]*** Cut start [15:18:29]*** Partial cut [15:18:29]*** CUTSNS_PIN = 1 [15:18:29]*** CUTSNS_PIN = 0 [15:18:30]*** Brake cut motor [15:18:30]Read from MH i2c: 01 [15:18:30]MH_I2C_Read... [15:18:30]*** Stop cut motor [15:18:30]*** Cut end [15:18:30]Read from MH i2c: 01 07 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: 01 07 00 F2 28 00 00 00 00 00 FF 0F 2F [15:18:30]process_action close_receipt done [15:18:30]requested_data is exist [15:18:30]produce_requested_data [15:18:30]requested_item fm.sn is exist - process it [15:18:30]wFMCommunicate request_size=4 [15:18:30]MH_SAM_APDU [15:18:30]CAPDU: 80 11 00 00 [15:18:30]Write to MH i2c: E2 08 00 F3 28 80 11 00 00 00 00 00 00 95 [15:18:30]Write i2c OK [15:18:30]MH_I2C_Read... [15:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:30]Read from MH i2c: E2 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 17 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 17 00 F3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [15:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:18:30]wFMCommunicate OK [15:18:30]requested_item fd.num is exist - process it [15:18:30]SAM_PROTO_GetFieldsCounters [15:18:30]wFMCommunicate request_size=4 [15:18:30]MH_SAM_APDU [15:18:30]CAPDU: 80 13 00 00 [15:18:30]Write to MH i2c: E2 08 00 F4 28 80 13 00 00 00 00 00 00 98 [15:18:30]Write i2c OK [15:18:30]MH_I2C_Read... [15:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:30]Read from MH i2c: E2 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 62 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 62 00 F4 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0D 96 01 00 0E 04 04 00 62 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 58 [15:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:30]wFMCommunicate OK [15:18:30]SAM_PROTO_GetFieldsCounters done [15:18:30]requested_item shift.num is exist - process it [15:18:30]requested_item shift.opened is exist - process it [15:18:30]req_shift_opened [15:18:30]FM_GetShiftState [15:18:30]SAM_PROTO_GetShiftState [15:18:30]wFMCommunicate request_size=4 [15:18:30]MH_SAM_APDU [15:18:30]CAPDU: 80 13 01 00 [15:18:30]Write to MH i2c: E2 08 00 F5 28 80 13 01 00 00 00 00 00 9A [15:18:30]Write i2c OK [15:18:30]MH_I2C_Read... [15:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:30]Read from MH i2c: E2 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 0E 00 [15:18:30]MH_I2C_Read... [15:18:30]Read from MH i2c: E2 0E 00 F5 28 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E9 [15:18:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:18:30]wFMCommunicate OK [15:18:30]SAM_PROTO_GetShiftState done [15:18:30]FM_GetShiftState done [15:18:30]req_shift_opened done [15:18:30]requested_item shift.open_date is exist - process it [15:18:30]req_shift_open_date [15:18:30]req_shift_open_date done [15:18:30]produce_requested_data done [15:18:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103949,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:18:30]process_action_free close_receipt [15:18:30]json_value_free [15:18:30]json_value_free done [15:18:30]process_json_proto returns [15:18:30]Send response to host [15:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103949,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:18:30]free response buf [15:18:30]execute_script done [15:18:30]execute_script returns [15:18:30]free content buf [15:18:30]Sock 9.Close socket [15:18:30]Sock 9.Thread stoped [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:13]accept exits with 7 [15:22:13]New connection [15:22:13]New thread 3067063652 created [15:22:13]Thread 3067207012 joined [15:22:13]Waiting for new connection... [15:22:13] Sock 7.Parse request [15:22:13]Sock 7.Check first char [15:22:13]Sock 7.First char is OK [15:22:13]request: POST /json_proto HTTP/1.0 [15:22:13]Method: POST [15:22:13]URL: /json_proto [15:22:13]Method is POST - this is cgi request [15:22:13]url: /json_proto [15:22:13]query_string will be loaded in cgi processing [15:22:13]execute_cgi json_proto POST (null) [15:22:13]execute_cgi path=json_proto method=POST [15:22:13]POST find Content-Length [15:22:13]Host: 172.17.38.133:8080 [15:22:13]Content-Length: 682 [15:22:13]Content-Type: application/json [15:22:13] [15:22:13]POST finish read [15:22:13]Found Content-Length = 682 [15:22:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [15:22:13]execute_script... [15:22: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)673315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [15:22:13]POST & json_proto [15:22:13]process_json_proto [15:22:13]json parsed OK: [15:22:13]protocol is kg_v1.0 [15:22:13]action value=close_receipt [15:22:13]process_action close_receipt [15:22:13]cmd_close_receipt [15:22:13]MH_GetDate [15:22:13]Write to MH i2c: F0 00 00 F6 28 0D [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: F0 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: F0 09 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: F0 09 00 F6 28 00 27 49 74 66 BD 8F 7C 64 8C [15:22:13]GetLastDocTimeStamp 1718896709 [15:22:13]current date 1718896935 [15:22:13]FM_GetShiftState [15:22:13]SAM_PROTO_GetShiftState [15:22:13]wFMCommunicate request_size=4 [15:22:13]MH_SAM_APDU [15:22:13]CAPDU: 80 13 01 00 [15:22:13]Write to MH i2c: E2 08 00 F7 28 80 13 01 00 00 00 00 00 9C [15:22:13]Write i2c OK [15:22:13]MH_I2C_Read... [15:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:13]Read from MH i2c: E2 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 0E 00 [15:22:13]MH_I2C_Read... [15:22:13]Read from MH i2c: E2 0E 00 F7 28 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EB [15:22:13]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:22:13]wFMCommunicate OK [15:22:13]SAM_PROTO_GetShiftState done [15:22:13]FM_GetShiftState done [15:22:13]opened in 1718843124 [15:22:13]opened+sec_in_day 1718929524 [15:22:13]quantity*price = 200063 [15:22:13]sum+1 = 200064 [15:22:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 135 20.06.2024 15:22 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103950 ФПД: 198693099522198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152215&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103950&fm=198693099522198&tin=02508201610067®Number=0000000000092785&sum=200000 [15:22:14]StoreToDocumentArchive [15:22:14]shift 354 fd 103950 [15:22:14]save to /storage/0354/doc_00103950 [15:22:14]save last doc name /storage/0354/doc_00103950 to /storage/kkm_last_doc_name [15:22:14]save OK [15:22:14]Clear old archive folders... [15:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:14]tlvbuf is B6F18350 [15:22:14]SAM_PROTO_ClearQueue [15:22:14]wFMCommunicate request_size=4 [15:22:14]MH_SAM_APDU [15:22:14]CAPDU: 80 09 00 00 [15:22:14]Write to MH i2c: E2 08 00 04 29 80 09 00 00 00 00 00 00 9F [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:14]Read from MH i2c: E2 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 04 29 00 90 00 A1 [15:22:14]RAPDU: 90 00 [15:22:14]wFMCommunicate OK [15:22:14]SAM_PROTO_ClearQueue done [15:22:14]KKMCreateOFDPacket [15:22:14]OFDProtocolAddRootSTLVToBuf [15:22:14]FM_MakeSignedData [15:22:14]FM_MakeSignedData [15:22:14]SAM_PROTO_SignData [15:22:14]wFMCommunicate request_size=4 [15:22:14]MH_SAM_APDU [15:22:14]CAPDU: 80 0D 01 02 [15:22:14]Write to MH i2c: E2 08 00 05 29 80 0D 01 02 00 00 00 00 A7 [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:14]Read from MH i2c: E2 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 03 00 05 29 00 90 00 A2 [15:22:14]RAPDU: 90 00 [15:22:14]wFMCommunicate OK [15:22:14]wFMCommunicate request_size=255 [15:22:14]MH_SAM_APDU [15:22: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 87 00 00 00 F4 03 04 00 27 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 96 01 00 35 04 06 00 B4 [15:22:14]Write to MH i2c: E2 02 01 06 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 87 00 00 00 F4 03 04 00 27 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 96 01 00 35 04 06 00 B4 00 00 E3 [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]OFD Sender: No OFD packet to send [15:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:15]Read from MH i2c: E2 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 03 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 03 00 06 29 00 90 00 A3 [15:22:15]RAPDU: 90 00 [15:22:15]wFMCommunicate OK [15:22:15]wFMCommunicate request_size=10 [15:22:15]MH_SAM_APDU [15:22:15]CAPDU: 80 0D 02 02 05 B5 D7 9D C8 96 [15:22:15]Write to MH i2c: E2 0D 00 07 29 80 0D 02 02 05 00 B5 D7 9D C8 96 00 00 3B [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:15]Read from MH i2c: E2 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 03 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 03 00 07 29 00 90 00 A4 [15:22:15]RAPDU: 90 00 [15:22:15]wFMCommunicate OK [15:22:15]wFMCommunicate request_size=4 [15:22:15]MH_SAM_APDU [15:22:15]CAPDU: 80 0D 03 02 [15:22:15]Write to MH i2c: E2 08 00 08 29 80 0D 03 02 00 00 00 00 AC [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:15]Read from MH i2c: E2 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 0B 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 0B 00 08 29 00 97 1B 51 AC C2 75 96 1F 90 00 48 [15:22:15]RAPDU: 97 1B 51 AC C2 75 96 1F 90 00 [15:22:15]wFMCommunicate OK [15:22:15]SAM_PROTO_SignData done [15:22:15]FM_MakeSignedData done [15:22:15]CreateOFDProtocolMessage [15:22:15]wFMCommunicate request_size=4 [15:22:15]MH_SAM_APDU [15:22:15]CAPDU: 80 11 00 00 [15:22:15]Write to MH i2c: E2 08 00 09 29 80 11 00 00 00 00 00 00 AC [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:15]Read from MH i2c: E2 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 17 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 17 00 09 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [15:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:22:15]wFMCommunicate OK [15:22:15]CreateOFDProtocolMessage done [15:22:15]OFDSenderStorePacket 103950 [15:22:15]StoreOFDPacket docnum=103950 [15:22:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AF 48 07 01 D2 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 87 00 00 00 F4 03 04 00 27 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 96 01 00 35 04 06 00 B4 B5 D7 9D C8 96 97 1B 51 AC C2 75 96 1F [15:22:15]CheckFolder [15:22:15]dirname=/storage/ofd_packets [15:22:15]CheckFolder done [15:22:15]ProducePacketName [15:22:15]name=ofd_packets/00103950 [15:22:15]NVStorageSaveData ofd_packets/00103950 [15:22:15]File name is /storage/ofd_packets/00103950 [15:22:15]Write 301 bytes [15:22:15]NVStorageSaveData done [15:22:15]OFDSenderStorePacket done [15:22:15]KKMCreateOFDPacket done [15:22:15]NVStorageSaveData kkm_last_timestamp [15:22:15]File name is /storage/kkm_last_timestamp [15:22:15]Write 4 bytes [15:22:15]NVStorageSaveData done [15:22:15]ExternCall_PrintAddStr [15:22:15]wPrintStart [15:22:15]Write to MH i2c: 01 00 00 0A 29 33 [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: 01 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: 01 07 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: 01 07 00 0A 29 00 00 00 00 00 FF 0F 48 [15:22:15]RasterBufferAndPrint [15:22:15]line Счет N : (1)673315 [15:22:15]line ИНН: 02508201610067 [15:22:15]line Контрольно-Кассовый Чек [15:22:15]line ПРОДАЖА [15:22:15]line ТРК (МРК, ГНК) : 32 [15:22:15]line Товар: 2710124130 [15:22:15]line Аи-92-К-5 [15:22:15]line 30.130 * 66.40 [15:22:15]line = 2000.63 [15:22:15]line НДС 12% НСП 1% [15:22:15]line > о реализуемом товаре [15:22:15]line ОКРУГЛЕНИЕ: -0.63 [15:22:15]line ИТОГО: 2000.00 [15:22:15]line Внесено: 2000.00 [15:22:15]line СДАЧА: 0.00 [15:22:15]line НСП 1% : 17.70 [15:22:15]line НДС 12% : 212.46 [15:22:15]line Наличными: 2000.00 [15:22:15]line Безнал.: 0.00 [15:22:15]line Место: АЗС № 120 "Партнер Нефть" [15:22:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:22:15]line СНО: Общий режим [15:22:15]line Чек 135 20.06.2024 15:22 [15:22:15]line Смена: 354 ФФД: 1.0 [15:22:15]line ЗНМ: 0300000164 [15:22:15]line РНМ: 0000000000092785 [15:22:15]line Версия ККМ: 001 [15:22:15]line ФМ: 0000000000875093 [15:22:15]line ФД: 103950 [15:22:15]line ФПД: 198693099522198 [15:22:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152215&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103950&fm=198693099522198&tin=02508201610067®Number=0000000000092785&sum=200000 [15:22:15]OFD Sender: Processing packet 103950 [packets to send 17, broken 16] [15:22:15]ProducePacketName [15:22:15]name=ofd_packets/00103950 [15:22:15]OFD Sender: To server: pG, [15:22:15]CommunicateWithHost lk.salyk.kg:30040 [15:22:15]ConnectInit lk.salyk.kg [15:22:15]written 0, free lines is 4095 [15:22:15]Connected sock=10 [15:22:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AF 48 07 01 D2 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 87 00 00 00 F4 03 04 00 27 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0E 96 01 00 35 04 06 00 B4 B5 D7 9D C8 96 97 1B 51 AC C2 75 96 1F [15:22:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 34 D0 47 00 DF 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 35 30 39 33 10 04 04 00 0E 96 01 00 F4 03 04 00 AD EF 73 66 B6 04 01 00 00 65 F5 06 6F 37 E1 0F A9 [15:22:15]CommunicateWithHost err = 0 [15:22:15]CheckOFDResponse [15:22:15]1017 (14) - 77093643461234 [15:22:15]1041 (16) - 0000000000875093 [15:22:15]1040 (4) - 103950 [15:22:15]1012 (4) - 20.06.2024 09:00 [15:22:15]1206 (1) - 0 [15:22:15]OFD Sender: Remove packet 103950 [15:22:15]ProducePacketName [15:22:15]name=ofd_packets/00103950 [15:22:15]NVStorageDeleteData [15:22:15]Write to MH i2c: 01 00 00 35 29 5E [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: 01 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: 01 07 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: 01 07 00 35 29 00 00 00 00 00 F4 0C 65 [15:22:15]RasterBufferAndPrint [15:22:15]line [15:22:15]line [15:22:15]line [15:22:15]line [15:22:15]line [15:22:15]written 0, free lines is 3323 [15:22:15]MH_Cut [15:22:15]Write to MH i2c: D1 01 00 3C 29 01 37 [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: D1 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: D1 01 00 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: D1 01 00 3C 29 00 36 [15:22:16]Write to MH i2c: 01 00 00 3D 29 66 [15:22:16]Write i2c OK [15:22:16]MH_I2C_Read... [15:22:16]OFD Sender: No OFD packet to send [15:22:16]*** Cut start [15:22:16]*** Partial cut [15:22:16]*** CUTSNS_PIN = 1 [15:22:16]*** CUTSNS_PIN = 0 [15:22:16]*** Brake cut motor [15:22:17]Read from MH i2c: 01 [15:22:17]MH_I2C_Read... [15:22:17]*** Stop cut motor [15:22:17]*** Cut end [15:22:17]Read from MH i2c: 01 07 00 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: 01 07 00 3D 29 00 00 00 00 00 FF 0F 7B [15:22:17]process_action close_receipt done [15:22:17]requested_data is exist [15:22:17]produce_requested_data [15:22:17]requested_item fm.sn is exist - process it [15:22:17]wFMCommunicate request_size=4 [15:22:17]MH_SAM_APDU [15:22:17]CAPDU: 80 11 00 00 [15:22:17]Write to MH i2c: E2 08 00 3E 29 80 11 00 00 00 00 00 00 E1 [15:22:17]Write i2c OK [15:22:17]MH_I2C_Read... [15:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:17]Read from MH i2c: E2 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: E2 17 00 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: E2 17 00 3E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [15:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:22:17]wFMCommunicate OK [15:22:17]requested_item fd.num is exist - process it [15:22:17]SAM_PROTO_GetFieldsCounters [15:22:17]wFMCommunicate request_size=4 [15:22:17]MH_SAM_APDU [15:22:17]CAPDU: 80 13 00 00 [15:22:17]Write to MH i2c: E2 08 00 3F 29 80 13 00 00 00 00 00 00 E4 [15:22:17]Write i2c OK [15:22:17]MH_I2C_Read... [15:22:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:17]Read from MH i2c: E2 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: E2 62 00 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: E2 62 00 3F 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0E 96 01 00 0E 04 04 00 62 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 A8 [15:22:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:17]wFMCommunicate OK [15:22:17]SAM_PROTO_GetFieldsCounters done [15:22:17]requested_item shift.num is exist - process it [15:22:17]requested_item shift.opened is exist - process it [15:22:17]req_shift_opened [15:22:17]FM_GetShiftState [15:22:17]SAM_PROTO_GetShiftState [15:22:17]wFMCommunicate request_size=4 [15:22:17]MH_SAM_APDU [15:22:17]CAPDU: 80 13 01 00 [15:22:17]Write to MH i2c: E2 08 00 40 29 80 13 01 00 00 00 00 00 E6 [15:22:17]Write i2c OK [15:22:17]MH_I2C_Read... [15:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:17]Read from MH i2c: E2 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: E2 0E 00 [15:22:17]MH_I2C_Read... [15:22:17]Read from MH i2c: E2 0E 00 40 29 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 35 [15:22:17]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:22:17]wFMCommunicate OK [15:22:17]SAM_PROTO_GetShiftState done [15:22:17]FM_GetShiftState done [15:22:17]req_shift_opened done [15:22:17]requested_item shift.open_date is exist - process it [15:22:17]req_shift_open_date [15:22:17]req_shift_open_date done [15:22:17]produce_requested_data done [15:22:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103950,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:22:17]process_action_free close_receipt [15:22:17]json_value_free [15:22:17]json_value_free done [15:22:17]process_json_proto returns [15:22:17]Send response to host [15:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103950,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:22:17]free response buf [15:22:17]execute_script done [15:22:17]execute_script returns [15:22:17]free content buf [15:22:17]Sock 7.Close socket [15:22:17]Sock 7.Thread stoped [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]accept exits with 9 [15:23:21]New connection [15:23:21]New thread 3067207012 created [15:23:21]Thread 3067063652 joined [15:23:21]Waiting for new connection... [15:23:21] Sock 9.Parse request [15:23:21]Sock 9.Check first char [15:23:21]Sock 9.First char is OK [15:23:21]request: POST /json_proto HTTP/1.0 [15:23:21]Method: POST [15:23:21]URL: /json_proto [15:23:21]Method is POST - this is cgi request [15:23:21]url: /json_proto [15:23:21]query_string will be loaded in cgi processing [15:23:21]execute_cgi json_proto POST (null) [15:23:21]execute_cgi path=json_proto method=POST [15:23:21]POST find Content-Length [15:23:21]Host: 172.17.38.133:8080 [15:23:21]Content-Length: 739 [15:23:21]Content-Type: application/json [15:23:21] [15:23:21]POST finish read [15:23:21]Found Content-Length = 739 [15:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103950, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [15:23:21]execute_script... [15:23:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 103950, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [15:23:21]POST & json_proto [15:23:21]process_json_proto [15:23:21]json parsed OK: [15:23:21]protocol is kg_v1.0 [15:23:21]action value=close_receipt [15:23:21]process_action close_receipt [15:23:21]cmd_close_receipt [15:23:21]MH_GetDate [15:23:21]Write to MH i2c: F0 00 00 41 29 59 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: F0 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: F0 09 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: F0 09 00 41 29 00 6B 49 74 66 BD 8F 7C 64 1C [15:23:21]GetLastDocTimeStamp 1718896935 [15:23:21]current date 1718897003 [15:23:21]FM_GetShiftState [15:23:21]SAM_PROTO_GetShiftState [15:23:21]wFMCommunicate request_size=4 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 13 01 00 [15:23:21]Write to MH i2c: E2 08 00 42 29 80 13 01 00 00 00 00 00 E8 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 0E 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 0E 00 42 29 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 37 [15:23:21]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:23:21]wFMCommunicate OK [15:23:21]SAM_PROTO_GetShiftState done [15:23:21]FM_GetShiftState done [15:23:21]opened in 1718843124 [15:23:21]opened+sec_in_day 1718929524 [15:23:21]quantity*price = 200063 [15:23:21]sum+1 = 200064 [15:23:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 136 20.06.2024 15:23 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 103950 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 103951 ФПД: 95861946116257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152323&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103951&fm=95861946116257&tin=02508201610067®Number=0000000000092785&sum=200000 [15:23:22]StoreToDocumentArchive [15:23:22]shift 354 fd 103951 [15:23:22]save to /storage/0354/doc_00103951 [15:23:22]save last doc name /storage/0354/doc_00103951 to /storage/kkm_last_doc_name [15:23:22]save OK [15:23:22]Clear old archive folders... [15:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=279 [15:23:22]tlvbuf is B6F96670 [15:23:22]SAM_PROTO_ClearQueue [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 09 00 00 [15:23:22]Write to MH i2c: E2 08 00 51 29 80 09 00 00 00 00 00 00 EC [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 51 29 00 90 00 EE [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_ClearQueue done [15:23:22]KKMCreateOFDPacket [15:23:22]OFDProtocolAddRootSTLVToBuf [15:23:22]FM_MakeSignedData [15:23:22]FM_MakeSignedData [15:23:22]SAM_PROTO_SignData [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 0D 01 02 [15:23:22]Write to MH i2c: E2 08 00 52 29 80 0D 01 02 00 00 00 00 F4 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 52 29 00 90 00 EF [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]wFMCommunicate request_size=255 [15:23:22]MH_SAM_APDU [15:23:22]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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 88 00 00 00 F4 03 04 00 6B 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 0E 96 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 [15:23:22]Write to MH i2c: E2 02 01 53 29 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 88 00 00 00 F4 03 04 00 6B 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 0E 96 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 00 00 23 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 53 29 00 90 00 F0 [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]wFMCommunicate request_size=38 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 96 01 00 35 04 06 00 57 2F 99 3E E8 A1 [15:23:22]Write to MH i2c: E2 29 00 54 29 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 96 01 00 35 04 06 00 57 2F 99 3E E8 A1 00 00 0C [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 03 00 54 29 00 90 00 F1 [15:23:22]RAPDU: 90 00 [15:23:22]wFMCommunicate OK [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 0D 03 02 [15:23:22]Write to MH i2c: E2 08 00 55 29 80 0D 03 02 00 00 00 00 F9 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0B 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0B 00 55 29 00 E2 91 5F 04 29 B7 B3 36 90 00 99 [15:23:22]RAPDU: E2 91 5F 04 29 B7 B3 36 90 00 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_SignData done [15:23:22]FM_MakeSignedData done [15:23:22]CreateOFDProtocolMessage [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 11 00 00 [15:23:22]Write to MH i2c: E2 08 00 56 29 80 11 00 00 00 00 00 00 F9 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 17 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 17 00 56 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4C [15:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:23:22]wFMCommunicate OK [15:23:22]CreateOFDProtocolMessage done [15:23:22]OFDSenderStorePacket 103951 [15:23:22]StoreOFDPacket docnum=103951 [15:23:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 16 15 23 01 A5 C2 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 88 00 00 00 F4 03 04 00 6B 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 0E 96 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 96 01 00 35 04 06 00 57 2F 99 3E E8 A1 E2 91 5F 04 29 B7 B3 36 [15:23:22]CheckFolder [15:23:22]dirname=/storage/ofd_packets [15:23:22]CheckFolder done [15:23:22]ProducePacketName [15:23:22]name=ofd_packets/00103951 [15:23:22]NVStorageSaveData ofd_packets/00103951 [15:23:22]File name is /storage/ofd_packets/00103951 [15:23:22]Write 329 bytes [15:23:22]NVStorageSaveData done [15:23:22]OFDSenderStorePacket done [15:23:22]KKMCreateOFDPacket done [15:23:22]NVStorageSaveData kkm_last_timestamp [15:23:22]File name is /storage/kkm_last_timestamp [15:23:22]Write 4 bytes [15:23:22]NVStorageSaveData done [15:23:22]ExternCall_PrintAddStr [15:23:22]wPrintStart [15:23:22]Write to MH i2c: 01 00 00 57 29 80 [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 07 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: 01 07 00 57 29 00 00 00 00 00 FF 0F 95 [15:23:22]RasterBufferAndPrint [15:23:22]line Счет N : (1)673315 [15:23:22]line ИНН: 02508201610067 [15:23:22]line Контрольно-Кассовый Чек [15:23:22]line ВОЗВРАТ ПРОДАЖИ [15:23:22]line ТРК (МРК, ГНК) : 32 [15:23:22]line Товар: 2710124130 [15:23:22]line Аи-92-К-5 [15:23:22]line 30.130 * 66.40 [15:23:22]line = 2000.63 [15:23:22]line НДС 12% НСП 1% [15:23:22]line > о реализуемом товаре [15:23:22]line ОКРУГЛЕНИЕ: -0.63 [15:23:22]line ИТОГО: 2000.00 [15:23:22]line НСП 1% : 17.70 [15:23:22]line НДС 12% : 212.46 [15:23:22]line Наличными: 2000.00 [15:23:22]line Безнал.: 0.00 [15:23:22]line Место: АЗС № 120 "Партнер Нефть" [15:23:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:23:22]line СНО: Общий режим [15:23:22]line Чек 136 20.06.2024 15:23 [15:23:22]line Смена: 354 ФФД: 1.0 [15:23:22]line ЗНМ: 0300000164 [15:23:22]line РНМ: 0000000000092785 [15:23:22]line Версия ККМ: 001 [15:23:22]line ФД осн.: 103950 [15:23:22]line ФМ осн.: 0000000000875093 [15:23:22]line ФМ: 0000000000875093 [15:23:22]line ФД: 103951 [15:23:22]line ФПД: 95861946116257 [15:23:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152323&type=2&operation_type=1&fn_number=0000000000875093&fd_number=103951&fm=95861946116257&tin=02508201610067®Number=0000000000092785&sum=200000 [15:23:23]OFD Sender: Processing packet 103951 [packets to send 17, broken 16] [15:23:23]ProducePacketName [15:23:23]name=ofd_packets/00103951 [15:23:23]OFD Sender: To server: pG, [15:23:23]CommunicateWithHost lk.salyk.kg:30040 [15:23:23]ConnectInit lk.salyk.kg [15:23:23]written 0, free lines is 4095 [15:23:23]Connected sock=10 [15:23:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 16 15 23 01 A5 C2 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 88 00 00 00 F4 03 04 00 6B 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 0E 96 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 96 01 00 35 04 06 00 57 2F 99 3E E8 A1 E2 91 5F 04 29 B7 B3 36 [15:23:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1F 3B 47 00 D2 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 0F 96 01 00 F4 03 04 00 F0 EF 73 66 B6 04 01 00 00 DF 2B 1D A5 B5 26 BE D4 [15:23:23]CommunicateWithHost err = 0 [15:23:23]CheckOFDResponse [15:23:23]1017 (14) - 77093643461234 [15:23:23]1041 (16) - 0000000000875093 [15:23:23]1040 (4) - 103951 [15:23:23]1012 (4) - 20.06.2024 09:01 [15:23:23]1206 (1) - 0 [15:23:23]OFD Sender: Remove packet 103951 [15:23:23]ProducePacketName [15:23:23]name=ofd_packets/00103951 [15:23:23]NVStorageDeleteData [15:23:23]Write to MH i2c: 01 00 00 82 29 AB [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: 01 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: 01 07 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: 01 07 00 82 29 00 00 00 00 00 09 0D C8 [15:23:23]RasterBufferAndPrint [15:23:23]line [15:23:23]line [15:23:23]line [15:23:23]line [15:23:23]line [15:23:23]written 0, free lines is 3346 [15:23:23]MH_Cut [15:23:23]Write to MH i2c: D1 01 00 89 29 01 84 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: D1 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: D1 01 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: D1 01 00 89 29 00 83 [15:23:23]Write to MH i2c: 01 00 00 8A 29 B3 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:24]OFD Sender: No OFD packet to send [15:23:24]*** Cut start [15:23:24]*** Partial cut [15:23:24]*** CUTSNS_PIN = 1 [15:23:24]*** CUTSNS_PIN = 0 [15:23:24]*** Brake cut motor [15:23:25]Read from MH i2c: 01 [15:23:25]MH_I2C_Read... [15:23:25]*** Stop cut motor [15:23:25]*** Cut end [15:23:25]Read from MH i2c: 01 07 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: 01 07 00 8A 29 00 00 00 00 00 FF 0F C8 [15:23:25]process_action close_receipt done [15:23:25]requested_data is exist [15:23:25]produce_requested_data [15:23:25]requested_item fm.sn is exist - process it [15:23:25]wFMCommunicate request_size=4 [15:23:25]MH_SAM_APDU [15:23:25]CAPDU: 80 11 00 00 [15:23:25]Write to MH i2c: E2 08 00 8B 29 80 11 00 00 00 00 00 00 2E [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:25]Read from MH i2c: E2 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 17 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 17 00 8B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 81 [15:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:23:25]wFMCommunicate OK [15:23:25]requested_item fd.num is exist - process it [15:23:25]SAM_PROTO_GetFieldsCounters [15:23:25]wFMCommunicate request_size=4 [15:23:25]MH_SAM_APDU [15:23:25]CAPDU: 80 13 00 00 [15:23:25]Write to MH i2c: E2 08 00 8C 29 80 13 00 00 00 00 00 00 31 [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:25]Read from MH i2c: E2 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 62 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 62 00 8C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0F 96 01 00 0E 04 04 00 62 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 F9 [15:23:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 0F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:25]wFMCommunicate OK [15:23:25]SAM_PROTO_GetFieldsCounters done [15:23:25]requested_item shift.num is exist - process it [15:23:25]requested_item shift.opened is exist - process it [15:23:25]req_shift_opened [15:23:25]FM_GetShiftState [15:23:25]SAM_PROTO_GetShiftState [15:23:25]wFMCommunicate request_size=4 [15:23:25]MH_SAM_APDU [15:23:25]CAPDU: 80 13 01 00 [15:23:25]Write to MH i2c: E2 08 00 8D 29 80 13 01 00 00 00 00 00 33 [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:25]Read from MH i2c: E2 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 0E 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 0E 00 8D 29 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 82 [15:23:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:23:25]wFMCommunicate OK [15:23:25]SAM_PROTO_GetShiftState done [15:23:25]FM_GetShiftState done [15:23:25]req_shift_opened done [15:23:25]requested_item shift.open_date is exist - process it [15:23:25]req_shift_open_date [15:23:25]req_shift_open_date done [15:23:25]produce_requested_data done [15:23:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103951,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:23:25]process_action_free close_receipt [15:23:25]json_value_free [15:23:25]json_value_free done [15:23:25]process_json_proto returns [15:23:25]Send response to host [15:23:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103951,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:23:25]free response buf [15:23:25]execute_script done [15:23:25]execute_script returns [15:23:25]free content buf [15:23:25]Sock 9.Close socket [15:23:25]Sock 9.Thread stoped [15:23:25]accept exits with 7 [15:23:25]New connection [15:23:25]New thread 3067063652 created [15:23:25]Thread 3067207012 joined [15:23:25]Waiting for new connection... [15:23:25] Sock 7.Parse request [15:23:25]Sock 7.Check first char [15:23:25]Sock 7.First char is OK [15:23:25]request: POST /json_proto HTTP/1.0 [15:23:25]Method: POST [15:23:25]URL: /json_proto [15:23:25]Method is POST - this is cgi request [15:23:25]url: /json_proto [15:23:25]query_string will be loaded in cgi processing [15:23:25]execute_cgi json_proto POST (null) [15:23:25]execute_cgi path=json_proto method=POST [15:23:25]POST find Content-Length [15:23:25]Host: 172.17.38.133:8080 [15:23:25]Content-Length: 682 [15:23:25]Content-Type: application/json [15:23:25] [15:23:25]POST finish read [15:23:25]Found Content-Length = 682 [15:23:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.900, "sum" : 1387.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1387.00, "payments": [ { "type": 0, "sum" : 1387.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:25]execute_script... [15:23: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)673315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.900, "sum" : 1387.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1387.00, "payments": [ { "type": 0, "sum" : 1387.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:25]POST & json_proto [15:23:25]process_json_proto [15:23:25]json parsed OK: [15:23:25]protocol is kg_v1.0 [15:23:25]action value=close_receipt [15:23:25]process_action close_receipt [15:23:25]cmd_close_receipt [15:23:25]MH_GetDate [15:23:25]Write to MH i2c: F0 00 00 8E 29 A6 [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: F0 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: F0 09 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: F0 09 00 8E 29 00 70 49 74 66 BD 8F 7C 64 6E [15:23:25]GetLastDocTimeStamp 1718897003 [15:23:25]current date 1718897008 [15:23:25]FM_GetShiftState [15:23:25]SAM_PROTO_GetShiftState [15:23:25]wFMCommunicate request_size=4 [15:23:25]MH_SAM_APDU [15:23:25]CAPDU: 80 13 01 00 [15:23:25]Write to MH i2c: E2 08 00 8F 29 80 13 01 00 00 00 00 00 35 [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:25]Read from MH i2c: E2 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 0E 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: E2 0E 00 8F 29 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 84 [15:23:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:23:25]wFMCommunicate OK [15:23:25]SAM_PROTO_GetShiftState done [15:23:25]FM_GetShiftState done [15:23:25]opened in 1718843124 [15:23:25]opened+sec_in_day 1718929524 [15:23:25]quantity*price = 138776 [15:23:25]sum+1 = 138777 [15:23:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 1387.00 Внесено: 2000.00 СДАЧА: 613.00 НСП 1% : 12.28 НДС 12% : 147.37 Наличными: 1387.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 137 20.06.2024 15:23 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103952 ФПД: 95890103401845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152328&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103952&fm=95890103401845&tin=02508201610067®Number=0000000000092785&sum=138700 [15:23:26]StoreToDocumentArchive [15:23:26]shift 354 fd 103952 [15:23:26]save to /storage/0354/doc_00103952 [15:23:26]save last doc name /storage/0354/doc_00103952 to /storage/kkm_last_doc_name [15:23:26]save OK [15:23:26]Clear old archive folders... [15:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:26]tlvbuf is B6EE68B0 [15:23:26]SAM_PROTO_ClearQueue [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 09 00 00 [15:23:26]Write to MH i2c: E2 08 00 9C 29 80 09 00 00 00 00 00 00 37 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 03 00 9C 29 00 90 00 39 [15:23:26]RAPDU: 90 00 [15:23:26]wFMCommunicate OK [15:23:26]SAM_PROTO_ClearQueue done [15:23:26]KKMCreateOFDPacket [15:23:26]OFDProtocolAddRootSTLVToBuf [15:23:26]FM_MakeSignedData [15:23:26]FM_MakeSignedData [15:23:26]SAM_PROTO_SignData [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 0D 01 02 [15:23:26]Write to MH i2c: E2 08 00 9D 29 80 0D 01 02 00 00 00 00 3F [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:27]Read from MH i2c: E2 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 03 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 03 00 9D 29 00 90 00 3A [15:23:27]RAPDU: 90 00 [15:23:27]wFMCommunicate OK [15:23:27]wFMCommunicate request_size=255 [15:23:27]MH_SAM_APDU [15:23: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 A4 51 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 1D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 39 00 00 00 00 07 04 06 00 CC 1D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 70 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 96 01 00 35 04 06 00 57 [15:23:27]Write to MH i2c: E2 02 01 9E 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 51 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 1D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 39 00 00 00 00 07 04 06 00 CC 1D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 70 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 96 01 00 35 04 06 00 57 00 00 72 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:27]Read from MH i2c: E2 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 03 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 03 00 9E 29 00 90 00 3B [15:23:27]RAPDU: 90 00 [15:23:27]wFMCommunicate OK [15:23:27]wFMCommunicate request_size=10 [15:23:27]MH_SAM_APDU [15:23:27]CAPDU: 80 0D 02 02 05 36 27 8C FD 75 [15:23:27]Write to MH i2c: E2 0D 00 9F 29 80 0D 02 02 05 00 36 27 8C FD 75 00 00 A7 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:27]Read from MH i2c: E2 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 03 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 03 00 9F 29 00 90 00 3C [15:23:27]RAPDU: 90 00 [15:23:27]wFMCommunicate OK [15:23:27]wFMCommunicate request_size=4 [15:23:27]MH_SAM_APDU [15:23:27]CAPDU: 80 0D 03 02 [15:23:27]Write to MH i2c: E2 08 00 A0 29 80 0D 03 02 00 00 00 00 44 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:27]Read from MH i2c: E2 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 0B 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 0B 00 A0 29 00 85 8F DC B7 C6 D2 97 3B 90 00 56 [15:23:27]RAPDU: 85 8F DC B7 C6 D2 97 3B 90 00 [15:23:27]wFMCommunicate OK [15:23:27]SAM_PROTO_SignData done [15:23:27]FM_MakeSignedData done [15:23:27]CreateOFDProtocolMessage [15:23:27]wFMCommunicate request_size=4 [15:23:27]MH_SAM_APDU [15:23:27]CAPDU: 80 11 00 00 [15:23:27]Write to MH i2c: E2 08 00 A1 29 80 11 00 00 00 00 00 00 44 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:27]Read from MH i2c: E2 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 17 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 17 00 A1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 97 [15:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:23:27]wFMCommunicate OK [15:23:27]CreateOFDProtocolMessage done [15:23:27]OFDSenderStorePacket 103952 [15:23:27]StoreOFDPacket docnum=103952 [15:23:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 34 62 07 01 10 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 51 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 1D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 39 00 00 00 00 07 04 06 00 CC 1D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 70 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 96 01 00 35 04 06 00 57 36 27 8C FD 75 85 8F DC B7 C6 D2 97 3B [15:23:27]CheckFolder [15:23:27]dirname=/storage/ofd_packets [15:23:27]CheckFolder done [15:23:27]ProducePacketName [15:23:27]name=ofd_packets/00103952 [15:23:27]NVStorageSaveData ofd_packets/00103952 [15:23:27]File name is /storage/ofd_packets/00103952 [15:23:27]Write 301 bytes [15:23:27]NVStorageSaveData done [15:23:27]OFDSenderStorePacket done [15:23:27]KKMCreateOFDPacket done [15:23:27]NVStorageSaveData kkm_last_timestamp [15:23:27]File name is /storage/kkm_last_timestamp [15:23:27]Write 4 bytes [15:23:27]NVStorageSaveData done [15:23:27]ExternCall_PrintAddStr [15:23:27]wPrintStart [15:23:27]Write to MH i2c: 01 00 00 A2 29 CB [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: 01 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: 01 07 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: 01 07 00 A2 29 00 00 00 00 00 FF 0F E0 [15:23:27]RasterBufferAndPrint [15:23:27]line Счет N : (1)673315 [15:23:27]line ИНН: 02508201610067 [15:23:27]line Контрольно-Кассовый Чек [15:23:27]line ПРОДАЖА [15:23:27]line ТРК (МРК, ГНК) : 32 [15:23:27]line Товар: 2710124130 [15:23:27]line Аи-92-К-5 [15:23:28]line 20.900 * 66.40 [15:23:28]line = 1387.76 [15:23:28]line НДС 12% НСП 1% [15:23:28]line > о реализуемом товаре [15:23:28]line ОКРУГЛЕНИЕ: -0.76 [15:23:28]line ИТОГО: 1387.00 [15:23:28]line Внесено: 2000.00 [15:23:28]line СДАЧА: 613.00 [15:23:28]line НСП 1% : 12.28 [15:23:28]line НДС 12% : 147.37 [15:23:28]line Наличными: 1387.00 [15:23:28]line Безнал.: 0.00 [15:23:28]line Место: АЗС № 120 "Партнер Нефть" [15:23:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:23:28]line СНО: Общий режим [15:23:28]line Чек 137 20.06.2024 15:23 [15:23:28]line Смена: 354 ФФД: 1.0 [15:23:28]line ЗНМ: 0300000164 [15:23:28]line РНМ: 0000000000092785 [15:23:28]line Версия ККМ: 001 [15:23:28]line ФМ: 0000000000875093 [15:23:28]line ФД: 103952 [15:23:28]line ФПД: 95890103401845 [15:23:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152328&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103952&fm=95890103401845&tin=02508201610067®Number=0000000000092785&sum=138700 [15:23:28]OFD Sender: Processing packet 103952 [packets to send 17, broken 16] [15:23:28]ProducePacketName [15:23:28]name=ofd_packets/00103952 [15:23:28]OFD Sender: To server: pG, [15:23:28]CommunicateWithHost lk.salyk.kg:30040 [15:23:28]ConnectInit lk.salyk.kg [15:23:28]written 0, free lines is 4095 [15:23:28]Connected sock=9 [15:23:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 34 62 07 01 10 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 51 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 1E 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 1D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 39 00 00 00 00 07 04 06 00 CC 1D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 70 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 96 01 00 35 04 06 00 57 36 27 8C FD 75 85 8F DC B7 C6 D2 97 3B [15:23:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 22 05 47 00 E8 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 10 96 01 00 F4 03 04 00 F5 EF 73 66 B6 04 01 00 00 37 2F AE 03 5E 78 1F B4 [15:23:28]CommunicateWithHost err = 0 [15:23:28]CheckOFDResponse [15:23:28]1017 (14) - 77093643461234 [15:23:28]1041 (16) - 0000000000875093 [15:23:28]1040 (4) - 103952 [15:23:28]1012 (4) - 20.06.2024 09:01 [15:23:28]1206 (1) - 0 [15:23:28]OFD Sender: Remove packet 103952 [15:23:28]ProducePacketName [15:23:28]name=ofd_packets/00103952 [15:23:28]NVStorageDeleteData [15:23:28]Write to MH i2c: 01 00 00 CD 29 F6 [15:23:28]Write i2c OK [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: 01 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: 01 07 00 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: 01 07 00 CD 29 00 00 00 00 00 F9 0C 02 [15:23:28]RasterBufferAndPrint [15:23:28]line [15:23:28]line [15:23:28]line [15:23:28]line [15:23:28]line [15:23:28]written 0, free lines is 3336 [15:23:28]MH_Cut [15:23:28]Write to MH i2c: D1 01 00 D4 29 01 CF [15:23:28]Write i2c OK [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: D1 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: D1 01 00 [15:23:28]MH_I2C_Read... [15:23:28]Read from MH i2c: D1 01 00 D4 29 00 CE [15:23:28]Write to MH i2c: 01 00 00 D5 29 FE [15:23:28]Write i2c OK [15:23:28]MH_I2C_Read... [15:23:29]OFD Sender: No OFD packet to send [15:23:29]*** Cut start [15:23:29]*** Partial cut [15:23:29]*** CUTSNS_PIN = 1 [15:23:29]*** CUTSNS_PIN = 0 [15:23:29]*** Brake cut motor [15:23:29]Read from MH i2c: 01 [15:23:29]MH_I2C_Read... [15:23:29]*** Stop cut motor [15:23:29]*** Cut end [15:23:29]Read from MH i2c: 01 07 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: 01 07 00 D5 29 00 00 00 00 00 FF 0F 13 [15:23:29]process_action close_receipt done [15:23:29]requested_data is exist [15:23:29]produce_requested_data [15:23:29]requested_item fm.sn is exist - process it [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 11 00 00 [15:23:29]Write to MH i2c: E2 08 00 D6 29 80 11 00 00 00 00 00 00 79 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 17 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 17 00 D6 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CC [15:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:23:29]wFMCommunicate OK [15:23:29]requested_item fd.num is exist - process it [15:23:29]SAM_PROTO_GetFieldsCounters [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 13 00 00 [15:23:29]Write to MH i2c: E2 08 00 D7 29 80 13 00 00 00 00 00 00 7C [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 62 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 62 00 D7 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 10 96 01 00 0E 04 04 00 62 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 48 [15:23:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 10 96 01 00 0E 04 04 00 62 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 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_GetFieldsCounters done [15:23:30]requested_item shift.num is exist - process it [15:23:30]requested_item shift.opened is exist - process it [15:23:30]req_shift_opened [15:23:30]FM_GetShiftState [15:23:30]SAM_PROTO_GetShiftState [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 13 01 00 [15:23:30]Write to MH i2c: E2 08 00 D8 29 80 13 01 00 00 00 00 00 7E [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 0E 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 0E 00 D8 29 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CD [15:23:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_GetShiftState done [15:23:30]FM_GetShiftState done [15:23:30]req_shift_opened done [15:23:30]requested_item shift.open_date is exist - process it [15:23:30]req_shift_open_date [15:23:30]req_shift_open_date done [15:23:30]produce_requested_data done [15:23:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103952,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:23:30]process_action_free close_receipt [15:23:30]json_value_free [15:23:30]json_value_free done [15:23:30]process_json_proto returns [15:23:30]Send response to host [15:23:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103952,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:23:30]free response buf [15:23:30]execute_script done [15:23:30]execute_script returns [15:23:30]free content buf [15:23:30]Sock 7.Close socket [15:23:30]Sock 7.Thread stoped [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:56]accept exits with 10 [15:24:56]New connection [15:24:56]New thread 3067207012 created [15:24:56]Thread 3067063652 joined [15:24:56]Waiting for new connection... [15:24:56] Sock 10.Parse request [15:24:56]Sock 10.Check first char [15:24:56]Sock 10.First char is OK [15:24:56]request: POST /json_proto HTTP/1.0 [15:24:56]Method: POST [15:24:56]URL: /json_proto [15:24:56]Method is POST - this is cgi request [15:24:56]url: /json_proto [15:24:56]query_string will be loaded in cgi processing [15:24:56]execute_cgi json_proto POST (null) [15:24:56]execute_cgi path=json_proto method=POST [15:24:56]POST find Content-Length [15:24:56]Host: 172.17.38.133:8080 [15:24:56]Content-Length: 682 [15:24:56]Content-Type: application/json [15:24:56] [15:24:56]POST finish read [15:24:56]Found Content-Length = 682 [15:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673314", "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" : 73.90, "quantity" : 47.420, "sum" : 3504.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3504.00, "payments": [ { "type": 0, "sum" : 3504.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:56]execute_script... [15:24: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)673314", "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" : 73.90, "quantity" : 47.420, "sum" : 3504.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3504.00, "payments": [ { "type": 0, "sum" : 3504.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:56]POST & json_proto [15:24:56]process_json_proto [15:24:56]json parsed OK: [15:24:56]protocol is kg_v1.0 [15:24:56]action value=close_receipt [15:24:56]process_action close_receipt [15:24:56]cmd_close_receipt [15:24:56]MH_GetDate [15:24:56]Write to MH i2c: F0 00 00 D9 29 F1 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: F0 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: F0 09 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: F0 09 00 D9 29 00 CA 49 74 66 BD 8F 7C 64 13 [15:24:56]GetLastDocTimeStamp 1718897008 [15:24:56]current date 1718897098 [15:24:56]FM_GetShiftState [15:24:56]SAM_PROTO_GetShiftState [15:24:56]wFMCommunicate request_size=4 [15:24:56]MH_SAM_APDU [15:24:56]CAPDU: 80 13 01 00 [15:24:56]Write to MH i2c: E2 08 00 DA 29 80 13 01 00 00 00 00 00 80 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 0E 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 0E 00 DA 29 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CF [15:24:56]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:24:56]wFMCommunicate OK [15:24:56]SAM_PROTO_GetShiftState done [15:24:56]FM_GetShiftState done [15:24:56]opened in 1718843124 [15:24:56]opened+sec_in_day 1718929524 [15:24:56]quantity*price = 350433 [15:24:56]sum+1 = 350435 [15:24:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 3504.00 Внесено: 5000.00 СДАЧА: 1496.00 НСП 1% : 31.01 НДС 12% : 372.14 Наличными: 3504.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 138 20.06.2024 15:24 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103953 ФПД: 47851808379353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152458&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103953&fm=47851808379353&tin=02508201610067®Number=0000000000092785&sum=350400 [15:24:57]StoreToDocumentArchive [15:24:57]shift 354 fd 103953 [15:24:57]save to /storage/0354/doc_00103953 [15:24:57]save last doc name /storage/0354/doc_00103953 to /storage/kkm_last_doc_name [15:24:57]save OK [15:24:57]Clear old archive folders... [15:24:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:57]tlvbuf is 0088EBC0 [15:24:57]SAM_PROTO_ClearQueue [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 09 00 00 [15:24:57]Write to MH i2c: E2 08 00 E7 29 80 09 00 00 00 00 00 00 82 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 E7 29 00 90 00 84 [15:24:57]RAPDU: 90 00 [15:24:57]wFMCommunicate OK [15:24:57]SAM_PROTO_ClearQueue done [15:24:57]KKMCreateOFDPacket [15:24:57]OFDProtocolAddRootSTLVToBuf [15:24:57]FM_MakeSignedData [15:24:57]FM_MakeSignedData [15:24:57]SAM_PROTO_SignData [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 0D 01 02 [15:24:57]Write to MH i2c: E2 08 00 E8 29 80 0D 01 02 00 00 00 00 8A [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 E8 29 00 90 00 85 [15:24:57]RAPDU: 90 00 [15:24:57]wFMCommunicate OK [15:24:57]wFMCommunicate request_size=255 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3C B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E2 58 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 58 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 91 00 00 00 00 07 04 06 00 C0 58 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CA 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 96 01 00 35 04 06 00 2B [15:24:57]Write to MH i2c: E2 02 01 E9 29 80 0D 02 02 FA 00 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 3C B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E2 58 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 58 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 91 00 00 00 00 07 04 06 00 C0 58 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CA 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 96 01 00 35 04 06 00 2B 00 00 CB [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 E9 29 00 90 00 86 [15:24:57]RAPDU: 90 00 [15:24:57]wFMCommunicate OK [15:24:57]wFMCommunicate request_size=10 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 0D 02 02 05 85 5E 0A 51 D9 [15:24:57]Write to MH i2c: E2 0D 00 EA 29 80 0D 02 02 05 00 85 5E 0A 51 D9 00 00 AE [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 03 00 EA 29 00 90 00 87 [15:24:57]RAPDU: 90 00 [15:24:57]wFMCommunicate OK [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 0D 03 02 [15:24:57]Write to MH i2c: E2 08 00 EB 29 80 0D 03 02 00 00 00 00 8F [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 0B 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 0B 00 EB 29 00 D9 33 2E D4 A0 FD C4 C8 90 00 C7 [15:24:58]RAPDU: D9 33 2E D4 A0 FD C4 C8 90 00 [15:24:58]wFMCommunicate OK [15:24:58]SAM_PROTO_SignData done [15:24:58]FM_MakeSignedData done [15:24:58]CreateOFDProtocolMessage [15:24:58]wFMCommunicate request_size=4 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 11 00 00 [15:24:58]Write to MH i2c: E2 08 00 EC 29 80 11 00 00 00 00 00 00 8F [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 17 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 17 00 EC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E2 [15:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:24:58]wFMCommunicate OK [15:24:58]CreateOFDProtocolMessage done [15:24:58]OFDSenderStorePacket 103953 [15:24:58]StoreOFDPacket docnum=103953 [15:24:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 53 50 07 01 97 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3C B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E2 58 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 58 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 91 00 00 00 00 07 04 06 00 C0 58 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CA 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 96 01 00 35 04 06 00 2B 85 5E 0A 51 D9 D9 33 2E D4 A0 FD C4 C8 [15:24:58]CheckFolder [15:24:58]dirname=/storage/ofd_packets [15:24:58]CheckFolder done [15:24:58]ProducePacketName [15:24:58]name=ofd_packets/00103953 [15:24:58]NVStorageSaveData ofd_packets/00103953 [15:24:58]File name is /storage/ofd_packets/00103953 [15:24:58]Write 301 bytes [15:24:58]NVStorageSaveData done [15:24:58]OFDSenderStorePacket done [15:24:58]KKMCreateOFDPacket done [15:24:58]NVStorageSaveData kkm_last_timestamp [15:24:58]File name is /storage/kkm_last_timestamp [15:24:58]Write 4 bytes [15:24:58]NVStorageSaveData done [15:24:58]ExternCall_PrintAddStr [15:24:58]wPrintStart [15:24:58]Write to MH i2c: 01 00 00 ED 29 16 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 ED 29 00 00 00 00 00 FF 0F 2B [15:24:58]RasterBufferAndPrint [15:24:58]line Счет N : (1)673314 [15:24:58]line ИНН: 02508201610067 [15:24:58]line Контрольно-Кассовый Чек [15:24:58]line ПРОДАЖА [15:24:58]line ТРК (МРК, ГНК) : 41 [15:24:58]line Товар: 2710124500 [15:24:58]line Аи-95-К-5 [15:24:58]line 47.420 * 73.90 [15:24:58]line = 3504.34 [15:24:58]line НДС 12% НСП 1% [15:24:58]line > о реализуемом товаре [15:24:58]line ОКРУГЛЕНИЕ: -0.34 [15:24:58]line ИТОГО: 3504.00 [15:24:58]line Внесено: 5000.00 [15:24:58]line СДАЧА: 1496.00 [15:24:58]line НСП 1% : 31.01 [15:24:58]line НДС 12% : 372.14 [15:24:58]line Наличными: 3504.00 [15:24:58]line Безнал.: 0.00 [15:24:58]line Место: АЗС № 120 "Партнер Нефть" [15:24:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:24:58]line СНО: Общий режим [15:24:58]line Чек 138 20.06.2024 15:24 [15:24:58]line Смена: 354 ФФД: 1.0 [15:24:58]line ЗНМ: 0300000164 [15:24:58]line РНМ: 0000000000092785 [15:24:58]line Версия ККМ: 001 [15:24:58]line ФМ: 0000000000875093 [15:24:58]line ФД: 103953 [15:24:58]line ФПД: 47851808379353 [15:24:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152458&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103953&fm=47851808379353&tin=02508201610067®Number=0000000000092785&sum=350400 [15:24:58]OFD Sender: Processing packet 103953 [packets to send 17, broken 16] [15:24:58]ProducePacketName [15:24:58]name=ofd_packets/00103953 [15:24:58]OFD Sender: To server: pG, [15:24:58]CommunicateWithHost lk.salyk.kg:30040 [15:24:58]ConnectInit lk.salyk.kg [15:24:58]written 0, free lines is 4095 [15:24:58]Connected sock=9 [15:24:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 53 50 07 01 97 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3C B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 E2 58 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 58 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 91 00 00 00 00 07 04 06 00 C0 58 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CA 49 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 96 01 00 35 04 06 00 2B 85 5E 0A 51 D9 D9 33 2E D4 A0 FD C4 C8 [15:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4A 15 47 00 0A F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 11 96 01 00 F4 03 04 00 50 F0 73 66 B6 04 01 00 00 55 76 18 64 98 F3 45 F4 [15:24:58]CommunicateWithHost err = 0 [15:24:58]CheckOFDResponse [15:24:58]1017 (14) - 77093643461234 [15:24:58]1041 (16) - 0000000000875093 [15:24:58]1040 (4) - 103953 [15:24:58]1012 (4) - 20.06.2024 09:03 [15:24:58]1206 (1) - 0 [15:24:58]OFD Sender: Remove packet 103953 [15:24:58]ProducePacketName [15:24:58]name=ofd_packets/00103953 [15:24:58]NVStorageDeleteData [15:24:58]Write to MH i2c: 01 00 00 18 2A 42 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 18 2A 00 00 00 00 00 FB 0C 50 [15:24:58]RasterBufferAndPrint [15:24:58]line [15:24:58]line [15:24:58]line [15:24:58]line [15:24:58]line [15:24:58]written 0, free lines is 3329 [15:24:58]MH_Cut [15:24:58]Write to MH i2c: D1 01 00 1F 2A 01 1B [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: D1 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: D1 01 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: D1 01 00 1F 2A 00 1A [15:24:58]Write to MH i2c: 01 00 00 20 2A 4A [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:59]OFD Sender: No OFD packet to send [15:24:59]*** Cut start [15:24:59]*** Partial cut [15:24:59]*** CUTSNS_PIN = 1 [15:24:59]*** CUTSNS_PIN = 0 [15:24:59]*** Brake cut motor [15:25:00]Read from MH i2c: 01 [15:25:00]MH_I2C_Read... [15:25:00]*** Stop cut motor [15:25:00]*** Cut end [15:25:00]Read from MH i2c: 01 07 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: 01 07 00 20 2A 00 00 00 00 00 FF 0F 5F [15:25:00]process_action close_receipt done [15:25:00]requested_data is exist [15:25:00]produce_requested_data [15:25:00]requested_item fm.sn is exist - process it [15:25:00]wFMCommunicate request_size=4 [15:25:00]MH_SAM_APDU [15:25:00]CAPDU: 80 11 00 00 [15:25:00]Write to MH i2c: E2 08 00 21 2A 80 11 00 00 00 00 00 00 C5 [15:25:00]Write i2c OK [15:25:00]MH_I2C_Read... [15:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:00]Read from MH i2c: E2 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 17 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 17 00 21 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 18 [15:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:25:00]wFMCommunicate OK [15:25:00]requested_item fd.num is exist - process it [15:25:00]SAM_PROTO_GetFieldsCounters [15:25:00]wFMCommunicate request_size=4 [15:25:00]MH_SAM_APDU [15:25:00]CAPDU: 80 13 00 00 [15:25:00]Write to MH i2c: E2 08 00 22 2A 80 13 00 00 00 00 00 00 C8 [15:25:00]Write i2c OK [15:25:00]MH_I2C_Read... [15:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:00]Read from MH i2c: E2 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 62 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 62 00 22 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 11 96 01 00 0E 04 04 00 62 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 98 [15:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 11 96 01 00 0E 04 04 00 62 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 [15:25:00]wFMCommunicate OK [15:25:00]SAM_PROTO_GetFieldsCounters done [15:25:00]requested_item shift.num is exist - process it [15:25:00]requested_item shift.opened is exist - process it [15:25:00]req_shift_opened [15:25:00]FM_GetShiftState [15:25:00]SAM_PROTO_GetShiftState [15:25:00]wFMCommunicate request_size=4 [15:25:00]MH_SAM_APDU [15:25:00]CAPDU: 80 13 01 00 [15:25:00]Write to MH i2c: E2 08 00 23 2A 80 13 01 00 00 00 00 00 CA [15:25:00]Write i2c OK [15:25:00]MH_I2C_Read... [15:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:00]Read from MH i2c: E2 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 0E 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 0E 00 23 2A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 19 [15:25:00]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:25:00]wFMCommunicate OK [15:25:00]SAM_PROTO_GetShiftState done [15:25:00]FM_GetShiftState done [15:25:00]req_shift_opened done [15:25:00]requested_item shift.open_date is exist - process it [15:25:00]req_shift_open_date [15:25:00]req_shift_open_date done [15:25:00]produce_requested_data done [15:25:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103953,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:25:00]process_action_free close_receipt [15:25:00]json_value_free [15:25:00]json_value_free done [15:25:00]process_json_proto returns [15:25:00]Send response to host [15:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103953,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:25:00]free response buf [15:25:00]execute_script done [15:25:00]execute_script returns [15:25:00]free content buf [15:25:00]Sock 10.Close socket [15:25:00]Sock 10.Thread stoped [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:06]accept exits with 7 [15:27:06]New connection [15:27:06]New thread 3067063652 created [15:27:06]Thread 3067207012 joined [15:27:06]Waiting for new connection... [15:27:06] Sock 7.Parse request [15:27:06]Sock 7.Check first char [15:27:06]Sock 7.First char is OK [15:27:06]request: POST /json_proto HTTP/1.0 [15:27:06]Method: POST [15:27:06]URL: /json_proto [15:27:06]Method is POST - this is cgi request [15:27:06]url: /json_proto [15:27:06]query_string will be loaded in cgi processing [15:27:06]execute_cgi json_proto POST (null) [15:27:06]execute_cgi path=json_proto method=POST [15:27:06]POST find Content-Length [15:27:06]Host: 172.17.38.133:8080 [15:27:06]Content-Length: 1169 [15:27:06]Content-Type: application/json [15:27:06] [15:27:06]POST finish read [15:27:06]Found Content-Length = 1169 [15:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673316\u000A20.06.2024 15:04\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 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101499\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:06]execute_script... [15:27:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673316\u000A20.06.2024 15:04\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 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101499\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:06]POST & json_proto [15:27:06]process_json_proto [15:27:06]json parsed OK: [15:27:06]protocol is kg_v1.0 [15:27:06]action value=print_text [15:27:06]process_action print_text [15:27:06]cmd_print_text [15:27:06]ExternCall_PrintAddStr [15:27:06]wPrintStart [15:27:06]Write to MH i2c: 01 00 00 24 2A 4E [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: 01 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: 01 07 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: 01 07 00 24 2A 00 00 00 00 00 FF 0F 63 [15:27:06]RasterBufferAndPrint [15:27:06]line *****ТОВАРНЫЙ ЧЕК***** [15:27:06]line АЗС 120 [15:27:06]line Партнер нефть [15:27:06]line 02508201610067 [15:27:06]line Кассир : Дуйшенбиев А. [15:27:06]line Счет N : (1)673316 [15:27:06]line 20.06.2024 15:04 [15:27:06]line ПРОДАЖА [15:27:06]line ТРК (МРК, ГНК): 32 [15:27:06]line Вид ГСМ : 2710124130 [15:27:06]line Аи-92-К-5 [15:27:06]line 30.000 x 66.40 [15:27:06]line ИТОГ: 1992.00 [15:27:06]line Тип оплаты: Талоны: ТК ГПНА Online [15:27:06]line 30101499 [15:27:06]line ______________________ [15:27:06]line (подпись) [15:27:06]written 0, free lines is 4095 [15:27:06]Write to MH i2c: 01 00 00 38 2A 62 [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: 01 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: 01 07 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: 01 07 00 38 2A 00 00 00 00 00 12 0E 89 [15:27:06]RasterBufferAndPrint [15:27:06]line [15:27:06]line [15:27:06]line [15:27:06]line [15:27:06]line [15:27:06]written 0, free lines is 3604 [15:27:06]MH_Cut [15:27:06]Write to MH i2c: D1 01 00 3F 2A 01 3B [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: D1 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: D1 01 00 [15:27:06]MH_I2C_Read... [15:27:06]Read from MH i2c: D1 01 00 3F 2A 00 3A [15:27:06]Write to MH i2c: 01 00 00 40 2A 6A [15:27:06]Write i2c OK [15:27:06]MH_I2C_Read... [15:27:07]*** Cut start [15:27:07]*** Partial cut [15:27:07]*** CUTSNS_PIN = 1 [15:27:07]*** CUTSNS_PIN = 0 [15:27:07]*** Brake cut motor [15:27:07]Read from MH i2c: 01 [15:27:07]MH_I2C_Read... [15:27:07]*** Stop cut motor [15:27:07]*** Cut end [15:27:07]Read from MH i2c: 01 07 00 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: 01 07 00 40 2A 00 00 00 00 00 FF 0F 7F [15:27:07]process_action print_text done [15:27:07]requested_data is exist [15:27:07]produce_requested_data [15:27:07]requested_item fm.sn is exist - process it [15:27:07]wFMCommunicate request_size=4 [15:27:07]MH_SAM_APDU [15:27:07]CAPDU: 80 11 00 00 [15:27:07]Write to MH i2c: E2 08 00 41 2A 80 11 00 00 00 00 00 00 E5 [15:27:07]Write i2c OK [15:27:07]MH_I2C_Read... [15:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:07]Read from MH i2c: E2 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: E2 17 00 [15:27:07]MH_I2C_Read... [15:27:07]Read from MH i2c: E2 17 00 41 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 38 [15:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:27:07]wFMCommunicate OK [15:27:07]requested_item fd.num is exist - process it [15:27:07]SAM_PROTO_GetFieldsCounters [15:27:07]wFMCommunicate request_size=4 [15:27:07]MH_SAM_APDU [15:27:07]CAPDU: 80 13 00 00 [15:27:07]Write to MH i2c: E2 08 00 42 2A 80 13 00 00 00 00 00 00 E8 [15:27:07]Write i2c OK [15:27:07]MH_I2C_Read... [15:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:08]Read from MH i2c: E2 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 62 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 62 00 42 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 11 96 01 00 0E 04 04 00 62 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 B8 [15:27:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 11 96 01 00 0E 04 04 00 62 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 [15:27:08]wFMCommunicate OK [15:27:08]SAM_PROTO_GetFieldsCounters done [15:27:08]requested_item shift.num is exist - process it [15:27:08]requested_item shift.opened is exist - process it [15:27:08]req_shift_opened [15:27:08]FM_GetShiftState [15:27:08]SAM_PROTO_GetShiftState [15:27:08]wFMCommunicate request_size=4 [15:27:08]MH_SAM_APDU [15:27:08]CAPDU: 80 13 01 00 [15:27:08]Write to MH i2c: E2 08 00 43 2A 80 13 01 00 00 00 00 00 EA [15:27:08]Write i2c OK [15:27:08]MH_I2C_Read... [15:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:08]Read from MH i2c: E2 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 0E 00 [15:27:08]MH_I2C_Read... [15:27:08]Read from MH i2c: E2 0E 00 43 2A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 39 [15:27:08]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:27:08]wFMCommunicate OK [15:27:08]SAM_PROTO_GetShiftState done [15:27:08]FM_GetShiftState done [15:27:08]req_shift_opened done [15:27:08]requested_item shift.open_date is exist - process it [15:27:08]req_shift_open_date [15:27:08]req_shift_open_date done [15:27:08]produce_requested_data done [15:27:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103953,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:27:08]process_action_free print_text [15:27:08]json_value_free [15:27:08]json_value_free done [15:27:08]process_json_proto returns [15:27:08]Send response to host [15:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103953,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:27:08]free response buf [15:27:08]execute_script done [15:27:08]execute_script returns [15:27:08]free content buf [15:27:08]Sock 7.Close socket [15:27:08]Sock 7.Thread stoped [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:22]accept exits with 9 [15:28:22]New connection [15:28:22]New thread 3067207012 created [15:28:22]Thread 3067063652 joined [15:28:22]Waiting for new connection... [15:28:22] Sock 9.Parse request [15:28:22]Sock 9.Check first char [15:28:22]Sock 9.First char is OK [15:28:22]request: POST /json_proto HTTP/1.0 [15:28:22]Method: POST [15:28:22]URL: /json_proto [15:28:22]Method is POST - this is cgi request [15:28:22]url: /json_proto [15:28:22]query_string will be loaded in cgi processing [15:28:22]execute_cgi json_proto POST (null) [15:28:22]execute_cgi path=json_proto method=POST [15:28:22]POST find Content-Length [15:28:22]Host: 172.17.38.133:8080 [15:28:22]Content-Length: 682 [15:28:22]Content-Type: application/json [15:28:22] [15:28:22]POST finish read [15:28:22]Found Content-Length = 682 [15:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673317", "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" : 73.90, "quantity" : 20.010, "sum" : 1478.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1478.00, "payments": [ { "type": 0, "sum" : 1478.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:22]execute_script... [15:28: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)673317", "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" : 73.90, "quantity" : 20.010, "sum" : 1478.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1478.00, "payments": [ { "type": 0, "sum" : 1478.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:22]POST & json_proto [15:28:22]process_json_proto [15:28:22]json parsed OK: [15:28:22]protocol is kg_v1.0 [15:28:22]action value=close_receipt [15:28:22]process_action close_receipt [15:28:22]cmd_close_receipt [15:28:22]MH_GetDate [15:28:22]Write to MH i2c: F0 00 00 44 2A 5D [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: F0 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: F0 09 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: F0 09 00 44 2A 00 98 4A 74 66 BD 8F 7C 64 4E [15:28:22]GetLastDocTimeStamp 1718897098 [15:28:22]current date 1718897304 [15:28:22]FM_GetShiftState [15:28:22]SAM_PROTO_GetShiftState [15:28:22]wFMCommunicate request_size=4 [15:28:22]MH_SAM_APDU [15:28:22]CAPDU: 80 13 01 00 [15:28:22]Write to MH i2c: E2 08 00 45 2A 80 13 01 00 00 00 00 00 EC [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:22]Read from MH i2c: E2 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 0E 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 0E 00 45 2A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3B [15:28:22]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:28:22]wFMCommunicate OK [15:28:22]SAM_PROTO_GetShiftState done [15:28:22]FM_GetShiftState done [15:28:22]opened in 1718843124 [15:28:22]opened+sec_in_day 1718929524 [15:28:22]quantity*price = 147873 [15:28:22]sum+1 = 147875 [15:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 1478.00 Внесено: 1500.00 СДАЧА: 22.00 НСП 1% : 13.09 НДС 12% : 157.03 Наличными: 1478.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 139 20.06.2024 15:28 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103954 ФПД: 65407743797251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152824&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103954&fm=65407743797251&tin=02508201610067®Number=0000000000092785&sum=147800 [15:28:23]StoreToDocumentArchive [15:28:23]shift 354 fd 103954 [15:28:23]save to /storage/0354/doc_00103954 [15:28:23]save last doc name /storage/0354/doc_00103954 to /storage/kkm_last_doc_name [15:28:23]save OK [15:28:23]Clear old archive folders... [15:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:23]tlvbuf is 0086A120 [15:28:23]SAM_PROTO_ClearQueue [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 09 00 00 [15:28:23]Write to MH i2c: E2 08 00 52 2A 80 09 00 00 00 00 00 00 EE [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 52 2A 00 90 00 F0 [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]SAM_PROTO_ClearQueue done [15:28:23]KKMCreateOFDPacket [15:28:23]OFDProtocolAddRootSTLVToBuf [15:28:23]FM_MakeSignedData [15:28:23]FM_MakeSignedData [15:28:23]SAM_PROTO_SignData [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 0D 01 02 [15:28:23]Write to MH i2c: E2 08 00 53 2A 80 0D 01 02 00 00 00 00 F6 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 53 2A 00 90 00 F1 [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]wFMCommunicate request_size=255 [15:28:23]MH_SAM_APDU [15:28: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 2A 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 3D 00 00 00 00 07 04 06 00 58 41 02 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 98 4A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 96 01 00 35 04 06 00 3B [15:28:23]Write to MH i2c: E2 02 01 54 2A 80 0D 02 02 FA 00 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 2A 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 3D 00 00 00 00 07 04 06 00 58 41 02 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 98 4A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 96 01 00 35 04 06 00 3B 00 00 DB [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 54 2A 00 90 00 F2 [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]wFMCommunicate request_size=10 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 0D 02 02 05 7C ED 55 A8 03 [15:28:23]Write to MH i2c: E2 0D 00 55 2A 80 0D 02 02 05 00 7C ED 55 A8 03 00 00 6C [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 03 00 55 2A 00 90 00 F3 [15:28:23]RAPDU: 90 00 [15:28:23]wFMCommunicate OK [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 0D 03 02 [15:28:23]Write to MH i2c: E2 08 00 56 2A 80 0D 03 02 00 00 00 00 FB [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 0B 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 0B 00 56 2A 00 79 C2 46 2A 63 E4 A0 67 90 00 F5 [15:28:23]RAPDU: 79 C2 46 2A 63 E4 A0 67 90 00 [15:28:23]wFMCommunicate OK [15:28:23]SAM_PROTO_SignData done [15:28:23]FM_MakeSignedData done [15:28:23]CreateOFDProtocolMessage [15:28:23]wFMCommunicate request_size=4 [15:28:23]MH_SAM_APDU [15:28:23]CAPDU: 80 11 00 00 [15:28:23]Write to MH i2c: E2 08 00 57 2A 80 11 00 00 00 00 00 00 FB [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:23]Read from MH i2c: E2 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 17 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: E2 17 00 57 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4E [15:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:28:23]wFMCommunicate OK [15:28:23]CreateOFDProtocolMessage done [15:28:23]OFDSenderStorePacket 103954 [15:28:23]StoreOFDPacket docnum=103954 [15:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1A B9 07 01 D8 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 3D 00 00 00 00 07 04 06 00 58 41 02 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 98 4A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 96 01 00 35 04 06 00 3B 7C ED 55 A8 03 79 C2 46 2A 63 E4 A0 67 [15:28:23]CheckFolder [15:28:23]dirname=/storage/ofd_packets [15:28:23]CheckFolder done [15:28:23]ProducePacketName [15:28:23]name=ofd_packets/00103954 [15:28:23]NVStorageSaveData ofd_packets/00103954 [15:28:23]File name is /storage/ofd_packets/00103954 [15:28:23]Write 301 bytes [15:28:23]NVStorageSaveData done [15:28:23]OFDSenderStorePacket done [15:28:23]KKMCreateOFDPacket done [15:28:23]NVStorageSaveData kkm_last_timestamp [15:28:23]File name is /storage/kkm_last_timestamp [15:28:23]Write 4 bytes [15:28:23]NVStorageSaveData done [15:28:23]ExternCall_PrintAddStr [15:28:23]wPrintStart [15:28:23]Write to MH i2c: 01 00 00 58 2A 82 [15:28:23]Write i2c OK [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: 01 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: 01 07 00 [15:28:23]MH_I2C_Read... [15:28:23]Read from MH i2c: 01 07 00 58 2A 00 00 00 00 00 FF 0F 97 [15:28:23]RasterBufferAndPrint [15:28:23]line Счет N : (1)673317 [15:28:23]line ИНН: 02508201610067 [15:28:23]line Контрольно-Кассовый Чек [15:28:23]line ПРОДАЖА [15:28:23]line ТРК (МРК, ГНК) : 41 [15:28:23]line Товар: 2710124500 [15:28:23]line Аи-95-К-5 [15:28:23]line 20.010 * 73.90 [15:28:23]line = 1478.74 [15:28:23]line НДС 12% НСП 1% [15:28:23]line > о реализуемом товаре [15:28:23]line ОКРУГЛЕНИЕ: -0.74 [15:28:23]line ИТОГО: 1478.00 [15:28:23]line Внесено: 1500.00 [15:28:23]line СДАЧА: 22.00 [15:28:23]line НСП 1% : 13.09 [15:28:23]line НДС 12% : 157.03 [15:28:23]line Наличными: 1478.00 [15:28:23]line Безнал.: 0.00 [15:28:23]line Место: АЗС № 120 "Партнер Нефть" [15:28:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:28:23]line СНО: Общий режим [15:28:23]line Чек 139 20.06.2024 15:28 [15:28:23]line Смена: 354 ФФД: 1.0 [15:28:23]line ЗНМ: 0300000164 [15:28:23]line РНМ: 0000000000092785 [15:28:23]line Версия ККМ: 001 [15:28:23]line ФМ: 0000000000875093 [15:28:23]line ФД: 103954 [15:28:23]line ФПД: 65407743797251 [15:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T152824&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103954&fm=65407743797251&tin=02508201610067®Number=0000000000092785&sum=147800 [15:28:24]OFD Sender: Processing packet 103954 [packets to send 17, broken 16] [15:28:24]ProducePacketName [15:28:24]name=ofd_packets/00103954 [15:28:24]OFD Sender: To server: pG, [15:28:24]CommunicateWithHost lk.salyk.kg:30040 [15:28:24]ConnectInit lk.salyk.kg [15:28:24]written 0, free lines is 4095 [15:28:24]Connected sock=10 [15:28:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 1A B9 07 01 D8 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 3D 00 00 00 00 07 04 06 00 58 41 02 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 98 4A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 96 01 00 35 04 06 00 3B 7C ED 55 A8 03 79 C2 46 2A 63 E4 A0 67 [15:28:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FD 51 47 00 EC 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 12 96 01 00 F4 03 04 00 1D F1 73 66 B6 04 01 00 00 AD 71 A3 97 6A 96 DD 5B [15:28:24]CommunicateWithHost err = 0 [15:28:24]CheckOFDResponse [15:28:24]1017 (14) - 77093643461234 [15:28:24]1041 (16) - 0000000000875093 [15:28:24]1040 (4) - 103954 [15:28:24]1012 (4) - 20.06.2024 09:06 [15:28:24]1206 (1) - 0 [15:28:24]OFD Sender: Remove packet 103954 [15:28:24]ProducePacketName [15:28:24]name=ofd_packets/00103954 [15:28:24]NVStorageDeleteData [15:28:24]Write to MH i2c: 01 00 00 83 2A AD [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: 01 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: 01 07 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: 01 07 00 83 2A 00 00 00 00 00 E4 0C A4 [15:28:24]RasterBufferAndPrint [15:28:24]line [15:28:24]line [15:28:24]line [15:28:24]line [15:28:24]line [15:28:24]written 0, free lines is 3307 [15:28:24]MH_Cut [15:28:24]Write to MH i2c: D1 01 00 8A 2A 01 86 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: D1 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: D1 01 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: D1 01 00 8A 2A 00 85 [15:28:24]Write to MH i2c: 01 00 00 8B 2A B5 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:25]OFD Sender: No OFD packet to send [15:28:25]*** Cut start [15:28:25]*** Partial cut [15:28:25]*** CUTSNS_PIN = 1 [15:28:25]*** CUTSNS_PIN = 0 [15:28:25]*** Brake cut motor [15:28:25]Read from MH i2c: 01 [15:28:26]MH_I2C_Read... [15:28:26]*** Stop cut motor [15:28:26]*** Cut end [15:28:26]Read from MH i2c: 01 07 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: 01 07 00 8B 2A 00 00 00 00 00 FF 0F CA [15:28:26]process_action close_receipt done [15:28:26]requested_data is exist [15:28:26]produce_requested_data [15:28:26]requested_item fm.sn is exist - process it [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 11 00 00 [15:28:26]Write to MH i2c: E2 08 00 8C 2A 80 11 00 00 00 00 00 00 30 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 17 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 17 00 8C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 83 [15:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:28:26]wFMCommunicate OK [15:28:26]requested_item fd.num is exist - process it [15:28:26]SAM_PROTO_GetFieldsCounters [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 13 00 00 [15:28:26]Write to MH i2c: E2 08 00 8D 2A 80 13 00 00 00 00 00 00 33 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 62 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 62 00 8D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 12 96 01 00 0E 04 04 00 62 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 07 [15:28:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 12 96 01 00 0E 04 04 00 62 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 [15:28:26]wFMCommunicate OK [15:28:26]SAM_PROTO_GetFieldsCounters done [15:28:26]requested_item shift.num is exist - process it [15:28:26]requested_item shift.opened is exist - process it [15:28:26]req_shift_opened [15:28:26]FM_GetShiftState [15:28:26]SAM_PROTO_GetShiftState [15:28:26]wFMCommunicate request_size=4 [15:28:26]MH_SAM_APDU [15:28:26]CAPDU: 80 13 01 00 [15:28:26]Write to MH i2c: E2 08 00 8E 2A 80 13 01 00 00 00 00 00 35 [15:28:26]Write i2c OK [15:28:26]MH_I2C_Read... [15:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:26]Read from MH i2c: E2 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 0E 00 [15:28:26]MH_I2C_Read... [15:28:26]Read from MH i2c: E2 0E 00 8E 2A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 84 [15:28:26]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:28:26]wFMCommunicate OK [15:28:26]SAM_PROTO_GetShiftState done [15:28:26]FM_GetShiftState done [15:28:26]req_shift_opened done [15:28:26]requested_item shift.open_date is exist - process it [15:28:26]req_shift_open_date [15:28:26]req_shift_open_date done [15:28:26]produce_requested_data done [15:28:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103954,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:28:26]process_action_free close_receipt [15:28:26]json_value_free [15:28:26]json_value_free done [15:28:26]process_json_proto returns [15:28:26]Send response to host [15:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103954,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:28:26]free response buf [15:28:26]execute_script done [15:28:26]execute_script returns [15:28:26]free content buf [15:28:26]Sock 9.Close socket [15:28:26]Sock 9.Thread stoped [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:44]accept exits with 7 [15:30:44]New connection [15:30:44]New thread 3067063652 created [15:30:44]Thread 3067207012 joined [15:30:44]Waiting for new connection... [15:30:44] Sock 7.Parse request [15:30:44]Sock 7.Check first char [15:30:44]Sock 7.First char is OK [15:30:44]request: POST /json_proto HTTP/1.0 [15:30:44]Method: POST [15:30:44]URL: /json_proto [15:30:44]Method is POST - this is cgi request [15:30:44]url: /json_proto [15:30:44]query_string will be loaded in cgi processing [15:30:44]execute_cgi json_proto POST (null) [15:30:44]execute_cgi path=json_proto method=POST [15:30:44]POST find Content-Length [15:30:44]Host: 172.17.38.133:8080 [15:30:44]Content-Length: 824 [15:30:44]Content-Type: application/json [15:30:44] [15:30:44]POST finish read [15:30:44]Found Content-Length = 824 [15:30:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:44]execute_script... [15:30: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)673318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:44]POST & json_proto [15:30:44]process_json_proto [15:30:44]json parsed OK: [15:30:44]protocol is kg_v1.0 [15:30:44]action value=close_receipt [15:30:44]process_action close_receipt [15:30:44]cmd_close_receipt [15:30:44]MH_GetDate [15:30:44]Write to MH i2c: F0 00 00 8F 2A A8 [15:30:44]Write i2c OK [15:30:44]MH_I2C_Read... [15:30:44]Read from MH i2c: F0 [15:30:44]MH_I2C_Read... [15:30:44]Read from MH i2c: F0 09 00 [15:30:44]MH_I2C_Read... [15:30:44]Read from MH i2c: F0 09 00 8F 2A 00 27 4B 74 66 BD 8F 7C 64 29 [15:30:44]GetLastDocTimeStamp 1718897304 [15:30:44]current date 1718897447 [15:30:44]FM_GetShiftState [15:30:44]SAM_PROTO_GetShiftState [15:30:44]wFMCommunicate request_size=4 [15:30:44]MH_SAM_APDU [15:30:44]CAPDU: 80 13 01 00 [15:30:44]Write to MH i2c: E2 08 00 90 2A 80 13 01 00 00 00 00 00 37 [15:30:44]Write i2c OK [15:30:44]MH_I2C_Read... [15:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:45]Read from MH i2c: E2 [15:30:45]MH_I2C_Read... [15:30:45]Read from MH i2c: E2 0E 00 [15:30:45]MH_I2C_Read... [15:30:45]Read from MH i2c: E2 0E 00 90 2A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 86 [15:30:45]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:30:45]wFMCommunicate OK [15:30:45]SAM_PROTO_GetShiftState done [15:30:45]FM_GetShiftState done [15:30:45]opened in 1718843124 [15:30:45]opened+sec_in_day 1718929524 [15:30:45]quantity*price = 500021 [15:30:45]sum+1 = 500022 [15:30:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.21 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.21 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 140 20.06.2024 15:30 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103955 ФПД: 210551832905142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153047&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103955&fm=210551832905142&tin=02508201610067®Number=0000000000092785&sum=500021 [15:30:46]StoreToDocumentArchive [15:30:46]shift 354 fd 103955 [15:30:46]save to /storage/0354/doc_00103955 [15:30:46]save last doc name /storage/0354/doc_00103955 to /storage/kkm_last_doc_name [15:30:46]save OK [15:30:46]Clear old archive folders... [15:30:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:30:46]tlvbuf is 00843490 [15:30:46]SAM_PROTO_ClearQueue [15:30:46]wFMCommunicate request_size=4 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 09 00 00 [15:30:46]Write to MH i2c: E2 08 00 9D 2A 80 09 00 00 00 00 00 00 39 [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 9D 2A 00 90 00 3B [15:30:46]RAPDU: 90 00 [15:30:46]wFMCommunicate OK [15:30:46]SAM_PROTO_ClearQueue done [15:30:46]KKMCreateOFDPacket [15:30:46]OFDProtocolAddRootSTLVToBuf [15:30:46]FM_MakeSignedData [15:30:46]FM_MakeSignedData [15:30:46]SAM_PROTO_SignData [15:30:46]wFMCommunicate request_size=4 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 0D 01 02 [15:30:46]Write to MH i2c: E2 08 00 9E 2A 80 0D 01 02 00 00 00 00 41 [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 9E 2A 00 90 00 3C [15:30:46]RAPDU: 90 00 [15:30:46]wFMCommunicate OK [15:30:46]wFMCommunicate request_size=255 [15:30:46]MH_SAM_APDU [15:30: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 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 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 27 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 96 01 00 35 04 06 00 [15:30:46]Write to MH i2c: E2 02 01 9F 2A 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 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 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 27 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 96 01 00 35 04 06 00 00 00 2D [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 9F 2A 00 90 00 3D [15:30:46]RAPDU: 90 00 [15:30:46]wFMCommunicate OK [15:30:46]wFMCommunicate request_size=11 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 0D 02 02 06 BF 7E EB 35 05 B6 [15:30:46]Write to MH i2c: E2 0E 00 A0 2A 80 0D 02 02 06 00 BF 7E EB 35 05 B6 00 00 68 [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 03 00 A0 2A 00 90 00 3E [15:30:46]RAPDU: 90 00 [15:30:46]wFMCommunicate OK [15:30:46]wFMCommunicate request_size=4 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 0D 03 02 [15:30:46]Write to MH i2c: E2 08 00 A1 2A 80 0D 03 02 00 00 00 00 46 [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 0B 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 0B 00 A1 2A 00 33 A4 93 19 C3 65 A3 5E 90 00 F3 [15:30:46]RAPDU: 33 A4 93 19 C3 65 A3 5E 90 00 [15:30:46]wFMCommunicate OK [15:30:46]SAM_PROTO_SignData done [15:30:46]FM_MakeSignedData done [15:30:46]CreateOFDProtocolMessage [15:30:46]wFMCommunicate request_size=4 [15:30:46]MH_SAM_APDU [15:30:46]CAPDU: 80 11 00 00 [15:30:46]Write to MH i2c: E2 08 00 A2 2A 80 11 00 00 00 00 00 00 46 [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:46]Read from MH i2c: E2 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 17 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: E2 17 00 A2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [15:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:30:46]wFMCommunicate OK [15:30:46]CreateOFDProtocolMessage done [15:30:46]OFDSenderStorePacket 103955 [15:30:46]StoreOFDPacket docnum=103955 [15:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 8A 33 08 01 86 FF 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 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 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 27 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 96 01 00 35 04 06 00 BF 7E EB 35 05 B6 33 A4 93 19 C3 65 A3 5E [15:30:46]CheckFolder [15:30:46]dirname=/storage/ofd_packets [15:30:46]CheckFolder done [15:30:46]ProducePacketName [15:30:46]name=ofd_packets/00103955 [15:30:46]NVStorageSaveData ofd_packets/00103955 [15:30:46]File name is /storage/ofd_packets/00103955 [15:30:46]Write 302 bytes [15:30:46]NVStorageSaveData done [15:30:46]OFDSenderStorePacket done [15:30:46]KKMCreateOFDPacket done [15:30:46]NVStorageSaveData kkm_last_timestamp [15:30:46]File name is /storage/kkm_last_timestamp [15:30:46]Write 4 bytes [15:30:46]NVStorageSaveData done [15:30:46]ExternCall_PrintAddStr [15:30:46]wPrintStart [15:30:46]Write to MH i2c: 01 00 00 A3 2A CD [15:30:46]Write i2c OK [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: 01 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: 01 07 00 [15:30:46]MH_I2C_Read... [15:30:46]Read from MH i2c: 01 07 00 A3 2A 00 00 00 00 00 FF 0F E2 [15:30:46]RasterBufferAndPrint [15:30:46]line Счет N : (1)673318 [15:30:46]line ИНН: 02508201610067 [15:30:46]line Контрольно-Кассовый Чек [15:30:46]line ПРОДАЖА [15:30:46]line ТРК (МРК, ГНК) : 11 [15:30:46]line Товар: 2710194210 [15:30:46]line ДТ(л)-К-5 [15:30:46]line 68.590 * 72.90 [15:30:46]line = 5000.21 [15:30:46]line НДС 12% НСП 1% [15:30:46]line > о реализуемом товаре [15:30:46]line ИТОГО: 5000.21 [15:30:46]line НСП 1% : 44.25 [15:30:46]line НДС 12% : 531.00 [15:30:46]line Наличными: 0.00 [15:30:46]line Безнал.: 5000.21 [15:30:46]line Место: АЗС № 120 "Партнер Нефть" [15:30:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:30:46]line СНО: Общий режим [15:30:46]line Чек 140 20.06.2024 15:30 [15:30:46]line Смена: 354 ФФД: 1.0 [15:30:46]line ЗНМ: 0300000164 [15:30:46]line РНМ: 0000000000092785 [15:30:46]line Версия ККМ: 001 [15:30:46]line Платежная система: Бакай Банк [15:30:46]line ФМ: 0000000000875093 [15:30:46]line ФД: 103955 [15:30:46]line ФПД: 210551832905142 [15:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153047&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103955&fm=210551832905142&tin=02508201610067®Number=0000000000092785&sum=500021 [15:30:47]written 0, free lines is 4095 [15:30:47]OFD Sender: Processing packet 103955 [packets to send 17, broken 16] [15:30:47]ProducePacketName [15:30:47]name=ofd_packets/00103955 [15:30:47]OFD Sender: To server: pG, [15:30:47]CommunicateWithHost lk.salyk.kg:30040 [15:30:47]ConnectInit lk.salyk.kg [15:30:47]Connected sock=10 [15:30:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 8A 33 08 01 86 FF 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 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 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 27 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 96 01 00 35 04 06 00 BF 7E EB 35 05 B6 33 A4 93 19 C3 65 A3 5E [15:30:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D4 90 47 00 9D D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 13 96 01 00 F4 03 04 00 AC F1 73 66 B6 04 01 00 00 7C 5E 81 B5 CF DF BF CF [15:30:47]CommunicateWithHost err = 0 [15:30:47]CheckOFDResponse [15:30:47]1017 (14) - 77093643461234 [15:30:47]1041 (16) - 0000000000875093 [15:30:47]1040 (4) - 103955 [15:30:47]1012 (4) - 20.06.2024 09:09 [15:30:47]1206 (1) - 0 [15:30:47]OFD Sender: Remove packet 103955 [15:30:47]ProducePacketName [15:30:47]name=ofd_packets/00103955 [15:30:47]NVStorageDeleteData [15:30:47]Write to MH i2c: 01 00 00 CD 2A F7 [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: 01 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: 01 07 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: 01 07 00 CD 2A 00 00 00 00 00 01 0D 0C [15:30:47]RasterBufferAndPrint [15:30:47]line [15:30:47]line [15:30:47]line [15:30:47]line [15:30:47]line [15:30:47]written 0, free lines is 3338 [15:30:47]MH_Cut [15:30:47]Write to MH i2c: D1 01 00 D4 2A 01 D0 [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: D1 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: D1 01 00 [15:30:47]MH_I2C_Read... [15:30:47]Read from MH i2c: D1 01 00 D4 2A 00 CF [15:30:47]Write to MH i2c: 01 00 00 D5 2A FF [15:30:47]Write i2c OK [15:30:47]MH_I2C_Read... [15:30:47]OFD Sender: No OFD packet to send [15:30:48]*** Cut start [15:30:48]*** Partial cut [15:30:48]*** CUTSNS_PIN = 1 [15:30:48]*** CUTSNS_PIN = 0 [15:30:48]*** Brake cut motor [15:30:48]Read from MH i2c: 01 [15:30:48]MH_I2C_Read... [15:30:48]*** Stop cut motor [15:30:48]*** Cut end [15:30:48]Read from MH i2c: 01 07 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: 01 07 00 D5 2A 00 00 00 00 00 FF 0F 14 [15:30:48]process_action close_receipt done [15:30:48]requested_data is exist [15:30:48]produce_requested_data [15:30:48]requested_item fm.sn is exist - process it [15:30:48]wFMCommunicate request_size=4 [15:30:48]MH_SAM_APDU [15:30:48]CAPDU: 80 11 00 00 [15:30:48]Write to MH i2c: E2 08 00 D6 2A 80 11 00 00 00 00 00 00 7A [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:48]Read from MH i2c: E2 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 17 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 17 00 D6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CD [15:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:30:48]wFMCommunicate OK [15:30:48]requested_item fd.num is exist - process it [15:30:48]SAM_PROTO_GetFieldsCounters [15:30:48]wFMCommunicate request_size=4 [15:30:48]MH_SAM_APDU [15:30:48]CAPDU: 80 13 00 00 [15:30:48]Write to MH i2c: E2 08 00 D7 2A 80 13 00 00 00 00 00 00 7D [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:48]Read from MH i2c: E2 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 62 00 [15:30:48]MH_I2C_Read... [15:30:48]Read from MH i2c: E2 62 00 D7 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 96 01 00 0E 04 04 00 62 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 55 [15:30:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 13 96 01 00 0E 04 04 00 62 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 [15:30:48]wFMCommunicate OK [15:30:48]SAM_PROTO_GetFieldsCounters done [15:30:48]requested_item shift.num is exist - process it [15:30:48]requested_item shift.opened is exist - process it [15:30:48]req_shift_opened [15:30:48]FM_GetShiftState [15:30:48]SAM_PROTO_GetShiftState [15:30:48]wFMCommunicate request_size=4 [15:30:48]MH_SAM_APDU [15:30:48]CAPDU: 80 13 01 00 [15:30:48]Write to MH i2c: E2 08 00 D8 2A 80 13 01 00 00 00 00 00 7F [15:30:48]Write i2c OK [15:30:48]MH_I2C_Read... [15:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:49]Read from MH i2c: E2 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 0E 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 0E 00 D8 2A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CE [15:30:49]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:30:49]wFMCommunicate OK [15:30:49]SAM_PROTO_GetShiftState done [15:30:49]FM_GetShiftState done [15:30:49]req_shift_opened done [15:30:49]requested_item shift.open_date is exist - process it [15:30:49]req_shift_open_date [15:30:49]req_shift_open_date done [15:30:49]produce_requested_data done [15:30:49]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103955,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:30:49]process_action_free close_receipt [15:30:49]json_value_free [15:30:49]json_value_free done [15:30:49]process_json_proto returns [15:30:49]Send response to host [15:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103955,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:30:49]free response buf [15:30:49]execute_script done [15:30:49]execute_script returns [15:30:49]free content buf [15:30:49]Sock 7.Close socket [15:30:49]Sock 7.Thread stoped [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:55]accept exits with 9 [15:31:55]New connection [15:31:55]New thread 3067207012 created [15:31:55]Thread 3067063652 joined [15:31:55]Waiting for new connection... [15:31:55] Sock 9.Parse request [15:31:55]Sock 9.Check first char [15:31:55]Sock 9.First char is OK [15:31:55]request: POST /json_proto HTTP/1.0 [15:31:55]Method: POST [15:31:55]URL: /json_proto [15:31:55]Method is POST - this is cgi request [15:31:55]url: /json_proto [15:31:55]query_string will be loaded in cgi processing [15:31:55]execute_cgi json_proto POST (null) [15:31:55]execute_cgi path=json_proto method=POST [15:31:55]POST find Content-Length [15:31:55]Host: 172.17.38.133:8080 [15:31:55]Content-Length: 819 [15:31:55]Content-Type: application/json [15:31:55] [15:31:55]POST finish read [15:31:55]Found Content-Length = 819 [15:31:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673319", "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" : 73.90, "quantity" : 54.580, "sum" : 4033.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 4033.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:55]execute_script... [15:31: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)673319", "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" : 73.90, "quantity" : 54.580, "sum" : 4033.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 4033.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:55]POST & json_proto [15:31:55]process_json_proto [15:31:55]json parsed OK: [15:31:55]protocol is kg_v1.0 [15:31:55]action value=close_receipt [15:31:55]process_action close_receipt [15:31:55]cmd_close_receipt [15:31:55]MH_GetDate [15:31:55]Write to MH i2c: F0 00 00 D9 2A F2 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: F0 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: F0 09 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: F0 09 00 D9 2A 00 6E 4B 74 66 BD 8F 7C 64 BA [15:31:55]GetLastDocTimeStamp 1718897447 [15:31:55]current date 1718897518 [15:31:55]FM_GetShiftState [15:31:55]SAM_PROTO_GetShiftState [15:31:55]wFMCommunicate request_size=4 [15:31:55]MH_SAM_APDU [15:31:55]CAPDU: 80 13 01 00 [15:31:55]Write to MH i2c: E2 08 00 DA 2A 80 13 01 00 00 00 00 00 81 [15:31:55]Write i2c OK [15:31:55]MH_I2C_Read... [15:31:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:55]Read from MH i2c: E2 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 0E 00 [15:31:55]MH_I2C_Read... [15:31:55]Read from MH i2c: E2 0E 00 DA 2A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D0 [15:31:55]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:31:55]wFMCommunicate OK [15:31:55]SAM_PROTO_GetShiftState done [15:31:55]FM_GetShiftState done [15:31:55]opened in 1718843124 [15:31:55]opened+sec_in_day 1718929524 [15:31:55]quantity*price = 403346 [15:31:55]sum+1 = 403347 [15:31:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4033.46 НСП 1% : 35.69 НДС 12% : 428.33 Наличными: 0.00 Безнал.: 4033.46 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 141 20.06.2024 15:31 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103956 ФПД: 261555782202450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153158&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103956&fm=261555782202450&tin=02508201610067®Number=0000000000092785&sum=403346 [15:31:56]StoreToDocumentArchive [15:31:56]shift 354 fd 103956 [15:31:56]save to /storage/0354/doc_00103956 [15:31:56]save last doc name /storage/0354/doc_00103956 to /storage/kkm_last_doc_name [15:31:56]save OK [15:31:56]Clear old archive folders... [15:31:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:56]tlvbuf is B6F183A0 [15:31:56]SAM_PROTO_ClearQueue [15:31:56]wFMCommunicate request_size=4 [15:31:56]MH_SAM_APDU [15:31:56]CAPDU: 80 09 00 00 [15:31:56]Write to MH i2c: E2 08 00 E7 2A 80 09 00 00 00 00 00 00 83 [15:31:56]Write i2c OK [15:31:56]MH_I2C_Read... [15:31:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:56]Read from MH i2c: E2 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: E2 03 00 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: E2 03 00 E7 2A 00 90 00 85 [15:31:56]RAPDU: 90 00 [15:31:56]wFMCommunicate OK [15:31:56]SAM_PROTO_ClearQueue done [15:31:56]KKMCreateOFDPacket [15:31:56]OFDProtocolAddRootSTLVToBuf [15:31:56]FM_MakeSignedData [15:31:56]FM_MakeSignedData [15:31:56]SAM_PROTO_SignData [15:31:56]wFMCommunicate request_size=4 [15:31:56]MH_SAM_APDU [15:31:56]CAPDU: 80 0D 01 02 [15:31:56]Write to MH i2c: E2 08 00 E8 2A 80 0D 01 02 00 00 00 00 8B [15:31:56]Write i2c OK [15:31:56]MH_I2C_Read... [15:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:56]Read from MH i2c: E2 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: E2 03 00 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: E2 03 00 E8 2A 00 90 00 86 [15:31:56]RAPDU: 90 00 [15:31:56]wFMCommunicate OK [15:31:56]wFMCommunicate request_size=255 [15:31:56]MH_SAM_APDU [15:31: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 D5 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 92 27 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 27 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 A7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 27 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 6E 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 96 01 00 35 04 06 00 ED [15:31:56]Write to MH i2c: E2 02 01 E9 2A 80 0D 02 02 FA 00 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 34 D5 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 92 27 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 27 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 A7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 27 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 6E 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 96 01 00 35 04 06 00 ED 00 00 F0 [15:31:56]Write i2c OK [15:31:56]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 03 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 03 00 E9 2A 00 90 00 87 [15:31:57]RAPDU: 90 00 [15:31:57]wFMCommunicate OK [15:31:57]wFMCommunicate request_size=10 [15:31:57]MH_SAM_APDU [15:31:57]CAPDU: 80 0D 02 02 05 E2 33 7C B4 52 [15:31:57]Write to MH i2c: E2 0D 00 EA 2A 80 0D 02 02 05 00 E2 33 7C B4 52 00 00 2F [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 03 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 03 00 EA 2A 00 90 00 88 [15:31:57]RAPDU: 90 00 [15:31:57]wFMCommunicate OK [15:31:57]wFMCommunicate request_size=4 [15:31:57]MH_SAM_APDU [15:31:57]CAPDU: 80 0D 03 02 [15:31:57]Write to MH i2c: E2 08 00 EB 2A 80 0D 03 02 00 00 00 00 90 [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 0B 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 0B 00 EB 2A 00 02 C9 C3 AD FB 99 10 77 90 00 E7 [15:31:57]RAPDU: 02 C9 C3 AD FB 99 10 77 90 00 [15:31:57]wFMCommunicate OK [15:31:57]SAM_PROTO_SignData done [15:31:57]FM_MakeSignedData done [15:31:57]CreateOFDProtocolMessage [15:31:57]wFMCommunicate request_size=4 [15:31:57]MH_SAM_APDU [15:31:57]CAPDU: 80 11 00 00 [15:31:57]Write to MH i2c: E2 08 00 EC 2A 80 11 00 00 00 00 00 00 90 [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:57]Read from MH i2c: E2 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 17 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: E2 17 00 EC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [15:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:31:57]wFMCommunicate OK [15:31:57]CreateOFDProtocolMessage done [15:31:57]OFDSenderStorePacket 103956 [15:31:57]StoreOFDPacket docnum=103956 [15:31:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 10 51 07 01 B6 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 D5 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 92 27 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 27 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 A7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 27 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 6E 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 96 01 00 35 04 06 00 ED E2 33 7C B4 52 02 C9 C3 AD FB 99 10 77 [15:31:57]CheckFolder [15:31:57]dirname=/storage/ofd_packets [15:31:57]CheckFolder done [15:31:57]ProducePacketName [15:31:57]name=ofd_packets/00103956 [15:31:57]NVStorageSaveData ofd_packets/00103956 [15:31:57]File name is /storage/ofd_packets/00103956 [15:31:57]Write 301 bytes [15:31:57]NVStorageSaveData done [15:31:57]OFDSenderStorePacket done [15:31:57]KKMCreateOFDPacket done [15:31:57]NVStorageSaveData kkm_last_timestamp [15:31:57]File name is /storage/kkm_last_timestamp [15:31:57]Write 4 bytes [15:31:57]NVStorageSaveData done [15:31:57]ExternCall_PrintAddStr [15:31:57]wPrintStart [15:31:57]Write to MH i2c: 01 00 00 ED 2A 17 [15:31:57]Write i2c OK [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: 01 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: 01 07 00 [15:31:57]MH_I2C_Read... [15:31:57]Read from MH i2c: 01 07 00 ED 2A 00 00 00 00 00 FF 0F 2C [15:31:57]RasterBufferAndPrint [15:31:57]line Счет N : (1)673319 [15:31:57]line ИНН: 02508201610067 [15:31:57]line Контрольно-Кассовый Чек [15:31:57]line ПРОДАЖА [15:31:57]line ТРК (МРК, ГНК) : 31 [15:31:57]line Товар: 2710124500 [15:31:57]line Аи-95-К-5 [15:31:57]line 54.580 * 73.90 [15:31:57]line = 4033.46 [15:31:57]line НДС 12% НСП 1% [15:31:57]line > о реализуемом товаре [15:31:57]line ИТОГО: 4033.46 [15:31:57]line НСП 1% : 35.69 [15:31:57]line НДС 12% : 428.33 [15:31:57]line Наличными: 0.00 [15:31:57]line Безнал.: 4033.46 [15:31:57]line Место: АЗС № 120 "Партнер Нефть" [15:31:57]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:31:57]line СНО: Общий режим [15:31:57]line Чек 141 20.06.2024 15:31 [15:31:57]line Смена: 354 ФФД: 1.0 [15:31:57]line ЗНМ: 0300000164 [15:31:57]line РНМ: 0000000000092785 [15:31:57]line Версия ККМ: 001 [15:31:57]line Платежная система: Бакай Банк [15:31:57]line ФМ: 0000000000875093 [15:31:57]line ФД: 103956 [15:31:57]line ФПД: 261555782202450 [15:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153158&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103956&fm=261555782202450&tin=02508201610067®Number=0000000000092785&sum=403346 [15:31:57]written 0, free lines is 4095 [15:31:57]OFD Sender: Processing packet 103956 [packets to send 17, broken 16] [15:31:57]ProducePacketName [15:31:57]name=ofd_packets/00103956 [15:31:57]OFD Sender: To server: pG, [15:31:57]CommunicateWithHost lk.salyk.kg:30040 [15:31:57]ConnectInit lk.salyk.kg [15:31:57]Connected sock=10 [15:31:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 10 51 07 01 B6 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 D5 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 92 27 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 27 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 A7 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 27 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 6E 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 96 01 00 35 04 06 00 ED E2 33 7C B4 52 02 C9 C3 AD FB 99 10 77 [15:31:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 58 8C 47 00 5C 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 14 96 01 00 F4 03 04 00 F3 F1 73 66 B6 04 01 00 00 79 4A BA 7D 79 03 4E 23 [15:31:57]CommunicateWithHost err = 0 [15:31:57]CheckOFDResponse [15:31:57]1017 (14) - 77093643461234 [15:31:57]1041 (16) - 0000000000875093 [15:31:57]1040 (4) - 103956 [15:31:57]1012 (4) - 20.06.2024 09:10 [15:31:57]1206 (1) - 0 [15:31:57]OFD Sender: Remove packet 103956 [15:31:57]ProducePacketName [15:31:57]name=ofd_packets/00103956 [15:31:57]NVStorageDeleteData [15:31:58]Write to MH i2c: 01 00 00 17 2B 42 [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: 01 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: 01 07 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: 01 07 00 17 2B 00 00 00 00 00 09 0D 5F [15:31:58]RasterBufferAndPrint [15:31:58]line [15:31:58]line [15:31:58]line [15:31:58]line [15:31:58]line [15:31:58]written 0, free lines is 3346 [15:31:58]MH_Cut [15:31:58]Write to MH i2c: D1 01 00 1E 2B 01 1B [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: D1 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: D1 01 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: D1 01 00 1E 2B 00 1A [15:31:58]Write to MH i2c: 01 00 00 1F 2B 4A [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]OFD Sender: No OFD packet to send [15:31:58]*** Cut start [15:31:58]*** Partial cut [15:31:58]*** CUTSNS_PIN = 1 [15:31:58]*** CUTSNS_PIN = 0 [15:31:58]*** Brake cut motor [15:31:59]Read from MH i2c: 01 [15:31:59]MH_I2C_Read... [15:31:59]*** Stop cut motor [15:31:59]*** Cut end [15:31:59]Read from MH i2c: 01 07 00 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: 01 07 00 1F 2B 00 00 00 00 00 FF 0F 5F [15:31:59]process_action close_receipt done [15:31:59]requested_data is exist [15:31:59]produce_requested_data [15:31:59]requested_item fm.sn is exist - process it [15:31:59]wFMCommunicate request_size=4 [15:31:59]MH_SAM_APDU [15:31:59]CAPDU: 80 11 00 00 [15:31:59]Write to MH i2c: E2 08 00 20 2B 80 11 00 00 00 00 00 00 C5 [15:31:59]Write i2c OK [15:31:59]MH_I2C_Read... [15:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:59]Read from MH i2c: E2 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: E2 17 00 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: E2 17 00 20 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 18 [15:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:31:59]wFMCommunicate OK [15:31:59]requested_item fd.num is exist - process it [15:31:59]SAM_PROTO_GetFieldsCounters [15:31:59]wFMCommunicate request_size=4 [15:31:59]MH_SAM_APDU [15:31:59]CAPDU: 80 13 00 00 [15:31:59]Write to MH i2c: E2 08 00 21 2B 80 13 00 00 00 00 00 00 C8 [15:31:59]Write i2c OK [15:31:59]MH_I2C_Read... [15:31:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:59]Read from MH i2c: E2 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: E2 62 00 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: E2 62 00 21 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 14 96 01 00 0E 04 04 00 62 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 A4 [15:31:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 14 96 01 00 0E 04 04 00 62 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 [15:31:59]wFMCommunicate OK [15:31:59]SAM_PROTO_GetFieldsCounters done [15:31:59]requested_item shift.num is exist - process it [15:31:59]requested_item shift.opened is exist - process it [15:31:59]req_shift_opened [15:31:59]FM_GetShiftState [15:31:59]SAM_PROTO_GetShiftState [15:31:59]wFMCommunicate request_size=4 [15:31:59]MH_SAM_APDU [15:31:59]CAPDU: 80 13 01 00 [15:31:59]Write to MH i2c: E2 08 00 22 2B 80 13 01 00 00 00 00 00 CA [15:31:59]Write i2c OK [15:31:59]MH_I2C_Read... [15:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:59]Read from MH i2c: E2 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: E2 0E 00 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: E2 0E 00 22 2B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 19 [15:31:59]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:31:59]wFMCommunicate OK [15:31:59]SAM_PROTO_GetShiftState done [15:31:59]FM_GetShiftState done [15:31:59]req_shift_opened done [15:31:59]requested_item shift.open_date is exist - process it [15:31:59]req_shift_open_date [15:31:59]req_shift_open_date done [15:31:59]produce_requested_data done [15:31:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103956,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:31:59]process_action_free close_receipt [15:31:59]json_value_free [15:31:59]json_value_free done [15:31:59]process_json_proto returns [15:31:59]Send response to host [15:31:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103956,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:31:59]free response buf [15:31:59]execute_script done [15:31:59]execute_script returns [15:31:59]free content buf [15:31:59]Sock 9.Close socket [15:31:59]Sock 9.Thread stoped [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:05]accept exits with 7 [15:33:05]New connection [15:33:05]New thread 3067063652 created [15:33:05]Thread 3067207012 joined [15:33:05]Waiting for new connection... [15:33:05] Sock 7.Parse request [15:33:05]Sock 7.Check first char [15:33:05]Sock 7.First char is OK [15:33:05]request: POST /json_proto HTTP/1.0 [15:33:05]Method: POST [15:33:05]URL: /json_proto [15:33:05]Method is POST - this is cgi request [15:33:05]url: /json_proto [15:33:05]query_string will be loaded in cgi processing [15:33:05]execute_cgi json_proto POST (null) [15:33:05]execute_cgi path=json_proto method=POST [15:33:05]POST find Content-Length [15:33:05]Host: 172.17.38.133:8080 [15:33:05]Content-Length: 687 [15:33:05]Content-Type: application/json [15:33:05] [15:33:05]POST finish read [15:33:05]Found Content-Length = 687 [15:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [15:33:05]execute_script... [15:33: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)673320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [15:33:05]POST & json_proto [15:33:05]process_json_proto [15:33:05]json parsed OK: [15:33:05]protocol is kg_v1.0 [15:33:05]action value=close_receipt [15:33:05]process_action close_receipt [15:33:05]cmd_close_receipt [15:33:05]MH_GetDate [15:33:05]Write to MH i2c: F0 00 00 23 2B 3D [15:33:05]Write i2c OK [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: F0 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: F0 09 00 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: F0 09 00 23 2B 00 B4 4B 74 66 BD 8F 7C 64 4B [15:33:05]GetLastDocTimeStamp 1718897518 [15:33:05]current date 1718897588 [15:33:05]FM_GetShiftState [15:33:05]SAM_PROTO_GetShiftState [15:33:05]wFMCommunicate request_size=4 [15:33:05]MH_SAM_APDU [15:33:05]CAPDU: 80 13 01 00 [15:33:05]Write to MH i2c: E2 08 00 24 2B 80 13 01 00 00 00 00 00 CC [15:33:05]Write i2c OK [15:33:05]MH_I2C_Read... [15:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:05]Read from MH i2c: E2 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: E2 0E 00 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: E2 0E 00 24 2B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [15:33:05]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:33:05]wFMCommunicate OK [15:33:05]SAM_PROTO_GetShiftState done [15:33:05]FM_GetShiftState done [15:33:05]opened in 1718843124 [15:33:05]opened+sec_in_day 1718929524 [15:33:05]quantity*price = 300056 [15:33:05]sum+1 = 300057 [15:33:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 142 20.06.2024 15:33 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103957 ФПД: 80876587167202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153308&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103957&fm=80876587167202&tin=02508201610067®Number=0000000000092785&sum=300000 [15:33:07]StoreToDocumentArchive [15:33:07]shift 354 fd 103957 [15:33:07]save to /storage/0354/doc_00103957 [15:33:07]save last doc name /storage/0354/doc_00103957 to /storage/kkm_last_doc_name [15:33:07]save OK [15:33:07]Clear old archive folders... [15:33:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:33:07]tlvbuf is 0086A8F0 [15:33:07]SAM_PROTO_ClearQueue [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 09 00 00 [15:33:07]Write to MH i2c: E2 08 00 31 2B 80 09 00 00 00 00 00 00 CE [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 03 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 03 00 31 2B 00 90 00 D0 [15:33:07]RAPDU: 90 00 [15:33:07]wFMCommunicate OK [15:33:07]SAM_PROTO_ClearQueue done [15:33:07]KKMCreateOFDPacket [15:33:07]OFDProtocolAddRootSTLVToBuf [15:33:07]FM_MakeSignedData [15:33:07]FM_MakeSignedData [15:33:07]SAM_PROTO_SignData [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 0D 01 02 [15:33:07]Write to MH i2c: E2 08 00 32 2B 80 0D 01 02 00 00 00 00 D6 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 03 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 03 00 32 2B 00 90 00 D1 [15:33:07]RAPDU: 90 00 [15:33:07]wFMCommunicate OK [15:33:07]wFMCommunicate request_size=255 [15:33:07]MH_SAM_APDU [15:33:07]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 8E 00 00 00 F4 03 04 00 B4 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 96 01 00 35 04 06 00 [15:33:07]Write to MH i2c: E2 02 01 33 2B 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 8E 00 00 00 F4 03 04 00 B4 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 96 01 00 35 04 06 00 00 00 90 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 03 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 03 00 33 2B 00 90 00 D2 [15:33:07]RAPDU: 90 00 [15:33:07]wFMCommunicate OK [15:33:07]wFMCommunicate request_size=11 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 0D 02 02 06 49 8E 8C 3F AD E2 [15:33:07]Write to MH i2c: E2 0E 00 34 2B 80 0D 02 02 06 00 49 8E 8C 3F AD E2 00 00 16 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 03 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 03 00 34 2B 00 90 00 D3 [15:33:07]RAPDU: 90 00 [15:33:07]wFMCommunicate OK [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 0D 03 02 [15:33:07]Write to MH i2c: E2 08 00 35 2B 80 0D 03 02 00 00 00 00 DB [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 0B 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 0B 00 35 2B 00 D0 E6 E0 0D 2D B0 DF 56 90 00 91 [15:33:07]RAPDU: D0 E6 E0 0D 2D B0 DF 56 90 00 [15:33:07]wFMCommunicate OK [15:33:07]SAM_PROTO_SignData done [15:33:07]FM_MakeSignedData done [15:33:07]CreateOFDProtocolMessage [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 11 00 00 [15:33:07]Write to MH i2c: E2 08 00 36 2B 80 11 00 00 00 00 00 00 DB [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 17 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 17 00 36 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [15:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:33:07]wFMCommunicate OK [15:33:07]CreateOFDProtocolMessage done [15:33:07]OFDSenderStorePacket 103957 [15:33:07]StoreOFDPacket docnum=103957 [15:33:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FA 16 08 01 19 CF 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 8E 00 00 00 F4 03 04 00 B4 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 96 01 00 35 04 06 00 49 8E 8C 3F AD E2 D0 E6 E0 0D 2D B0 DF 56 [15:33:07]CheckFolder [15:33:07]dirname=/storage/ofd_packets [15:33:07]CheckFolder done [15:33:07]ProducePacketName [15:33:07]name=ofd_packets/00103957 [15:33:07]NVStorageSaveData ofd_packets/00103957 [15:33:07]File name is /storage/ofd_packets/00103957 [15:33:07]Write 302 bytes [15:33:07]NVStorageSaveData done [15:33:07]OFDSenderStorePacket done [15:33:07]KKMCreateOFDPacket done [15:33:07]NVStorageSaveData kkm_last_timestamp [15:33:07]File name is /storage/kkm_last_timestamp [15:33:07]Write 4 bytes [15:33:07]NVStorageSaveData done [15:33:07]ExternCall_PrintAddStr [15:33:07]wPrintStart [15:33:07]Write to MH i2c: 01 00 00 37 2B 62 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: 01 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: 01 07 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: 01 07 00 37 2B 00 00 00 00 00 FF 0F 77 [15:33:07]RasterBufferAndPrint [15:33:07]line Счет N : (1)673320 [15:33:07]line ИНН: 02508201610067 [15:33:07]line Контрольно-Кассовый Чек [15:33:07]line ПРОДАЖА [15:33:07]line ТРК (МРК, ГНК) : 21 [15:33:07]line Товар: 2710194210 [15:33:07]line ДТ(л)-К-5 [15:33:07]line 41.160 * 72.90 [15:33:07]line = 3000.56 [15:33:07]line НДС 12% НСП 1% [15:33:07]line > о реализуемом товаре [15:33:07]line ОКРУГЛЕНИЕ: -0.56 [15:33:07]line ИТОГО: 3000.00 [15:33:07]line Внесено: 3000.00 [15:33:07]line СДАЧА: 0.00 [15:33:07]line НСП 1% : 26.55 [15:33:07]line НДС 12% : 318.64 [15:33:07]line Наличными: 3000.00 [15:33:07]line Безнал.: 0.00 [15:33:07]line Место: АЗС № 120 "Партнер Нефть" [15:33:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:33:07]line СНО: Общий режим [15:33:07]line Чек 142 20.06.2024 15:33 [15:33:07]line Смена: 354 ФФД: 1.0 [15:33:07]line ЗНМ: 0300000164 [15:33:07]line РНМ: 0000000000092785 [15:33:07]line Версия ККМ: 001 [15:33:07]line ФМ: 0000000000875093 [15:33:07]line ФД: 103957 [15:33:07]line ФПД: 80876587167202 [15:33:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153308&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103957&fm=80876587167202&tin=02508201610067®Number=0000000000092785&sum=300000 [15:33:07]OFD Sender: Processing packet 103957 [packets to send 17, broken 16] [15:33:07]ProducePacketName [15:33:07]name=ofd_packets/00103957 [15:33:07]OFD Sender: To server: pG, [15:33:07]CommunicateWithHost lk.salyk.kg:30040 [15:33:07]ConnectInit lk.salyk.kg [15:33:07]written 0, free lines is 4095 [15:33:08]Connected sock=11 [15:33:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FA 16 08 01 19 CF 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 8E 00 00 00 F4 03 04 00 B4 4B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 96 01 00 35 04 06 00 49 8E 8C 3F AD E2 D0 E6 E0 0D 2D B0 DF 56 [15:33:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C8 D0 47 00 48 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 15 96 01 00 F4 03 04 00 39 F2 73 66 B6 04 01 00 00 09 F2 A2 43 90 D3 8A F7 [15:33:08]CommunicateWithHost err = 0 [15:33:08]CheckOFDResponse [15:33:08]1017 (14) - 77093643461234 [15:33:08]1041 (16) - 0000000000875093 [15:33:08]1040 (4) - 103957 [15:33:08]1012 (4) - 20.06.2024 09:11 [15:33:08]1206 (1) - 0 [15:33:08]OFD Sender: Remove packet 103957 [15:33:08]ProducePacketName [15:33:08]name=ofd_packets/00103957 [15:33:08]NVStorageDeleteData [15:33:08]Write to MH i2c: 01 00 00 62 2B 8D [15:33:08]Write i2c OK [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: 01 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: 01 07 00 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: 01 07 00 62 2B 00 00 00 00 00 E5 0C 85 [15:33:08]RasterBufferAndPrint [15:33:08]line [15:33:08]line [15:33:08]line [15:33:08]line [15:33:08]line [15:33:08]written 0, free lines is 3307 [15:33:08]MH_Cut [15:33:08]Write to MH i2c: D1 01 00 69 2B 01 66 [15:33:08]Write i2c OK [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: D1 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: D1 01 00 [15:33:08]MH_I2C_Read... [15:33:08]Read from MH i2c: D1 01 00 69 2B 00 65 [15:33:08]Write to MH i2c: 01 00 00 6A 2B 95 [15:33:08]Write i2c OK [15:33:08]MH_I2C_Read... [15:33:08]OFD Sender: No OFD packet to send [15:33:09]*** Cut start [15:33:09]*** Partial cut [15:33:09]*** CUTSNS_PIN = 1 [15:33:09]*** CUTSNS_PIN = 0 [15:33:09]*** Brake cut motor [15:33:09]Read from MH i2c: 01 [15:33:09]MH_I2C_Read... [15:33:09]*** Stop cut motor [15:33:09]*** Cut end [15:33:09]Read from MH i2c: 01 07 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: 01 07 00 6A 2B 00 00 00 00 00 FF 0F AA [15:33:09]process_action close_receipt done [15:33:09]requested_data is exist [15:33:09]produce_requested_data [15:33:09]requested_item fm.sn is exist - process it [15:33:09]wFMCommunicate request_size=4 [15:33:09]MH_SAM_APDU [15:33:09]CAPDU: 80 11 00 00 [15:33:09]Write to MH i2c: E2 08 00 6B 2B 80 11 00 00 00 00 00 00 10 [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:09]Read from MH i2c: E2 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 17 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 17 00 6B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [15:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:33:09]wFMCommunicate OK [15:33:09]requested_item fd.num is exist - process it [15:33:09]SAM_PROTO_GetFieldsCounters [15:33:09]wFMCommunicate request_size=4 [15:33:09]MH_SAM_APDU [15:33:09]CAPDU: 80 13 00 00 [15:33:09]Write to MH i2c: E2 08 00 6C 2B 80 13 00 00 00 00 00 00 13 [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:09]Read from MH i2c: E2 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 62 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 62 00 6C 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 15 96 01 00 0E 04 04 00 62 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 F3 [15:33:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 15 96 01 00 0E 04 04 00 62 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:33:09]wFMCommunicate OK [15:33:09]SAM_PROTO_GetFieldsCounters done [15:33:09]requested_item shift.num is exist - process it [15:33:09]requested_item shift.opened is exist - process it [15:33:09]req_shift_opened [15:33:09]FM_GetShiftState [15:33:09]SAM_PROTO_GetShiftState [15:33:09]wFMCommunicate request_size=4 [15:33:09]MH_SAM_APDU [15:33:09]CAPDU: 80 13 01 00 [15:33:09]Write to MH i2c: E2 08 00 6D 2B 80 13 01 00 00 00 00 00 15 [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:09]Read from MH i2c: E2 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 0E 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 0E 00 6D 2B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 64 [15:33:09]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:33:09]wFMCommunicate OK [15:33:09]SAM_PROTO_GetShiftState done [15:33:09]FM_GetShiftState done [15:33:09]req_shift_opened done [15:33:09]requested_item shift.open_date is exist - process it [15:33:09]req_shift_open_date [15:33:09]req_shift_open_date done [15:33:09]produce_requested_data done [15:33:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103957,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:33:09]process_action_free close_receipt [15:33:09]json_value_free [15:33:09]json_value_free done [15:33:09]process_json_proto returns [15:33:09]Send response to host [15:33:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103957,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:33:09]free response buf [15:33:09]execute_script done [15:33:09]execute_script returns [15:33:09]free content buf [15:33:09]Sock 7.Close socket [15:33:09]Sock 7.Thread stoped [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:09]accept exits with 9 [15:34:09]New connection [15:34:09]New thread 3067207012 created [15:34:09]Thread 3067063652 joined [15:34:09]Waiting for new connection... [15:34:09] Sock 9.Parse request [15:34:09]Sock 9.Check first char [15:34:09]Sock 9.First char is OK [15:34:09]request: POST /json_proto HTTP/1.0 [15:34:09]Method: POST [15:34:09]URL: /json_proto [15:34:09]Method is POST - this is cgi request [15:34:09]url: /json_proto [15:34:09]query_string will be loaded in cgi processing [15:34:09]execute_cgi json_proto POST (null) [15:34:09]execute_cgi path=json_proto method=POST [15:34:09]POST find Content-Length [15:34:09]Host: 172.17.38.133:8080 [15:34:09]Content-Length: 1169 [15:34:09]Content-Type: application/json [15:34:09] [15:34:09]POST finish read [15:34:09]Found Content-Length = 1169 [15:34:09]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673321\u000A20.06.2024 15:11\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 49.840 x 66.40\u000A\u0418\u0422\u041E\u0413: 3309.38\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30033239\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:09]execute_script... [15:34:09]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673321\u000A20.06.2024 15:11\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 49.840 x 66.40\u000A\u0418\u0422\u041E\u0413: 3309.38\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30033239\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:09]POST & json_proto [15:34:09]process_json_proto [15:34:09]json parsed OK: [15:34:09]protocol is kg_v1.0 [15:34:09]action value=print_text [15:34:09]process_action print_text [15:34:09]cmd_print_text [15:34:09]ExternCall_PrintAddStr [15:34:09]wPrintStart [15:34:09]Write to MH i2c: 01 00 00 6E 2B 99 [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: 01 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: 01 07 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: 01 07 00 6E 2B 00 00 00 00 00 FF 0F AE [15:34:09]RasterBufferAndPrint [15:34:09]line *****ТОВАРНЫЙ ЧЕК***** [15:34:09]line АЗС 120 [15:34:09]line Партнер нефть [15:34:09]line 02508201610067 [15:34:09]line Кассир : Дуйшенбиев А. [15:34:09]line Счет N : (1)673321 [15:34:09]line 20.06.2024 15:11 [15:34:09]line ПРОДАЖА [15:34:09]line ТРК (МРК, ГНК): 42 [15:34:09]line Вид ГСМ : 2710124130 [15:34:09]line Аи-92-К-5 [15:34:09]line 49.840 x 66.40 [15:34:09]line ИТОГ: 3309.38 [15:34:09]line Тип оплаты: Талоны: ТК ГПНА Online [15:34:09]line 30033239 [15:34:09]line ______________________ [15:34:09]line (подпись) [15:34:09]written 0, free lines is 4095 [15:34:09]Write to MH i2c: 01 00 00 82 2B AD [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: 01 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: 01 07 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: 01 07 00 82 2B 00 00 00 00 00 13 0E D5 [15:34:09]RasterBufferAndPrint [15:34:09]line [15:34:09]line [15:34:09]line [15:34:09]line [15:34:09]line [15:34:09]written 0, free lines is 3605 [15:34:09]MH_Cut [15:34:09]Write to MH i2c: D1 01 00 89 2B 01 86 [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: D1 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: D1 01 00 [15:34:09]MH_I2C_Read... [15:34:09]Read from MH i2c: D1 01 00 89 2B 00 85 [15:34:09]Write to MH i2c: 01 00 00 8A 2B B5 [15:34:09]Write i2c OK [15:34:09]MH_I2C_Read... [15:34:09]*** Cut start [15:34:09]*** Partial cut [15:34:09]*** CUTSNS_PIN = 1 [15:34:09]*** CUTSNS_PIN = 0 [15:34:10]*** Brake cut motor [15:34:10]Read from MH i2c: 01 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: 01 07 00 [15:34:10]MH_I2C_Read... [15:34:10]*** Stop cut motor [15:34:10]*** Cut end [15:34:10]Read from MH i2c: 01 07 00 8A 2B 00 00 00 00 00 FF 0F CA [15:34:10]process_action print_text done [15:34:10]requested_data is exist [15:34:10]produce_requested_data [15:34:10]requested_item fm.sn is exist - process it [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 11 00 00 [15:34:10]Write to MH i2c: E2 08 00 8B 2B 80 11 00 00 00 00 00 00 30 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 17 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 17 00 8B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 83 [15:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:34:10]wFMCommunicate OK [15:34:10]requested_item fd.num is exist - process it [15:34:10]SAM_PROTO_GetFieldsCounters [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 13 00 00 [15:34:10]Write to MH i2c: E2 08 00 8C 2B 80 13 00 00 00 00 00 00 33 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 62 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 62 00 8C 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 15 96 01 00 0E 04 04 00 62 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 13 [15:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 15 96 01 00 0E 04 04 00 62 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:34:10]wFMCommunicate OK [15:34:10]SAM_PROTO_GetFieldsCounters done [15:34:10]requested_item shift.num is exist - process it [15:34:10]requested_item shift.opened is exist - process it [15:34:10]req_shift_opened [15:34:10]FM_GetShiftState [15:34:10]SAM_PROTO_GetShiftState [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 13 01 00 [15:34:10]Write to MH i2c: E2 08 00 8D 2B 80 13 01 00 00 00 00 00 35 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 0E 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 0E 00 8D 2B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 84 [15:34:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:34:10]wFMCommunicate OK [15:34:10]SAM_PROTO_GetShiftState done [15:34:10]FM_GetShiftState done [15:34:10]req_shift_opened done [15:34:10]requested_item shift.open_date is exist - process it [15:34:10]req_shift_open_date [15:34:10]req_shift_open_date done [15:34:10]produce_requested_data done [15:34:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103957,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:34:10]process_action_free print_text [15:34:10]json_value_free [15:34:10]json_value_free done [15:34:10]process_json_proto returns [15:34:10]Send response to host [15:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103957,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:34:10]free response buf [15:34:10]execute_script done [15:34:10]execute_script returns [15:34:10]free content buf [15:34:10]Sock 9.Close socket [15:34:10]Sock 9.Thread stoped [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]accept exits with 7 [15:35:13]New connection [15:35:13]New thread 3067063652 created [15:35:13]Thread 3067207012 joined [15:35:13]Waiting for new connection... [15:35:13] Sock 7.Parse request [15:35:13]Sock 7.Check first char [15:35:13]Sock 7.First char is OK [15:35:13]request: POST /json_proto HTTP/1.0 [15:35:13]Method: POST [15:35:13]URL: /json_proto [15:35:13]Method is POST - this is cgi request [15:35:13]url: /json_proto [15:35:13]query_string will be loaded in cgi processing [15:35:13]execute_cgi json_proto POST (null) [15:35:13]execute_cgi path=json_proto method=POST [15:35:13]POST find Content-Length [15:35:13]Host: 172.17.38.133:8080 [15:35:13]Content-Length: 678 [15:35:13]Content-Type: application/json [15:35:13] [15:35:13]POST finish read [15:35:13]Found Content-Length = 678 [15:35:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:13]execute_script... [15:35:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:13]POST & json_proto [15:35:13]process_json_proto [15:35:13]json parsed OK: [15:35:13]protocol is kg_v1.0 [15:35:13]action value=close_receipt [15:35:13]process_action close_receipt [15:35:13]cmd_close_receipt [15:35:13]MH_GetDate [15:35:13]Write to MH i2c: F0 00 00 8E 2B A8 [15:35:13]Write i2c OK [15:35:13]MH_I2C_Read... [15:35:13]Read from MH i2c: F0 [15:35:13]MH_I2C_Read... [15:35:13]Read from MH i2c: F0 09 00 [15:35:13]MH_I2C_Read... [15:35:13]Read from MH i2c: F0 09 00 8E 2B 00 33 4C 74 66 BD 8F 7C 64 36 [15:35:13]GetLastDocTimeStamp 1718897588 [15:35:13]current date 1718897715 [15:35:13]FM_GetShiftState [15:35:13]SAM_PROTO_GetShiftState [15:35:13]wFMCommunicate request_size=4 [15:35:13]MH_SAM_APDU [15:35:13]CAPDU: 80 13 01 00 [15:35:13]Write to MH i2c: E2 08 00 8F 2B 80 13 01 00 00 00 00 00 37 [15:35:13]Write i2c OK [15:35:13]MH_I2C_Read... [15:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:13]Read from MH i2c: E2 [15:35:13]MH_I2C_Read... [15:35:13]Read from MH i2c: E2 0E 00 [15:35:13]MH_I2C_Read... [15:35:13]Read from MH i2c: E2 0E 00 8F 2B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 86 [15:35:13]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:35:13]wFMCommunicate OK [15:35:13]SAM_PROTO_GetShiftState done [15:35:13]FM_GetShiftState done [15:35:13]opened in 1718843124 [15:35:13]opened+sec_in_day 1718929524 [15:35:13]quantity*price = 80012 [15:35:13]sum+1 = 80013 [15:35:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 143 20.06.2024 15:35 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103958 ФПД: 162389166816343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153515&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103958&fm=162389166816343&tin=02508201610067®Number=0000000000092785&sum=80000 [15:35:14]StoreToDocumentArchive [15:35:14]shift 354 fd 103958 [15:35:14]save to /storage/0354/doc_00103958 [15:35:14]save last doc name /storage/0354/doc_00103958 to /storage/kkm_last_doc_name [15:35:14]save OK [15:35:14]Clear old archive folders... [15:35:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:14]tlvbuf is B6F93010 [15:35:14]SAM_PROTO_ClearQueue [15:35:14]wFMCommunicate request_size=4 [15:35:14]MH_SAM_APDU [15:35:14]CAPDU: 80 09 00 00 [15:35:14]Write to MH i2c: E2 08 00 9C 2B 80 09 00 00 00 00 00 00 39 [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:14]Read from MH i2c: E2 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 03 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 03 00 9C 2B 00 90 00 3B [15:35:14]RAPDU: 90 00 [15:35:14]wFMCommunicate OK [15:35:14]SAM_PROTO_ClearQueue done [15:35:14]KKMCreateOFDPacket [15:35:14]OFDProtocolAddRootSTLVToBuf [15:35:14]FM_MakeSignedData [15:35:14]FM_MakeSignedData [15:35:14]SAM_PROTO_SignData [15:35:14]wFMCommunicate request_size=4 [15:35:14]MH_SAM_APDU [15:35:14]CAPDU: 80 0D 01 02 [15:35:14]Write to MH i2c: E2 08 00 9D 2B 80 0D 01 02 00 00 00 00 41 [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:14]Read from MH i2c: E2 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 03 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 03 00 9D 2B 00 90 00 3C [15:35:14]RAPDU: 90 00 [15:35:14]wFMCommunicate OK [15:35:14]wFMCommunicate request_size=255 [15:35:14]MH_SAM_APDU [15:35: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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 33 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 96 01 00 35 04 06 00 93 [15:35:14]Write to MH i2c: E2 02 01 9E 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 33 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 96 01 00 35 04 06 00 93 00 00 75 [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:14]Read from MH i2c: E2 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 03 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 03 00 9E 2B 00 90 00 3D [15:35:14]RAPDU: 90 00 [15:35:14]wFMCommunicate OK [15:35:14]wFMCommunicate request_size=10 [15:35:14]MH_SAM_APDU [15:35:14]CAPDU: 80 0D 02 02 05 B1 2C 9A 7C 57 [15:35:14]Write to MH i2c: E2 0D 00 9F 2B 80 0D 02 02 05 00 B1 2C 9A 7C 57 00 00 98 [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:14]Read from MH i2c: E2 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 03 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 03 00 9F 2B 00 90 00 3E [15:35:14]RAPDU: 90 00 [15:35:14]wFMCommunicate OK [15:35:14]wFMCommunicate request_size=4 [15:35:14]MH_SAM_APDU [15:35:14]CAPDU: 80 0D 03 02 [15:35:14]Write to MH i2c: E2 08 00 A0 2B 80 0D 03 02 00 00 00 00 46 [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:14]Read from MH i2c: E2 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 0B 00 [15:35:14]MH_I2C_Read... [15:35:14]Read from MH i2c: E2 0B 00 A0 2B 00 75 B9 37 60 E6 12 26 68 90 00 92 [15:35:14]RAPDU: 75 B9 37 60 E6 12 26 68 90 00 [15:35:14]wFMCommunicate OK [15:35:14]SAM_PROTO_SignData done [15:35:14]FM_MakeSignedData done [15:35:14]CreateOFDProtocolMessage [15:35:14]wFMCommunicate request_size=4 [15:35:14]MH_SAM_APDU [15:35:14]CAPDU: 80 11 00 00 [15:35:14]Write to MH i2c: E2 08 00 A1 2B 80 11 00 00 00 00 00 00 46 [15:35:14]Write i2c OK [15:35:14]MH_I2C_Read... [15:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:15]Read from MH i2c: E2 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 17 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: E2 17 00 A1 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [15:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:35:15]wFMCommunicate OK [15:35:15]CreateOFDProtocolMessage done [15:35:15]OFDSenderStorePacket 103958 [15:35:15]StoreOFDPacket docnum=103958 [15:35:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DC 9E 07 01 E2 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 33 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 96 01 00 35 04 06 00 93 B1 2C 9A 7C 57 75 B9 37 60 E6 12 26 68 [15:35:15]CheckFolder [15:35:15]dirname=/storage/ofd_packets [15:35:15]CheckFolder done [15:35:15]ProducePacketName [15:35:15]name=ofd_packets/00103958 [15:35:15]NVStorageSaveData ofd_packets/00103958 [15:35:15]File name is /storage/ofd_packets/00103958 [15:35:15]Write 301 bytes [15:35:15]NVStorageSaveData done [15:35:15]OFDSenderStorePacket done [15:35:15]KKMCreateOFDPacket done [15:35:15]NVStorageSaveData kkm_last_timestamp [15:35:15]File name is /storage/kkm_last_timestamp [15:35:15]Write 4 bytes [15:35:15]NVStorageSaveData done [15:35:15]ExternCall_PrintAddStr [15:35:15]wPrintStart [15:35:15]Write to MH i2c: 01 00 00 A2 2B CD [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: 01 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: 01 07 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: 01 07 00 A2 2B 00 00 00 00 00 FF 0F E2 [15:35:15]RasterBufferAndPrint [15:35:15]line Счет N : (1)673322 [15:35:15]line ИНН: 02508201610067 [15:35:15]line Контрольно-Кассовый Чек [15:35:15]line ПРОДАЖА [15:35:15]line ТРК (МРК, ГНК) : 32 [15:35:15]line Товар: 2710124130 [15:35:15]line Аи-92-К-5 [15:35:15]line 12.050 * 66.40 [15:35:15]line = 800.12 [15:35:15]line НДС 12% НСП 1% [15:35:15]line > о реализуемом товаре [15:35:15]line ОКРУГЛЕНИЕ: -0.12 [15:35:15]line ИТОГО: 800.00 [15:35:15]line Внесено: 800.00 [15:35:15]line СДАЧА: 0.00 [15:35:15]line НСП 1% : 7.08 [15:35:15]line НДС 12% : 84.97 [15:35:15]line Наличными: 800.00 [15:35:15]line Безнал.: 0.00 [15:35:15]line Место: АЗС № 120 "Партнер Нефть" [15:35:15]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:35:15]line СНО: Общий режим [15:35:15]line Чек 143 20.06.2024 15:35 [15:35:15]line Смена: 354 ФФД: 1.0 [15:35:15]line ЗНМ: 0300000164 [15:35:15]line РНМ: 0000000000092785 [15:35:15]line Версия ККМ: 001 [15:35:15]line ФМ: 0000000000875093 [15:35:15]line ФД: 103958 [15:35:15]line ФПД: 162389166816343 [15:35:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153515&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103958&fm=162389166816343&tin=02508201610067®Number=0000000000092785&sum=80000 [15:35:15]OFD Sender: Processing packet 103958 [packets to send 17, broken 16] [15:35:15]ProducePacketName [15:35:15]name=ofd_packets/00103958 [15:35:15]OFD Sender: To server: pG, [15:35:15]CommunicateWithHost lk.salyk.kg:30040 [15:35:15]ConnectInit lk.salyk.kg [15:35:15]written 0, free lines is 4095 [15:35:15]Connected sock=10 [15:35:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DC 9E 07 01 E2 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 33 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 96 01 00 35 04 06 00 93 B1 2C 9A 7C 57 75 B9 37 60 E6 12 26 68 [15:35:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B1 11 47 00 F9 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 16 96 01 00 F4 03 04 00 B9 F2 73 66 B6 04 01 00 00 06 C3 55 58 D8 CE BF 24 [15:35:15]CommunicateWithHost err = 0 [15:35:15]CheckOFDResponse [15:35:15]1017 (14) - 77093643461234 [15:35:15]1041 (16) - 0000000000875093 [15:35:15]1040 (4) - 103958 [15:35:15]1012 (4) - 20.06.2024 09:13 [15:35:15]1206 (1) - 0 [15:35:15]OFD Sender: Remove packet 103958 [15:35:15]ProducePacketName [15:35:15]name=ofd_packets/00103958 [15:35:15]NVStorageDeleteData [15:35:15]Write to MH i2c: 01 00 00 CD 2B F8 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: 01 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: 01 07 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: 01 07 00 CD 2B 00 00 00 00 00 02 0D 0E [15:35:15]RasterBufferAndPrint [15:35:15]line [15:35:15]line [15:35:15]line [15:35:15]line [15:35:15]line [15:35:15]written 0, free lines is 3337 [15:35:15]MH_Cut [15:35:15]Write to MH i2c: D1 01 00 D4 2B 01 D1 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: D1 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: D1 01 00 [15:35:15]MH_I2C_Read... [15:35:15]Read from MH i2c: D1 01 00 D4 2B 00 D0 [15:35:15]Write to MH i2c: 01 00 00 D5 2B 00 [15:35:15]Write i2c OK [15:35:15]MH_I2C_Read... [15:35:16]OFD Sender: No OFD packet to send [15:35:16]*** Cut start [15:35:16]*** Partial cut [15:35:16]*** CUTSNS_PIN = 1 [15:35:16]*** CUTSNS_PIN = 0 [15:35:16]*** Brake cut motor [15:35:17]Read from MH i2c: 01 [15:35:17]MH_I2C_Read... [15:35:17]*** Stop cut motor [15:35:17]*** Cut end [15:35:17]Read from MH i2c: 01 07 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: 01 07 00 D5 2B 00 00 00 00 00 FF 0F 15 [15:35:17]process_action close_receipt done [15:35:17]requested_data is exist [15:35:17]produce_requested_data [15:35:17]requested_item fm.sn is exist - process it [15:35:17]wFMCommunicate request_size=4 [15:35:17]MH_SAM_APDU [15:35:17]CAPDU: 80 11 00 00 [15:35:17]Write to MH i2c: E2 08 00 D6 2B 80 11 00 00 00 00 00 00 7B [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:17]Read from MH i2c: E2 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 17 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 17 00 D6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [15:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:35:17]wFMCommunicate OK [15:35:17]requested_item fd.num is exist - process it [15:35:17]SAM_PROTO_GetFieldsCounters [15:35:17]wFMCommunicate request_size=4 [15:35:17]MH_SAM_APDU [15:35:17]CAPDU: 80 13 00 00 [15:35:17]Write to MH i2c: E2 08 00 D7 2B 80 13 00 00 00 00 00 00 7E [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:17]Read from MH i2c: E2 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 62 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 62 00 D7 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 16 96 01 00 0E 04 04 00 62 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 62 [15:35:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 16 96 01 00 0E 04 04 00 62 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:35:17]wFMCommunicate OK [15:35:17]SAM_PROTO_GetFieldsCounters done [15:35:17]requested_item shift.num is exist - process it [15:35:17]requested_item shift.opened is exist - process it [15:35:17]req_shift_opened [15:35:17]FM_GetShiftState [15:35:17]SAM_PROTO_GetShiftState [15:35:17]wFMCommunicate request_size=4 [15:35:17]MH_SAM_APDU [15:35:17]CAPDU: 80 13 01 00 [15:35:17]Write to MH i2c: E2 08 00 D8 2B 80 13 01 00 00 00 00 00 80 [15:35:17]Write i2c OK [15:35:17]MH_I2C_Read... [15:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:17]Read from MH i2c: E2 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 0E 00 [15:35:17]MH_I2C_Read... [15:35:17]Read from MH i2c: E2 0E 00 D8 2B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CF [15:35:17]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:35:17]wFMCommunicate OK [15:35:17]SAM_PROTO_GetShiftState done [15:35:17]FM_GetShiftState done [15:35:17]req_shift_opened done [15:35:17]requested_item shift.open_date is exist - process it [15:35:17]req_shift_open_date [15:35:17]req_shift_open_date done [15:35:17]produce_requested_data done [15:35:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103958,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:35:17]process_action_free close_receipt [15:35:17]json_value_free [15:35:17]json_value_free done [15:35:17]process_json_proto returns [15:35:17]Send response to host [15:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103958,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:35:17]free response buf [15:35:17]execute_script done [15:35:17]execute_script returns [15:35:17]free content buf [15:35:17]Sock 7.Close socket [15:35:17]Sock 7.Thread stoped [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:19]accept exits with 9 [15:37:19]New connection [15:37:19]New thread 3067207012 created [15:37:19]Thread 3067063652 joined [15:37:19]Waiting for new connection... [15:37:19] Sock 9.Parse request [15:37:19]Sock 9.Check first char [15:37:19]Sock 9.First char is OK [15:37:19]request: POST /json_proto HTTP/1.0 [15:37:19]Method: POST [15:37:19]URL: /json_proto [15:37:19]Method is POST - this is cgi request [15:37:19]url: /json_proto [15:37:19]query_string will be loaded in cgi processing [15:37:19]execute_cgi json_proto POST (null) [15:37:19]execute_cgi path=json_proto method=POST [15:37:19]POST find Content-Length [15:37:19]Host: 172.17.38.133:8080 [15:37:19]Content-Length: 687 [15:37:19]Content-Type: application/json [15:37:19] [15:37:19]POST finish read [15:37:19]Found Content-Length = 687 [15:37:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 30.180, "sum" : 2200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:19]execute_script... [15:37: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)673323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 30.180, "sum" : 2200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:19]POST & json_proto [15:37:19]process_json_proto [15:37:19]json parsed OK: [15:37:19]protocol is kg_v1.0 [15:37:19]action value=close_receipt [15:37:19]process_action close_receipt [15:37:19]cmd_close_receipt [15:37:19]MH_GetDate [15:37:19]Write to MH i2c: F0 00 00 D9 2B F3 [15:37:19]Write i2c OK [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: F0 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: F0 09 00 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: F0 09 00 D9 2B 00 B2 4C 74 66 BD 8F 7C 64 00 [15:37:19]GetLastDocTimeStamp 1718897715 [15:37:19]current date 1718897842 [15:37:19]FM_GetShiftState [15:37:19]SAM_PROTO_GetShiftState [15:37:19]wFMCommunicate request_size=4 [15:37:19]MH_SAM_APDU [15:37:19]CAPDU: 80 13 01 00 [15:37:19]Write to MH i2c: E2 08 00 DA 2B 80 13 01 00 00 00 00 00 82 [15:37:19]Write i2c OK [15:37:19]MH_I2C_Read... [15:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:19]Read from MH i2c: E2 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: E2 0E 00 [15:37:19]MH_I2C_Read... [15:37:19]Read from MH i2c: E2 0E 00 DA 2B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D1 [15:37:19]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:37:19]wFMCommunicate OK [15:37:19]SAM_PROTO_GetShiftState done [15:37:19]FM_GetShiftState done [15:37:19]opened in 1718843124 [15:37:19]opened+sec_in_day 1718929524 [15:37:19]quantity*price = 220012 [15:37:19]sum+1 = 220013 [15:37:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 144 20.06.2024 15:37 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103959 ФПД: 35619569512535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153722&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103959&fm=35619569512535&tin=02508201610067®Number=0000000000092785&sum=220000 [15:37:21]StoreToDocumentArchive [15:37:21]shift 354 fd 103959 [15:37:21]save to /storage/0354/doc_00103959 [15:37:21]save last doc name /storage/0354/doc_00103959 to /storage/kkm_last_doc_name [15:37:21]save OK [15:37:21]Clear old archive folders... [15:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:37:21]tlvbuf is 00825AD0 [15:37:21]SAM_PROTO_ClearQueue [15:37:21]wFMCommunicate request_size=4 [15:37:21]MH_SAM_APDU [15:37:21]CAPDU: 80 09 00 00 [15:37:21]Write to MH i2c: E2 08 00 E7 2B 80 09 00 00 00 00 00 00 84 [15:37:21]Write i2c OK [15:37:21]MH_I2C_Read... [15:37:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:21]Read from MH i2c: E2 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 03 00 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 03 00 E7 2B 00 90 00 86 [15:37:21]RAPDU: 90 00 [15:37:21]wFMCommunicate OK [15:37:21]SAM_PROTO_ClearQueue done [15:37:21]KKMCreateOFDPacket [15:37:21]OFDProtocolAddRootSTLVToBuf [15:37:21]FM_MakeSignedData [15:37:21]FM_MakeSignedData [15:37:21]SAM_PROTO_SignData [15:37:21]wFMCommunicate request_size=4 [15:37:21]MH_SAM_APDU [15:37:21]CAPDU: 80 0D 01 02 [15:37:21]Write to MH i2c: E2 08 00 E8 2B 80 0D 01 02 00 00 00 00 8C [15:37:21]Write i2c OK [15:37:21]MH_I2C_Read... [15:37:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:21]Read from MH i2c: E2 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 03 00 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 03 00 E8 2B 00 90 00 87 [15:37:21]RAPDU: 90 00 [15:37:21]wFMCommunicate OK [15:37:21]wFMCommunicate request_size=255 [15:37:21]MH_SAM_APDU [15:37: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B2 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 96 01 00 35 04 06 00 [15:37:21]Write to MH i2c: E2 02 01 E9 2B 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B2 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 96 01 00 35 04 06 00 00 00 C6 [15:37:21]Write i2c OK [15:37:21]MH_I2C_Read... [15:37:21]OFD Sender: No OFD packet to send [15:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:21]Read from MH i2c: E2 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 03 00 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 03 00 E9 2B 00 90 00 88 [15:37:21]RAPDU: 90 00 [15:37:21]wFMCommunicate OK [15:37:21]wFMCommunicate request_size=11 [15:37:21]MH_SAM_APDU [15:37:21]CAPDU: 80 0D 02 02 06 20 65 53 C9 B0 57 [15:37:21]Write to MH i2c: E2 0E 00 EA 2B 80 0D 02 02 06 00 20 65 53 C9 B0 57 00 00 43 [15:37:21]Write i2c OK [15:37:21]MH_I2C_Read... [15:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:21]Read from MH i2c: E2 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 03 00 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 03 00 EA 2B 00 90 00 89 [15:37:21]RAPDU: 90 00 [15:37:21]wFMCommunicate OK [15:37:21]wFMCommunicate request_size=4 [15:37:21]MH_SAM_APDU [15:37:21]CAPDU: 80 0D 03 02 [15:37:21]Write to MH i2c: E2 08 00 EB 2B 80 0D 03 02 00 00 00 00 91 [15:37:21]Write i2c OK [15:37:21]MH_I2C_Read... [15:37:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:21]Read from MH i2c: E2 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 0B 00 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 0B 00 EB 2B 00 7C C2 EE 44 95 FE C2 00 90 00 57 [15:37:21]RAPDU: 7C C2 EE 44 95 FE C2 00 90 00 [15:37:21]wFMCommunicate OK [15:37:21]SAM_PROTO_SignData done [15:37:21]FM_MakeSignedData done [15:37:21]CreateOFDProtocolMessage [15:37:21]wFMCommunicate request_size=4 [15:37:21]MH_SAM_APDU [15:37:21]CAPDU: 80 11 00 00 [15:37:21]Write to MH i2c: E2 08 00 EC 2B 80 11 00 00 00 00 00 00 91 [15:37:21]Write i2c OK [15:37:21]MH_I2C_Read... [15:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:21]Read from MH i2c: E2 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 17 00 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: E2 17 00 EC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E4 [15:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:37:21]wFMCommunicate OK [15:37:21]CreateOFDProtocolMessage done [15:37:21]OFDSenderStorePacket 103959 [15:37:21]StoreOFDPacket docnum=103959 [15:37:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 CF 3D 08 01 E5 67 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B2 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 96 01 00 35 04 06 00 20 65 53 C9 B0 57 7C C2 EE 44 95 FE C2 00 [15:37:21]CheckFolder [15:37:21]dirname=/storage/ofd_packets [15:37:21]CheckFolder done [15:37:21]ProducePacketName [15:37:21]name=ofd_packets/00103959 [15:37:21]NVStorageSaveData ofd_packets/00103959 [15:37:21]File name is /storage/ofd_packets/00103959 [15:37:21]Write 302 bytes [15:37:21]NVStorageSaveData done [15:37:21]OFDSenderStorePacket done [15:37:21]KKMCreateOFDPacket done [15:37:21]NVStorageSaveData kkm_last_timestamp [15:37:21]File name is /storage/kkm_last_timestamp [15:37:21]Write 4 bytes [15:37:21]NVStorageSaveData done [15:37:21]ExternCall_PrintAddStr [15:37:21]wPrintStart [15:37:21]Write to MH i2c: 01 00 00 ED 2B 18 [15:37:21]Write i2c OK [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: 01 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: 01 07 00 [15:37:21]MH_I2C_Read... [15:37:21]Read from MH i2c: 01 07 00 ED 2B 00 00 00 00 00 FF 0F 2D [15:37:21]RasterBufferAndPrint [15:37:21]line Счет N : (1)673323 [15:37:21]line ИНН: 02508201610067 [15:37:21]line Контрольно-Кассовый Чек [15:37:21]line ПРОДАЖА [15:37:21]line ТРК (МРК, ГНК) : 21 [15:37:21]line Товар: 2710194210 [15:37:21]line ДТ(л)-К-5 [15:37:21]line 30.180 * 72.90 [15:37:21]line = 2200.12 [15:37:21]line НДС 12% НСП 1% [15:37:21]line > о реализуемом товаре [15:37:21]line ОКРУГЛЕНИЕ: -0.12 [15:37:21]line ИТОГО: 2200.00 [15:37:21]line Внесено: 2200.00 [15:37:21]line СДАЧА: 0.00 [15:37:21]line НСП 1% : 19.47 [15:37:21]line НДС 12% : 233.64 [15:37:21]line Наличными: 2200.00 [15:37:21]line Безнал.: 0.00 [15:37:21]line Место: АЗС № 120 "Партнер Нефть" [15:37:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:37:21]line СНО: Общий режим [15:37:21]line Чек 144 20.06.2024 15:37 [15:37:21]line Смена: 354 ФФД: 1.0 [15:37:21]line ЗНМ: 0300000164 [15:37:21]line РНМ: 0000000000092785 [15:37:21]line Версия ККМ: 001 [15:37:21]line ФМ: 0000000000875093 [15:37:21]line ФД: 103959 [15:37:21]line ФПД: 35619569512535 [15:37:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153722&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103959&fm=35619569512535&tin=02508201610067®Number=0000000000092785&sum=220000 [15:37:21]OFD Sender: Processing packet 103959 [packets to send 17, broken 16] [15:37:21]ProducePacketName [15:37:21]name=ofd_packets/00103959 [15:37:21]OFD Sender: To server: pG, [15:37:21]CommunicateWithHost lk.salyk.kg:30040 [15:37:21]ConnectInit lk.salyk.kg [15:37:21]written 0, free lines is 4095 [15:37:22]Connected sock=10 [15:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 CF 3D 08 01 E5 67 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 B2 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 96 01 00 35 04 06 00 20 65 53 C9 B0 57 7C C2 EE 44 95 FE C2 00 [15:37:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C5 36 47 00 89 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 17 96 01 00 F4 03 04 00 37 F3 73 66 B6 04 01 00 00 B5 70 3F DD 13 90 D4 14 [15:37:22]CommunicateWithHost err = 0 [15:37:22]CheckOFDResponse [15:37:22]1017 (14) - 77093643461234 [15:37:22]1041 (16) - 0000000000875093 [15:37:22]1040 (4) - 103959 [15:37:22]1012 (4) - 20.06.2024 09:15 [15:37:22]1206 (1) - 0 [15:37:22]OFD Sender: Remove packet 103959 [15:37:22]ProducePacketName [15:37:22]name=ofd_packets/00103959 [15:37:22]NVStorageDeleteData [15:37:22]Write to MH i2c: 01 00 00 18 2C 44 [15:37:22]Write i2c OK [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: 01 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: 01 07 00 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: 01 07 00 18 2C 00 00 00 00 00 F0 0C 47 [15:37:22]RasterBufferAndPrint [15:37:22]line [15:37:22]line [15:37:22]line [15:37:22]line [15:37:22]line [15:37:22]written 0, free lines is 3318 [15:37:22]MH_Cut [15:37:22]Write to MH i2c: D1 01 00 1F 2C 01 1D [15:37:22]Write i2c OK [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: D1 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: D1 01 00 [15:37:22]MH_I2C_Read... [15:37:22]Read from MH i2c: D1 01 00 1F 2C 00 1C [15:37:22]Write to MH i2c: 01 00 00 20 2C 4C [15:37:22]Write i2c OK [15:37:22]MH_I2C_Read... [15:37:22]OFD Sender: No OFD packet to send [15:37:23]*** Cut start [15:37:23]*** Partial cut [15:37:23]*** CUTSNS_PIN = 1 [15:37:23]*** CUTSNS_PIN = 0 [15:37:23]*** Brake cut motor [15:37:23]Read from MH i2c: 01 [15:37:23]MH_I2C_Read... [15:37:23]*** Stop cut motor [15:37:23]*** Cut end [15:37:23]Read from MH i2c: 01 07 00 [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: 01 07 00 20 2C 00 00 00 00 00 FF 0F 61 [15:37:23]process_action close_receipt done [15:37:23]requested_data is exist [15:37:23]produce_requested_data [15:37:23]requested_item fm.sn is exist - process it [15:37:23]wFMCommunicate request_size=4 [15:37:23]MH_SAM_APDU [15:37:23]CAPDU: 80 11 00 00 [15:37:23]Write to MH i2c: E2 08 00 21 2C 80 11 00 00 00 00 00 00 C7 [15:37:23]Write i2c OK [15:37:23]MH_I2C_Read... [15:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:23]Read from MH i2c: E2 [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: E2 17 00 [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: E2 17 00 21 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [15:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:37:23]wFMCommunicate OK [15:37:23]requested_item fd.num is exist - process it [15:37:23]SAM_PROTO_GetFieldsCounters [15:37:23]wFMCommunicate request_size=4 [15:37:23]MH_SAM_APDU [15:37:23]CAPDU: 80 13 00 00 [15:37:23]Write to MH i2c: E2 08 00 22 2C 80 13 00 00 00 00 00 00 CA [15:37:23]Write i2c OK [15:37:23]MH_I2C_Read... [15:37:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:23]Read from MH i2c: E2 [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: E2 62 00 [15:37:23]MH_I2C_Read... [15:37:23]Read from MH i2c: E2 62 00 22 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 17 96 01 00 0E 04 04 00 62 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 B2 [15:37: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 17 96 01 00 0E 04 04 00 62 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:37:23]wFMCommunicate OK [15:37:23]SAM_PROTO_GetFieldsCounters done [15:37:23]requested_item shift.num is exist - process it [15:37:23]requested_item shift.opened is exist - process it [15:37:23]req_shift_opened [15:37:23]FM_GetShiftState [15:37:23]SAM_PROTO_GetShiftState [15:37:23]wFMCommunicate request_size=4 [15:37:23]MH_SAM_APDU [15:37:23]CAPDU: 80 13 01 00 [15:37:23]Write to MH i2c: E2 08 00 23 2C 80 13 01 00 00 00 00 00 CC [15:37:23]Write i2c OK [15:37:23]MH_I2C_Read... [15:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:24]Read from MH i2c: E2 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: E2 0E 00 [15:37:24]MH_I2C_Read... [15:37:24]Read from MH i2c: E2 0E 00 23 2C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [15:37:24]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:37:24]wFMCommunicate OK [15:37:24]SAM_PROTO_GetShiftState done [15:37:24]FM_GetShiftState done [15:37:24]req_shift_opened done [15:37:24]requested_item shift.open_date is exist - process it [15:37:24]req_shift_open_date [15:37:24]req_shift_open_date done [15:37:24]produce_requested_data done [15:37:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103959,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:37:24]process_action_free close_receipt [15:37:24]json_value_free [15:37:24]json_value_free done [15:37:24]process_json_proto returns [15:37:24]Send response to host [15:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103959,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:37:24]free response buf [15:37:24]execute_script done [15:37:24]execute_script returns [15:37:24]free content buf [15:37:24]Sock 9.Close socket [15:37:24]Sock 9.Thread stoped [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:08]accept exits with 7 [15:38:08]New connection [15:38:08]New thread 3067063652 created [15:38:08]Thread 3067207012 joined [15:38:08]Waiting for new connection... [15:38:08] Sock 7.Parse request [15:38:08]Sock 7.Check first char [15:38:08]Sock 7.First char is OK [15:38:08]request: POST /json_proto HTTP/1.0 [15:38:08]Method: POST [15:38:08]URL: /json_proto [15:38:08]Method is POST - this is cgi request [15:38:08]url: /json_proto [15:38:08]query_string will be loaded in cgi processing [15:38:08]execute_cgi json_proto POST (null) [15:38:08]execute_cgi path=json_proto method=POST [15:38:08]POST find Content-Length [15:38:08]Host: 172.17.38.133:8080 [15:38:08]Content-Length: 678 [15:38:08]Content-Type: application/json [15:38:08] [15:38:08]POST finish read [15:38:08]Found Content-Length = 678 [15:38:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:08]execute_script... [15:38: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)673324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:08]POST & json_proto [15:38:08]process_json_proto [15:38:08]json parsed OK: [15:38:08]protocol is kg_v1.0 [15:38:08]action value=close_receipt [15:38:08]process_action close_receipt [15:38:08]cmd_close_receipt [15:38:08]MH_GetDate [15:38:08]Write to MH i2c: F0 00 00 24 2C 3F [15:38:08]Write i2c OK [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: F0 [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: F0 09 00 [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: F0 09 00 24 2C 00 E2 4C 74 66 BD 8F 7C 64 7C [15:38:08]GetLastDocTimeStamp 1718897842 [15:38:08]current date 1718897890 [15:38:08]FM_GetShiftState [15:38:08]SAM_PROTO_GetShiftState [15:38:08]wFMCommunicate request_size=4 [15:38:08]MH_SAM_APDU [15:38:08]CAPDU: 80 13 01 00 [15:38:08]Write to MH i2c: E2 08 00 25 2C 80 13 01 00 00 00 00 00 CE [15:38:08]Write i2c OK [15:38:08]MH_I2C_Read... [15:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:08]Read from MH i2c: E2 [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: E2 0E 00 [15:38:08]MH_I2C_Read... [15:38:08]Read from MH i2c: E2 0E 00 25 2C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1D [15:38:08]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:38:08]wFMCommunicate OK [15:38:08]SAM_PROTO_GetShiftState done [15:38:08]FM_GetShiftState done [15:38:08]opened in 1718843124 [15:38:08]opened+sec_in_day 1718929524 [15:38:08]quantity*price = 80012 [15:38:08]sum+1 = 80013 [15:38:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 145 20.06.2024 15:38 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103960 ФПД: 27787219703833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153810&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103960&fm=27787219703833&tin=02508201610067®Number=0000000000092785&sum=80000 [15:38:09]StoreToDocumentArchive [15:38:09]shift 354 fd 103960 [15:38:09]save to /storage/0354/doc_00103960 [15:38:09]save last doc name /storage/0354/doc_00103960 to /storage/kkm_last_doc_name [15:38:09]save OK [15:38:09]Clear old archive folders... [15:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:09]tlvbuf is 0088E7C0 [15:38:09]SAM_PROTO_ClearQueue [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 09 00 00 [15:38:09]Write to MH i2c: E2 08 00 32 2C 80 09 00 00 00 00 00 00 D0 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 32 2C 00 90 00 D2 [15:38:09]RAPDU: 90 00 [15:38:09]wFMCommunicate OK [15:38:09]SAM_PROTO_ClearQueue done [15:38:09]KKMCreateOFDPacket [15:38:09]OFDProtocolAddRootSTLVToBuf [15:38:09]FM_MakeSignedData [15:38:09]FM_MakeSignedData [15:38:09]SAM_PROTO_SignData [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 0D 01 02 [15:38:09]Write to MH i2c: E2 08 00 33 2C 80 0D 01 02 00 00 00 00 D8 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 33 2C 00 90 00 D3 [15:38:09]RAPDU: 90 00 [15:38:09]wFMCommunicate OK [15:38:09]wFMCommunicate request_size=255 [15:38:09]MH_SAM_APDU [15:38: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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 E2 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 96 01 00 35 04 06 00 19 [15:38:09]Write to MH i2c: E2 02 01 34 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 E2 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 96 01 00 35 04 06 00 19 00 00 45 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 34 2C 00 90 00 D4 [15:38:09]RAPDU: 90 00 [15:38:09]wFMCommunicate OK [15:38:09]wFMCommunicate request_size=10 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 0D 02 02 05 45 B7 5C 18 19 [15:38:09]Write to MH i2c: E2 0D 00 35 2C 80 0D 02 02 05 00 45 B7 5C 18 19 00 00 6E [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 03 00 35 2C 00 90 00 D5 [15:38:09]RAPDU: 90 00 [15:38:09]wFMCommunicate OK [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 0D 03 02 [15:38:09]Write to MH i2c: E2 08 00 36 2C 80 0D 03 02 00 00 00 00 DD [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 0B 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 0B 00 36 2C 00 34 57 CC 91 7B C2 00 AC 90 00 AF [15:38:09]RAPDU: 34 57 CC 91 7B C2 00 AC 90 00 [15:38:09]wFMCommunicate OK [15:38:09]SAM_PROTO_SignData done [15:38:09]FM_MakeSignedData done [15:38:09]CreateOFDProtocolMessage [15:38:09]wFMCommunicate request_size=4 [15:38:09]MH_SAM_APDU [15:38:09]CAPDU: 80 11 00 00 [15:38:09]Write to MH i2c: E2 08 00 37 2C 80 11 00 00 00 00 00 00 DD [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:09]Read from MH i2c: E2 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 17 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: E2 17 00 37 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 30 [15:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:38:09]wFMCommunicate OK [15:38:09]CreateOFDProtocolMessage done [15:38:09]OFDSenderStorePacket 103960 [15:38:09]StoreOFDPacket docnum=103960 [15:38:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 82 12 07 01 37 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 E2 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 96 01 00 35 04 06 00 19 45 B7 5C 18 19 34 57 CC 91 7B C2 00 AC [15:38:09]CheckFolder [15:38:09]dirname=/storage/ofd_packets [15:38:09]CheckFolder done [15:38:09]ProducePacketName [15:38:09]name=ofd_packets/00103960 [15:38:09]NVStorageSaveData ofd_packets/00103960 [15:38:09]File name is /storage/ofd_packets/00103960 [15:38:09]Write 301 bytes [15:38:09]NVStorageSaveData done [15:38:09]OFDSenderStorePacket done [15:38:09]KKMCreateOFDPacket done [15:38:09]NVStorageSaveData kkm_last_timestamp [15:38:09]File name is /storage/kkm_last_timestamp [15:38:09]Write 4 bytes [15:38:09]NVStorageSaveData done [15:38:09]ExternCall_PrintAddStr [15:38:09]wPrintStart [15:38:09]Write to MH i2c: 01 00 00 38 2C 64 [15:38:09]Write i2c OK [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 07 00 [15:38:09]MH_I2C_Read... [15:38:09]Read from MH i2c: 01 07 00 38 2C 00 00 00 00 00 FF 0F 79 [15:38:09]RasterBufferAndPrint [15:38:09]line Счет N : (1)673324 [15:38:09]line ИНН: 02508201610067 [15:38:09]line Контрольно-Кассовый Чек [15:38:09]line ПРОДАЖА [15:38:09]line ТРК (МРК, ГНК) : 42 [15:38:09]line Товар: 2710124130 [15:38:09]line Аи-92-К-5 [15:38:09]line 12.050 * 66.40 [15:38:09]line = 800.12 [15:38:09]line НДС 12% НСП 1% [15:38:09]line > о реализуемом товаре [15:38:09]line ОКРУГЛЕНИЕ: -0.12 [15:38:09]line ИТОГО: 800.00 [15:38:09]line Внесено: 800.00 [15:38:09]line СДАЧА: 0.00 [15:38:09]line НСП 1% : 7.08 [15:38:09]line НДС 12% : 84.97 [15:38:09]line Наличными: 800.00 [15:38:09]line Безнал.: 0.00 [15:38:09]line Место: АЗС № 120 "Партнер Нефть" [15:38:09]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:38:09]line СНО: Общий режим [15:38:09]line Чек 145 20.06.2024 15:38 [15:38:09]line Смена: 354 ФФД: 1.0 [15:38:09]line ЗНМ: 0300000164 [15:38:09]line РНМ: 0000000000092785 [15:38:09]line Версия ККМ: 001 [15:38:09]line ФМ: 0000000000875093 [15:38:09]line ФД: 103960 [15:38:09]line ФПД: 27787219703833 [15:38:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T153810&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103960&fm=27787219703833&tin=02508201610067®Number=0000000000092785&sum=80000 [15:38:10]written 0, free lines is 4095 [15:38:10]OFD Sender: Processing packet 103960 [packets to send 17, broken 16] [15:38:10]ProducePacketName [15:38:10]name=ofd_packets/00103960 [15:38:10]OFD Sender: To server: pG, [15:38:10]CommunicateWithHost lk.salyk.kg:30040 [15:38:10]ConnectInit lk.salyk.kg [15:38:10]Connected sock=10 [15:38:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 82 12 07 01 37 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 E2 4C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 96 01 00 35 04 06 00 19 45 B7 5C 18 19 34 57 CC 91 7B C2 00 AC [15:38:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9D D9 47 00 63 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 18 96 01 00 F4 03 04 00 68 F3 73 66 B6 04 01 00 00 ED 0A 76 70 F3 3F CF 91 [15:38:10]CommunicateWithHost err = 0 [15:38:10]CheckOFDResponse [15:38:10]1017 (14) - 77093643461234 [15:38:10]1041 (16) - 0000000000875093 [15:38:10]1040 (4) - 103960 [15:38:10]1012 (4) - 20.06.2024 09:16 [15:38:10]1206 (1) - 0 [15:38:10]OFD Sender: Remove packet 103960 [15:38:10]ProducePacketName [15:38:10]name=ofd_packets/00103960 [15:38:10]NVStorageDeleteData [15:38:10]Write to MH i2c: 01 00 00 63 2C 8F [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: 01 07 00 63 2C 00 00 00 00 00 DC 0C 7E [15:38:10]RasterBufferAndPrint [15:38:10]line [15:38:10]line [15:38:10]line [15:38:10]line [15:38:10]line [15:38:10]written 0, free lines is 3299 [15:38:10]MH_Cut [15:38:10]Write to MH i2c: D1 01 00 6A 2C 01 68 [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: D1 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: D1 01 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: D1 01 00 6A 2C 00 67 [15:38:10]Write to MH i2c: 01 00 00 6B 2C 97 [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:11]OFD Sender: No OFD packet to send [15:38:11]*** Cut start [15:38:11]*** Partial cut [15:38:11]*** CUTSNS_PIN = 1 [15:38:11]*** CUTSNS_PIN = 0 [15:38:11]*** Brake cut motor [15:38:12]Read from MH i2c: 01 [15:38:12]MH_I2C_Read... [15:38:12]*** Stop cut motor [15:38:12]*** Cut end [15:38:12]Read from MH i2c: 01 07 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 07 00 6B 2C 00 00 00 00 00 FF 0F AC [15:38:12]process_action close_receipt done [15:38:12]requested_data is exist [15:38:12]produce_requested_data [15:38:12]requested_item fm.sn is exist - process it [15:38:12]wFMCommunicate request_size=4 [15:38:12]MH_SAM_APDU [15:38:12]CAPDU: 80 11 00 00 [15:38:12]Write to MH i2c: E2 08 00 6C 2C 80 11 00 00 00 00 00 00 12 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:12]Read from MH i2c: E2 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 17 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 17 00 6C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [15:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:38:12]wFMCommunicate OK [15:38:12]requested_item fd.num is exist - process it [15:38:12]SAM_PROTO_GetFieldsCounters [15:38:12]wFMCommunicate request_size=4 [15:38:12]MH_SAM_APDU [15:38:12]CAPDU: 80 13 00 00 [15:38:12]Write to MH i2c: E2 08 00 6D 2C 80 13 00 00 00 00 00 00 15 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:12]Read from MH i2c: E2 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 62 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 62 00 6D 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 18 96 01 00 0E 04 04 00 62 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 01 [15:38:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 18 96 01 00 0E 04 04 00 62 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:38:12]wFMCommunicate OK [15:38:12]SAM_PROTO_GetFieldsCounters done [15:38:12]requested_item shift.num is exist - process it [15:38:12]requested_item shift.opened is exist - process it [15:38:12]req_shift_opened [15:38:12]FM_GetShiftState [15:38:12]SAM_PROTO_GetShiftState [15:38:12]wFMCommunicate request_size=4 [15:38:12]MH_SAM_APDU [15:38:12]CAPDU: 80 13 01 00 [15:38:12]Write to MH i2c: E2 08 00 6E 2C 80 13 01 00 00 00 00 00 17 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:12]Read from MH i2c: E2 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 0E 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 0E 00 6E 2C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 66 [15:38:12]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:38:12]wFMCommunicate OK [15:38:12]SAM_PROTO_GetShiftState done [15:38:12]FM_GetShiftState done [15:38:12]req_shift_opened done [15:38:12]requested_item shift.open_date is exist - process it [15:38:12]req_shift_open_date [15:38:12]req_shift_open_date done [15:38:12]produce_requested_data done [15:38:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103960,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:38:12]process_action_free close_receipt [15:38:12]json_value_free [15:38:12]json_value_free done [15:38:12]process_json_proto returns [15:38:12]Send response to host [15:38:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103960,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:38:12]free response buf [15:38:12]execute_script done [15:38:12]execute_script returns [15:38:12]free content buf [15:38:12]Sock 7.Close socket [15:38:12]Sock 7.Thread stoped [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:41:57]accept exits with 9 [15:41:57]New connection [15:41:57]New thread 3067207012 created [15:41:57]Thread 3067063652 joined [15:41:57]Waiting for new connection... [15:41:57] Sock 9.Parse request [15:41:57]Sock 9.Check first char [15:41:57]Sock 9.First char is OK [15:41:57]request: POST /json_proto HTTP/1.0 [15:41:57]Method: POST [15:41:57]URL: /json_proto [15:41:57]Method is POST - this is cgi request [15:41:57]url: /json_proto [15:41:57]query_string will be loaded in cgi processing [15:41:57]execute_cgi json_proto POST (null) [15:41:57]execute_cgi path=json_proto method=POST [15:41:57]POST find Content-Length [15:41:57]Host: 172.17.38.133:8080 [15:41:57]Content-Length: 1167 [15:41:57]Content-Type: application/json [15:41:57] [15:41:57]POST finish read [15:41:57]Found Content-Length = 1167 [15:41: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673326\u000A20.06.2024 15:19\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 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A4104042\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:57]execute_script... [15:41: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673326\u000A20.06.2024 15:19\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 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A4104042\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:57]POST & json_proto [15:41:57]process_json_proto [15:41:57]json parsed OK: [15:41:57]protocol is kg_v1.0 [15:41:57]action value=print_text [15:41:57]process_action print_text [15:41:57]cmd_print_text [15:41:57]ExternCall_PrintAddStr [15:41:57]wPrintStart [15:41:57]Write to MH i2c: 01 00 00 6F 2C 9B [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: 01 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: 01 07 00 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: 01 07 00 6F 2C 00 00 00 00 00 FF 0F B0 [15:41:57]RasterBufferAndPrint [15:41:57]line *****ТОВАРНЫЙ ЧЕК***** [15:41:57]line АЗС 120 [15:41:57]line Партнер нефть [15:41:57]line 02508201610067 [15:41:57]line Кассир : Дуйшенбиев А. [15:41:57]line Счет N : (1)673326 [15:41:57]line 20.06.2024 15:19 [15:41:57]line ПРОДАЖА [15:41:57]line ТРК (МРК, ГНК): 32 [15:41:57]line Вид ГСМ : 2710124130 [15:41:57]line Аи-92-К-5 [15:41:57]line 10.000 x 66.40 [15:41:57]line ИТОГ: 664.00 [15:41:57]line Тип оплаты: Талоны: ТК ГПНА Online [15:41:57]line 4104042 [15:41:57]line ______________________ [15:41:57]line (подпись) [15:41:57]written 0, free lines is 4095 [15:41:57]Write to MH i2c: 01 00 00 83 2C AF [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: 01 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: 01 07 00 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: 01 07 00 83 2C 00 00 00 00 00 10 0E D4 [15:41:57]RasterBufferAndPrint [15:41:57]line [15:41:57]line [15:41:57]line [15:41:57]line [15:41:57]line [15:41:57]written 0, free lines is 3601 [15:41:57]MH_Cut [15:41:57]Write to MH i2c: D1 01 00 8A 2C 01 88 [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: D1 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: D1 01 00 [15:41:57]MH_I2C_Read... [15:41:57]Read from MH i2c: D1 01 00 8A 2C 00 87 [15:41:57]Write to MH i2c: 01 00 00 8B 2C B7 [15:41:57]Write i2c OK [15:41:57]MH_I2C_Read... [15:41:58]*** Cut start [15:41:58]*** Partial cut [15:41:58]*** CUTSNS_PIN = 1 [15:41:58]*** CUTSNS_PIN = 0 [15:41:58]*** Brake cut motor [15:41:58]Read from MH i2c: 01 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: 01 07 00 [15:41:58]MH_I2C_Read... [15:41:58]*** Stop cut motor [15:41:58]*** Cut end [15:41:58]Read from MH i2c: 01 07 00 8B 2C 00 00 00 00 00 FF 0F CC [15:41:58]process_action print_text done [15:41:58]requested_data is exist [15:41:58]produce_requested_data [15:41:58]requested_item fm.sn is exist - process it [15:41:58]wFMCommunicate request_size=4 [15:41:58]MH_SAM_APDU [15:41:58]CAPDU: 80 11 00 00 [15:41:58]Write to MH i2c: E2 08 00 8C 2C 80 11 00 00 00 00 00 00 32 [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:58]Read from MH i2c: E2 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 17 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 17 00 8C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 85 [15:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:41:58]wFMCommunicate OK [15:41:58]requested_item fd.num is exist - process it [15:41:58]SAM_PROTO_GetFieldsCounters [15:41:58]wFMCommunicate request_size=4 [15:41:58]MH_SAM_APDU [15:41:58]CAPDU: 80 13 00 00 [15:41:58]Write to MH i2c: E2 08 00 8D 2C 80 13 00 00 00 00 00 00 35 [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:58]Read from MH i2c: E2 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 62 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 62 00 8D 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 18 96 01 00 0E 04 04 00 62 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 21 [15:41:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 18 96 01 00 0E 04 04 00 62 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:41:58]wFMCommunicate OK [15:41:58]SAM_PROTO_GetFieldsCounters done [15:41:58]requested_item shift.num is exist - process it [15:41:58]requested_item shift.opened is exist - process it [15:41:58]req_shift_opened [15:41:58]FM_GetShiftState [15:41:58]SAM_PROTO_GetShiftState [15:41:58]wFMCommunicate request_size=4 [15:41:58]MH_SAM_APDU [15:41:58]CAPDU: 80 13 01 00 [15:41:58]Write to MH i2c: E2 08 00 8E 2C 80 13 01 00 00 00 00 00 37 [15:41:58]Write i2c OK [15:41:58]MH_I2C_Read... [15:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:58]Read from MH i2c: E2 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 0E 00 [15:41:58]MH_I2C_Read... [15:41:58]Read from MH i2c: E2 0E 00 8E 2C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 86 [15:41:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:41:58]wFMCommunicate OK [15:41:58]SAM_PROTO_GetShiftState done [15:41:58]FM_GetShiftState done [15:41:58]req_shift_opened done [15:41:58]requested_item shift.open_date is exist - process it [15:41:58]req_shift_open_date [15:41:58]req_shift_open_date done [15:41:58]produce_requested_data done [15:41:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103960,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:41:58]process_action_free print_text [15:41:58]json_value_free [15:41:58]json_value_free done [15:41:58]process_json_proto returns [15:41:58]Send response to host [15:41:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103960,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:41:58]free response buf [15:41:58]execute_script done [15:41:58]execute_script returns [15:41:58]free content buf [15:41:58]Sock 9.Close socket [15:41:58]Sock 9.Thread stoped [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:47]accept exits with 7 [15:42:47]New connection [15:42:47]New thread 3067063652 created [15:42:47]Thread 3067207012 joined [15:42:47]Waiting for new connection... [15:42:47] Sock 7.Parse request [15:42:47]Sock 7.Check first char [15:42:47]Sock 7.First char is OK [15:42:47]request: POST /json_proto HTTP/1.0 [15:42:47]Method: POST [15:42:47]URL: /json_proto [15:42:47]Method is POST - this is cgi request [15:42:47]url: /json_proto [15:42:47]query_string will be loaded in cgi processing [15:42:47]execute_cgi json_proto POST (null) [15:42:47]execute_cgi path=json_proto method=POST [15:42:47]POST find Content-Length [15:42:47]Host: 172.17.38.133:8080 [15:42:47]Content-Length: 1169 [15:42:47]Content-Type: application/json [15:42:47] [15:42:47]POST finish read [15:42:47]Found Content-Length = 1169 [15:42:47]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673325\u000A20.06.2024 15:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1478.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30051634\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:47]execute_script... [15:42:47]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673325\u000A20.06.2024 15:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 20.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 1478.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30051634\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:47]POST & json_proto [15:42:47]process_json_proto [15:42:47]json parsed OK: [15:42:47]protocol is kg_v1.0 [15:42:47]action value=print_text [15:42:47]process_action print_text [15:42:47]cmd_print_text [15:42:47]ExternCall_PrintAddStr [15:42:47]wPrintStart [15:42:47]Write to MH i2c: 01 00 00 8F 2C BB [15:42:47]Write i2c OK [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: 01 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: 01 07 00 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: 01 07 00 8F 2C 00 00 00 00 00 FF 0F D0 [15:42:47]RasterBufferAndPrint [15:42:47]line *****ТОВАРНЫЙ ЧЕК***** [15:42:47]line АЗС 120 [15:42:47]line Партнер нефть [15:42:47]line 02508201610067 [15:42:47]line Кассир : Дуйшенбиев А. [15:42:47]line Счет N : (1)673325 [15:42:47]line 20.06.2024 15:20 [15:42:47]line ПРОДАЖА [15:42:47]line ТРК (МРК, ГНК): 41 [15:42:47]line Вид ГСМ : 2710124500 [15:42:47]line Аи-95-К-5 [15:42:47]line 20.000 x 73.90 [15:42:47]line ИТОГ: 1478.00 [15:42:47]line Тип оплаты: Талоны: ТК ГПНА Online [15:42:47]line 30051634 [15:42:47]line ______________________ [15:42:47]line (подпись) [15:42:47]written 0, free lines is 4095 [15:42:47]Write to MH i2c: 01 00 00 A3 2C CF [15:42:47]Write i2c OK [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: 01 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: 01 07 00 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: 01 07 00 A3 2C 00 00 00 00 00 11 0E F5 [15:42:47]RasterBufferAndPrint [15:42:47]line [15:42:47]line [15:42:47]line [15:42:47]line [15:42:47]line [15:42:47]written 0, free lines is 3602 [15:42:47]MH_Cut [15:42:47]Write to MH i2c: D1 01 00 AA 2C 01 A8 [15:42:47]Write i2c OK [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: D1 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: D1 01 00 [15:42:47]MH_I2C_Read... [15:42:47]Read from MH i2c: D1 01 00 AA 2C 00 A7 [15:42:47]Write to MH i2c: 01 00 00 AB 2C D7 [15:42:47]Write i2c OK [15:42:47]MH_I2C_Read... [15:42:48]*** Cut start [15:42:48]*** Partial cut [15:42:48]*** CUTSNS_PIN = 1 [15:42:48]*** CUTSNS_PIN = 0 [15:42:48]*** Brake cut motor [15:42:48]Read from MH i2c: 01 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: 01 07 00 [15:42:48]MH_I2C_Read... [15:42:48]*** Stop cut motor [15:42:48]*** Cut end [15:42:48]Read from MH i2c: 01 07 00 AB 2C 00 00 00 00 00 FF 0F EC [15:42:48]process_action print_text done [15:42:48]requested_data is exist [15:42:48]produce_requested_data [15:42:48]requested_item fm.sn is exist - process it [15:42:48]wFMCommunicate request_size=4 [15:42:48]MH_SAM_APDU [15:42:48]CAPDU: 80 11 00 00 [15:42:48]Write to MH i2c: E2 08 00 AC 2C 80 11 00 00 00 00 00 00 52 [15:42:48]Write i2c OK [15:42:48]MH_I2C_Read... [15:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:48]Read from MH i2c: E2 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 17 00 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 17 00 AC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A5 [15:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:42:48]wFMCommunicate OK [15:42:48]requested_item fd.num is exist - process it [15:42:48]SAM_PROTO_GetFieldsCounters [15:42:48]wFMCommunicate request_size=4 [15:42:48]MH_SAM_APDU [15:42:48]CAPDU: 80 13 00 00 [15:42:48]Write to MH i2c: E2 08 00 AD 2C 80 13 00 00 00 00 00 00 55 [15:42:48]Write i2c OK [15:42:48]MH_I2C_Read... [15:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:48]Read from MH i2c: E2 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 62 00 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 62 00 AD 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 18 96 01 00 0E 04 04 00 62 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 41 [15:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 18 96 01 00 0E 04 04 00 62 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:42:48]wFMCommunicate OK [15:42:48]SAM_PROTO_GetFieldsCounters done [15:42:48]requested_item shift.num is exist - process it [15:42:48]requested_item shift.opened is exist - process it [15:42:48]req_shift_opened [15:42:48]FM_GetShiftState [15:42:48]SAM_PROTO_GetShiftState [15:42:48]wFMCommunicate request_size=4 [15:42:48]MH_SAM_APDU [15:42:48]CAPDU: 80 13 01 00 [15:42:48]Write to MH i2c: E2 08 00 AE 2C 80 13 01 00 00 00 00 00 57 [15:42:48]Write i2c OK [15:42:48]MH_I2C_Read... [15:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:48]Read from MH i2c: E2 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 0E 00 [15:42:48]MH_I2C_Read... [15:42:48]Read from MH i2c: E2 0E 00 AE 2C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A6 [15:42:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:42:48]wFMCommunicate OK [15:42:48]SAM_PROTO_GetShiftState done [15:42:48]FM_GetShiftState done [15:42:48]req_shift_opened done [15:42:48]requested_item shift.open_date is exist - process it [15:42:48]req_shift_open_date [15:42:48]req_shift_open_date done [15:42:48]produce_requested_data done [15:42:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103960,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:42:48]process_action_free print_text [15:42:48]json_value_free [15:42:48]json_value_free done [15:42:48]process_json_proto returns [15:42:48]Send response to host [15:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103960,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:42:48]free response buf [15:42:48]execute_script done [15:42:48]execute_script returns [15:42:48]free content buf [15:42:48]Sock 7.Close socket [15:42:48]Sock 7.Thread stoped [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:35]accept exits with 9 [15:46:35]New connection [15:46:35]New thread 3067207012 created [15:46:35]Thread 3067063652 joined [15:46:35]Waiting for new connection... [15:46:35] Sock 9.Parse request [15:46:35]Sock 9.Check first char [15:46:35]Sock 9.First char is OK [15:46:35]request: POST /json_proto HTTP/1.0 [15:46:35]Method: POST [15:46:35]URL: /json_proto [15:46:35]Method is POST - this is cgi request [15:46:35]url: /json_proto [15:46:35]query_string will be loaded in cgi processing [15:46:35]execute_cgi json_proto POST (null) [15:46:35]execute_cgi path=json_proto method=POST [15:46:35]POST find Content-Length [15:46:35]Host: 172.17.38.133:8080 [15:46:35]Content-Length: 819 [15:46:35]Content-Type: application/json [15:46:35] [15:46:35]POST finish read [15:46:35]Found Content-Length = 819 [15:46:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673327", "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" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:35]execute_script... [15:46: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)673327", "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" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:35]POST & json_proto [15:46:35]process_json_proto [15:46:35]json parsed OK: [15:46:35]protocol is kg_v1.0 [15:46:35]action value=close_receipt [15:46:35]process_action close_receipt [15:46:35]cmd_close_receipt [15:46:35]MH_GetDate [15:46:35]Write to MH i2c: F0 00 00 AF 2C CA [15:46:35]Write i2c OK [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: F0 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: F0 09 00 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: F0 09 00 AF 2C 00 DD 4E 74 66 BD 8F 7C 64 04 [15:46:35]GetLastDocTimeStamp 1718897890 [15:46:35]current date 1718898397 [15:46:35]FM_GetShiftState [15:46:35]SAM_PROTO_GetShiftState [15:46:35]wFMCommunicate request_size=4 [15:46:35]MH_SAM_APDU [15:46:35]CAPDU: 80 13 01 00 [15:46:35]Write to MH i2c: E2 08 00 B0 2C 80 13 01 00 00 00 00 00 59 [15:46:35]Write i2c OK [15:46:35]MH_I2C_Read... [15:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:35]Read from MH i2c: E2 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: E2 0E 00 [15:46:35]MH_I2C_Read... [15:46:35]Read from MH i2c: E2 0E 00 B0 2C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A8 [15:46:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:46:35]wFMCommunicate OK [15:46:35]SAM_PROTO_GetShiftState done [15:46:35]FM_GetShiftState done [15:46:35]opened in 1718843124 [15:46:35]opened+sec_in_day 1718929524 [15:46:35]quantity*price = 200047 [15:46:35]sum+1 = 200048 [15:46:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 146 20.06.2024 15:46 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103961 ФПД: 49491204589734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154637&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103961&fm=49491204589734&tin=02508201610067®Number=0000000000092785&sum=200047 [15:46:36]StoreToDocumentArchive [15:46:36]shift 354 fd 103961 [15:46:36]save to /storage/0354/doc_00103961 [15:46:36]save last doc name /storage/0354/doc_00103961 to /storage/kkm_last_doc_name [15:46:36]save OK [15:46:36]Clear old archive folders... [15:46:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:36]tlvbuf is 00854EB0 [15:46:36]SAM_PROTO_ClearQueue [15:46:36]wFMCommunicate request_size=4 [15:46:36]MH_SAM_APDU [15:46:36]CAPDU: 80 09 00 00 [15:46:36]Write to MH i2c: E2 08 00 BD 2C 80 09 00 00 00 00 00 00 5B [15:46:36]Write i2c OK [15:46:36]MH_I2C_Read... [15:46:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:36]Read from MH i2c: E2 [15:46:36]MH_I2C_Read... [15:46:36]Read from MH i2c: E2 03 00 [15:46:36]MH_I2C_Read... [15:46:36]Read from MH i2c: E2 03 00 BD 2C 00 90 00 5D [15:46:36]RAPDU: 90 00 [15:46:36]wFMCommunicate OK [15:46:36]SAM_PROTO_ClearQueue done [15:46:36]KKMCreateOFDPacket [15:46:36]OFDProtocolAddRootSTLVToBuf [15:46:36]FM_MakeSignedData [15:46:36]FM_MakeSignedData [15:46:36]SAM_PROTO_SignData [15:46:36]wFMCommunicate request_size=4 [15:46:36]MH_SAM_APDU [15:46:36]CAPDU: 80 0D 01 02 [15:46:36]Write to MH i2c: E2 08 00 BE 2C 80 0D 01 02 00 00 00 00 63 [15:46:36]Write i2c OK [15:46:36]MH_I2C_Read... [15:46:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:36]OFD Sender: No OFD packet to send [15:46:36]Read from MH i2c: E2 [15:46:36]MH_I2C_Read... [15:46:36]Read from MH i2c: E2 03 00 [15:46:36]MH_I2C_Read... [15:46:36]Read from MH i2c: E2 03 00 BE 2C 00 90 00 5E [15:46:36]RAPDU: 90 00 [15:46:36]wFMCommunicate OK [15:46:36]wFMCommunicate request_size=255 [15:46:36]MH_SAM_APDU [15:46:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DD 4E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 96 01 00 35 04 06 00 2D [15:46:36]Write to MH i2c: E2 02 01 BF 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DD 4E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 96 01 00 35 04 06 00 2D 00 00 2A [15:46:36]Write i2c OK [15:46:36]MH_I2C_Read... [15:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:36]Read from MH i2c: E2 [15:46:36]MH_I2C_Read... [15:46:36]Read from MH i2c: E2 03 00 [15:46:36]MH_I2C_Read... [15:46:36]Read from MH i2c: E2 03 00 BF 2C 00 90 00 5F [15:46:36]RAPDU: 90 00 [15:46:36]wFMCommunicate OK [15:46:36]wFMCommunicate request_size=10 [15:46:36]MH_SAM_APDU [15:46:36]CAPDU: 80 0D 02 02 05 03 11 AB 48 A6 [15:46:36]Write to MH i2c: E2 0D 00 C0 2C 80 0D 02 02 05 00 03 11 AB 48 A6 00 00 1D [15:46:36]Write i2c OK [15:46:36]MH_I2C_Read... [15:46:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:36]Read from MH i2c: E2 [15:46:36]MH_I2C_Read... [15:46:36]Read from MH i2c: E2 03 00 [15:46:36]MH_I2C_Read... [15:46:36]Read from MH i2c: E2 03 00 C0 2C 00 90 00 60 [15:46:36]RAPDU: 90 00 [15:46:36]wFMCommunicate OK [15:46:36]wFMCommunicate request_size=4 [15:46:36]MH_SAM_APDU [15:46:36]CAPDU: 80 0D 03 02 [15:46:36]Write to MH i2c: E2 08 00 C1 2C 80 0D 03 02 00 00 00 00 68 [15:46:36]Write i2c OK [15:46:36]MH_I2C_Read... [15:46:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:36]Read from MH i2c: E2 [15:46:36]MH_I2C_Read... [15:46:36]Read from MH i2c: E2 0B 00 [15:46:36]MH_I2C_Read... [15:46:36]Read from MH i2c: E2 0B 00 C1 2C 00 98 10 36 D6 81 D3 A5 1D 90 00 33 [15:46:36]RAPDU: 98 10 36 D6 81 D3 A5 1D 90 00 [15:46:36]wFMCommunicate OK [15:46:36]SAM_PROTO_SignData done [15:46:36]FM_MakeSignedData done [15:46:36]CreateOFDProtocolMessage [15:46:36]wFMCommunicate request_size=4 [15:46:36]MH_SAM_APDU [15:46:36]CAPDU: 80 11 00 00 [15:46:36]Write to MH i2c: E2 08 00 C2 2C 80 11 00 00 00 00 00 00 68 [15:46:36]Write i2c OK [15:46:36]MH_I2C_Read... [15:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:37]Read from MH i2c: E2 [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: E2 17 00 [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: E2 17 00 C2 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [15:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:46:37]wFMCommunicate OK [15:46:37]CreateOFDProtocolMessage done [15:46:37]OFDSenderStorePacket 103961 [15:46:37]StoreOFDPacket docnum=103961 [15:46:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FD 62 07 01 38 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DD 4E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 96 01 00 35 04 06 00 2D 03 11 AB 48 A6 98 10 36 D6 81 D3 A5 1D [15:46:37]CheckFolder [15:46:37]dirname=/storage/ofd_packets [15:46:37]CheckFolder done [15:46:37]ProducePacketName [15:46:37]name=ofd_packets/00103961 [15:46:37]NVStorageSaveData ofd_packets/00103961 [15:46:37]File name is /storage/ofd_packets/00103961 [15:46:37]Write 301 bytes [15:46:37]NVStorageSaveData done [15:46:37]OFDSenderStorePacket done [15:46:37]KKMCreateOFDPacket done [15:46:37]NVStorageSaveData kkm_last_timestamp [15:46:37]File name is /storage/kkm_last_timestamp [15:46:37]Write 4 bytes [15:46:37]NVStorageSaveData done [15:46:37]ExternCall_PrintAddStr [15:46:37]wPrintStart [15:46:37]Write to MH i2c: 01 00 00 C3 2C EF [15:46:37]Write i2c OK [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: 01 [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: 01 07 00 [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: 01 07 00 C3 2C 00 00 00 00 00 FF 0F 04 [15:46:37]RasterBufferAndPrint [15:46:37]line Счет N : (1)673327 [15:46:37]line ИНН: 02508201610067 [15:46:37]line Контрольно-Кассовый Чек [15:46:37]line ПРОДАЖА [15:46:37]line ТРК (МРК, ГНК) : 41 [15:46:37]line Товар: 2710124500 [15:46:37]line Аи-95-К-5 [15:46:37]line 27.070 * 73.90 [15:46:37]line = 2000.47 [15:46:37]line НДС 12% НСП 1% [15:46:37]line > о реализуемом товаре [15:46:37]line ИТОГО: 2000.47 [15:46:37]line НСП 1% : 17.70 [15:46:37]line НДС 12% : 212.44 [15:46:37]line Наличными: 0.00 [15:46:37]line Безнал.: 2000.47 [15:46:37]line Место: АЗС № 120 "Партнер Нефть" [15:46:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:46:37]line СНО: Общий режим [15:46:37]line Чек 146 20.06.2024 15:46 [15:46:37]line Смена: 354 ФФД: 1.0 [15:46:37]line ЗНМ: 0300000164 [15:46:37]line РНМ: 0000000000092785 [15:46:37]line Версия ККМ: 001 [15:46:37]line Платежная система: Бакай Банк [15:46:37]line ФМ: 0000000000875093 [15:46:37]line ФД: 103961 [15:46:37]line ФПД: 49491204589734 [15:46:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154637&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103961&fm=49491204589734&tin=02508201610067®Number=0000000000092785&sum=200047 [15:46:37]OFD Sender: Processing packet 103961 [packets to send 17, broken 16] [15:46:37]ProducePacketName [15:46:37]name=ofd_packets/00103961 [15:46:37]OFD Sender: To server: pG, [15:46:37]CommunicateWithHost lk.salyk.kg:30040 [15:46:37]ConnectInit lk.salyk.kg [15:46:37]written 0, free lines is 4095 [15:46:37]Connected sock=10 [15:46:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FD 62 07 01 38 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DD 4E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 96 01 00 35 04 06 00 2D 03 11 AB 48 A6 98 10 36 D6 81 D3 A5 1D [15:46:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C8 BC 47 00 EE E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 19 96 01 00 F4 03 04 00 63 F5 73 66 B6 04 01 00 00 54 E0 E3 E5 FC 31 88 3A [15:46:37]CommunicateWithHost err = 0 [15:46:37]CheckOFDResponse [15:46:37]1017 (14) - 77093643461234 [15:46:37]1041 (16) - 0000000000875093 [15:46:37]1040 (4) - 103961 [15:46:37]1012 (4) - 20.06.2024 09:24 [15:46:37]1206 (1) - 0 [15:46:37]OFD Sender: Remove packet 103961 [15:46:37]ProducePacketName [15:46:37]name=ofd_packets/00103961 [15:46:37]NVStorageDeleteData [15:46:37]Write to MH i2c: 01 00 00 ED 2C 19 [15:46:37]Write i2c OK [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: 01 [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: 01 07 00 [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: 01 07 00 ED 2C 00 00 00 00 00 F1 0C 1D [15:46:37]RasterBufferAndPrint [15:46:37]line [15:46:37]line [15:46:37]line [15:46:37]line [15:46:37]line [15:46:37]written 0, free lines is 3320 [15:46:37]MH_Cut [15:46:37]Write to MH i2c: D1 01 00 F4 2C 01 F2 [15:46:37]Write i2c OK [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: D1 [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: D1 01 00 [15:46:37]MH_I2C_Read... [15:46:37]Read from MH i2c: D1 01 00 F4 2C 00 F1 [15:46:37]Write to MH i2c: 01 00 00 F5 2C 21 [15:46:37]Write i2c OK [15:46:37]MH_I2C_Read... [15:46:38]OFD Sender: No OFD packet to send [15:46:38]*** Cut start [15:46:38]*** Partial cut [15:46:38]*** CUTSNS_PIN = 1 [15:46:38]*** CUTSNS_PIN = 0 [15:46:38]*** Brake cut motor [15:46:39]Read from MH i2c: 01 [15:46:39]MH_I2C_Read... [15:46:39]*** Stop cut motor [15:46:39]*** Cut end [15:46:39]Read from MH i2c: 01 07 00 [15:46:39]MH_I2C_Read... [15:46:39]Read from MH i2c: 01 07 00 F5 2C 00 00 00 00 00 FF 0F 36 [15:46:39]process_action close_receipt done [15:46:39]requested_data is exist [15:46:39]produce_requested_data [15:46:39]requested_item fm.sn is exist - process it [15:46:39]wFMCommunicate request_size=4 [15:46:39]MH_SAM_APDU [15:46:39]CAPDU: 80 11 00 00 [15:46:39]Write to MH i2c: E2 08 00 F6 2C 80 11 00 00 00 00 00 00 9C [15:46:39]Write i2c OK [15:46:39]MH_I2C_Read... [15:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:39]Read from MH i2c: E2 [15:46:39]MH_I2C_Read... [15:46:39]Read from MH i2c: E2 17 00 [15:46:39]MH_I2C_Read... [15:46:39]Read from MH i2c: E2 17 00 F6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [15:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:46:39]wFMCommunicate OK [15:46:39]requested_item fd.num is exist - process it [15:46:39]SAM_PROTO_GetFieldsCounters [15:46:39]wFMCommunicate request_size=4 [15:46:39]MH_SAM_APDU [15:46:39]CAPDU: 80 13 00 00 [15:46:39]Write to MH i2c: E2 08 00 F7 2C 80 13 00 00 00 00 00 00 9F [15:46:39]Write i2c OK [15:46:39]MH_I2C_Read... [15:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:39]Read from MH i2c: E2 [15:46:39]MH_I2C_Read... [15:46:39]Read from MH i2c: E2 62 00 [15:46:39]MH_I2C_Read... [15:46:39]Read from MH i2c: E2 62 00 F7 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 19 96 01 00 0E 04 04 00 62 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 8F [15:46:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 19 96 01 00 0E 04 04 00 62 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:46:39]wFMCommunicate OK [15:46:39]SAM_PROTO_GetFieldsCounters done [15:46:39]requested_item shift.num is exist - process it [15:46:39]requested_item shift.opened is exist - process it [15:46:39]req_shift_opened [15:46:39]FM_GetShiftState [15:46:39]SAM_PROTO_GetShiftState [15:46:39]wFMCommunicate request_size=4 [15:46:39]MH_SAM_APDU [15:46:39]CAPDU: 80 13 01 00 [15:46:39]Write to MH i2c: E2 08 00 F8 2C 80 13 01 00 00 00 00 00 A1 [15:46:39]Write i2c OK [15:46:39]MH_I2C_Read... [15:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:39]Read from MH i2c: E2 [15:46:39]MH_I2C_Read... [15:46:39]Read from MH i2c: E2 0E 00 [15:46:39]MH_I2C_Read... [15:46:39]Read from MH i2c: E2 0E 00 F8 2C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F0 [15:46:39]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:46:39]wFMCommunicate OK [15:46:39]SAM_PROTO_GetShiftState done [15:46:39]FM_GetShiftState done [15:46:39]req_shift_opened done [15:46:39]requested_item shift.open_date is exist - process it [15:46:39]req_shift_open_date [15:46:39]req_shift_open_date done [15:46:39]produce_requested_data done [15:46:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103961,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:46:39]process_action_free close_receipt [15:46:39]json_value_free [15:46:39]json_value_free done [15:46:39]process_json_proto returns [15:46:39]Send response to host [15:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103961,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:46:39]free response buf [15:46:39]execute_script done [15:46:39]execute_script returns [15:46:39]free content buf [15:46:39]Sock 9.Close socket [15:46:39]Sock 9.Thread stoped [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:35]accept exits with 7 [15:47:35]New connection [15:47:35]New thread 3067063652 created [15:47:35]Thread 3067207012 joined [15:47:35]Waiting for new connection... [15:47:35] Sock 7.Parse request [15:47:35]Sock 7.Check first char [15:47:35]Sock 7.First char is OK [15:47:35]request: POST /json_proto HTTP/1.0 [15:47:35]Method: POST [15:47:35]URL: /json_proto [15:47:35]Method is POST - this is cgi request [15:47:35]url: /json_proto [15:47:35]query_string will be loaded in cgi processing [15:47:35]execute_cgi json_proto POST (null) [15:47:35]execute_cgi path=json_proto method=POST [15:47:35]POST find Content-Length [15:47:35]Host: 172.17.38.133:8080 [15:47:35]Content-Length: 801 [15:47:35]Content-Type: application/json [15:47:35] [15:47:35]POST finish read [15:47:35]Found Content-Length = 801 [15:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673328", "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" : 73.90, "quantity" : 10.000, "sum" : 739.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:35]execute_script... [15:47: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)673328", "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" : 73.90, "quantity" : 10.000, "sum" : 739.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:35]POST & json_proto [15:47:35]process_json_proto [15:47:35]json parsed OK: [15:47:35]protocol is kg_v1.0 [15:47:35]action value=close_receipt [15:47:35]process_action close_receipt [15:47:35]cmd_close_receipt [15:47:35]MH_GetDate [15:47:35]Write to MH i2c: F0 00 00 F9 2C 14 [15:47:35]Write i2c OK [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: F0 [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: F0 09 00 [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: F0 09 00 F9 2C 00 19 4F 74 66 BD 8F 7C 64 8B [15:47:35]GetLastDocTimeStamp 1718898397 [15:47:35]current date 1718898457 [15:47:35]FM_GetShiftState [15:47:35]SAM_PROTO_GetShiftState [15:47:35]wFMCommunicate request_size=4 [15:47:35]MH_SAM_APDU [15:47:35]CAPDU: 80 13 01 00 [15:47:35]Write to MH i2c: E2 08 00 FA 2C 80 13 01 00 00 00 00 00 A3 [15:47:35]Write i2c OK [15:47:35]MH_I2C_Read... [15:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:35]Read from MH i2c: E2 [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: E2 0E 00 [15:47:35]MH_I2C_Read... [15:47:35]Read from MH i2c: E2 0E 00 FA 2C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F2 [15:47:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:47:35]wFMCommunicate OK [15:47:35]SAM_PROTO_GetShiftState done [15:47:35]FM_GetShiftState done [15:47:35]opened in 1718843124 [15:47:35]opened+sec_in_day 1718929524 [15:47:35]quantity*price = 73900 [15:47:35]sum+1 = 73901 [15:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 739.00 НСП 1% : 6.54 НДС 12% : 78.48 Наличными: 0.00 Безнал.: 739.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 147 20.06.2024 15:47 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103962 ФПД: 167967353859055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154737&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103962&fm=167967353859055&tin=02508201610067®Number=0000000000092785&sum=73900 [15:47:36]StoreToDocumentArchive [15:47:36]shift 354 fd 103962 [15:47:36]save to /storage/0354/doc_00103962 [15:47:36]save last doc name /storage/0354/doc_00103962 to /storage/kkm_last_doc_name [15:47:36]save OK [15:47:36]Clear old archive folders... [15:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:36]tlvbuf is 0087C440 [15:47:36]SAM_PROTO_ClearQueue [15:47:36]wFMCommunicate request_size=4 [15:47:36]MH_SAM_APDU [15:47:36]CAPDU: 80 09 00 00 [15:47:36]Write to MH i2c: E2 08 00 07 2D 80 09 00 00 00 00 00 00 A6 [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:36]Read from MH i2c: E2 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 07 2D 00 90 00 A8 [15:47:36]RAPDU: 90 00 [15:47:36]wFMCommunicate OK [15:47:36]SAM_PROTO_ClearQueue done [15:47:36]KKMCreateOFDPacket [15:47:36]OFDProtocolAddRootSTLVToBuf [15:47:36]FM_MakeSignedData [15:47:36]FM_MakeSignedData [15:47:36]SAM_PROTO_SignData [15:47:36]wFMCommunicate request_size=4 [15:47:36]MH_SAM_APDU [15:47:36]CAPDU: 80 0D 01 02 [15:47:36]Write to MH i2c: E2 08 00 08 2D 80 0D 01 02 00 00 00 00 AE [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:36]Read from MH i2c: E2 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 08 2D 00 90 00 A9 [15:47:36]RAPDU: 90 00 [15:47:36]wFMCommunicate OK [15:47:36]wFMCommunicate request_size=255 [15:47:36]MH_SAM_APDU [15:47:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 19 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 96 01 00 35 04 06 00 98 [15:47:36]Write to MH i2c: E2 02 01 09 2D 80 0D 02 02 FA 00 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 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 19 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 96 01 00 35 04 06 00 98 00 00 31 [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:36]Read from MH i2c: E2 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 09 2D 00 90 00 AA [15:47:36]RAPDU: 90 00 [15:47:36]wFMCommunicate OK [15:47:36]wFMCommunicate request_size=10 [15:47:36]MH_SAM_APDU [15:47:36]CAPDU: 80 0D 02 02 05 C3 F2 75 EB EF [15:47:36]Write to MH i2c: E2 0D 00 0A 2D 80 0D 02 02 05 00 C3 F2 75 EB EF 00 00 BF [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:36]Read from MH i2c: E2 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 03 00 0A 2D 00 90 00 AB [15:47:36]RAPDU: 90 00 [15:47:36]wFMCommunicate OK [15:47:36]wFMCommunicate request_size=4 [15:47:36]MH_SAM_APDU [15:47:36]CAPDU: 80 0D 03 02 [15:47:36]Write to MH i2c: E2 08 00 0B 2D 80 0D 03 02 00 00 00 00 B3 [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:36]Read from MH i2c: E2 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 0B 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 0B 00 0B 2D 00 55 1D 0A B2 AC 62 05 D1 90 00 C6 [15:47:36]RAPDU: 55 1D 0A B2 AC 62 05 D1 90 00 [15:47:36]wFMCommunicate OK [15:47:36]SAM_PROTO_SignData done [15:47:36]FM_MakeSignedData done [15:47:36]CreateOFDProtocolMessage [15:47:36]wFMCommunicate request_size=4 [15:47:36]MH_SAM_APDU [15:47:36]CAPDU: 80 11 00 00 [15:47:36]Write to MH i2c: E2 08 00 0C 2D 80 11 00 00 00 00 00 00 B3 [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:36]Read from MH i2c: E2 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 17 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: E2 17 00 0C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 06 [15:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:47:36]wFMCommunicate OK [15:47:36]CreateOFDProtocolMessage done [15:47:36]OFDSenderStorePacket 103962 [15:47:36]StoreOFDPacket docnum=103962 [15:47:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 23 1A 07 01 00 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 19 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 96 01 00 35 04 06 00 98 C3 F2 75 EB EF 55 1D 0A B2 AC 62 05 D1 [15:47:36]CheckFolder [15:47:36]dirname=/storage/ofd_packets [15:47:36]CheckFolder done [15:47:36]ProducePacketName [15:47:36]name=ofd_packets/00103962 [15:47:36]NVStorageSaveData ofd_packets/00103962 [15:47:36]File name is /storage/ofd_packets/00103962 [15:47:36]Write 301 bytes [15:47:36]NVStorageSaveData done [15:47:36]OFDSenderStorePacket done [15:47:36]KKMCreateOFDPacket done [15:47:36]NVStorageSaveData kkm_last_timestamp [15:47:36]File name is /storage/kkm_last_timestamp [15:47:36]Write 4 bytes [15:47:36]NVStorageSaveData done [15:47:36]ExternCall_PrintAddStr [15:47:36]wPrintStart [15:47:36]Write to MH i2c: 01 00 00 0D 2D 3A [15:47:36]Write i2c OK [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: 01 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: 01 07 00 [15:47:36]MH_I2C_Read... [15:47:36]Read from MH i2c: 01 07 00 0D 2D 00 00 00 00 00 FF 0F 4F [15:47:36]RasterBufferAndPrint [15:47:36]line Счет N : (1)673328 [15:47:36]line ИНН: 02508201610067 [15:47:36]line Контрольно-Кассовый Чек [15:47:36]line ПРОДАЖА [15:47:36]line ТРК (МРК, ГНК) : 31 [15:47:36]line Товар: 2710124500 [15:47:36]line Аи-95-К-5 [15:47:36]line 10.000 * 73.90 [15:47:36]line = 739.00 [15:47:36]line НДС 12% НСП 1% [15:47:36]line > о реализуемом товаре [15:47:36]line ИТОГО: 739.00 [15:47:36]line НСП 1% : 6.54 [15:47:36]line НДС 12% : 78.48 [15:47:36]line Наличными: 0.00 [15:47:36]line Безнал.: 739.00 [15:47:36]line Место: АЗС № 120 "Партнер Нефть" [15:47:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:47:36]line СНО: Общий режим [15:47:36]line Чек 147 20.06.2024 15:47 [15:47:36]line Смена: 354 ФФД: 1.0 [15:47:36]line ЗНМ: 0300000164 [15:47:36]line РНМ: 0000000000092785 [15:47:36]line Версия ККМ: 001 [15:47:36]line Платежная система: O! деньги [15:47:36]line ФМ: 0000000000875093 [15:47:36]line ФД: 103962 [15:47:36]line ФПД: 167967353859055 [15:47:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154737&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103962&fm=167967353859055&tin=02508201610067®Number=0000000000092785&sum=73900 [15:47:37]written 0, free lines is 4095 [15:47:37]OFD Sender: Processing packet 103962 [packets to send 17, broken 16] [15:47:37]ProducePacketName [15:47:37]name=ofd_packets/00103962 [15:47:37]OFD Sender: To server: pG, [15:47:37]CommunicateWithHost lk.salyk.kg:30040 [15:47:37]ConnectInit lk.salyk.kg [15:47:37]Connected sock=10 [15:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 23 1A 07 01 00 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 19 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 96 01 00 35 04 06 00 98 C3 F2 75 EB EF 55 1D 0A B2 AC 62 05 D1 [15:47:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F7 8F 47 00 1D D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1A 96 01 00 F4 03 04 00 9E F5 73 66 B6 04 01 00 00 EB F6 6B 95 83 DC 23 3A [15:47:37]CommunicateWithHost err = 0 [15:47:37]CheckOFDResponse [15:47:37]1017 (14) - 77093643461234 [15:47:37]1041 (16) - 0000000000875093 [15:47:37]1040 (4) - 103962 [15:47:37]1012 (4) - 20.06.2024 09:25 [15:47:37]1206 (1) - 0 [15:47:37]OFD Sender: Remove packet 103962 [15:47:37]ProducePacketName [15:47:37]name=ofd_packets/00103962 [15:47:37]NVStorageDeleteData [15:47:37]Write to MH i2c: 01 00 00 37 2D 64 [15:47:37]Write i2c OK [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: 01 [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: 01 07 00 [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: 01 07 00 37 2D 00 00 00 00 00 FB 0C 72 [15:47:37]RasterBufferAndPrint [15:47:37]line [15:47:37]line [15:47:37]line [15:47:37]line [15:47:37]line [15:47:37]written 0, free lines is 3332 [15:47:37]MH_Cut [15:47:37]Write to MH i2c: D1 01 00 3E 2D 01 3D [15:47:37]Write i2c OK [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: D1 [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: D1 01 00 [15:47:37]MH_I2C_Read... [15:47:37]Read from MH i2c: D1 01 00 3E 2D 00 3C [15:47:37]Write to MH i2c: 01 00 00 3F 2D 6C [15:47:37]Write i2c OK [15:47:37]MH_I2C_Read... [15:47:38]OFD Sender: No OFD packet to send [15:47:38]*** Cut start [15:47:38]*** Partial cut [15:47:38]*** CUTSNS_PIN = 1 [15:47:38]*** CUTSNS_PIN = 0 [15:47:38]*** Brake cut motor [15:47:38]Read from MH i2c: 01 [15:47:39]MH_I2C_Read... [15:47:39]*** Stop cut motor [15:47:39]*** Cut end [15:47:39]Read from MH i2c: 01 07 00 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: 01 07 00 3F 2D 00 00 00 00 00 FF 0F 81 [15:47:39]process_action close_receipt done [15:47:39]requested_data is exist [15:47:39]produce_requested_data [15:47:39]requested_item fm.sn is exist - process it [15:47:39]wFMCommunicate request_size=4 [15:47:39]MH_SAM_APDU [15:47:39]CAPDU: 80 11 00 00 [15:47:39]Write to MH i2c: E2 08 00 40 2D 80 11 00 00 00 00 00 00 E7 [15:47:39]Write i2c OK [15:47:39]MH_I2C_Read... [15:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:39]Read from MH i2c: E2 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 17 00 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 17 00 40 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [15:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:47:39]wFMCommunicate OK [15:47:39]requested_item fd.num is exist - process it [15:47:39]SAM_PROTO_GetFieldsCounters [15:47:39]wFMCommunicate request_size=4 [15:47:39]MH_SAM_APDU [15:47:39]CAPDU: 80 13 00 00 [15:47:39]Write to MH i2c: E2 08 00 41 2D 80 13 00 00 00 00 00 00 EA [15:47:39]Write i2c OK [15:47:39]MH_I2C_Read... [15:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:39]Read from MH i2c: E2 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 62 00 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 62 00 41 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [15:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:39]wFMCommunicate OK [15:47:39]SAM_PROTO_GetFieldsCounters done [15:47:39]requested_item shift.num is exist - process it [15:47:39]requested_item shift.opened is exist - process it [15:47:39]req_shift_opened [15:47:39]FM_GetShiftState [15:47:39]SAM_PROTO_GetShiftState [15:47:39]wFMCommunicate request_size=4 [15:47:39]MH_SAM_APDU [15:47:39]CAPDU: 80 13 01 00 [15:47:39]Write to MH i2c: E2 08 00 42 2D 80 13 01 00 00 00 00 00 EC [15:47:39]Write i2c OK [15:47:39]MH_I2C_Read... [15:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:39]Read from MH i2c: E2 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 0E 00 [15:47:39]MH_I2C_Read... [15:47:39]Read from MH i2c: E2 0E 00 42 2D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3B [15:47:39]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:47:39]wFMCommunicate OK [15:47:39]SAM_PROTO_GetShiftState done [15:47:39]FM_GetShiftState done [15:47:39]req_shift_opened done [15:47:39]requested_item shift.open_date is exist - process it [15:47:39]req_shift_open_date [15:47:39]req_shift_open_date done [15:47:39]produce_requested_data done [15:47:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103962,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:47:39]process_action_free close_receipt [15:47:39]json_value_free [15:47:39]json_value_free done [15:47:39]process_json_proto returns [15:47:39]Send response to host [15:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103962,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:47:39]free response buf [15:47:39]execute_script done [15:47:39]execute_script returns [15:47:39]free content buf [15:47:39]Sock 7.Close socket [15:47:39]Sock 7.Thread stoped [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:38]accept exits with 9 [15:48:38]New connection [15:48:38]New thread 3067207012 created [15:48:38]Thread 3067063652 joined [15:48:38]Waiting for new connection... [15:48:38] Sock 9.Parse request [15:48:38]Sock 9.Check first char [15:48:38]Sock 9.First char is OK [15:48:38]request: POST /json_proto HTTP/1.0 [15:48:38]Method: POST [15:48:38]URL: /json_proto [15:48:38]Method is POST - this is cgi request [15:48:38]url: /json_proto [15:48:38]query_string will be loaded in cgi processing [15:48:38]execute_cgi json_proto POST (null) [15:48:38]execute_cgi path=json_proto method=POST [15:48:38]POST find Content-Length [15:48:38]Host: 172.17.38.133:8080 [15:48:38]Content-Length: 648 [15:48:38]Content-Type: application/json [15:48:38] [15:48:38]POST finish read [15:48:38]Found Content-Length = 648 [15:48:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 100.000, "sum" : 7290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:38]execute_script... [15:48:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 100.000, "sum" : 7290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:38]POST & json_proto [15:48:38]process_json_proto [15:48:38]json parsed OK: [15:48:38]protocol is kg_v1.0 [15:48:38]action value=close_receipt [15:48:38]process_action close_receipt [15:48:38]cmd_close_receipt [15:48:38]MH_GetDate [15:48:38]Write to MH i2c: F0 00 00 43 2D 5F [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: F0 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: F0 09 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: F0 09 00 43 2D 00 59 4F 74 66 BD 8F 7C 64 16 [15:48:38]GetLastDocTimeStamp 1718898457 [15:48:38]current date 1718898521 [15:48:38]FM_GetShiftState [15:48:38]SAM_PROTO_GetShiftState [15:48:38]wFMCommunicate request_size=4 [15:48:38]MH_SAM_APDU [15:48:38]CAPDU: 80 13 01 00 [15:48:38]Write to MH i2c: E2 08 00 44 2D 80 13 01 00 00 00 00 00 EE [15:48:38]Write i2c OK [15:48:38]MH_I2C_Read... [15:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:38]Read from MH i2c: E2 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 0E 00 [15:48:38]MH_I2C_Read... [15:48:38]Read from MH i2c: E2 0E 00 44 2D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3D [15:48:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:48:38]wFMCommunicate OK [15:48:38]SAM_PROTO_GetShiftState done [15:48:38]FM_GetShiftState done [15:48:38]opened in 1718843124 [15:48:38]opened+sec_in_day 1718929524 [15:48:38]quantity*price = 729000 [15:48:38]sum+1 = 729001 [15:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7290.00 НСП 1% : 64.51 НДС 12% : 774.16 Наличными: 7290.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 148 20.06.2024 15:48 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103963 ФПД: 3952814352091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154841&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103963&fm=3952814352091&tin=02508201610067®Number=0000000000092785&sum=729000 [15:48:39]StoreToDocumentArchive [15:48:39]shift 354 fd 103963 [15:48:39]save to /storage/0354/doc_00103963 [15:48:39]save last doc name /storage/0354/doc_00103963 to /storage/kkm_last_doc_name [15:48:39]save OK [15:48:39]Clear old archive folders... [15:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:48:39]tlvbuf is 00823CF0 [15:48:39]SAM_PROTO_ClearQueue [15:48:39]wFMCommunicate request_size=4 [15:48:39]MH_SAM_APDU [15:48:39]CAPDU: 80 09 00 00 [15:48:39]Write to MH i2c: E2 08 00 51 2D 80 09 00 00 00 00 00 00 F0 [15:48:39]Write i2c OK [15:48:39]MH_I2C_Read... [15:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 51 2D 00 90 00 F2 [15:48:40]RAPDU: 90 00 [15:48:40]wFMCommunicate OK [15:48:40]SAM_PROTO_ClearQueue done [15:48:40]KKMCreateOFDPacket [15:48:40]OFDProtocolAddRootSTLVToBuf [15:48:40]FM_MakeSignedData [15:48:40]FM_MakeSignedData [15:48:40]SAM_PROTO_SignData [15:48:40]wFMCommunicate request_size=4 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 0D 01 02 [15:48:40]Write to MH i2c: E2 08 00 52 2D 80 0D 01 02 00 00 00 00 F8 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 52 2D 00 90 00 F3 [15:48:40]RAPDU: 90 00 [15:48:40]wFMCommunicate OK [15:48:40]wFMCommunicate request_size=255 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 59 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 96 01 00 35 04 06 00 [15:48:40]Write to MH i2c: E2 02 01 53 2D 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 59 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 96 01 00 35 04 06 00 00 00 84 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 53 2D 00 90 00 F4 [15:48:40]RAPDU: 90 00 [15:48:40]wFMCommunicate OK [15:48:40]wFMCommunicate request_size=11 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 0D 02 02 06 03 98 56 18 66 DB [15:48:40]Write to MH i2c: E2 0E 00 54 2D 80 0D 02 02 06 00 03 98 56 18 66 DB 00 00 51 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 03 00 54 2D 00 90 00 F5 [15:48:40]RAPDU: 90 00 [15:48:40]wFMCommunicate OK [15:48:40]wFMCommunicate request_size=4 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 0D 03 02 [15:48:40]Write to MH i2c: E2 08 00 55 2D 80 0D 03 02 00 00 00 00 FD [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 0B 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 0B 00 55 2D 00 6D 1D A0 AE 7A 65 5B 47 90 00 57 [15:48:40]RAPDU: 6D 1D A0 AE 7A 65 5B 47 90 00 [15:48:40]wFMCommunicate OK [15:48:40]SAM_PROTO_SignData done [15:48:40]FM_MakeSignedData done [15:48:40]CreateOFDProtocolMessage [15:48:40]wFMCommunicate request_size=4 [15:48:40]MH_SAM_APDU [15:48:40]CAPDU: 80 11 00 00 [15:48:40]Write to MH i2c: E2 08 00 56 2D 80 11 00 00 00 00 00 00 FD [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:40]Read from MH i2c: E2 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 17 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: E2 17 00 56 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [15:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:48:40]wFMCommunicate OK [15:48:40]CreateOFDProtocolMessage done [15:48:40]OFDSenderStorePacket 103963 [15:48:40]StoreOFDPacket docnum=103963 [15:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DE B5 08 01 6A 7D 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 59 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 96 01 00 35 04 06 00 03 98 56 18 66 DB 6D 1D A0 AE 7A 65 5B 47 [15:48:40]CheckFolder [15:48:40]dirname=/storage/ofd_packets [15:48:40]CheckFolder done [15:48:40]ProducePacketName [15:48:40]name=ofd_packets/00103963 [15:48:40]NVStorageSaveData ofd_packets/00103963 [15:48:40]File name is /storage/ofd_packets/00103963 [15:48:40]Write 302 bytes [15:48:40]NVStorageSaveData done [15:48:40]OFDSenderStorePacket done [15:48:40]KKMCreateOFDPacket done [15:48:40]NVStorageSaveData kkm_last_timestamp [15:48:40]File name is /storage/kkm_last_timestamp [15:48:40]Write 4 bytes [15:48:40]NVStorageSaveData done [15:48:40]OFD Sender: Processing packet 103963 [packets to send 17, broken 16] [15:48:40]ProducePacketName [15:48:40]name=ofd_packets/00103963 [15:48:40]OFD Sender: To server: pG, [15:48:40]CommunicateWithHost lk.salyk.kg:30040 [15:48:40]ConnectInit lk.salyk.kg [15:48:40]ExternCall_PrintAddStr [15:48:40]wPrintStart [15:48:40]Write to MH i2c: 01 00 00 57 2D 84 [15:48:40]Write i2c OK [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 07 00 [15:48:40]MH_I2C_Read... [15:48:40]Read from MH i2c: 01 07 00 57 2D 00 00 00 00 00 FF 0F 99 [15:48:40]RasterBufferAndPrint [15:48:40]line Счет N : (1)673330 [15:48:40]line ИНН: 02508201610067 [15:48:40]line Контрольно-Кассовый Чек [15:48:40]line ПРОДАЖА [15:48:40]line ТРК (МРК, ГНК) : 11 [15:48:40]line Товар: 2710194210 [15:48:40]line ДТ(л)-К-5 [15:48:40]line 100.000 * 72.90 [15:48:40]line = 7290.00 [15:48:40]line НДС 12% НСП 1% [15:48:40]line > о реализуемом товаре [15:48:40]line ИТОГО: 7290.00 [15:48:40]line НСП 1% : 64.51 [15:48:40]line НДС 12% : 774.16 [15:48:40]line Наличными: 7290.00 [15:48:40]line Безнал.: 0.00 [15:48:40]line Место: АЗС № 120 "Партнер Нефть" [15:48:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:48:40]line СНО: Общий режим [15:48:40]line Чек 148 20.06.2024 15:48 [15:48:40]line Смена: 354 ФФД: 1.0 [15:48:40]line ЗНМ: 0300000164 [15:48:40]line РНМ: 0000000000092785 [15:48:40]line Версия ККМ: 001 [15:48:40]line ФМ: 0000000000875093 [15:48:40]line ФД: 103963 [15:48:40]line ФПД: 3952814352091 [15:48:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154841&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103963&fm=3952814352091&tin=02508201610067®Number=0000000000092785&sum=729000 [15:48:40]Connected sock=11 [15:48:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DE B5 08 01 6A 7D 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 59 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 96 01 00 35 04 06 00 03 98 56 18 66 DB 6D 1D A0 AE 7A 65 5B 47 [15:48:40]written 0, free lines is 4095 [15:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 69 B7 47 00 EB CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1B 96 01 00 F4 03 04 00 DE F5 73 66 B6 04 01 00 00 E2 FD AE 57 F7 2C 11 13 [15:48:41]CommunicateWithHost err = 0 [15:48:41]CheckOFDResponse [15:48:41]1017 (14) - 77093643461234 [15:48:41]1041 (16) - 0000000000875093 [15:48:41]1040 (4) - 103963 [15:48:41]1012 (4) - 20.06.2024 09:26 [15:48:41]1206 (1) - 0 [15:48:41]OFD Sender: Remove packet 103963 [15:48:41]ProducePacketName [15:48:41]name=ofd_packets/00103963 [15:48:41]NVStorageDeleteData [15:48:41]Write to MH i2c: 01 00 00 7F 2D AC [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 07 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: 01 07 00 7F 2D 00 00 00 00 00 10 0D D0 [15:48:41]RasterBufferAndPrint [15:48:41]line [15:48:41]line [15:48:41]line [15:48:41]line [15:48:41]line [15:48:41]written 0, free lines is 3350 [15:48:41]MH_Cut [15:48:41]Write to MH i2c: D1 01 00 86 2D 01 85 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: D1 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: D1 01 00 [15:48:41]MH_I2C_Read... [15:48:41]Read from MH i2c: D1 01 00 86 2D 00 84 [15:48:41]Write to MH i2c: 01 00 00 87 2D B4 [15:48:41]Write i2c OK [15:48:41]MH_I2C_Read... [15:48:41]OFD Sender: No OFD packet to send [15:48:41]*** Cut start [15:48:41]*** Partial cut [15:48:41]*** CUTSNS_PIN = 1 [15:48:42]*** CUTSNS_PIN = 0 [15:48:42]*** Brake cut motor [15:48:42]Read from MH i2c: 01 [15:48:42]MH_I2C_Read... [15:48:42]*** Stop cut motor [15:48:42]*** Cut end [15:48:42]Read from MH i2c: 01 07 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: 01 07 00 87 2D 00 00 00 00 00 FF 0F C9 [15:48:42]process_action close_receipt done [15:48:42]requested_data is exist [15:48:42]produce_requested_data [15:48:42]requested_item fm.sn is exist - process it [15:48:42]wFMCommunicate request_size=4 [15:48:42]MH_SAM_APDU [15:48:42]CAPDU: 80 11 00 00 [15:48:42]Write to MH i2c: E2 08 00 88 2D 80 11 00 00 00 00 00 00 2F [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:42]Read from MH i2c: E2 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 17 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 17 00 88 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 82 [15:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:48:42]wFMCommunicate OK [15:48:42]requested_item fd.num is exist - process it [15:48:42]SAM_PROTO_GetFieldsCounters [15:48:42]wFMCommunicate request_size=4 [15:48:42]MH_SAM_APDU [15:48:42]CAPDU: 80 13 00 00 [15:48:42]Write to MH i2c: E2 08 00 89 2D 80 13 00 00 00 00 00 00 32 [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:42]Read from MH i2c: E2 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 62 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 62 00 89 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [15:48:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:42]wFMCommunicate OK [15:48:42]SAM_PROTO_GetFieldsCounters done [15:48:42]requested_item shift.num is exist - process it [15:48:42]requested_item shift.opened is exist - process it [15:48:42]req_shift_opened [15:48:42]FM_GetShiftState [15:48:42]SAM_PROTO_GetShiftState [15:48:42]wFMCommunicate request_size=4 [15:48:42]MH_SAM_APDU [15:48:42]CAPDU: 80 13 01 00 [15:48:42]Write to MH i2c: E2 08 00 8A 2D 80 13 01 00 00 00 00 00 34 [15:48:42]Write i2c OK [15:48:42]MH_I2C_Read... [15:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:42]Read from MH i2c: E2 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 0E 00 [15:48:42]MH_I2C_Read... [15:48:42]Read from MH i2c: E2 0E 00 8A 2D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 83 [15:48:42]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:48:42]wFMCommunicate OK [15:48:42]SAM_PROTO_GetShiftState done [15:48:42]FM_GetShiftState done [15:48:42]req_shift_opened done [15:48:42]requested_item shift.open_date is exist - process it [15:48:42]req_shift_open_date [15:48:42]req_shift_open_date done [15:48:42]produce_requested_data done [15:48:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103963,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:48:42]process_action_free close_receipt [15:48:42]json_value_free [15:48:42]json_value_free done [15:48:42]process_json_proto returns [15:48:42]Send response to host [15:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103963,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:48:42]free response buf [15:48:42]execute_script done [15:48:42]execute_script returns [15:48:42]free content buf [15:48:42]Sock 9.Close socket [15:48:42]Sock 9.Thread stoped [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:55]accept exits with 10 [15:49:55]New connection [15:49:55]New thread 3067063652 created [15:49:55]Thread 3067207012 joined [15:49:55]Waiting for new connection... [15:49:55] Sock 10.Parse request [15:49:55]Sock 10.Check first char [15:49:55]Sock 10.First char is OK [15:49:55]request: POST /json_proto HTTP/1.0 [15:49:55]Method: POST [15:49:55]URL: /json_proto [15:49:55]Method is POST - this is cgi request [15:49:55]url: /json_proto [15:49:55]query_string will be loaded in cgi processing [15:49:55]execute_cgi json_proto POST (null) [15:49:55]execute_cgi path=json_proto method=POST [15:49:55]POST find Content-Length [15:49:55]Host: 172.17.38.133:8080 [15:49:55]Content-Length: 682 [15:49:55]Content-Type: application/json [15:49:55] [15:49:55]POST finish read [15:49:55]Found Content-Length = 682 [15:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 37.660, "sum" : 2500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:55]execute_script... [15:49:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 37.660, "sum" : 2500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:55]POST & json_proto [15:49:55]process_json_proto [15:49:55]json parsed OK: [15:49:55]protocol is kg_v1.0 [15:49:55]action value=close_receipt [15:49:55]process_action close_receipt [15:49:55]cmd_close_receipt [15:49:55]MH_GetDate [15:49:55]Write to MH i2c: F0 00 00 8B 2D A7 [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: F0 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: F0 09 00 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: F0 09 00 8B 2D 00 A5 4F 74 66 BD 8F 7C 64 AA [15:49:55]GetLastDocTimeStamp 1718898521 [15:49:55]current date 1718898597 [15:49:55]FM_GetShiftState [15:49:55]SAM_PROTO_GetShiftState [15:49:55]wFMCommunicate request_size=4 [15:49:55]MH_SAM_APDU [15:49:55]CAPDU: 80 13 01 00 [15:49:55]Write to MH i2c: E2 08 00 8C 2D 80 13 01 00 00 00 00 00 36 [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:55]Read from MH i2c: E2 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: E2 0E 00 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: E2 0E 00 8C 2D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 85 [15:49:55]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:49:55]wFMCommunicate OK [15:49:55]SAM_PROTO_GetShiftState done [15:49:55]FM_GetShiftState done [15:49:55]opened in 1718843124 [15:49:55]opened+sec_in_day 1718929524 [15:49:55]quantity*price = 250062 [15:49:55]sum+1 = 250063 [15:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 149 20.06.2024 15:49 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103964 ФПД: 265139392269390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154957&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103964&fm=265139392269390&tin=02508201610067®Number=0000000000092785&sum=250000 [15:49:56]StoreToDocumentArchive [15:49:56]shift 354 fd 103964 [15:49:56]save to /storage/0354/doc_00103964 [15:49:56]save last doc name /storage/0354/doc_00103964 to /storage/kkm_last_doc_name [15:49:56]save OK [15:49:56]Clear old archive folders... [15:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:56]tlvbuf is B6DE6300 [15:49:56]SAM_PROTO_ClearQueue [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 09 00 00 [15:49:56]Write to MH i2c: E2 08 00 99 2D 80 09 00 00 00 00 00 00 38 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 99 2D 00 90 00 3A [15:49:56]RAPDU: 90 00 [15:49:56]wFMCommunicate OK [15:49:56]SAM_PROTO_ClearQueue done [15:49:56]KKMCreateOFDPacket [15:49:56]OFDProtocolAddRootSTLVToBuf [15:49:56]FM_MakeSignedData [15:49:56]FM_MakeSignedData [15:49:56]SAM_PROTO_SignData [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 0D 01 02 [15:49:56]Write to MH i2c: E2 08 00 9A 2D 80 0D 01 02 00 00 00 00 40 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 9A 2D 00 90 00 3B [15:49:56]RAPDU: 90 00 [15:49:56]wFMCommunicate OK [15:49:56]wFMCommunicate request_size=255 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A5 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 96 01 00 35 04 06 00 F1 [15:49:56]Write to MH i2c: E2 02 01 9B 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A5 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 96 01 00 35 04 06 00 F1 00 00 A8 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 9B 2D 00 90 00 3C [15:49:56]RAPDU: 90 00 [15:49:56]wFMCommunicate OK [15:49:56]wFMCommunicate request_size=10 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 0D 02 02 05 24 93 4A CC 4E [15:49:56]Write to MH i2c: E2 0D 00 9C 2D 80 0D 02 02 05 00 24 93 4A CC 4E 00 00 68 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 03 00 9C 2D 00 90 00 3D [15:49:56]RAPDU: 90 00 [15:49:56]wFMCommunicate OK [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 0D 03 02 [15:49:56]Write to MH i2c: E2 08 00 9D 2D 80 0D 03 02 00 00 00 00 45 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]OFD Sender: No OFD packet to send [15:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 0B 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 0B 00 9D 2D 00 7A 69 CD F7 5E 3B 10 70 90 00 06 [15:49:56]RAPDU: 7A 69 CD F7 5E 3B 10 70 90 00 [15:49:56]wFMCommunicate OK [15:49:56]SAM_PROTO_SignData done [15:49:56]FM_MakeSignedData done [15:49:56]CreateOFDProtocolMessage [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 11 00 00 [15:49:56]Write to MH i2c: E2 08 00 9E 2D 80 11 00 00 00 00 00 00 45 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 17 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 17 00 9E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 98 [15:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:49:56]wFMCommunicate OK [15:49:56]CreateOFDProtocolMessage done [15:49:56]OFDSenderStorePacket 103964 [15:49:56]StoreOFDPacket docnum=103964 [15:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DE 24 07 01 EF 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A5 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 96 01 00 35 04 06 00 F1 24 93 4A CC 4E 7A 69 CD F7 5E 3B 10 70 [15:49:56]CheckFolder [15:49:56]dirname=/storage/ofd_packets [15:49:56]CheckFolder done [15:49:56]ProducePacketName [15:49:56]name=ofd_packets/00103964 [15:49:56]NVStorageSaveData ofd_packets/00103964 [15:49:56]File name is /storage/ofd_packets/00103964 [15:49:56]Write 301 bytes [15:49:56]NVStorageSaveData done [15:49:56]OFDSenderStorePacket done [15:49:56]KKMCreateOFDPacket done [15:49:56]NVStorageSaveData kkm_last_timestamp [15:49:56]File name is /storage/kkm_last_timestamp [15:49:56]Write 4 bytes [15:49:56]NVStorageSaveData done [15:49:56]ExternCall_PrintAddStr [15:49:56]wPrintStart [15:49:56]Write to MH i2c: 01 00 00 9F 2D CC [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: 01 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: 01 07 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: 01 07 00 9F 2D 00 00 00 00 00 FF 0F E1 [15:49:56]RasterBufferAndPrint [15:49:56]line Счет N : (1)673329 [15:49:56]line ИНН: 02508201610067 [15:49:56]line Контрольно-Кассовый Чек [15:49:56]line ПРОДАЖА [15:49:56]line ТРК (МРК, ГНК) : 42 [15:49:56]line Товар: 2710124130 [15:49:56]line Аи-92-К-5 [15:49:56]line 37.660 * 66.40 [15:49:56]line = 2500.62 [15:49:56]line НДС 12% НСП 1% [15:49:56]line > о реализуемом товаре [15:49:56]line ОКРУГЛЕНИЕ: -0.62 [15:49:56]line ИТОГО: 2500.00 [15:49:56]line Внесено: 2500.00 [15:49:56]line СДАЧА: 0.00 [15:49:56]line НСП 1% : 22.13 [15:49:56]line НДС 12% : 265.55 [15:49:56]line Наличными: 2500.00 [15:49:56]line Безнал.: 0.00 [15:49:56]line Место: АЗС № 120 "Партнер Нефть" [15:49:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:49:56]line СНО: Общий режим [15:49:56]line Чек 149 20.06.2024 15:49 [15:49:56]line Смена: 354 ФФД: 1.0 [15:49:56]line ЗНМ: 0300000164 [15:49:56]line РНМ: 0000000000092785 [15:49:56]line Версия ККМ: 001 [15:49:56]line ФМ: 0000000000875093 [15:49:56]line ФД: 103964 [15:49:56]line ФПД: 265139392269390 [15:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T154957&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103964&fm=265139392269390&tin=02508201610067®Number=0000000000092785&sum=250000 [15:49:57]OFD Sender: Processing packet 103964 [packets to send 17, broken 16] [15:49:57]ProducePacketName [15:49:57]name=ofd_packets/00103964 [15:49:57]OFD Sender: To server: pG, [15:49:57]CommunicateWithHost lk.salyk.kg:30040 [15:49:57]ConnectInit lk.salyk.kg [15:49:57]written 0, free lines is 4095 [15:49:57]Connected sock=9 [15:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DE 24 07 01 EF 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 A5 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 96 01 00 35 04 06 00 F1 24 93 4A CC 4E 7A 69 CD F7 5E 3B 10 70 [15:49:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 75 75 47 00 9A DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1C 96 01 00 F4 03 04 00 2A F6 73 66 B6 04 01 00 00 9F AD C2 CF 5C 23 26 94 [15:49:57]CommunicateWithHost err = 0 [15:49:57]CheckOFDResponse [15:49:57]1017 (14) - 77093643461234 [15:49:57]1041 (16) - 0000000000875093 [15:49:57]1040 (4) - 103964 [15:49:57]1012 (4) - 20.06.2024 09:28 [15:49:57]1206 (1) - 0 [15:49:57]OFD Sender: Remove packet 103964 [15:49:57]ProducePacketName [15:49:57]name=ofd_packets/00103964 [15:49:57]NVStorageDeleteData [15:49:57]Write to MH i2c: 01 00 00 CA 2D F7 [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: 01 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: 01 07 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: 01 07 00 CA 2D 00 00 00 00 00 EA 0C F4 [15:49:57]RasterBufferAndPrint [15:49:57]line [15:49:57]line [15:49:57]line [15:49:57]line [15:49:57]line [15:49:57]written 0, free lines is 3312 [15:49:57]MH_Cut [15:49:57]Write to MH i2c: D1 01 00 D1 2D 01 D0 [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: D1 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: D1 01 00 [15:49:57]MH_I2C_Read... [15:49:57]Read from MH i2c: D1 01 00 D1 2D 00 CF [15:49:57]Write to MH i2c: 01 00 00 D2 2D FF [15:49:57]Write i2c OK [15:49:57]MH_I2C_Read... [15:49:57]OFD Sender: No OFD packet to send [15:49:58]*** Cut start [15:49:58]*** Partial cut [15:49:58]*** CUTSNS_PIN = 1 [15:49:58]*** CUTSNS_PIN = 0 [15:49:58]*** Brake cut motor [15:49:58]Read from MH i2c: 01 [15:49:58]MH_I2C_Read... [15:49:58]*** Stop cut motor [15:49:58]*** Cut end [15:49:58]Read from MH i2c: 01 07 00 [15:49:58]MH_I2C_Read... [15:49:58]Read from MH i2c: 01 07 00 D2 2D 00 00 00 00 00 FF 0F 14 [15:49:58]process_action close_receipt done [15:49:58]requested_data is exist [15:49:58]produce_requested_data [15:49:58]requested_item fm.sn is exist - process it [15:49:58]wFMCommunicate request_size=4 [15:49:58]MH_SAM_APDU [15:49:58]CAPDU: 80 11 00 00 [15:49:58]Write to MH i2c: E2 08 00 D3 2D 80 11 00 00 00 00 00 00 7A [15:49:58]Write i2c OK [15:49:58]MH_I2C_Read... [15:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:58]Read from MH i2c: E2 [15:49:58]MH_I2C_Read... [15:49:58]Read from MH i2c: E2 17 00 [15:49:58]MH_I2C_Read... [15:49:58]Read from MH i2c: E2 17 00 D3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CD [15:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:49:58]wFMCommunicate OK [15:49:58]requested_item fd.num is exist - process it [15:49:58]SAM_PROTO_GetFieldsCounters [15:49:58]wFMCommunicate request_size=4 [15:49:58]MH_SAM_APDU [15:49:58]CAPDU: 80 13 00 00 [15:49:58]Write to MH i2c: E2 08 00 D4 2D 80 13 00 00 00 00 00 00 7D [15:49:58]Write i2c OK [15:49:58]MH_I2C_Read... [15:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:59]Read from MH i2c: E2 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: E2 62 00 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: E2 62 00 D4 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [15:49:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:59]wFMCommunicate OK [15:49:59]SAM_PROTO_GetFieldsCounters done [15:49:59]requested_item shift.num is exist - process it [15:49:59]requested_item shift.opened is exist - process it [15:49:59]req_shift_opened [15:49:59]FM_GetShiftState [15:49:59]SAM_PROTO_GetShiftState [15:49:59]wFMCommunicate request_size=4 [15:49:59]MH_SAM_APDU [15:49:59]CAPDU: 80 13 01 00 [15:49:59]Write to MH i2c: E2 08 00 D5 2D 80 13 01 00 00 00 00 00 7F [15:49:59]Write i2c OK [15:49:59]MH_I2C_Read... [15:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:59]Read from MH i2c: E2 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: E2 0E 00 [15:49:59]MH_I2C_Read... [15:49:59]Read from MH i2c: E2 0E 00 D5 2D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CE [15:49:59]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:49:59]wFMCommunicate OK [15:49:59]SAM_PROTO_GetShiftState done [15:49:59]FM_GetShiftState done [15:49:59]req_shift_opened done [15:49:59]requested_item shift.open_date is exist - process it [15:49:59]req_shift_open_date [15:49:59]req_shift_open_date done [15:49:59]produce_requested_data done [15:49:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103964,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:49:59]process_action_free close_receipt [15:49:59]json_value_free [15:49:59]json_value_free done [15:49:59]process_json_proto returns [15:49:59]Send response to host [15:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103964,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:49:59]free response buf [15:49:59]execute_script done [15:49:59]execute_script returns [15:49:59]free content buf [15:49:59]Sock 10.Close socket [15:49:59]Sock 10.Thread stoped [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:53]accept exits with 7 [15:50:53]New connection [15:50:53]New thread 3067207012 created [15:50:53]Thread 3067063652 joined [15:50:53]Waiting for new connection... [15:50:53] Sock 7.Parse request [15:50:53]Sock 7.Check first char [15:50:53]Sock 7.First char is OK [15:50:53]request: POST /json_proto HTTP/1.0 [15:50:53]Method: POST [15:50:53]URL: /json_proto [15:50:53]Method is POST - this is cgi request [15:50:53]url: /json_proto [15:50:53]query_string will be loaded in cgi processing [15:50:53]execute_cgi json_proto POST (null) [15:50:53]execute_cgi path=json_proto method=POST [15:50:53]POST find Content-Length [15:50:53]Host: 172.17.38.133:8080 [15:50:53]Content-Length: 824 [15:50:53]Content-Type: application/json [15:50:53] [15:50:53]POST finish read [15:50:53]Found Content-Length = 824 [15:50:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:53]execute_script... [15:50: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)673331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:53]POST & json_proto [15:50:53]process_json_proto [15:50:53]json parsed OK: [15:50:53]protocol is kg_v1.0 [15:50:53]action value=close_receipt [15:50:53]process_action close_receipt [15:50:53]cmd_close_receipt [15:50:53]MH_GetDate [15:50:53]Write to MH i2c: F0 00 00 D6 2D F2 [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: F0 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: F0 09 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: F0 09 00 D6 2D 00 DF 4F 74 66 BD 8F 7C 64 2F [15:50:53]GetLastDocTimeStamp 1718898597 [15:50:53]current date 1718898655 [15:50:53]FM_GetShiftState [15:50:53]SAM_PROTO_GetShiftState [15:50:53]wFMCommunicate request_size=4 [15:50:53]MH_SAM_APDU [15:50:53]CAPDU: 80 13 01 00 [15:50:53]Write to MH i2c: E2 08 00 D7 2D 80 13 01 00 00 00 00 00 81 [15:50:53]Write i2c OK [15:50:53]MH_I2C_Read... [15:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:53]Read from MH i2c: E2 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 0E 00 [15:50:53]MH_I2C_Read... [15:50:53]Read from MH i2c: E2 0E 00 D7 2D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D0 [15:50:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:50:53]wFMCommunicate OK [15:50:53]SAM_PROTO_GetShiftState done [15:50:53]FM_GetShiftState done [15:50:53]opened in 1718843124 [15:50:53]opened+sec_in_day 1718929524 [15:50:53]quantity*price = 100018 [15:50:53]sum+1 = 100020 [15:50:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 150 20.06.2024 15:50 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103965 ФПД: 207929526868317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155055&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103965&fm=207929526868317&tin=02508201610067®Number=0000000000092785&sum=100019 [15:50:54]StoreToDocumentArchive [15:50:54]shift 354 fd 103965 [15:50:54]save to /storage/0354/doc_00103965 [15:50:54]save last doc name /storage/0354/doc_00103965 to /storage/kkm_last_doc_name [15:50:54]save OK [15:50:54]Clear old archive folders... [15:50:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:50:54]tlvbuf is B6F93010 [15:50:54]SAM_PROTO_ClearQueue [15:50:54]wFMCommunicate request_size=4 [15:50:54]MH_SAM_APDU [15:50:54]CAPDU: 80 09 00 00 [15:50:54]Write to MH i2c: E2 08 00 E4 2D 80 09 00 00 00 00 00 00 83 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 [15:50:54]MH_I2C_Read... [15:50:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:54]Read from MH i2c: E2 03 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 03 00 E4 2D 00 90 00 85 [15:50:54]RAPDU: 90 00 [15:50:54]wFMCommunicate OK [15:50:54]SAM_PROTO_ClearQueue done [15:50:54]KKMCreateOFDPacket [15:50:54]OFDProtocolAddRootSTLVToBuf [15:50:54]FM_MakeSignedData [15:50:54]FM_MakeSignedData [15:50:54]SAM_PROTO_SignData [15:50:54]wFMCommunicate request_size=4 [15:50:54]MH_SAM_APDU [15:50:54]CAPDU: 80 0D 01 02 [15:50:54]Write to MH i2c: E2 08 00 E5 2D 80 0D 01 02 00 00 00 00 8B [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 [15:50:54]MH_I2C_Read... [15:50:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:54]Read from MH i2c: E2 03 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 03 00 E5 2D 00 90 00 86 [15:50:54]RAPDU: 90 00 [15:50:54]wFMCommunicate OK [15:50:54]wFMCommunicate request_size=255 [15:50:54]MH_SAM_APDU [15:50:54]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 DF 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 96 01 00 35 04 06 00 [15:50:54]Write to MH i2c: E2 02 01 E6 2D 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 DF 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 96 01 00 35 04 06 00 00 00 BA [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 [15:50:54]MH_I2C_Read... [15:50:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:54]Read from MH i2c: E2 03 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 03 00 E6 2D 00 90 00 87 [15:50:54]RAPDU: 90 00 [15:50:54]wFMCommunicate OK [15:50:54]wFMCommunicate request_size=11 [15:50:54]MH_SAM_APDU [15:50:54]CAPDU: 80 0D 02 02 06 BD 1C 5D 96 59 5D [15:50:54]Write to MH i2c: E2 0E 00 E7 2D 80 0D 02 02 06 00 BD 1C 5D 96 59 5D 00 00 1C [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:54]Read from MH i2c: E2 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 03 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 03 00 E7 2D 00 90 00 88 [15:50:54]RAPDU: 90 00 [15:50:54]wFMCommunicate OK [15:50:54]wFMCommunicate request_size=4 [15:50:54]MH_SAM_APDU [15:50:54]CAPDU: 80 0D 03 02 [15:50:54]Write to MH i2c: E2 08 00 E8 2D 80 0D 03 02 00 00 00 00 90 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:54]Read from MH i2c: E2 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 0B 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 0B 00 E8 2D 00 74 A0 4F 26 50 12 79 95 90 00 8A [15:50:54]RAPDU: 74 A0 4F 26 50 12 79 95 90 00 [15:50:54]wFMCommunicate OK [15:50:54]SAM_PROTO_SignData done [15:50:54]FM_MakeSignedData done [15:50:54]CreateOFDProtocolMessage [15:50:54]wFMCommunicate request_size=4 [15:50:54]MH_SAM_APDU [15:50:54]CAPDU: 80 11 00 00 [15:50:54]Write to MH i2c: E2 08 00 E9 2D 80 11 00 00 00 00 00 00 90 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:54]Read from MH i2c: E2 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 17 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: E2 17 00 E9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E3 [15:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:50:54]wFMCommunicate OK [15:50:54]CreateOFDProtocolMessage done [15:50:54]OFDSenderStorePacket 103965 [15:50:54]StoreOFDPacket docnum=103965 [15:50:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 36 01 08 01 AC D6 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 DF 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 96 01 00 35 04 06 00 BD 1C 5D 96 59 5D 74 A0 4F 26 50 12 79 95 [15:50:54]CheckFolder [15:50:54]dirname=/storage/ofd_packets [15:50:54]CheckFolder done [15:50:54]ProducePacketName [15:50:54]name=ofd_packets/00103965 [15:50:54]NVStorageSaveData ofd_packets/00103965 [15:50:54]File name is /storage/ofd_packets/00103965 [15:50:54]Write 302 bytes [15:50:54]NVStorageSaveData done [15:50:54]OFDSenderStorePacket done [15:50:54]KKMCreateOFDPacket done [15:50:54]NVStorageSaveData kkm_last_timestamp [15:50:54]File name is /storage/kkm_last_timestamp [15:50:54]Write 4 bytes [15:50:54]NVStorageSaveData done [15:50:54]ExternCall_PrintAddStr [15:50:54]wPrintStart [15:50:54]Write to MH i2c: 01 00 00 EA 2D 17 [15:50:54]Write i2c OK [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: 01 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: 01 07 00 [15:50:54]MH_I2C_Read... [15:50:54]Read from MH i2c: 01 07 00 EA 2D 00 00 00 00 00 FF 0F 2C [15:50:54]RasterBufferAndPrint [15:50:54]line Счет N : (1)673331 [15:50:54]line ИНН: 02508201610067 [15:50:54]line Контрольно-Кассовый Чек [15:50:54]line ПРОДАЖА [15:50:54]line ТРК (МРК, ГНК) : 21 [15:50:54]line Товар: 2710194210 [15:50:54]line ДТ(л)-К-5 [15:50:54]line 13.720 * 72.90 [15:50:54]line = 1000.19 [15:50:54]line НДС 12% НСП 1% [15:50:54]line > о реализуемом товаре [15:50:54]line ИТОГО: 1000.19 [15:50:54]line НСП 1% : 8.85 [15:50:54]line НДС 12% : 106.21 [15:50:54]line Наличными: 0.00 [15:50:54]line Безнал.: 1000.19 [15:50:54]line Место: АЗС № 120 "Партнер Нефть" [15:50:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:50:54]line СНО: Общий режим [15:50:54]line Чек 150 20.06.2024 15:50 [15:50:54]line Смена: 354 ФФД: 1.0 [15:50:54]line ЗНМ: 0300000164 [15:50:54]line РНМ: 0000000000092785 [15:50:54]line Версия ККМ: 001 [15:50:54]line Платежная система: Бакай Банк [15:50:54]line ФМ: 0000000000875093 [15:50:54]line ФД: 103965 [15:50:54]line ФПД: 207929526868317 [15:50:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155055&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103965&fm=207929526868317&tin=02508201610067®Number=0000000000092785&sum=100019 [15:50:54]written 0, free lines is 4095 [15:50:54]OFD Sender: Processing packet 103965 [packets to send 17, broken 16] [15:50:54]ProducePacketName [15:50:54]name=ofd_packets/00103965 [15:50:54]OFD Sender: To server: pG, [15:50:54]CommunicateWithHost lk.salyk.kg:30040 [15:50:54]ConnectInit lk.salyk.kg [15:50:55]Connected sock=10 [15:50:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 36 01 08 01 AC D6 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 DF 4F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 96 01 00 35 04 06 00 BD 1C 5D 96 59 5D 74 A0 4F 26 50 12 79 95 [15:50:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 24 82 47 00 3B 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1D 96 01 00 F4 03 04 00 64 F6 73 66 B6 04 01 00 00 D0 CD 63 2B EC F7 34 A4 [15:50:55]CommunicateWithHost err = 0 [15:50:55]CheckOFDResponse [15:50:55]1017 (14) - 77093643461234 [15:50:55]1041 (16) - 0000000000875093 [15:50:55]1040 (4) - 103965 [15:50:55]1012 (4) - 20.06.2024 09:29 [15:50:55]1206 (1) - 0 [15:50:55]OFD Sender: Remove packet 103965 [15:50:55]ProducePacketName [15:50:55]name=ofd_packets/00103965 [15:50:55]NVStorageDeleteData [15:50:55]Write to MH i2c: 01 00 00 14 2E 42 [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: 01 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: 01 07 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: 01 07 00 14 2E 00 00 00 00 00 01 0D 57 [15:50:55]RasterBufferAndPrint [15:50:55]line [15:50:55]line [15:50:55]line [15:50:55]line [15:50:55]line [15:50:55]written 0, free lines is 3335 [15:50:55]MH_Cut [15:50:55]Write to MH i2c: D1 01 00 1B 2E 01 1B [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: D1 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: D1 01 00 [15:50:55]MH_I2C_Read... [15:50:55]Read from MH i2c: D1 01 00 1B 2E 00 1A [15:50:55]Write to MH i2c: 01 00 00 1C 2E 4A [15:50:55]Write i2c OK [15:50:55]MH_I2C_Read... [15:50:55]OFD Sender: No OFD packet to send [15:50:56]*** Cut start [15:50:56]*** Partial cut [15:50:56]*** CUTSNS_PIN = 1 [15:50:56]*** CUTSNS_PIN = 0 [15:50:56]*** Brake cut motor [15:50:56]Read from MH i2c: 01 [15:50:56]MH_I2C_Read... [15:50:56]*** Stop cut motor [15:50:56]*** Cut end [15:50:56]Read from MH i2c: 01 07 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: 01 07 00 1C 2E 00 00 00 00 00 FF 0F 5F [15:50:56]process_action close_receipt done [15:50:56]requested_data is exist [15:50:56]produce_requested_data [15:50:56]requested_item fm.sn is exist - process it [15:50:56]wFMCommunicate request_size=4 [15:50:56]MH_SAM_APDU [15:50:56]CAPDU: 80 11 00 00 [15:50:56]Write to MH i2c: E2 08 00 1D 2E 80 11 00 00 00 00 00 00 C5 [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:56]Read from MH i2c: E2 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 17 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 17 00 1D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 18 [15:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:50:56]wFMCommunicate OK [15:50:56]requested_item fd.num is exist - process it [15:50:56]SAM_PROTO_GetFieldsCounters [15:50:56]wFMCommunicate request_size=4 [15:50:56]MH_SAM_APDU [15:50:56]CAPDU: 80 13 00 00 [15:50:56]Write to MH i2c: E2 08 00 1E 2E 80 13 00 00 00 00 00 00 C8 [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:56]Read from MH i2c: E2 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 62 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 62 00 1E 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [15:50:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:56]wFMCommunicate OK [15:50:56]SAM_PROTO_GetFieldsCounters done [15:50:56]requested_item shift.num is exist - process it [15:50:56]requested_item shift.opened is exist - process it [15:50:56]req_shift_opened [15:50:56]FM_GetShiftState [15:50:56]SAM_PROTO_GetShiftState [15:50:56]wFMCommunicate request_size=4 [15:50:56]MH_SAM_APDU [15:50:56]CAPDU: 80 13 01 00 [15:50:56]Write to MH i2c: E2 08 00 1F 2E 80 13 01 00 00 00 00 00 CA [15:50:56]Write i2c OK [15:50:56]MH_I2C_Read... [15:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:56]Read from MH i2c: E2 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 0E 00 [15:50:56]MH_I2C_Read... [15:50:56]Read from MH i2c: E2 0E 00 1F 2E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 19 [15:50:56]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:50:56]wFMCommunicate OK [15:50:56]SAM_PROTO_GetShiftState done [15:50:56]FM_GetShiftState done [15:50:56]req_shift_opened done [15:50:56]requested_item shift.open_date is exist - process it [15:50:56]req_shift_open_date [15:50:56]req_shift_open_date done [15:50:56]produce_requested_data done [15:50:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103965,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:50:56]process_action_free close_receipt [15:50:56]json_value_free [15:50:56]json_value_free done [15:50:56]process_json_proto returns [15:50:56]Send response to host [15:50:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103965,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:50:56]free response buf [15:50:56]execute_script done [15:50:56]execute_script returns [15:50:56]free content buf [15:50:56]Sock 7.Close socket [15:50:56]Sock 7.Thread stoped [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:29]accept exits with 9 [15:58:29]New connection [15:58:29]New thread 3067063652 created [15:58:29]Thread 3067207012 joined [15:58:29]Waiting for new connection... [15:58:29] Sock 9.Parse request [15:58:29]Sock 9.Check first char [15:58:29]Sock 9.First char is OK [15:58:29]request: POST /json_proto HTTP/1.0 [15:58:29]Method: POST [15:58:29]URL: /json_proto [15:58:29]Method is POST - this is cgi request [15:58:29]url: /json_proto [15:58:29]query_string will be loaded in cgi processing [15:58:29]execute_cgi json_proto POST (null) [15:58:29]execute_cgi path=json_proto method=POST [15:58:29]POST find Content-Length [15:58:29]Host: 172.17.38.133:8080 [15:58:29]Content-Length: 687 [15:58:29]Content-Type: application/json [15:58:29] [15:58:29]POST finish read [15:58:29]Found Content-Length = 687 [15:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:29]execute_script... [15:58: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)673332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:29]POST & json_proto [15:58:29]process_json_proto [15:58:29]json parsed OK: [15:58:29]protocol is kg_v1.0 [15:58:29]action value=close_receipt [15:58:29]process_action close_receipt [15:58:29]cmd_close_receipt [15:58:29]MH_GetDate [15:58:29]Write to MH i2c: F0 00 00 20 2E 3D [15:58:29]Write i2c OK [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: F0 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: F0 09 00 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: F0 09 00 20 2E 00 A7 51 74 66 BD 8F 7C 64 44 [15:58:29]GetLastDocTimeStamp 1718898655 [15:58:29]current date 1718899111 [15:58:29]FM_GetShiftState [15:58:29]SAM_PROTO_GetShiftState [15:58:29]wFMCommunicate request_size=4 [15:58:29]MH_SAM_APDU [15:58:29]CAPDU: 80 13 01 00 [15:58:29]Write to MH i2c: E2 08 00 21 2E 80 13 01 00 00 00 00 00 CC [15:58:29]Write i2c OK [15:58:29]MH_I2C_Read... [15:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:29]Read from MH i2c: E2 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 0E 00 [15:58:29]MH_I2C_Read... [15:58:29]Read from MH i2c: E2 0E 00 21 2E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [15:58:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:58:29]wFMCommunicate OK [15:58:29]SAM_PROTO_GetShiftState done [15:58:29]FM_GetShiftState done [15:58:29]opened in 1718843124 [15:58:29]opened+sec_in_day 1718929524 [15:58:29]quantity*price = 200037 [15:58:29]sum+1 = 200039 [15:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 151 20.06.2024 15:58 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103966 ФПД: 96191521564788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155831&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103966&fm=96191521564788&tin=02508201610067®Number=0000000000092785&sum=200000 [15:58:30]StoreToDocumentArchive [15:58:30]shift 354 fd 103966 [15:58:30]save to /storage/0354/doc_00103966 [15:58:30]save last doc name /storage/0354/doc_00103966 to /storage/kkm_last_doc_name [15:58:30]save OK [15:58:30]Clear old archive folders... [15:58:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:58:30]tlvbuf is B6F93010 [15:58:30]SAM_PROTO_ClearQueue [15:58:30]wFMCommunicate request_size=4 [15:58:30]MH_SAM_APDU [15:58:30]CAPDU: 80 09 00 00 [15:58:30]Write to MH i2c: E2 08 00 2E 2E 80 09 00 00 00 00 00 00 CE [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:30]Read from MH i2c: E2 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 03 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 03 00 2E 2E 00 90 00 D0 [15:58:30]RAPDU: 90 00 [15:58:30]wFMCommunicate OK [15:58:30]SAM_PROTO_ClearQueue done [15:58:30]KKMCreateOFDPacket [15:58:30]OFDProtocolAddRootSTLVToBuf [15:58:30]FM_MakeSignedData [15:58:30]FM_MakeSignedData [15:58:30]SAM_PROTO_SignData [15:58:30]wFMCommunicate request_size=4 [15:58:30]MH_SAM_APDU [15:58:30]CAPDU: 80 0D 01 02 [15:58:30]Write to MH i2c: E2 08 00 2F 2E 80 0D 01 02 00 00 00 00 D6 [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:30]Read from MH i2c: E2 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 03 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 03 00 2F 2E 00 90 00 D1 [15:58:30]RAPDU: 90 00 [15:58:30]wFMCommunicate OK [15:58:30]wFMCommunicate request_size=255 [15:58:30]MH_SAM_APDU [15:58:30]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A7 51 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 96 01 00 35 04 06 00 [15:58:30]Write to MH i2c: E2 02 01 30 2E 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A7 51 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 96 01 00 35 04 06 00 00 00 26 [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:30]Read from MH i2c: E2 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 03 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 03 00 30 2E 00 90 00 D2 [15:58:30]RAPDU: 90 00 [15:58:30]wFMCommunicate OK [15:58:30]wFMCommunicate request_size=11 [15:58:30]MH_SAM_APDU [15:58:30]CAPDU: 80 0D 02 02 06 57 7C 55 79 28 74 [15:58:30]Write to MH i2c: E2 0E 00 31 2E 80 0D 02 02 06 00 57 7C 55 79 28 74 00 00 22 [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:30]Read from MH i2c: E2 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 03 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 03 00 31 2E 00 90 00 D3 [15:58:30]RAPDU: 90 00 [15:58:30]wFMCommunicate OK [15:58:30]wFMCommunicate request_size=4 [15:58:30]MH_SAM_APDU [15:58:30]CAPDU: 80 0D 03 02 [15:58:30]Write to MH i2c: E2 08 00 32 2E 80 0D 03 02 00 00 00 00 DB [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:30]Read from MH i2c: E2 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 0B 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 0B 00 32 2E 00 E5 D3 BF 7D 40 14 17 33 90 00 6E [15:58:30]RAPDU: E5 D3 BF 7D 40 14 17 33 90 00 [15:58:30]wFMCommunicate OK [15:58:30]SAM_PROTO_SignData done [15:58:30]FM_MakeSignedData done [15:58:30]CreateOFDProtocolMessage [15:58:30]wFMCommunicate request_size=4 [15:58:30]MH_SAM_APDU [15:58:30]CAPDU: 80 11 00 00 [15:58:30]Write to MH i2c: E2 08 00 33 2E 80 11 00 00 00 00 00 00 DB [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:30]Read from MH i2c: E2 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 17 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: E2 17 00 33 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [15:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:58:30]wFMCommunicate OK [15:58:30]CreateOFDProtocolMessage done [15:58:30]OFDSenderStorePacket 103966 [15:58:30]StoreOFDPacket docnum=103966 [15:58:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 71 85 08 01 E5 89 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A7 51 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 96 01 00 35 04 06 00 57 7C 55 79 28 74 E5 D3 BF 7D 40 14 17 33 [15:58:30]CheckFolder [15:58:30]dirname=/storage/ofd_packets [15:58:30]CheckFolder done [15:58:30]ProducePacketName [15:58:30]name=ofd_packets/00103966 [15:58:30]NVStorageSaveData ofd_packets/00103966 [15:58:30]File name is /storage/ofd_packets/00103966 [15:58:30]Write 302 bytes [15:58:30]NVStorageSaveData done [15:58:30]OFDSenderStorePacket done [15:58:30]KKMCreateOFDPacket done [15:58:30]NVStorageSaveData kkm_last_timestamp [15:58:30]File name is /storage/kkm_last_timestamp [15:58:30]Write 4 bytes [15:58:30]NVStorageSaveData done [15:58:30]ExternCall_PrintAddStr [15:58:30]wPrintStart [15:58:30]Write to MH i2c: 01 00 00 34 2E 62 [15:58:30]Write i2c OK [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: 01 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: 01 07 00 [15:58:30]MH_I2C_Read... [15:58:30]Read from MH i2c: 01 07 00 34 2E 00 00 00 00 00 FF 0F 77 [15:58:30]RasterBufferAndPrint [15:58:30]line Счет N : (1)673332 [15:58:30]line ИНН: 02508201610067 [15:58:30]line Контрольно-Кассовый Чек [15:58:30]line ПРОДАЖА [15:58:30]line ТРК (МРК, ГНК) : 21 [15:58:30]line Товар: 2710194210 [15:58:30]line ДТ(л)-К-5 [15:58:30]line 27.440 * 72.90 [15:58:30]line = 2000.38 [15:58:30]line НДС 12% НСП 1% [15:58:30]line > о реализуемом товаре [15:58:30]line ОКРУГЛЕНИЕ: -0.38 [15:58:30]line ИТОГО: 2000.00 [15:58:30]line Внесено: 2000.00 [15:58:30]line СДАЧА: 0.00 [15:58:30]line НСП 1% : 17.70 [15:58:30]line НДС 12% : 212.43 [15:58:30]line Наличными: 2000.00 [15:58:30]line Безнал.: 0.00 [15:58:30]line Место: АЗС № 120 "Партнер Нефть" [15:58:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [15:58:30]line СНО: Общий режим [15:58:30]line Чек 151 20.06.2024 15:58 [15:58:30]line Смена: 354 ФФД: 1.0 [15:58:30]line ЗНМ: 0300000164 [15:58:30]line РНМ: 0000000000092785 [15:58:30]line Версия ККМ: 001 [15:58:30]line ФМ: 0000000000875093 [15:58:30]line ФД: 103966 [15:58:30]line ФПД: 96191521564788 [15:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T155831&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103966&fm=96191521564788&tin=02508201610067®Number=0000000000092785&sum=200000 [15:58:31]OFD Sender: Processing packet 103966 [packets to send 17, broken 16] [15:58:31]ProducePacketName [15:58:31]name=ofd_packets/00103966 [15:58:31]OFD Sender: To server: pG, [15:58:31]CommunicateWithHost lk.salyk.kg:30040 [15:58:31]ConnectInit lk.salyk.kg [15:58:31]written 0, free lines is 4095 [15:58:31]Write to MH i2c: 01 00 00 5F 2E 8D [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: 01 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: 01 07 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: 01 07 00 5F 2E 00 00 00 00 00 DD 0C 7D [15:58:31]RasterBufferAndPrint [15:58:31]line [15:58:31]line [15:58:31]line [15:58:31]line [15:58:31]line [15:58:31]written 0, free lines is 3299 [15:58:31]MH_Cut [15:58:31]Write to MH i2c: D1 01 00 66 2E 01 66 [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: D1 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: D1 01 00 [15:58:31]MH_I2C_Read... [15:58:31]Read from MH i2c: D1 01 00 66 2E 00 65 [15:58:31]Write to MH i2c: 01 00 00 67 2E 95 [15:58:31]Write i2c OK [15:58:31]MH_I2C_Read... [15:58:32]*** Cut start [15:58:32]*** Partial cut [15:58:32]*** CUTSNS_PIN = 1 [15:58:32]*** CUTSNS_PIN = 0 [15:58:32]*** Brake cut motor [15:58:33]Read from MH i2c: 01 [15:58:33]MH_I2C_Read... [15:58:33]*** Stop cut motor [15:58:33]*** Cut end [15:58:33]Read from MH i2c: 01 07 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: 01 07 00 67 2E 00 00 00 00 00 FF 0F AA [15:58:33]process_action close_receipt done [15:58:33]requested_data is exist [15:58:33]produce_requested_data [15:58:33]requested_item fm.sn is exist - process it [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 11 00 00 [15:58:33]Write to MH i2c: E2 08 00 68 2E 80 11 00 00 00 00 00 00 10 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 17 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 17 00 68 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [15:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:58:33]wFMCommunicate OK [15:58:33]requested_item fd.num is exist - process it [15:58:33]SAM_PROTO_GetFieldsCounters [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 13 00 00 [15:58:33]Write to MH i2c: E2 08 00 69 2E 80 13 00 00 00 00 00 00 13 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 62 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 62 00 69 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [15:58:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:33]wFMCommunicate OK [15:58:33]SAM_PROTO_GetFieldsCounters done [15:58:33]requested_item shift.num is exist - process it [15:58:33]requested_item shift.opened is exist - process it [15:58:33]req_shift_opened [15:58:33]FM_GetShiftState [15:58:33]SAM_PROTO_GetShiftState [15:58:33]wFMCommunicate request_size=4 [15:58:33]MH_SAM_APDU [15:58:33]CAPDU: 80 13 01 00 [15:58:33]Write to MH i2c: E2 08 00 6A 2E 80 13 01 00 00 00 00 00 15 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:33]Read from MH i2c: E2 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 0E 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: E2 0E 00 6A 2E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 64 [15:58:33]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:58:33]wFMCommunicate OK [15:58:33]SAM_PROTO_GetShiftState done [15:58:33]FM_GetShiftState done [15:58:33]req_shift_opened done [15:58:33]requested_item shift.open_date is exist - process it [15:58:33]req_shift_open_date [15:58:33]req_shift_open_date done [15:58:33]produce_requested_data done [15:58:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103966,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:58:33]process_action_free close_receipt [15:58:33]json_value_free [15:58:33]json_value_free done [15:58:33]process_json_proto returns [15:58:33]Send response to host [15:58:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103966,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:58:33]free response buf [15:58:33]execute_script done [15:58:33]execute_script returns [15:58:33]free content buf [15:58:33]Sock 9.Close socket [15:58:33]Sock 9.Thread stoped [15:58:33]accept exits with 7 [15:58:33]New connection [15:58:33]New thread 3067207012 created [15:58:33]Thread 3067063652 joined [15:58:33]Waiting for new connection... [15:58:33] Sock 7.Parse request [15:58:33]Sock 7.Check first char [15:58:33]Sock 7.First char is OK [15:58:33]request: POST /json_proto HTTP/1.0 [15:58:33]Method: POST [15:58:33]URL: /json_proto [15:58:33]Method is POST - this is cgi request [15:58:33]url: /json_proto [15:58:33]query_string will be loaded in cgi processing [15:58:33]execute_cgi json_proto POST (null) [15:58:33]execute_cgi path=json_proto method=POST [15:58:33]POST find Content-Length [15:58:33]Host: 172.17.38.133:8080 [15:58:33]Content-Length: 1206 [15:58:33]Content-Type: application/json [15:58:33] [15:58:33]POST finish read [15:58:33]Found Content-Length = 1206 [15:58: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673333\u000A20.06.2024 15:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 12.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 886.80\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\u000A32170\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:33]execute_script... [15:58: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673333\u000A20.06.2024 15:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 12.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 886.80\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\u000A32170\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:33]POST & json_proto [15:58:33]process_json_proto [15:58:33]json parsed OK: [15:58:33]protocol is kg_v1.0 [15:58:33]action value=print_text [15:58:33]process_action print_text [15:58:33]cmd_print_text [15:58:33]ExternCall_PrintAddStr [15:58:33]wPrintStart [15:58:33]Write to MH i2c: 01 00 00 6B 2E 99 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: 01 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: 01 07 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: 01 07 00 6B 2E 00 00 00 00 00 FF 0F AE [15:58:33]RasterBufferAndPrint [15:58:33]line *****ТОВАРНЫЙ ЧЕК***** [15:58:33]line АЗС 120 [15:58:33]line Партнер нефть [15:58:33]line 02508201610067 [15:58:33]line Кассир : Дуйшенбиев А. [15:58:33]line Счет N : (1)673333 [15:58:33]line 20.06.2024 15:35 [15:58:33]line ПРОДАЖА [15:58:33]line ТРК (МРК, ГНК): 31 [15:58:33]line Вид ГСМ : 2710124500 [15:58:33]line Аи-95-К-5 [15:58:33]line 12.000 x 73.90 [15:58:33]line ИТОГ: 886.80 [15:58:33]line Тип оплаты: Талоны: Топливная Карта [15:58:33]line 32170 [15:58:33]line ______________________ [15:58:33]line (подпись) [15:58:33]written 0, free lines is 4095 [15:58:33]Write to MH i2c: 01 00 00 7F 2E AD [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: 01 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: 01 07 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: 01 07 00 7F 2E 00 00 00 00 00 11 0E D3 [15:58:33]RasterBufferAndPrint [15:58:33]line [15:58:33]line [15:58:33]line [15:58:33]line [15:58:33]line [15:58:33]written 0, free lines is 3604 [15:58:33]MH_Cut [15:58:33]Write to MH i2c: D1 01 00 86 2E 01 86 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: D1 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: D1 01 00 [15:58:33]MH_I2C_Read... [15:58:33]Read from MH i2c: D1 01 00 86 2E 00 85 [15:58:33]Write to MH i2c: 01 00 00 87 2E B5 [15:58:33]Write i2c OK [15:58:33]MH_I2C_Read... [15:58:34]*** Cut start [15:58:34]*** Partial cut [15:58:34]*** CUTSNS_PIN = 1 [15:58:34]*** CUTSNS_PIN = 0 [15:58:34]*** Brake cut motor [15:58:34]Read from MH i2c: 01 [15:58:35]MH_I2C_Read... [15:58:35]*** Stop cut motor [15:58:35]*** Cut end [15:58:35]Read from MH i2c: 01 07 00 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: 01 07 00 87 2E 00 00 00 00 00 FF 0F CA [15:58:35]process_action print_text done [15:58:35]requested_data is exist [15:58:35]produce_requested_data [15:58:35]requested_item fm.sn is exist - process it [15:58:35]wFMCommunicate request_size=4 [15:58:35]MH_SAM_APDU [15:58:35]CAPDU: 80 11 00 00 [15:58:35]Write to MH i2c: E2 08 00 88 2E 80 11 00 00 00 00 00 00 30 [15:58:35]Write i2c OK [15:58:35]MH_I2C_Read... [15:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:35]Read from MH i2c: E2 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: E2 17 00 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: E2 17 00 88 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 83 [15:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [15:58:35]wFMCommunicate OK [15:58:35]requested_item fd.num is exist - process it [15:58:35]SAM_PROTO_GetFieldsCounters [15:58:35]wFMCommunicate request_size=4 [15:58:35]MH_SAM_APDU [15:58:35]CAPDU: 80 13 00 00 [15:58:35]Write to MH i2c: E2 08 00 89 2E 80 13 00 00 00 00 00 00 33 [15:58:35]Write i2c OK [15:58:35]MH_I2C_Read... [15:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:35]Read from MH i2c: E2 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: E2 62 00 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: E2 62 00 89 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [15:58:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:35]wFMCommunicate OK [15:58:35]SAM_PROTO_GetFieldsCounters done [15:58:35]requested_item shift.num is exist - process it [15:58:35]requested_item shift.opened is exist - process it [15:58:35]req_shift_opened [15:58:35]FM_GetShiftState [15:58:35]SAM_PROTO_GetShiftState [15:58:35]wFMCommunicate request_size=4 [15:58:35]MH_SAM_APDU [15:58:35]CAPDU: 80 13 01 00 [15:58:35]Write to MH i2c: E2 08 00 8A 2E 80 13 01 00 00 00 00 00 35 [15:58:35]Write i2c OK [15:58:35]MH_I2C_Read... [15:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:35]Read from MH i2c: E2 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: E2 0E 00 [15:58:35]MH_I2C_Read... [15:58:35]Read from MH i2c: E2 0E 00 8A 2E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 84 [15:58:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [15:58:35]wFMCommunicate OK [15:58:35]SAM_PROTO_GetShiftState done [15:58:35]FM_GetShiftState done [15:58:35]req_shift_opened done [15:58:35]requested_item shift.open_date is exist - process it [15:58:35]req_shift_open_date [15:58:35]req_shift_open_date done [15:58:35]produce_requested_data done [15:58:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103966,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [15:58:35]process_action_free print_text [15:58:35]json_value_free [15:58:35]json_value_free done [15:58:35]process_json_proto returns [15:58:35]Send response to host [15:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103966,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [15:58:35]free response buf [15:58:35]execute_script done [15:58:35]execute_script returns [15:58:35]free content buf [15:58:35]Sock 7.Close socket [15:58:35]Sock 7.Thread stoped [16:00:43]ConnectInit Can't connect to host [16:00:43]CommunicateWithHost connect error [16:00:43]CommunicateWithHost err = -1 [16:00:43]OFD Sender: Server communicate error [16:00:48]OFD Sender: Processing packet 103966 [packets to send 17, broken 16] [16:00:48]ProducePacketName [16:00:48]name=ofd_packets/00103966 [16:00:48]OFD Sender: To server: pG, [16:00:48]CommunicateWithHost lk.salyk.kg:30040 [16:00:48]ConnectInit lk.salyk.kg [16:00:48]Connected sock=7 [16:00:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 71 85 08 01 E5 89 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 A7 51 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 96 01 00 35 04 06 00 57 7C 55 79 28 74 E5 D3 BF 7D 40 14 17 33 [16:00:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 92 E3 47 00 AC 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1E 96 01 00 F4 03 04 00 B6 F8 73 66 B6 04 01 00 00 39 C3 5B 46 F6 47 A1 0F [16:00:49]CommunicateWithHost err = 0 [16:00:49]CheckOFDResponse [16:00:49]1017 (14) - 77093643461234 [16:00:49]1041 (16) - 0000000000875093 [16:00:49]1040 (4) - 103966 [16:00:49]1012 (4) - 20.06.2024 09:39 [16:00:49]1206 (1) - 0 [16:00:49]OFD Sender: Remove packet 103966 [16:00:49]ProducePacketName [16:00:49]name=ofd_packets/00103966 [16:00:49]NVStorageDeleteData [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:51]accept exits with 9 [16:02:51]New connection [16:02:51]New thread 3067063652 created [16:02:51]Thread 3067207012 joined [16:02:51]Waiting for new connection... [16:02:51] Sock 9.Parse request [16:02:51]Sock 9.Check first char [16:02:51]Sock 9.First char is OK [16:02:51]request: POST /json_proto HTTP/1.0 [16:02:51]Method: POST [16:02:51]URL: /json_proto [16:02:51]Method is POST - this is cgi request [16:02:51]url: /json_proto [16:02:51]query_string will be loaded in cgi processing [16:02:51]execute_cgi json_proto POST (null) [16:02:51]execute_cgi path=json_proto method=POST [16:02:51]POST find Content-Length [16:02:51]Host: 172.17.38.133:8080 [16:02:51]Content-Length: 677 [16:02:51]Content-Type: application/json [16:02:51] [16:02:51]POST finish read [16:02:51]Found Content-Length = 677 [16:02:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:51]execute_script... [16:02: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)673335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:51]POST & json_proto [16:02:51]process_json_proto [16:02:51]json parsed OK: [16:02:51]protocol is kg_v1.0 [16:02:51]action value=close_receipt [16:02:51]process_action close_receipt [16:02:51]cmd_close_receipt [16:02:51]MH_GetDate [16:02:51]Write to MH i2c: F0 00 00 8B 2E A8 [16:02:51]Write i2c OK [16:02:51]MH_I2C_Read... [16:02:51]Read from MH i2c: F0 [16:02:51]MH_I2C_Read... [16:02:51]Read from MH i2c: F0 09 00 [16:02:51]MH_I2C_Read... [16:02:51]Read from MH i2c: F0 09 00 8B 2E 00 AE 52 74 66 BD 8F 7C 64 B7 [16:02:51]GetLastDocTimeStamp 1718899111 [16:02:51]current date 1718899374 [16:02:51]FM_GetShiftState [16:02:51]SAM_PROTO_GetShiftState [16:02:51]wFMCommunicate request_size=4 [16:02:51]MH_SAM_APDU [16:02:51]CAPDU: 80 13 01 00 [16:02:51]Write to MH i2c: E2 08 00 8C 2E 80 13 01 00 00 00 00 00 37 [16:02:51]Write i2c OK [16:02:51]MH_I2C_Read... [16:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:51]Read from MH i2c: E2 [16:02:51]MH_I2C_Read... [16:02:51]Read from MH i2c: E2 0E 00 [16:02:51]MH_I2C_Read... [16:02:51]Read from MH i2c: E2 0E 00 8C 2E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 86 [16:02:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:02:51]wFMCommunicate OK [16:02:51]SAM_PROTO_GetShiftState done [16:02:51]FM_GetShiftState done [16:02:51]opened in 1718843124 [16:02:51]opened+sec_in_day 1718929524 [16:02:51]quantity*price = 20052 [16:02:51]sum+1 = 20054 [16:02:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 152 20.06.2024 16:02 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103967 ФПД: 143175130057314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160254&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103967&fm=143175130057314&tin=02508201610067®Number=0000000000092785&sum=20000 [16:02:53]StoreToDocumentArchive [16:02:53]shift 354 fd 103967 [16:02:53]save to /storage/0354/doc_00103967 [16:02:53]save last doc name /storage/0354/doc_00103967 to /storage/kkm_last_doc_name [16:02:53]save OK [16:02:53]Clear old archive folders... [16:02:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:53]tlvbuf is B6F96EF0 [16:02:53]SAM_PROTO_ClearQueue [16:02:53]wFMCommunicate request_size=4 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 09 00 00 [16:02:53]Write to MH i2c: E2 08 00 99 2E 80 09 00 00 00 00 00 00 39 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 99 2E 00 90 00 3B [16:02:53]RAPDU: 90 00 [16:02:53]wFMCommunicate OK [16:02:53]SAM_PROTO_ClearQueue done [16:02:53]KKMCreateOFDPacket [16:02:53]OFDProtocolAddRootSTLVToBuf [16:02:53]FM_MakeSignedData [16:02:53]FM_MakeSignedData [16:02:53]SAM_PROTO_SignData [16:02:53]wFMCommunicate request_size=4 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 0D 01 02 [16:02:53]Write to MH i2c: E2 08 00 9A 2E 80 0D 01 02 00 00 00 00 41 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 9A 2E 00 90 00 3C [16:02:53]RAPDU: 90 00 [16:02:53]wFMCommunicate OK [16:02:53]wFMCommunicate request_size=255 [16:02:53]MH_SAM_APDU [16:02: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 98 00 00 00 F4 03 04 00 AE 52 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 96 01 00 35 04 06 00 82 [16:02:53]Write to MH i2c: E2 02 01 9B 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 98 00 00 00 F4 03 04 00 AE 52 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 96 01 00 35 04 06 00 82 00 00 C7 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 9B 2E 00 90 00 3D [16:02:53]RAPDU: 90 00 [16:02:53]wFMCommunicate OK [16:02:53]wFMCommunicate request_size=10 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 0D 02 02 05 37 8E C4 8A 62 [16:02:53]Write to MH i2c: E2 0D 00 9C 2E 80 0D 02 02 05 00 37 8E C4 8A 62 00 00 C3 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 03 00 9C 2E 00 90 00 3E [16:02:53]RAPDU: 90 00 [16:02:53]wFMCommunicate OK [16:02:53]wFMCommunicate request_size=4 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 0D 03 02 [16:02:53]Write to MH i2c: E2 08 00 9D 2E 80 0D 03 02 00 00 00 00 46 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 0B 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 0B 00 9D 2E 00 0F E0 28 AC C6 48 58 67 90 00 D7 [16:02:53]RAPDU: 0F E0 28 AC C6 48 58 67 90 00 [16:02:53]wFMCommunicate OK [16:02:53]SAM_PROTO_SignData done [16:02:53]FM_MakeSignedData done [16:02:53]CreateOFDProtocolMessage [16:02:53]wFMCommunicate request_size=4 [16:02:53]MH_SAM_APDU [16:02:53]CAPDU: 80 11 00 00 [16:02:53]Write to MH i2c: E2 08 00 9E 2E 80 11 00 00 00 00 00 00 46 [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:53]Read from MH i2c: E2 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 17 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: E2 17 00 9E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 99 [16:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:02:53]wFMCommunicate OK [16:02:53]CreateOFDProtocolMessage done [16:02:53]OFDSenderStorePacket 103967 [16:02:53]StoreOFDPacket docnum=103967 [16:02:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 51 83 07 01 24 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 98 00 00 00 F4 03 04 00 AE 52 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 96 01 00 35 04 06 00 82 37 8E C4 8A 62 0F E0 28 AC C6 48 58 67 [16:02:53]CheckFolder [16:02:53]dirname=/storage/ofd_packets [16:02:53]CheckFolder done [16:02:53]ProducePacketName [16:02:53]name=ofd_packets/00103967 [16:02:53]NVStorageSaveData ofd_packets/00103967 [16:02:53]File name is /storage/ofd_packets/00103967 [16:02:53]Write 301 bytes [16:02:53]NVStorageSaveData done [16:02:53]OFDSenderStorePacket done [16:02:53]KKMCreateOFDPacket done [16:02:53]NVStorageSaveData kkm_last_timestamp [16:02:53]File name is /storage/kkm_last_timestamp [16:02:53]Write 4 bytes [16:02:53]NVStorageSaveData done [16:02:53]ExternCall_PrintAddStr [16:02:53]wPrintStart [16:02:53]Write to MH i2c: 01 00 00 9F 2E CD [16:02:53]Write i2c OK [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: 01 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: 01 07 00 [16:02:53]MH_I2C_Read... [16:02:53]Read from MH i2c: 01 07 00 9F 2E 00 00 00 00 00 FF 0F E2 [16:02:53]RasterBufferAndPrint [16:02:53]line Счет N : (1)673335 [16:02:53]line ИНН: 02508201610067 [16:02:53]line Контрольно-Кассовый Чек [16:02:53]line ПРОДАЖА [16:02:53]line ТРК (МРК, ГНК) : 32 [16:02:53]line Товар: 2710124130 [16:02:53]line Аи-92-К-5 [16:02:53]line 3.020 * 66.40 [16:02:53]line = 200.53 [16:02:53]line НДС 12% НСП 1% [16:02:53]line > о реализуемом товаре [16:02:53]line ОКРУГЛЕНИЕ: -0.53 [16:02:53]line ИТОГО: 200.00 [16:02:53]line Внесено: 200.00 [16:02:53]line СДАЧА: 0.00 [16:02:53]line НСП 1% : 1.77 [16:02:53]line НДС 12% : 21.29 [16:02:53]line Наличными: 200.00 [16:02:53]line Безнал.: 0.00 [16:02:53]line Место: АЗС № 120 "Партнер Нефть" [16:02:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:02:53]line СНО: Общий режим [16:02:53]line Чек 152 20.06.2024 16:02 [16:02:53]line Смена: 354 ФФД: 1.0 [16:02:53]line ЗНМ: 0300000164 [16:02:53]line РНМ: 0000000000092785 [16:02:53]line Версия ККМ: 001 [16:02:53]line ФМ: 0000000000875093 [16:02:53]line ФД: 103967 [16:02:53]line ФПД: 143175130057314 [16:02:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160254&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103967&fm=143175130057314&tin=02508201610067®Number=0000000000092785&sum=20000 [16:02:53]OFD Sender: Processing packet 103967 [packets to send 17, broken 16] [16:02:53]ProducePacketName [16:02:53]name=ofd_packets/00103967 [16:02:53]OFD Sender: To server: pG, [16:02:53]CommunicateWithHost lk.salyk.kg:30040 [16:02:53]ConnectInit lk.salyk.kg [16:02:54]written 0, free lines is 4095 [16:02:54]Connected sock=10 [16:02:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 51 83 07 01 24 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 98 00 00 00 F4 03 04 00 AE 52 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 96 01 00 35 04 06 00 82 37 8E C4 8A 62 0F E0 28 AC C6 48 58 67 [16:02:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 EA 08 47 00 A0 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 1F 96 01 00 F4 03 04 00 33 F9 73 66 B6 04 01 00 00 C0 5A E6 0F 29 90 64 6E [16:02:54]CommunicateWithHost err = 0 [16:02:54]CheckOFDResponse [16:02:54]1017 (14) - 77093643461234 [16:02:54]1041 (16) - 0000000000875093 [16:02:54]1040 (4) - 103967 [16:02:54]1012 (4) - 20.06.2024 09:41 [16:02:54]1206 (1) - 0 [16:02:54]OFD Sender: Remove packet 103967 [16:02:54]ProducePacketName [16:02:54]name=ofd_packets/00103967 [16:02:54]NVStorageDeleteData [16:02:54]Write to MH i2c: 01 00 00 CA 2E F8 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: 01 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: 01 07 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: 01 07 00 CA 2E 00 00 00 00 00 D9 0C E4 [16:02:54]RasterBufferAndPrint [16:02:54]line [16:02:54]line [16:02:54]line [16:02:54]line [16:02:54]line [16:02:54]written 0, free lines is 3296 [16:02:54]MH_Cut [16:02:54]Write to MH i2c: D1 01 00 D1 2E 01 D1 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: D1 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: D1 01 00 [16:02:54]MH_I2C_Read... [16:02:54]Read from MH i2c: D1 01 00 D1 2E 00 D0 [16:02:54]Write to MH i2c: 01 00 00 D2 2E 00 [16:02:54]Write i2c OK [16:02:54]MH_I2C_Read... [16:02:54]OFD Sender: No OFD packet to send [16:02:55]*** Cut start [16:02:55]*** Partial cut [16:02:55]*** CUTSNS_PIN = 1 [16:02:55]*** CUTSNS_PIN = 0 [16:02:55]*** Brake cut motor [16:02:55]Read from MH i2c: 01 [16:02:55]MH_I2C_Read... [16:02:55]*** Stop cut motor [16:02:55]*** Cut end [16:02:55]Read from MH i2c: 01 07 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: 01 07 00 D2 2E 00 00 00 00 00 FF 0F 15 [16:02:55]process_action close_receipt done [16:02:55]requested_data is exist [16:02:55]produce_requested_data [16:02:55]requested_item fm.sn is exist - process it [16:02:55]wFMCommunicate request_size=4 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 11 00 00 [16:02:55]Write to MH i2c: E2 08 00 D3 2E 80 11 00 00 00 00 00 00 7B [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 17 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 17 00 D3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [16:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:02:55]wFMCommunicate OK [16:02:55]requested_item fd.num is exist - process it [16:02:55]SAM_PROTO_GetFieldsCounters [16:02:55]wFMCommunicate request_size=4 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 13 00 00 [16:02:55]Write to MH i2c: E2 08 00 D4 2E 80 13 00 00 00 00 00 00 7E [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:55]Read from MH i2c: E2 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 62 00 [16:02:55]MH_I2C_Read... [16:02:55]Read from MH i2c: E2 62 00 D4 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [16:02:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 1F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:55]wFMCommunicate OK [16:02:55]SAM_PROTO_GetFieldsCounters done [16:02:55]requested_item shift.num is exist - process it [16:02:55]requested_item shift.opened is exist - process it [16:02:55]req_shift_opened [16:02:55]FM_GetShiftState [16:02:55]SAM_PROTO_GetShiftState [16:02:55]wFMCommunicate request_size=4 [16:02:55]MH_SAM_APDU [16:02:55]CAPDU: 80 13 01 00 [16:02:55]Write to MH i2c: E2 08 00 D5 2E 80 13 01 00 00 00 00 00 80 [16:02:55]Write i2c OK [16:02:55]MH_I2C_Read... [16:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:56]Read from MH i2c: E2 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: E2 0E 00 [16:02:56]MH_I2C_Read... [16:02:56]Read from MH i2c: E2 0E 00 D5 2E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CF [16:02:56]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:02:56]wFMCommunicate OK [16:02:56]SAM_PROTO_GetShiftState done [16:02:56]FM_GetShiftState done [16:02:56]req_shift_opened done [16:02:56]requested_item shift.open_date is exist - process it [16:02:56]req_shift_open_date [16:02:56]req_shift_open_date done [16:02:56]produce_requested_data done [16:02:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103967,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:02:56]process_action_free close_receipt [16:02:56]json_value_free [16:02:56]json_value_free done [16:02:56]process_json_proto returns [16:02:56]Send response to host [16:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103967,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:02:56]free response buf [16:02:56]execute_script done [16:02:56]execute_script returns [16:02:56]free content buf [16:02:56]Sock 9.Close socket [16:02:56]Sock 9.Thread stoped [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]accept exits with 7 [16:03:19]New connection [16:03:19]New thread 3067207012 created [16:03:19]Thread 3067063652 joined [16:03:19]Waiting for new connection... [16:03:19] Sock 7.Parse request [16:03:19]Sock 7.Check first char [16:03:19]Sock 7.First char is OK [16:03:19]request: POST /json_proto HTTP/1.0 [16:03:19]Method: POST [16:03:19]URL: /json_proto [16:03:19]Method is POST - this is cgi request [16:03:19]url: /json_proto [16:03:19]query_string will be loaded in cgi processing [16:03:19]execute_cgi json_proto POST (null) [16:03:19]execute_cgi path=json_proto method=POST [16:03:19]POST find Content-Length [16:03:19]Host: 172.17.38.133:8080 [16:03:19]Content-Length: 687 [16:03:19]Content-Type: application/json [16:03:19] [16:03:19]POST finish read [16:03:19]Found Content-Length = 687 [16:03:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:19]execute_script... [16:03: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)673334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:19]POST & json_proto [16:03:19]process_json_proto [16:03:19]json parsed OK: [16:03:19]protocol is kg_v1.0 [16:03:19]action value=close_receipt [16:03:19]process_action close_receipt [16:03:19]cmd_close_receipt [16:03:19]MH_GetDate [16:03:19]Write to MH i2c: F0 00 00 D6 2E F3 [16:03:19]Write i2c OK [16:03:19]MH_I2C_Read... [16:03:19]Read from MH i2c: F0 [16:03:19]MH_I2C_Read... [16:03:19]Read from MH i2c: F0 09 00 [16:03:19]MH_I2C_Read... [16:03:19]Read from MH i2c: F0 09 00 D6 2E 00 C9 52 74 66 BD 8F 7C 64 1D [16:03:19]GetLastDocTimeStamp 1718899374 [16:03:19]current date 1718899401 [16:03:19]FM_GetShiftState [16:03:19]SAM_PROTO_GetShiftState [16:03:19]wFMCommunicate request_size=4 [16:03:19]MH_SAM_APDU [16:03:19]CAPDU: 80 13 01 00 [16:03:19]Write to MH i2c: E2 08 00 D7 2E 80 13 01 00 00 00 00 00 82 [16:03:19]Write i2c OK [16:03:19]MH_I2C_Read... [16:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:19]Read from MH i2c: E2 [16:03:19]MH_I2C_Read... [16:03:19]Read from MH i2c: E2 0E 00 [16:03:19]MH_I2C_Read... [16:03:19]Read from MH i2c: E2 0E 00 D7 2E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D1 [16:03:19]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:03:19]wFMCommunicate OK [16:03:19]SAM_PROTO_GetShiftState done [16:03:19]FM_GetShiftState done [16:03:19]opened in 1718843124 [16:03:19]opened+sec_in_day 1718929524 [16:03:19]quantity*price = 250047 [16:03:19]sum+1 = 250048 [16:03:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 153 20.06.2024 16:03 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103968 ФПД: 119073281667298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160321&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103968&fm=119073281667298&tin=02508201610067®Number=0000000000092785&sum=250000 [16:03:20]StoreToDocumentArchive [16:03:20]shift 354 fd 103968 [16:03:20]save to /storage/0354/doc_00103968 [16:03:20]save last doc name /storage/0354/doc_00103968 to /storage/kkm_last_doc_name [16:03:20]save OK [16:03:20]Clear old archive folders... [16:03:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:03:20]tlvbuf is 0089B590 [16:03:20]SAM_PROTO_ClearQueue [16:03:20]wFMCommunicate request_size=4 [16:03:20]MH_SAM_APDU [16:03:20]CAPDU: 80 09 00 00 [16:03:20]Write to MH i2c: E2 08 00 E4 2E 80 09 00 00 00 00 00 00 84 [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:20]Read from MH i2c: E2 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 03 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 03 00 E4 2E 00 90 00 86 [16:03:20]RAPDU: 90 00 [16:03:20]wFMCommunicate OK [16:03:20]SAM_PROTO_ClearQueue done [16:03:20]KKMCreateOFDPacket [16:03:20]OFDProtocolAddRootSTLVToBuf [16:03:20]FM_MakeSignedData [16:03:20]FM_MakeSignedData [16:03:20]SAM_PROTO_SignData [16:03:20]wFMCommunicate request_size=4 [16:03:20]MH_SAM_APDU [16:03:20]CAPDU: 80 0D 01 02 [16:03:20]Write to MH i2c: E2 08 00 E5 2E 80 0D 01 02 00 00 00 00 8C [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:20]Read from MH i2c: E2 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 03 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 03 00 E5 2E 00 90 00 87 [16:03:20]RAPDU: 90 00 [16:03:20]wFMCommunicate OK [16:03:20]wFMCommunicate request_size=255 [16:03:20]MH_SAM_APDU [16:03:20]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C9 52 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 96 01 00 35 04 06 00 [16:03:20]Write to MH i2c: E2 02 01 E6 2E 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C9 52 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 96 01 00 35 04 06 00 00 00 BC [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:20]Read from MH i2c: E2 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 03 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 03 00 E6 2E 00 90 00 88 [16:03:20]RAPDU: 90 00 [16:03:20]wFMCommunicate OK [16:03:20]wFMCommunicate request_size=11 [16:03:20]MH_SAM_APDU [16:03:20]CAPDU: 80 0D 02 02 06 6C 4B E8 A7 F0 E2 [16:03:20]Write to MH i2c: E2 0E 00 E7 2E 80 0D 02 02 06 00 6C 4B E8 A7 F0 E2 00 00 B3 [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:20]Read from MH i2c: E2 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 03 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 03 00 E7 2E 00 90 00 89 [16:03:20]RAPDU: 90 00 [16:03:20]wFMCommunicate OK [16:03:20]wFMCommunicate request_size=4 [16:03:20]MH_SAM_APDU [16:03:20]CAPDU: 80 0D 03 02 [16:03:20]Write to MH i2c: E2 08 00 E8 2E 80 0D 03 02 00 00 00 00 91 [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:20]Read from MH i2c: E2 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 0B 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 0B 00 E8 2E 00 8E AD D0 10 B3 CC 0D B1 90 00 EA [16:03:20]RAPDU: 8E AD D0 10 B3 CC 0D B1 90 00 [16:03:20]wFMCommunicate OK [16:03:20]SAM_PROTO_SignData done [16:03:20]FM_MakeSignedData done [16:03:20]CreateOFDProtocolMessage [16:03:20]wFMCommunicate request_size=4 [16:03:20]MH_SAM_APDU [16:03:20]CAPDU: 80 11 00 00 [16:03:20]Write to MH i2c: E2 08 00 E9 2E 80 11 00 00 00 00 00 00 91 [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:20]Read from MH i2c: E2 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 17 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: E2 17 00 E9 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E4 [16:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:03:20]wFMCommunicate OK [16:03:20]CreateOFDProtocolMessage done [16:03:20]OFDSenderStorePacket 103968 [16:03:20]StoreOFDPacket docnum=103968 [16:03:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7D D5 08 01 D2 F2 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C9 52 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 96 01 00 35 04 06 00 6C 4B E8 A7 F0 E2 8E AD D0 10 B3 CC 0D B1 [16:03:20]CheckFolder [16:03:20]dirname=/storage/ofd_packets [16:03:20]CheckFolder done [16:03:20]ProducePacketName [16:03:20]name=ofd_packets/00103968 [16:03:20]NVStorageSaveData ofd_packets/00103968 [16:03:20]File name is /storage/ofd_packets/00103968 [16:03:20]Write 302 bytes [16:03:20]NVStorageSaveData done [16:03:20]OFDSenderStorePacket done [16:03:20]KKMCreateOFDPacket done [16:03:20]NVStorageSaveData kkm_last_timestamp [16:03:20]File name is /storage/kkm_last_timestamp [16:03:20]Write 4 bytes [16:03:20]NVStorageSaveData done [16:03:20]ExternCall_PrintAddStr [16:03:20]wPrintStart [16:03:20]Write to MH i2c: 01 00 00 EA 2E 18 [16:03:20]Write i2c OK [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: 01 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: 01 07 00 [16:03:20]MH_I2C_Read... [16:03:20]Read from MH i2c: 01 07 00 EA 2E 00 00 00 00 00 FF 0F 2D [16:03:20]RasterBufferAndPrint [16:03:20]line Счет N : (1)673334 [16:03:20]line ИНН: 02508201610067 [16:03:20]line Контрольно-Кассовый Чек [16:03:20]line ПРОДАЖА [16:03:20]line ТРК (МРК, ГНК) : 11 [16:03:20]line Товар: 2710194210 [16:03:20]line ДТ(л)-К-5 [16:03:20]line 34.300 * 72.90 [16:03:20]line = 2500.47 [16:03:20]line НДС 12% НСП 1% [16:03:20]line > о реализуемом товаре [16:03:20]line ОКРУГЛЕНИЕ: -0.47 [16:03:20]line ИТОГО: 2500.00 [16:03:20]line Внесено: 2500.00 [16:03:20]line СДАЧА: 0.00 [16:03:20]line НСП 1% : 22.13 [16:03:20]line НДС 12% : 265.54 [16:03:20]line Наличными: 2500.00 [16:03:20]line Безнал.: 0.00 [16:03:20]line Место: АЗС № 120 "Партнер Нефть" [16:03:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:03:20]line СНО: Общий режим [16:03:20]line Чек 153 20.06.2024 16:03 [16:03:20]line Смена: 354 ФФД: 1.0 [16:03:20]line ЗНМ: 0300000164 [16:03:20]line РНМ: 0000000000092785 [16:03:20]line Версия ККМ: 001 [16:03:20]line ФМ: 0000000000875093 [16:03:20]line ФД: 103968 [16:03:20]line ФПД: 119073281667298 [16:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160321&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103968&fm=119073281667298&tin=02508201610067®Number=0000000000092785&sum=250000 [16:03:21]OFD Sender: Processing packet 103968 [packets to send 17, broken 16] [16:03:21]ProducePacketName [16:03:21]name=ofd_packets/00103968 [16:03:21]OFD Sender: To server: pG, [16:03:21]CommunicateWithHost lk.salyk.kg:30040 [16:03:21]ConnectInit lk.salyk.kg [16:03:21]written 0, free lines is 4095 [16:03:21]Connected sock=10 [16:03:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7D D5 08 01 D2 F2 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C9 52 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 96 01 00 35 04 06 00 6C 4B E8 A7 F0 E2 8E AD D0 10 B3 CC 0D B1 [16:03:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 16 92 47 00 C0 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 20 96 01 00 F4 03 04 00 4F F9 73 66 B6 04 01 00 00 79 5C 81 95 F2 20 17 DC [16:03:21]CommunicateWithHost err = 0 [16:03:21]CheckOFDResponse [16:03:21]1017 (14) - 77093643461234 [16:03:21]1041 (16) - 0000000000875093 [16:03:21]1040 (4) - 103968 [16:03:21]1012 (4) - 20.06.2024 09:41 [16:03:21]1206 (1) - 0 [16:03:21]OFD Sender: Remove packet 103968 [16:03:21]ProducePacketName [16:03:21]name=ofd_packets/00103968 [16:03:21]NVStorageDeleteData [16:03:21]Write to MH i2c: 01 00 00 15 2F 44 [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: 01 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: 01 07 00 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: 01 07 00 15 2F 00 00 00 00 00 F9 0C 50 [16:03:21]RasterBufferAndPrint [16:03:21]line [16:03:21]line [16:03:21]line [16:03:21]line [16:03:21]line [16:03:21]written 0, free lines is 3327 [16:03:21]MH_Cut [16:03:21]Write to MH i2c: D1 01 00 1C 2F 01 1D [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: D1 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: D1 01 00 [16:03:21]MH_I2C_Read... [16:03:21]Read from MH i2c: D1 01 00 1C 2F 00 1C [16:03:21]Write to MH i2c: 01 00 00 1D 2F 4C [16:03:21]Write i2c OK [16:03:21]MH_I2C_Read... [16:03:22]OFD Sender: No OFD packet to send [16:03:22]*** Cut start [16:03:22]*** Partial cut [16:03:22]*** CUTSNS_PIN = 1 [16:03:22]*** CUTSNS_PIN = 0 [16:03:22]*** Brake cut motor [16:03:23]Read from MH i2c: 01 [16:03:23]MH_I2C_Read... [16:03:23]*** Stop cut motor [16:03:23]*** Cut end [16:03:23]Read from MH i2c: 01 07 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: 01 07 00 1D 2F 00 00 00 00 00 FF 0F 61 [16:03:23]process_action close_receipt done [16:03:23]requested_data is exist [16:03:23]produce_requested_data [16:03:23]requested_item fm.sn is exist - process it [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 11 00 00 [16:03:23]Write to MH i2c: E2 08 00 1E 2F 80 11 00 00 00 00 00 00 C7 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:23]Read from MH i2c: E2 17 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 17 00 1E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [16:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:03:23]wFMCommunicate OK [16:03:23]requested_item fd.num is exist - process it [16:03:23]SAM_PROTO_GetFieldsCounters [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 13 00 00 [16:03:23]Write to MH i2c: E2 08 00 1F 2F 80 13 00 00 00 00 00 00 CA [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 62 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 62 00 1F 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 20 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [16:03: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 20 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:23]wFMCommunicate OK [16:03:23]SAM_PROTO_GetFieldsCounters done [16:03:23]requested_item shift.num is exist - process it [16:03:23]requested_item shift.opened is exist - process it [16:03:23]req_shift_opened [16:03:23]FM_GetShiftState [16:03:23]SAM_PROTO_GetShiftState [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 13 01 00 [16:03:23]Write to MH i2c: E2 08 00 20 2F 80 13 01 00 00 00 00 00 CC [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 0E 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 0E 00 20 2F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [16:03:23]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:03:23]wFMCommunicate OK [16:03:23]SAM_PROTO_GetShiftState done [16:03:23]FM_GetShiftState done [16:03:23]req_shift_opened done [16:03:23]requested_item shift.open_date is exist - process it [16:03:23]req_shift_open_date [16:03:23]req_shift_open_date done [16:03:23]produce_requested_data done [16:03:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103968,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:03:23]process_action_free close_receipt [16:03:23]json_value_free [16:03:23]json_value_free done [16:03:23]process_json_proto returns [16:03:23]Send response to host [16:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103968,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:03:23]free response buf [16:03:23]execute_script done [16:03:23]execute_script returns [16:03:23]free content buf [16:03:23]Sock 7.Close socket [16:03:23]Sock 7.Thread stoped [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:51]accept exits with 9 [16:05:51]New connection [16:05:51]New thread 3067063652 created [16:05:51]Thread 3067207012 joined [16:05:51]Waiting for new connection... [16:05:51] Sock 9.Parse request [16:05:51]Sock 9.Check first char [16:05:51]Sock 9.First char is OK [16:05:51]request: POST /json_proto HTTP/1.0 [16:05:51]Method: POST [16:05:51]URL: /json_proto [16:05:51]Method is POST - this is cgi request [16:05:51]url: /json_proto [16:05:51]query_string will be loaded in cgi processing [16:05:51]execute_cgi json_proto POST (null) [16:05:51]execute_cgi path=json_proto method=POST [16:05:51]POST find Content-Length [16:05:51]Host: 172.17.38.133:8080 [16:05:51]Content-Length: 677 [16:05:51]Content-Type: application/json [16:05:51] [16:05:51]POST finish read [16:05:51]Found Content-Length = 677 [16:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:51]execute_script... [16: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)673336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:51]POST & json_proto [16:05:51]process_json_proto [16:05:51]json parsed OK: [16:05:51]protocol is kg_v1.0 [16:05:51]action value=close_receipt [16:05:51]process_action close_receipt [16:05:51]cmd_close_receipt [16:05:51]MH_GetDate [16:05:51]Write to MH i2c: F0 00 00 21 2F 3F [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: F0 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: F0 09 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: F0 09 00 21 2F 00 62 53 74 66 BD 8F 7C 64 03 [16:05:51]GetLastDocTimeStamp 1718899401 [16:05:51]current date 1718899554 [16:05:51]FM_GetShiftState [16:05:51]SAM_PROTO_GetShiftState [16:05:51]wFMCommunicate request_size=4 [16:05:51]MH_SAM_APDU [16:05:51]CAPDU: 80 13 01 00 [16:05:51]Write to MH i2c: E2 08 00 22 2F 80 13 01 00 00 00 00 00 CE [16:05:51]Write i2c OK [16:05:51]MH_I2C_Read... [16:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:51]Read from MH i2c: E2 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 0E 00 [16:05:51]MH_I2C_Read... [16:05:51]Read from MH i2c: E2 0E 00 22 2F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1D [16:05:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:05:51]wFMCommunicate OK [16:05:51]SAM_PROTO_GetShiftState done [16:05:51]FM_GetShiftState done [16:05:51]opened in 1718843124 [16:05:51]opened+sec_in_day 1718929524 [16:05:51]quantity*price = 50065 [16:05:51]sum+1 = 50067 [16:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 154 20.06.2024 16:05 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103969 ФПД: 183441302588040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160554&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103969&fm=183441302588040&tin=02508201610067®Number=0000000000092785&sum=50000 [16:05:52]StoreToDocumentArchive [16:05:52]shift 354 fd 103969 [16:05:52]save to /storage/0354/doc_00103969 [16:05:52]save last doc name /storage/0354/doc_00103969 to /storage/kkm_last_doc_name [16:05:52]save OK [16:05:52]Clear old archive folders... [16:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:52]tlvbuf is 00842FD0 [16:05:52]SAM_PROTO_ClearQueue [16:05:52]wFMCommunicate request_size=4 [16:05:52]MH_SAM_APDU [16:05:52]CAPDU: 80 09 00 00 [16:05:52]Write to MH i2c: E2 08 00 2F 2F 80 09 00 00 00 00 00 00 D0 [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:52]Read from MH i2c: E2 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: E2 03 00 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: E2 03 00 2F 2F 00 90 00 D2 [16:05:52]RAPDU: 90 00 [16:05:52]wFMCommunicate OK [16:05:52]SAM_PROTO_ClearQueue done [16:05:52]KKMCreateOFDPacket [16:05:52]OFDProtocolAddRootSTLVToBuf [16:05:52]FM_MakeSignedData [16:05:52]FM_MakeSignedData [16:05:52]SAM_PROTO_SignData [16:05:52]wFMCommunicate request_size=4 [16:05:52]MH_SAM_APDU [16:05:52]CAPDU: 80 0D 01 02 [16:05:52]Write to MH i2c: E2 08 00 30 2F 80 0D 01 02 00 00 00 00 D8 [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:52]Read from MH i2c: E2 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: E2 03 00 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: E2 03 00 30 2F 00 90 00 D3 [16:05:52]RAPDU: 90 00 [16:05:52]wFMCommunicate OK [16:05:52]wFMCommunicate request_size=255 [16:05:52]MH_SAM_APDU [16: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 62 53 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 96 01 00 35 04 06 00 A6 [16:05:52]Write to MH i2c: E2 02 01 31 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 62 53 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 96 01 00 35 04 06 00 A6 00 00 7C [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: E2 [16:05:52]MH_I2C_Read... [16:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:52]Read from MH i2c: E2 03 00 [16:05:52]MH_I2C_Read... [16:05:52]Read from MH i2c: E2 03 00 31 2F 00 90 00 D4 [16:05:52]RAPDU: 90 00 [16:05:52]wFMCommunicate OK [16:05:52]wFMCommunicate request_size=10 [16:05:52]MH_SAM_APDU [16:05:52]CAPDU: 80 0D 02 02 05 D6 C1 AD 8A 88 [16:05:52]Write to MH i2c: E2 0D 00 32 2F 80 0D 02 02 05 00 D6 C1 AD 8A 88 00 00 3B [16:05:52]Write i2c OK [16:05:52]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:53]Read from MH i2c: E2 03 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 03 00 32 2F 00 90 00 D5 [16:05:53]RAPDU: 90 00 [16:05:53]wFMCommunicate OK [16:05:53]wFMCommunicate request_size=4 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 0D 03 02 [16:05:53]Write to MH i2c: E2 08 00 33 2F 80 0D 03 02 00 00 00 00 DD [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 0B 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 0B 00 33 2F 00 8D 23 7B 92 76 12 81 65 90 00 09 [16:05:53]RAPDU: 8D 23 7B 92 76 12 81 65 90 00 [16:05:53]wFMCommunicate OK [16:05:53]SAM_PROTO_SignData done [16:05:53]FM_MakeSignedData done [16:05:53]CreateOFDProtocolMessage [16:05:53]wFMCommunicate request_size=4 [16:05:53]MH_SAM_APDU [16:05:53]CAPDU: 80 11 00 00 [16:05:53]Write to MH i2c: E2 08 00 34 2F 80 11 00 00 00 00 00 00 DD [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:53]Read from MH i2c: E2 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 17 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: E2 17 00 34 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 30 [16:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:05:53]wFMCommunicate OK [16:05:53]CreateOFDProtocolMessage done [16:05:53]OFDSenderStorePacket 103969 [16:05:53]StoreOFDPacket docnum=103969 [16:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 00 63 07 01 68 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 62 53 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 96 01 00 35 04 06 00 A6 D6 C1 AD 8A 88 8D 23 7B 92 76 12 81 65 [16:05:53]CheckFolder [16:05:53]dirname=/storage/ofd_packets [16:05:53]CheckFolder done [16:05:53]ProducePacketName [16:05:53]name=ofd_packets/00103969 [16:05:53]NVStorageSaveData ofd_packets/00103969 [16:05:53]File name is /storage/ofd_packets/00103969 [16:05:53]Write 301 bytes [16:05:53]NVStorageSaveData done [16:05:53]OFDSenderStorePacket done [16:05:53]KKMCreateOFDPacket done [16:05:53]NVStorageSaveData kkm_last_timestamp [16:05:53]File name is /storage/kkm_last_timestamp [16:05:53]Write 4 bytes [16:05:53]NVStorageSaveData done [16:05:53]ExternCall_PrintAddStr [16:05:53]wPrintStart [16:05:53]Write to MH i2c: 01 00 00 35 2F 64 [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: 01 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: 01 07 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: 01 07 00 35 2F 00 00 00 00 00 FF 0F 79 [16:05:53]RasterBufferAndPrint [16:05:53]line Счет N : (1)673336 [16:05:53]line ИНН: 02508201610067 [16:05:53]line Контрольно-Кассовый Чек [16:05:53]line ПРОДАЖА [16:05:53]line ТРК (МРК, ГНК) : 32 [16:05:53]line Товар: 2710124130 [16:05:53]line Аи-92-К-5 [16:05:53]line 7.540 * 66.40 [16:05:53]line = 500.66 [16:05:53]line НДС 12% НСП 1% [16:05:53]line > о реализуемом товаре [16:05:53]line ОКРУГЛЕНИЕ: -0.66 [16:05:53]line ИТОГО: 500.00 [16:05:53]line Внесено: 500.00 [16:05:53]line СДАЧА: 0.00 [16:05:53]line НСП 1% : 4.43 [16:05:53]line НДС 12% : 53.17 [16:05:53]line Наличными: 500.00 [16:05:53]line Безнал.: 0.00 [16:05:53]line Место: АЗС № 120 "Партнер Нефть" [16:05:53]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:05:53]line СНО: Общий режим [16:05:53]line Чек 154 20.06.2024 16:05 [16:05:53]line Смена: 354 ФФД: 1.0 [16:05:53]line ЗНМ: 0300000164 [16:05:53]line РНМ: 0000000000092785 [16:05:53]line Версия ККМ: 001 [16:05:53]line ФМ: 0000000000875093 [16:05:53]line ФД: 103969 [16:05:53]line ФПД: 183441302588040 [16:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160554&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103969&fm=183441302588040&tin=02508201610067®Number=0000000000092785&sum=50000 [16:05:53]OFD Sender: Processing packet 103969 [packets to send 17, broken 16] [16:05:53]ProducePacketName [16:05:53]name=ofd_packets/00103969 [16:05:53]OFD Sender: To server: pG, [16:05:53]CommunicateWithHost lk.salyk.kg:30040 [16:05:53]ConnectInit lk.salyk.kg [16:05:53]written 0, free lines is 4095 [16:05:53]Connected sock=10 [16: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 35 30 39 33 0F 01 00 00 00 63 07 01 68 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 62 53 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 96 01 00 35 04 06 00 A6 D6 C1 AD 8A 88 8D 23 7B 92 76 12 81 65 [16:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 49 3E 47 00 65 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 21 96 01 00 F4 03 04 00 E7 F9 73 66 B6 04 01 00 00 F9 E5 47 AD D5 01 43 D2 [16:05:53]CommunicateWithHost err = 0 [16:05:53]CheckOFDResponse [16:05:53]1017 (14) - 77093643461234 [16:05:53]1041 (16) - 0000000000875093 [16:05:53]1040 (4) - 103969 [16:05:53]1012 (4) - 20.06.2024 09:44 [16:05:53]1206 (1) - 0 [16:05:53]OFD Sender: Remove packet 103969 [16:05:53]ProducePacketName [16:05:53]name=ofd_packets/00103969 [16:05:53]NVStorageDeleteData [16:05:53]Write to MH i2c: 01 00 00 60 2F 8F [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: 01 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: 01 07 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: 01 07 00 60 2F 00 00 00 00 00 E4 0C 86 [16:05:53]RasterBufferAndPrint [16:05:53]line [16:05:53]line [16:05:53]line [16:05:53]line [16:05:53]line [16:05:53]written 0, free lines is 3306 [16:05:53]MH_Cut [16:05:53]Write to MH i2c: D1 01 00 67 2F 01 68 [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: D1 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: D1 01 00 [16:05:53]MH_I2C_Read... [16:05:53]Read from MH i2c: D1 01 00 67 2F 00 67 [16:05:53]Write to MH i2c: 01 00 00 68 2F 97 [16:05:53]Write i2c OK [16:05:53]MH_I2C_Read... [16:05:54]OFD Sender: No OFD packet to send [16:05:54]*** Cut start [16:05:54]*** Partial cut [16:05:54]*** CUTSNS_PIN = 1 [16:05:54]*** CUTSNS_PIN = 0 [16:05:54]*** Brake cut motor [16:05:55]Read from MH i2c: 01 [16:05:55]MH_I2C_Read... [16:05:55]*** Stop cut motor [16:05:55]*** Cut end [16:05:55]Read from MH i2c: 01 07 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: 01 07 00 68 2F 00 00 00 00 00 FF 0F AC [16:05:55]process_action close_receipt done [16:05:55]requested_data is exist [16:05:55]produce_requested_data [16:05:55]requested_item fm.sn is exist - process it [16:05:55]wFMCommunicate request_size=4 [16:05:55]MH_SAM_APDU [16:05:55]CAPDU: 80 11 00 00 [16:05:55]Write to MH i2c: E2 08 00 69 2F 80 11 00 00 00 00 00 00 12 [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:55]Read from MH i2c: E2 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 17 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 17 00 69 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [16:05:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:05:55]wFMCommunicate OK [16:05:55]requested_item fd.num is exist - process it [16:05:55]SAM_PROTO_GetFieldsCounters [16:05:55]wFMCommunicate request_size=4 [16:05:55]MH_SAM_APDU [16:05:55]CAPDU: 80 13 00 00 [16:05:55]Write to MH i2c: E2 08 00 6A 2F 80 13 00 00 00 00 00 00 15 [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:55]Read from MH i2c: E2 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 62 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 62 00 6A 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 21 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [16:05:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 21 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:55]wFMCommunicate OK [16:05:55]SAM_PROTO_GetFieldsCounters done [16:05:55]requested_item shift.num is exist - process it [16:05:55]requested_item shift.opened is exist - process it [16:05:55]req_shift_opened [16:05:55]FM_GetShiftState [16:05:55]SAM_PROTO_GetShiftState [16:05:55]wFMCommunicate request_size=4 [16:05:55]MH_SAM_APDU [16:05:55]CAPDU: 80 13 01 00 [16:05:55]Write to MH i2c: E2 08 00 6B 2F 80 13 01 00 00 00 00 00 17 [16:05:55]Write i2c OK [16:05:55]MH_I2C_Read... [16:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:55]Read from MH i2c: E2 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 0E 00 [16:05:55]MH_I2C_Read... [16:05:55]Read from MH i2c: E2 0E 00 6B 2F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 66 [16:05:55]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:05:55]wFMCommunicate OK [16:05:55]SAM_PROTO_GetShiftState done [16:05:55]FM_GetShiftState done [16:05:55]req_shift_opened done [16:05:55]requested_item shift.open_date is exist - process it [16:05:55]req_shift_open_date [16:05:55]req_shift_open_date done [16:05:55]produce_requested_data done [16:05:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103969,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:05:55]process_action_free close_receipt [16:05:55]json_value_free [16:05:55]json_value_free done [16:05:55]process_json_proto returns [16:05:55]Send response to host [16:05:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103969,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:05:55]free response buf [16:05:55]execute_script done [16:05:55]execute_script returns [16:05:55]free content buf [16:05:55]Sock 9.Close socket [16:05:55]Sock 9.Thread stoped [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]accept exits with 7 [16:08:54]New connection [16:08:54]New thread 3067207012 created [16:08:54]Thread 3067063652 joined [16:08:54]Waiting for new connection... [16:08:54] Sock 7.Parse request [16:08:54]Sock 7.Check first char [16:08:54]Sock 7.First char is OK [16:08:54]request: POST /json_proto HTTP/1.0 [16:08:54]Method: POST [16:08:54]URL: /json_proto [16:08:54]Method is POST - this is cgi request [16:08:54]url: /json_proto [16:08:54]query_string will be loaded in cgi processing [16:08:54]execute_cgi json_proto POST (null) [16:08:54]execute_cgi path=json_proto method=POST [16:08:54]POST find Content-Length [16:08:54]Host: 172.17.38.133:8080 [16:08:54]Content-Length: 1169 [16:08:54]Content-Type: application/json [16:08:54] [16:08:54]POST finish read [16:08:54]Found Content-Length = 1169 [16:08:54]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673337\u000A20.06.2024 15:46\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 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30025706\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]execute_script... [16:08:54]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673337\u000A20.06.2024 15:46\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 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30025706\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:54]POST & json_proto [16:08:54]process_json_proto [16:08:54]json parsed OK: [16:08:54]protocol is kg_v1.0 [16:08:54]action value=print_text [16:08:54]process_action print_text [16:08:54]cmd_print_text [16:08:54]ExternCall_PrintAddStr [16:08:54]wPrintStart [16:08:54]Write to MH i2c: 01 00 00 6C 2F 9B [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: 01 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: 01 07 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: 01 07 00 6C 2F 00 00 00 00 00 FF 0F B0 [16:08:54]RasterBufferAndPrint [16:08:54]line *****ТОВАРНЫЙ ЧЕК***** [16:08:54]line АЗС 120 [16:08:54]line Партнер нефть [16:08:54]line 02508201610067 [16:08:54]line Кассир : Дуйшенбиев А. [16:08:54]line Счет N : (1)673337 [16:08:54]line 20.06.2024 15:46 [16:08:54]line ПРОДАЖА [16:08:54]line ТРК (МРК, ГНК): 42 [16:08:54]line Вид ГСМ : 2710124130 [16:08:54]line Аи-92-К-5 [16:08:54]line 30.000 x 66.40 [16:08:54]line ИТОГ: 1992.00 [16:08:54]line Тип оплаты: Талоны: ТК ГПНА Online [16:08:54]line 30025706 [16:08:54]line ______________________ [16:08:54]line (подпись) [16:08:54]written 0, free lines is 4095 [16:08:54]OFD Sender: No OFD packet to send [16:08:54]Write to MH i2c: 01 00 00 80 2F AF [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: 01 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: 01 07 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: 01 07 00 80 2F 00 00 00 00 00 12 0E D6 [16:08:54]RasterBufferAndPrint [16:08:54]line [16:08:54]line [16:08:54]line [16:08:54]line [16:08:54]line [16:08:54]written 0, free lines is 3603 [16:08:54]MH_Cut [16:08:54]Write to MH i2c: D1 01 00 87 2F 01 88 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: D1 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: D1 01 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: D1 01 00 87 2F 00 87 [16:08:54]Write to MH i2c: 01 00 00 88 2F B7 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:55]*** Cut start [16:08:55]*** Partial cut [16:08:55]*** CUTSNS_PIN = 1 [16:08:55]*** CUTSNS_PIN = 0 [16:08:55]*** Brake cut motor [16:08:55]Read from MH i2c: 01 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: 01 07 00 [16:08:55]MH_I2C_Read... [16:08:55]*** Stop cut motor [16:08:55]*** Cut end [16:08:55]Read from MH i2c: 01 07 00 88 2F 00 00 00 00 00 FF 0F CC [16:08:55]process_action print_text done [16:08:55]requested_data is exist [16:08:55]produce_requested_data [16:08:55]requested_item fm.sn is exist - process it [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 11 00 00 [16:08:55]Write to MH i2c: E2 08 00 89 2F 80 11 00 00 00 00 00 00 32 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 17 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 17 00 89 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 85 [16:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:08:55]wFMCommunicate OK [16:08:55]requested_item fd.num is exist - process it [16:08:55]SAM_PROTO_GetFieldsCounters [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 13 00 00 [16:08:55]Write to MH i2c: E2 08 00 8A 2F 80 13 00 00 00 00 00 00 35 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 62 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 62 00 8A 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 21 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [16:08:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 21 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:55]wFMCommunicate OK [16:08:55]SAM_PROTO_GetFieldsCounters done [16:08:55]requested_item shift.num is exist - process it [16:08:55]requested_item shift.opened is exist - process it [16:08:55]req_shift_opened [16:08:55]FM_GetShiftState [16:08:55]SAM_PROTO_GetShiftState [16:08:55]wFMCommunicate request_size=4 [16:08:55]MH_SAM_APDU [16:08:55]CAPDU: 80 13 01 00 [16:08:55]Write to MH i2c: E2 08 00 8B 2F 80 13 01 00 00 00 00 00 37 [16:08:55]Write i2c OK [16:08:55]MH_I2C_Read... [16:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:55]Read from MH i2c: E2 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 0E 00 [16:08:55]MH_I2C_Read... [16:08:55]Read from MH i2c: E2 0E 00 8B 2F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 86 [16:08:55]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:08:55]wFMCommunicate OK [16:08:55]SAM_PROTO_GetShiftState done [16:08:55]FM_GetShiftState done [16:08:55]req_shift_opened done [16:08:55]requested_item shift.open_date is exist - process it [16:08:55]req_shift_open_date [16:08:55]req_shift_open_date done [16:08:55]produce_requested_data done [16:08:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103969,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:08:55]process_action_free print_text [16:08:55]json_value_free [16:08:55]json_value_free done [16:08:55]process_json_proto returns [16:08:55]Send response to host [16:08:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103969,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:08:55]free response buf [16:08:55]execute_script done [16:08:55]execute_script returns [16:08:55]free content buf [16:08:55]Sock 7.Close socket [16:08:55]Sock 7.Thread stoped [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:53]accept exits with 9 [16:09:53]New connection [16:09:53]New thread 3067063652 created [16:09:53]Thread 3067207012 joined [16:09:53]Waiting for new connection... [16:09:53] Sock 9.Parse request [16:09:53]Sock 9.Check first char [16:09:53]Sock 9.First char is OK [16:09:53]request: POST /json_proto HTTP/1.0 [16:09:53]Method: POST [16:09:53]URL: /json_proto [16:09:53]Method is POST - this is cgi request [16:09:53]url: /json_proto [16:09:53]query_string will be loaded in cgi processing [16:09:53]execute_cgi json_proto POST (null) [16:09:53]execute_cgi path=json_proto method=POST [16:09:53]POST find Content-Length [16:09:53]Host: 172.17.38.133:8080 [16:09:53]Content-Length: 800 [16:09:53]Content-Type: application/json [16:09:53] [16:09:53]POST finish read [16:09:53]Found Content-Length = 800 [16:09:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:53]execute_script... [16:09: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)673338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:53]POST & json_proto [16:09:53]process_json_proto [16:09:53]json parsed OK: [16:09:53]protocol is kg_v1.0 [16:09:53]action value=close_receipt [16:09:53]process_action close_receipt [16:09:53]cmd_close_receipt [16:09:53]MH_GetDate [16:09:53]Write to MH i2c: F0 00 00 8C 2F AA [16:09:53]Write i2c OK [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: F0 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: F0 09 00 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: F0 09 00 8C 2F 00 54 54 74 66 BD 8F 7C 64 61 [16:09:53]GetLastDocTimeStamp 1718899554 [16:09:53]current date 1718899796 [16:09:53]FM_GetShiftState [16:09:53]SAM_PROTO_GetShiftState [16:09:53]wFMCommunicate request_size=4 [16:09:53]MH_SAM_APDU [16:09:53]CAPDU: 80 13 01 00 [16:09:53]Write to MH i2c: E2 08 00 8D 2F 80 13 01 00 00 00 00 00 39 [16:09:53]Write i2c OK [16:09:53]MH_I2C_Read... [16:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:53]Read from MH i2c: E2 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: E2 0E 00 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: E2 0E 00 8D 2F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 88 [16:09:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:09:53]wFMCommunicate OK [16:09:53]SAM_PROTO_GetShiftState done [16:09:53]FM_GetShiftState done [16:09:53]opened in 1718843124 [16:09:53]opened+sec_in_day 1718929524 [16:09:53]quantity*price = 20052 [16:09:53]sum+1 = 20054 [16:09:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.53 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.53 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 155 20.06.2024 16:09 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103970 ФПД: 158946804734476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160956&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103970&fm=158946804734476&tin=02508201610067®Number=0000000000092785&sum=20053 [16:09:54]StoreToDocumentArchive [16:09:54]shift 354 fd 103970 [16:09:54]save to /storage/0354/doc_00103970 [16:09:54]save last doc name /storage/0354/doc_00103970 to /storage/kkm_last_doc_name [16:09:54]save OK [16:09:54]Clear old archive folders... [16:09:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:54]tlvbuf is 008F0390 [16:09:54]SAM_PROTO_ClearQueue [16:09:54]wFMCommunicate request_size=4 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 09 00 00 [16:09:54]Write to MH i2c: E2 08 00 9A 2F 80 09 00 00 00 00 00 00 3B [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:55]Read from MH i2c: E2 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 03 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 03 00 9A 2F 00 90 00 3D [16:09:55]RAPDU: 90 00 [16:09:55]wFMCommunicate OK [16:09:55]SAM_PROTO_ClearQueue done [16:09:55]KKMCreateOFDPacket [16:09:55]OFDProtocolAddRootSTLVToBuf [16:09:55]FM_MakeSignedData [16:09:55]FM_MakeSignedData [16:09:55]SAM_PROTO_SignData [16:09:55]wFMCommunicate request_size=4 [16:09:55]MH_SAM_APDU [16:09:55]CAPDU: 80 0D 01 02 [16:09:55]Write to MH i2c: E2 08 00 9B 2F 80 0D 01 02 00 00 00 00 43 [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:55]Read from MH i2c: E2 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 03 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 03 00 9B 2F 00 90 00 3E [16:09:55]RAPDU: 90 00 [16:09:55]wFMCommunicate OK [16:09:55]wFMCommunicate request_size=255 [16:09:55]MH_SAM_APDU [16:09: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 54 54 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 96 01 00 35 04 06 00 90 [16:09:55]Write to MH i2c: E2 02 01 9C 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 54 54 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 96 01 00 35 04 06 00 90 00 00 EF [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:55]Read from MH i2c: E2 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 03 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 03 00 9C 2F 00 90 00 3F [16:09:55]RAPDU: 90 00 [16:09:55]wFMCommunicate OK [16:09:55]wFMCommunicate request_size=10 [16:09:55]MH_SAM_APDU [16:09:55]CAPDU: 80 0D 02 02 05 8F AF D5 9A 0C [16:09:55]Write to MH i2c: E2 0D 00 9D 2F 80 0D 02 02 05 00 8F AF D5 9A 0C 00 00 09 [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:55]Read from MH i2c: E2 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 03 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 03 00 9D 2F 00 90 00 40 [16:09:55]RAPDU: 90 00 [16:09:55]wFMCommunicate OK [16:09:55]wFMCommunicate request_size=4 [16:09:55]MH_SAM_APDU [16:09:55]CAPDU: 80 0D 03 02 [16:09:55]Write to MH i2c: E2 08 00 9E 2F 80 0D 03 02 00 00 00 00 48 [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:55]Read from MH i2c: E2 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 0B 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 0B 00 9E 2F 00 24 6A DF A4 C9 AE E6 7C 90 00 33 [16:09:55]RAPDU: 24 6A DF A4 C9 AE E6 7C 90 00 [16:09:55]wFMCommunicate OK [16:09:55]SAM_PROTO_SignData done [16:09:55]FM_MakeSignedData done [16:09:55]CreateOFDProtocolMessage [16:09:55]wFMCommunicate request_size=4 [16:09:55]MH_SAM_APDU [16:09:55]CAPDU: 80 11 00 00 [16:09:55]Write to MH i2c: E2 08 00 9F 2F 80 11 00 00 00 00 00 00 48 [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:55]Read from MH i2c: E2 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 17 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: E2 17 00 9F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [16:09:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:09:55]wFMCommunicate OK [16:09:55]CreateOFDProtocolMessage done [16:09:55]OFDSenderStorePacket 103970 [16:09:55]StoreOFDPacket docnum=103970 [16:09:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 99 CA 07 01 24 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 54 54 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 96 01 00 35 04 06 00 90 8F AF D5 9A 0C 24 6A DF A4 C9 AE E6 7C [16:09:55]CheckFolder [16:09:55]dirname=/storage/ofd_packets [16:09:55]CheckFolder done [16:09:55]ProducePacketName [16:09:55]name=ofd_packets/00103970 [16:09:55]NVStorageSaveData ofd_packets/00103970 [16:09:55]File name is /storage/ofd_packets/00103970 [16:09:55]Write 301 bytes [16:09:55]NVStorageSaveData done [16:09:55]OFDSenderStorePacket done [16:09:55]KKMCreateOFDPacket done [16:09:55]NVStorageSaveData kkm_last_timestamp [16:09:55]File name is /storage/kkm_last_timestamp [16:09:55]Write 4 bytes [16:09:55]NVStorageSaveData done [16:09:55]ExternCall_PrintAddStr [16:09:55]wPrintStart [16:09:55]Write to MH i2c: 01 00 00 A0 2F CF [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: 01 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: 01 07 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: 01 07 00 A0 2F 00 00 00 00 00 FF 0F E4 [16:09:55]RasterBufferAndPrint [16:09:55]line Счет N : (1)673338 [16:09:55]line ИНН: 02508201610067 [16:09:55]line Контрольно-Кассовый Чек [16:09:55]line ПРОДАЖА [16:09:55]line ТРК (МРК, ГНК) : 32 [16:09:55]line Товар: 2710124130 [16:09:55]line Аи-92-К-5 [16:09:55]line 3.020 * 66.40 [16:09:55]line = 200.53 [16:09:55]line НДС 12% НСП 1% [16:09:55]line > о реализуемом товаре [16:09:55]line ИТОГО: 200.53 [16:09:55]line НСП 1% : 1.77 [16:09:55]line НДС 12% : 21.29 [16:09:55]line Наличными: 0.00 [16:09:55]line Безнал.: 200.53 [16:09:55]line Место: АЗС № 120 "Партнер Нефть" [16:09:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:09:55]line СНО: Общий режим [16:09:55]line Чек 155 20.06.2024 16:09 [16:09:55]line Смена: 354 ФФД: 1.0 [16:09:55]line ЗНМ: 0300000164 [16:09:55]line РНМ: 0000000000092785 [16:09:55]line Версия ККМ: 001 [16:09:55]line Платежная система: O! деньги [16:09:55]line ФМ: 0000000000875093 [16:09:55]line ФД: 103970 [16:09:55]line ФПД: 158946804734476 [16:09:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T160956&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103970&fm=158946804734476&tin=02508201610067®Number=0000000000092785&sum=20053 [16:09:55]written 0, free lines is 4095 [16:09:55]OFD Sender: Processing packet 103970 [packets to send 17, broken 16] [16:09:55]ProducePacketName [16:09:55]name=ofd_packets/00103970 [16:09:55]OFD Sender: To server: pG, [16:09:55]CommunicateWithHost lk.salyk.kg:30040 [16:09:55]ConnectInit lk.salyk.kg [16:09:55]Connected sock=10 [16:09:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 99 CA 07 01 24 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 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 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 54 54 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 96 01 00 35 04 06 00 90 8F AF D5 9A 0C 24 6A DF A4 C9 AE E6 7C [16:09:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9E F2 47 00 69 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 22 96 01 00 F4 03 04 00 D9 FA 73 66 B6 04 01 00 00 59 F3 4E 5F 99 05 75 22 [16:09:56]CommunicateWithHost err = 0 [16:09:56]CheckOFDResponse [16:09:56]1017 (14) - 77093643461234 [16:09:56]1041 (16) - 0000000000875093 [16:09:56]1040 (4) - 103970 [16:09:56]1012 (4) - 20.06.2024 09:48 [16:09:56]1206 (1) - 0 [16:09:56]OFD Sender: Remove packet 103970 [16:09:56]ProducePacketName [16:09:56]name=ofd_packets/00103970 [16:09:56]NVStorageDeleteData [16:09:56]Write to MH i2c: 01 00 00 CA 2F F9 [16:09:56]Write i2c OK [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: 01 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: 01 07 00 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: 01 07 00 CA 2F 00 00 00 00 00 FF 0C 0B [16:09:56]RasterBufferAndPrint [16:09:56]line [16:09:56]line [16:09:56]line [16:09:56]line [16:09:56]line [16:09:56]written 0, free lines is 3335 [16:09:56]MH_Cut [16:09:56]Write to MH i2c: D1 01 00 D1 2F 01 D2 [16:09:56]Write i2c OK [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: D1 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: D1 01 00 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: D1 01 00 D1 2F 00 D1 [16:09:56]Write to MH i2c: 01 00 00 D2 2F 01 [16:09:56]Write i2c OK [16:09:56]MH_I2C_Read... [16:09:56]OFD Sender: No OFD packet to send [16:09:57]*** Cut start [16:09:57]*** Partial cut [16:09:57]*** CUTSNS_PIN = 1 [16:09:57]*** CUTSNS_PIN = 0 [16:09:57]*** Brake cut motor [16:09:57]Read from MH i2c: 01 [16:09:57]MH_I2C_Read... [16:09:57]*** Stop cut motor [16:09:57]*** Cut end [16:09:57]Read from MH i2c: 01 07 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: 01 07 00 D2 2F 00 00 00 00 00 FF 0F 16 [16:09:57]process_action close_receipt done [16:09:57]requested_data is exist [16:09:57]produce_requested_data [16:09:57]requested_item fm.sn is exist - process it [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 11 00 00 [16:09:57]Write to MH i2c: E2 08 00 D3 2F 80 11 00 00 00 00 00 00 7C [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 17 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 17 00 D3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [16:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:09:57]wFMCommunicate OK [16:09:57]requested_item fd.num is exist - process it [16:09:57]SAM_PROTO_GetFieldsCounters [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 13 00 00 [16:09:57]Write to MH i2c: E2 08 00 D4 2F 80 13 00 00 00 00 00 00 7F [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 62 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 62 00 D4 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 22 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [16:09:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 22 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:57]wFMCommunicate OK [16:09:57]SAM_PROTO_GetFieldsCounters done [16:09:57]requested_item shift.num is exist - process it [16:09:57]requested_item shift.opened is exist - process it [16:09:57]req_shift_opened [16:09:57]FM_GetShiftState [16:09:57]SAM_PROTO_GetShiftState [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 13 01 00 [16:09:57]Write to MH i2c: E2 08 00 D5 2F 80 13 01 00 00 00 00 00 81 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 0E 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 0E 00 D5 2F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D0 [16:09:57]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:09:57]wFMCommunicate OK [16:09:57]SAM_PROTO_GetShiftState done [16:09:57]FM_GetShiftState done [16:09:57]req_shift_opened done [16:09:57]requested_item shift.open_date is exist - process it [16:09:57]req_shift_open_date [16:09:57]req_shift_open_date done [16:09:57]produce_requested_data done [16:09:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103970,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:09:57]process_action_free close_receipt [16:09:57]json_value_free [16:09:57]json_value_free done [16:09:57]process_json_proto returns [16:09:57]Send response to host [16:09:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103970,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:09:57]free response buf [16:09:57]execute_script done [16:09:57]execute_script returns [16:09:57]free content buf [16:09:57]Sock 9.Close socket [16:09:57]Sock 9.Thread stoped [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:03]accept exits with 7 [16:12:03]New connection [16:12:03]New thread 3067207012 created [16:12:03]Thread 3067063652 joined [16:12:03]Waiting for new connection... [16:12:03] Sock 7.Parse request [16:12:03]Sock 7.Check first char [16:12:03]Sock 7.First char is OK [16:12:03]request: POST /json_proto HTTP/1.0 [16:12:03]Method: POST [16:12:03]URL: /json_proto [16:12:03]Method is POST - this is cgi request [16:12:03]url: /json_proto [16:12:03]query_string will be loaded in cgi processing [16:12:03]execute_cgi json_proto POST (null) [16:12:03]execute_cgi path=json_proto method=POST [16:12:03]POST find Content-Length [16:12:03]Host: 172.17.38.133:8080 [16:12:03]Content-Length: 687 [16:12:03]Content-Type: application/json [16:12:03] [16:12:03]POST finish read [16:12:03]Found Content-Length = 687 [16:12:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 38.750, "sum" : 2824.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 2824.00, "payments": [ { "type": 0, "sum" : 2824.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:03]execute_script... [16:12: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)673339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 38.750, "sum" : 2824.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 2824.00, "payments": [ { "type": 0, "sum" : 2824.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:03]POST & json_proto [16:12:03]process_json_proto [16:12:03]json parsed OK: [16:12:03]protocol is kg_v1.0 [16:12:03]action value=close_receipt [16:12:03]process_action close_receipt [16:12:03]cmd_close_receipt [16:12:03]MH_GetDate [16:12:03]Write to MH i2c: F0 00 00 D6 2F F4 [16:12:03]Write i2c OK [16:12:03]MH_I2C_Read... [16:12:03]Read from MH i2c: F0 [16:12:03]MH_I2C_Read... [16:12:03]Read from MH i2c: F0 09 00 [16:12:03]MH_I2C_Read... [16:12:03]Read from MH i2c: F0 09 00 D6 2F 00 D5 54 74 66 BD 8F 7C 64 2C [16:12:03]GetLastDocTimeStamp 1718899796 [16:12:03]current date 1718899925 [16:12:03]FM_GetShiftState [16:12:03]SAM_PROTO_GetShiftState [16:12:03]wFMCommunicate request_size=4 [16:12:03]MH_SAM_APDU [16:12:03]CAPDU: 80 13 01 00 [16:12:03]Write to MH i2c: E2 08 00 D7 2F 80 13 01 00 00 00 00 00 83 [16:12:03]Write i2c OK [16:12:03]MH_I2C_Read... [16:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:03]Read from MH i2c: E2 [16:12:03]MH_I2C_Read... [16:12:03]Read from MH i2c: E2 0E 00 [16:12:03]MH_I2C_Read... [16:12:03]Read from MH i2c: E2 0E 00 D7 2F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D2 [16:12:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:12:03]wFMCommunicate OK [16:12:03]SAM_PROTO_GetShiftState done [16:12:03]FM_GetShiftState done [16:12:03]opened in 1718843124 [16:12:03]opened+sec_in_day 1718929524 [16:12:03]quantity*price = 282487 [16:12:03]sum+1 = 282489 [16:12:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.88 ИТОГО: 2824.00 Внесено: 9000.00 СДАЧА: 6176.00 НСП 1% : 25.00 НДС 12% : 299.99 Наличными: 2824.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 156 20.06.2024 16:12 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103971 ФПД: 226763336157270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161205&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103971&fm=226763336157270&tin=02508201610067®Number=0000000000092785&sum=282400 [16:12:04]StoreToDocumentArchive [16:12:04]shift 354 fd 103971 [16:12:04]save to /storage/0354/doc_00103971 [16:12:04]save last doc name /storage/0354/doc_00103971 to /storage/kkm_last_doc_name [16:12:04]save OK [16:12:04]Clear old archive folders... [16:12:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:12:04]tlvbuf is 00823A70 [16:12:04]SAM_PROTO_ClearQueue [16:12:04]wFMCommunicate request_size=4 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 09 00 00 [16:12:04]Write to MH i2c: E2 08 00 E4 2F 80 09 00 00 00 00 00 00 85 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 E4 2F 00 90 00 87 [16:12:04]RAPDU: 90 00 [16:12:04]wFMCommunicate OK [16:12:04]SAM_PROTO_ClearQueue done [16:12:04]KKMCreateOFDPacket [16:12:04]OFDProtocolAddRootSTLVToBuf [16:12:04]FM_MakeSignedData [16:12:04]FM_MakeSignedData [16:12:04]SAM_PROTO_SignData [16:12:04]wFMCommunicate request_size=4 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 0D 01 02 [16:12:04]Write to MH i2c: E2 08 00 E5 2F 80 0D 01 02 00 00 00 00 8D [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 E5 2F 00 90 00 88 [16:12:04]RAPDU: 90 00 [16:12:04]wFMCommunicate OK [16:12:04]wFMCommunicate request_size=255 [16:12:04]MH_SAM_APDU [16:12: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E 97 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 78 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 75 00 00 00 00 07 04 06 00 20 4F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D5 54 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 96 01 00 35 04 06 00 [16:12:04]Write to MH i2c: E2 02 01 E6 2F 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E 97 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 78 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 75 00 00 00 00 07 04 06 00 20 4F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D5 54 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 96 01 00 35 04 06 00 00 00 41 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 E6 2F 00 90 00 89 [16:12:04]RAPDU: 90 00 [16:12:04]wFMCommunicate OK [16:12:04]wFMCommunicate request_size=11 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 0D 02 02 06 CE 3D 74 19 88 56 [16:12:04]Write to MH i2c: E2 0E 00 E7 2F 80 0D 02 02 06 00 CE 3D 74 19 88 56 00 00 12 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 03 00 E7 2F 00 90 00 8A [16:12:04]RAPDU: 90 00 [16:12:04]wFMCommunicate OK [16:12:04]wFMCommunicate request_size=4 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 0D 03 02 [16:12:04]Write to MH i2c: E2 08 00 E8 2F 80 0D 03 02 00 00 00 00 92 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 0B 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 0B 00 E8 2F 00 3E AB B7 06 B4 D0 27 AB 90 00 8F [16:12:04]RAPDU: 3E AB B7 06 B4 D0 27 AB 90 00 [16:12:04]wFMCommunicate OK [16:12:04]SAM_PROTO_SignData done [16:12:04]FM_MakeSignedData done [16:12:04]CreateOFDProtocolMessage [16:12:04]wFMCommunicate request_size=4 [16:12:04]MH_SAM_APDU [16:12:04]CAPDU: 80 11 00 00 [16:12:04]Write to MH i2c: E2 08 00 E9 2F 80 11 00 00 00 00 00 00 92 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:04]Read from MH i2c: E2 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 17 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: E2 17 00 E9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [16:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:12:04]wFMCommunicate OK [16:12:04]CreateOFDProtocolMessage done [16:12:04]OFDSenderStorePacket 103971 [16:12:04]StoreOFDPacket docnum=103971 [16:12:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 2A 8B 08 01 26 76 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E 97 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 78 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 75 00 00 00 00 07 04 06 00 20 4F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D5 54 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 96 01 00 35 04 06 00 CE 3D 74 19 88 56 3E AB B7 06 B4 D0 27 AB [16:12:04]CheckFolder [16:12:04]dirname=/storage/ofd_packets [16:12:04]CheckFolder done [16:12:04]ProducePacketName [16:12:04]name=ofd_packets/00103971 [16:12:04]NVStorageSaveData ofd_packets/00103971 [16:12:04]File name is /storage/ofd_packets/00103971 [16:12:04]Write 302 bytes [16:12:04]NVStorageSaveData done [16:12:04]OFDSenderStorePacket done [16:12:04]KKMCreateOFDPacket done [16:12:04]NVStorageSaveData kkm_last_timestamp [16:12:04]File name is /storage/kkm_last_timestamp [16:12:04]Write 4 bytes [16:12:04]NVStorageSaveData done [16:12:04]ExternCall_PrintAddStr [16:12:04]wPrintStart [16:12:04]Write to MH i2c: 01 00 00 EA 2F 19 [16:12:04]Write i2c OK [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: 01 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: 01 07 00 [16:12:04]MH_I2C_Read... [16:12:04]Read from MH i2c: 01 07 00 EA 2F 00 00 00 00 00 FF 0F 2E [16:12:04]RasterBufferAndPrint [16:12:04]line Счет N : (1)673339 [16:12:04]line ИНН: 02508201610067 [16:12:04]line Контрольно-Кассовый Чек [16:12:04]line ПРОДАЖА [16:12:04]line ТРК (МРК, ГНК) : 21 [16:12:04]line Товар: 2710194210 [16:12:04]line ДТ(л)-К-5 [16:12:04]line 38.750 * 72.90 [16:12:04]line = 2824.88 [16:12:04]line НДС 12% НСП 1% [16:12:04]line > о реализуемом товаре [16:12:04]line ОКРУГЛЕНИЕ: -0.88 [16:12:04]line ИТОГО: 2824.00 [16:12:04]line Внесено: 9000.00 [16:12:04]line СДАЧА: 6176.00 [16:12:04]line НСП 1% : 25.00 [16:12:04]line НДС 12% : 299.99 [16:12:04]line Наличными: 2824.00 [16:12:04]line Безнал.: 0.00 [16:12:04]line Место: АЗС № 120 "Партнер Нефть" [16:12:04]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:12:04]line СНО: Общий режим [16:12:04]line Чек 156 20.06.2024 16:12 [16:12:04]line Смена: 354 ФФД: 1.0 [16:12:04]line ЗНМ: 0300000164 [16:12:04]line РНМ: 0000000000092785 [16:12:04]line Версия ККМ: 001 [16:12:04]line ФМ: 0000000000875093 [16:12:04]line ФД: 103971 [16:12:04]line ФПД: 226763336157270 [16:12:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161205&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103971&fm=226763336157270&tin=02508201610067®Number=0000000000092785&sum=282400 [16:12:05]OFD Sender: Processing packet 103971 [packets to send 17, broken 16] [16:12:05]ProducePacketName [16:12:05]name=ofd_packets/00103971 [16:12:05]OFD Sender: To server: pG, [16:12:05]CommunicateWithHost lk.salyk.kg:30040 [16:12:05]ConnectInit lk.salyk.kg [16:12:05]written 0, free lines is 4095 [16:12:05]Connected sock=10 [16:12:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 2A 8B 08 01 26 76 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E 97 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 78 4F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 75 00 00 00 00 07 04 06 00 20 4F 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 D5 54 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 96 01 00 35 04 06 00 CE 3D 74 19 88 56 3E AB B7 06 B4 D0 27 AB [16:12:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CB BF 47 00 DB 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 23 96 01 00 F4 03 04 00 5A FB 73 66 B6 04 01 00 00 87 B8 A3 8E 9B B5 94 25 [16:12:05]CommunicateWithHost err = 0 [16:12:05]CheckOFDResponse [16:12:05]1017 (14) - 77093643461234 [16:12:05]1041 (16) - 0000000000875093 [16:12:05]1040 (4) - 103971 [16:12:05]1012 (4) - 20.06.2024 09:50 [16:12:05]1206 (1) - 0 [16:12:05]OFD Sender: Remove packet 103971 [16:12:05]ProducePacketName [16:12:05]name=ofd_packets/00103971 [16:12:05]NVStorageDeleteData [16:12:05]Write to MH i2c: 01 00 00 15 30 45 [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: 01 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: 01 07 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: 01 07 00 15 30 00 00 00 00 00 F0 0C 48 [16:12:05]RasterBufferAndPrint [16:12:05]line [16:12:05]line [16:12:05]line [16:12:05]line [16:12:05]line [16:12:05]written 0, free lines is 3319 [16:12:05]MH_Cut [16:12:05]Write to MH i2c: D1 01 00 1C 30 01 1E [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: D1 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: D1 01 00 [16:12:05]MH_I2C_Read... [16:12:05]Read from MH i2c: D1 01 00 1C 30 00 1D [16:12:05]Write to MH i2c: 01 00 00 1D 30 4D [16:12:05]Write i2c OK [16:12:05]MH_I2C_Read... [16:12:06]OFD Sender: No OFD packet to send [16:12:06]*** Cut start [16:12:06]*** Partial cut [16:12:06]*** CUTSNS_PIN = 1 [16:12:06]*** CUTSNS_PIN = 0 [16:12:06]*** Brake cut motor [16:12:06]Read from MH i2c: 01 [16:12:06]MH_I2C_Read... [16:12:06]*** Stop cut motor [16:12:06]*** Cut end [16:12:06]Read from MH i2c: 01 07 00 [16:12:06]MH_I2C_Read... [16:12:06]Read from MH i2c: 01 07 00 1D 30 00 00 00 00 00 FF 0F 62 [16:12:06]process_action close_receipt done [16:12:06]requested_data is exist [16:12:06]produce_requested_data [16:12:06]requested_item fm.sn is exist - process it [16:12:06]wFMCommunicate request_size=4 [16:12:06]MH_SAM_APDU [16:12:06]CAPDU: 80 11 00 00 [16:12:06]Write to MH i2c: E2 08 00 1E 30 80 11 00 00 00 00 00 00 C8 [16:12:06]Write i2c OK [16:12:06]MH_I2C_Read... [16:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:07]Read from MH i2c: E2 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 17 00 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 17 00 1E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [16:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:12:07]wFMCommunicate OK [16:12:07]requested_item fd.num is exist - process it [16:12:07]SAM_PROTO_GetFieldsCounters [16:12:07]wFMCommunicate request_size=4 [16:12:07]MH_SAM_APDU [16:12:07]CAPDU: 80 13 00 00 [16:12:07]Write to MH i2c: E2 08 00 1F 30 80 13 00 00 00 00 00 00 CB [16:12:07]Write i2c OK [16:12:07]MH_I2C_Read... [16:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:07]Read from MH i2c: E2 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 62 00 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 62 00 1F 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 23 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [16:12:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 23 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:07]wFMCommunicate OK [16:12:07]SAM_PROTO_GetFieldsCounters done [16:12:07]requested_item shift.num is exist - process it [16:12:07]requested_item shift.opened is exist - process it [16:12:07]req_shift_opened [16:12:07]FM_GetShiftState [16:12:07]SAM_PROTO_GetShiftState [16:12:07]wFMCommunicate request_size=4 [16:12:07]MH_SAM_APDU [16:12:07]CAPDU: 80 13 01 00 [16:12:07]Write to MH i2c: E2 08 00 20 30 80 13 01 00 00 00 00 00 CD [16:12:07]Write i2c OK [16:12:07]MH_I2C_Read... [16:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:07]Read from MH i2c: E2 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 0E 00 [16:12:07]MH_I2C_Read... [16:12:07]Read from MH i2c: E2 0E 00 20 30 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1C [16:12:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:12:07]wFMCommunicate OK [16:12:07]SAM_PROTO_GetShiftState done [16:12:07]FM_GetShiftState done [16:12:07]req_shift_opened done [16:12:07]requested_item shift.open_date is exist - process it [16:12:07]req_shift_open_date [16:12:07]req_shift_open_date done [16:12:07]produce_requested_data done [16:12:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103971,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:12:07]process_action_free close_receipt [16:12:07]json_value_free [16:12:07]json_value_free done [16:12:07]process_json_proto returns [16:12:07]Send response to host [16:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103971,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:12:07]free response buf [16:12:07]execute_script done [16:12:07]execute_script returns [16:12:07]free content buf [16:12:07]Sock 7.Close socket [16:12:07]Sock 7.Thread stoped [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:13:56]accept exits with 9 [16:13:56]New connection [16:13:56]New thread 3067063652 created [16:13:56]Thread 3067207012 joined [16:13:56]Waiting for new connection... [16:13:56] Sock 9.Parse request [16:13:56]Sock 9.Check first char [16:13:56]Sock 9.First char is OK [16:13:56]request: POST /json_proto HTTP/1.0 [16:13:56]Method: POST [16:13:56]URL: /json_proto [16:13:56]Method is POST - this is cgi request [16:13:56]url: /json_proto [16:13:56]query_string will be loaded in cgi processing [16:13:56]execute_cgi json_proto POST (null) [16:13:56]execute_cgi path=json_proto method=POST [16:13:56]POST find Content-Length [16:13:56]Host: 172.17.38.133:8080 [16:13:56]Content-Length: 677 [16:13:56]Content-Type: application/json [16:13:56] [16:13:56]POST finish read [16:13:56]Found Content-Length = 677 [16:13:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673341", "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" : 73.90, "quantity" : 4.060, "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" ] } } [16:13:56]execute_script... [16:13: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)673341", "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" : 73.90, "quantity" : 4.060, "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" ] } } [16:13:56]POST & json_proto [16:13:56]process_json_proto [16:13:56]json parsed OK: [16:13:56]protocol is kg_v1.0 [16:13:56]action value=close_receipt [16:13:56]process_action close_receipt [16:13:56]cmd_close_receipt [16:13:56]MH_GetDate [16:13:56]Write to MH i2c: F0 00 00 21 30 40 [16:13:56]Write i2c OK [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: F0 [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: F0 09 00 [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: F0 09 00 21 30 00 47 55 74 66 BD 8F 7C 64 EB [16:13:56]GetLastDocTimeStamp 1718899925 [16:13:56]current date 1718900039 [16:13:56]FM_GetShiftState [16:13:56]SAM_PROTO_GetShiftState [16:13:56]wFMCommunicate request_size=4 [16:13:56]MH_SAM_APDU [16:13:56]CAPDU: 80 13 01 00 [16:13:56]Write to MH i2c: E2 08 00 22 30 80 13 01 00 00 00 00 00 CF [16:13:56]Write i2c OK [16:13:56]MH_I2C_Read... [16:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:56]Read from MH i2c: E2 [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: E2 0E 00 [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: E2 0E 00 22 30 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1E [16:13:56]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:13:56]wFMCommunicate OK [16:13:56]SAM_PROTO_GetShiftState done [16:13:56]FM_GetShiftState done [16:13:56]opened in 1718843124 [16:13:56]opened+sec_in_day 1718929524 [16:13:56]quantity*price = 30003 [16:13:56]sum+1 = 30004 [16:13:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 157 20.06.2024 16:13 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103972 ФПД: 22386811655027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161359&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103972&fm=22386811655027&tin=02508201610067®Number=0000000000092785&sum=30000 [16:13:57]StoreToDocumentArchive [16:13:57]shift 354 fd 103972 [16:13:57]save to /storage/0354/doc_00103972 [16:13:57]save last doc name /storage/0354/doc_00103972 to /storage/kkm_last_doc_name [16:13:57]save OK [16:13:57]Clear old archive folders... [16:13:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:57]tlvbuf is 0085D000 [16:13:57]SAM_PROTO_ClearQueue [16:13:57]wFMCommunicate request_size=4 [16:13:57]MH_SAM_APDU [16:13:57]CAPDU: 80 09 00 00 [16:13:57]Write to MH i2c: E2 08 00 2F 30 80 09 00 00 00 00 00 00 D1 [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:57]Read from MH i2c: E2 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 03 00 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 03 00 2F 30 00 90 00 D3 [16:13:57]RAPDU: 90 00 [16:13:57]wFMCommunicate OK [16:13:57]SAM_PROTO_ClearQueue done [16:13:57]KKMCreateOFDPacket [16:13:57]OFDProtocolAddRootSTLVToBuf [16:13:57]FM_MakeSignedData [16:13:57]FM_MakeSignedData [16:13:57]SAM_PROTO_SignData [16:13:57]wFMCommunicate request_size=4 [16:13:57]MH_SAM_APDU [16:13:57]CAPDU: 80 0D 01 02 [16:13:57]Write to MH i2c: E2 08 00 30 30 80 0D 01 02 00 00 00 00 D9 [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 [16:13:57]MH_I2C_Read... [16:13:57]Read from MH i2c: E2 03 00 [16:13:57]MH_I2C_Read... [16:13:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:57]Read from MH i2c: E2 03 00 30 30 00 90 00 D4 [16:13:57]RAPDU: 90 00 [16:13:57]wFMCommunicate OK [16:13:57]wFMCommunicate request_size=255 [16:13:57]MH_SAM_APDU [16:13:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 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 9D 00 00 00 F4 03 04 00 47 55 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 96 01 00 35 04 06 00 14 [16:13:57]Write to MH i2c: E2 02 01 31 30 80 0D 02 02 FA 00 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 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 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 9D 00 00 00 F4 03 04 00 47 55 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 96 01 00 35 04 06 00 14 00 00 91 [16:13:57]Write i2c OK [16:13:57]MH_I2C_Read... [16:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:58]Read from MH i2c: E2 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 03 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 03 00 31 30 00 90 00 D5 [16:13:58]RAPDU: 90 00 [16:13:58]wFMCommunicate OK [16:13:58]wFMCommunicate request_size=10 [16:13:58]MH_SAM_APDU [16:13:58]CAPDU: 80 0D 02 02 05 5C 55 F4 D3 73 [16:13:58]Write to MH i2c: E2 0D 00 32 30 80 0D 02 02 05 00 5C 55 F4 D3 73 00 00 D1 [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:58]Read from MH i2c: E2 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 03 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 03 00 32 30 00 90 00 D6 [16:13:58]RAPDU: 90 00 [16:13:58]wFMCommunicate OK [16:13:58]wFMCommunicate request_size=4 [16:13:58]MH_SAM_APDU [16:13:58]CAPDU: 80 0D 03 02 [16:13:58]Write to MH i2c: E2 08 00 33 30 80 0D 03 02 00 00 00 00 DE [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:58]Read from MH i2c: E2 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 0B 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 0B 00 33 30 00 97 DF B7 FF 75 F6 7C 4D 90 00 3F [16:13:58]RAPDU: 97 DF B7 FF 75 F6 7C 4D 90 00 [16:13:58]wFMCommunicate OK [16:13:58]SAM_PROTO_SignData done [16:13:58]FM_MakeSignedData done [16:13:58]CreateOFDProtocolMessage [16:13:58]wFMCommunicate request_size=4 [16:13:58]MH_SAM_APDU [16:13:58]CAPDU: 80 11 00 00 [16:13:58]Write to MH i2c: E2 08 00 34 30 80 11 00 00 00 00 00 00 DE [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:58]Read from MH i2c: E2 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 17 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 17 00 34 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [16:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:13:58]wFMCommunicate OK [16:13:58]CreateOFDProtocolMessage done [16:13:58]OFDSenderStorePacket 103972 [16:13:58]StoreOFDPacket docnum=103972 [16:13:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C5 12 07 01 2F 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 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 9D 00 00 00 F4 03 04 00 47 55 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 96 01 00 35 04 06 00 14 5C 55 F4 D3 73 97 DF B7 FF 75 F6 7C 4D [16:13:58]CheckFolder [16:13:58]dirname=/storage/ofd_packets [16:13:58]CheckFolder done [16:13:58]ProducePacketName [16:13:58]name=ofd_packets/00103972 [16:13:58]NVStorageSaveData ofd_packets/00103972 [16:13:58]File name is /storage/ofd_packets/00103972 [16:13:58]Write 301 bytes [16:13:58]NVStorageSaveData done [16:13:58]OFDSenderStorePacket done [16:13:58]KKMCreateOFDPacket done [16:13:58]NVStorageSaveData kkm_last_timestamp [16:13:58]File name is /storage/kkm_last_timestamp [16:13:58]Write 4 bytes [16:13:58]NVStorageSaveData done [16:13:58]ExternCall_PrintAddStr [16:13:58]wPrintStart [16:13:58]Write to MH i2c: 01 00 00 35 30 65 [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: 01 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: 01 07 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: 01 07 00 35 30 00 00 00 00 00 FF 0F 7A [16:13:58]RasterBufferAndPrint [16:13:58]line Счет N : (1)673341 [16:13:58]line ИНН: 02508201610067 [16:13:58]line Контрольно-Кассовый Чек [16:13:58]line ПРОДАЖА [16:13:58]line ТРК (МРК, ГНК) : 31 [16:13:58]line Товар: 2710124500 [16:13:58]line Аи-95-К-5 [16:13:58]line 4.060 * 73.90 [16:13:58]line = 300.03 [16:13:58]line НДС 12% НСП 1% [16:13:58]line > о реализуемом товаре [16:13:58]line ОКРУГЛЕНИЕ: -0.03 [16:13:58]line ИТОГО: 300.00 [16:13:58]line Внесено: 300.00 [16:13:58]line СДАЧА: 0.00 [16:13:58]line НСП 1% : 2.65 [16:13:58]line НДС 12% : 31.86 [16:13:58]line Наличными: 300.00 [16:13:58]line Безнал.: 0.00 [16:13:58]line Место: АЗС № 120 "Партнер Нефть" [16:13:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:13:58]line СНО: Общий режим [16:13:58]line Чек 157 20.06.2024 16:13 [16:13:58]line Смена: 354 ФФД: 1.0 [16:13:58]line ЗНМ: 0300000164 [16:13:58]line РНМ: 0000000000092785 [16:13:58]line Версия ККМ: 001 [16:13:58]line ФМ: 0000000000875093 [16:13:58]line ФД: 103972 [16:13:58]line ФПД: 22386811655027 [16:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161359&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103972&fm=22386811655027&tin=02508201610067®Number=0000000000092785&sum=30000 [16:13:58]OFD Sender: Processing packet 103972 [packets to send 17, broken 16] [16:13:58]ProducePacketName [16:13:58]name=ofd_packets/00103972 [16:13:58]OFD Sender: To server: pG, [16:13:58]CommunicateWithHost lk.salyk.kg:30040 [16:13:58]ConnectInit lk.salyk.kg [16:13:58]written 0, free lines is 4095 [16:13:58]Connected sock=10 [16:13:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C5 12 07 01 2F 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 0F 00 00 00 00 00 37 04 06 00 DE 1C 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 9D 00 00 00 F4 03 04 00 47 55 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 96 01 00 35 04 06 00 14 5C 55 F4 D3 73 97 DF B7 FF 75 F6 7C 4D [16:13:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 52 4A 47 00 FE 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 24 96 01 00 F4 03 04 00 CC FB 73 66 B6 04 01 00 00 00 23 B6 23 0C AD 35 5F [16:13:58]CommunicateWithHost err = 0 [16:13:58]CheckOFDResponse [16:13:58]1017 (14) - 77093643461234 [16:13:58]1041 (16) - 0000000000875093 [16:13:58]1040 (4) - 103972 [16:13:58]1012 (4) - 20.06.2024 09:52 [16:13:58]1206 (1) - 0 [16:13:58]OFD Sender: Remove packet 103972 [16:13:58]ProducePacketName [16:13:58]name=ofd_packets/00103972 [16:13:58]NVStorageDeleteData [16:13:59]Write to MH i2c: 01 00 00 60 30 90 [16:13:59]Write i2c OK [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: 01 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: 01 07 00 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: 01 07 00 60 30 00 00 00 00 00 E0 0C 83 [16:13:59]RasterBufferAndPrint [16:13:59]line [16:13:59]line [16:13:59]line [16:13:59]line [16:13:59]line [16:13:59]written 0, free lines is 3302 [16:13:59]MH_Cut [16:13:59]Write to MH i2c: D1 01 00 67 30 01 69 [16:13:59]Write i2c OK [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: D1 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: D1 01 00 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: D1 01 00 67 30 00 68 [16:13:59]Write to MH i2c: 01 00 00 68 30 98 [16:13:59]Write i2c OK [16:13:59]MH_I2C_Read... [16:13:59]OFD Sender: No OFD packet to send [16:13:59]*** Cut start [16:13:59]*** Partial cut [16:13:59]*** CUTSNS_PIN = 1 [16:13:59]*** CUTSNS_PIN = 0 [16:14:00]*** Brake cut motor [16:14:00]Read from MH i2c: 01 [16:14:00]MH_I2C_Read... [16:14:00]*** Stop cut motor [16:14:00]*** Cut end [16:14:00]Read from MH i2c: 01 07 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: 01 07 00 68 30 00 00 00 00 00 FF 0F AD [16:14:00]process_action close_receipt done [16:14:00]requested_data is exist [16:14:00]produce_requested_data [16:14:00]requested_item fm.sn is exist - process it [16:14:00]wFMCommunicate request_size=4 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 11 00 00 [16:14:00]Write to MH i2c: E2 08 00 69 30 80 11 00 00 00 00 00 00 13 [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:00]Read from MH i2c: E2 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 17 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 17 00 69 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 66 [16:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:14:00]wFMCommunicate OK [16:14:00]requested_item fd.num is exist - process it [16:14:00]SAM_PROTO_GetFieldsCounters [16:14:00]wFMCommunicate request_size=4 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 13 00 00 [16:14:00]Write to MH i2c: E2 08 00 6A 30 80 13 00 00 00 00 00 00 16 [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:00]Read from MH i2c: E2 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 62 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 62 00 6A 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 24 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [16: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 24 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:00]wFMCommunicate OK [16:14:00]SAM_PROTO_GetFieldsCounters done [16:14:00]requested_item shift.num is exist - process it [16:14:00]requested_item shift.opened is exist - process it [16:14:00]req_shift_opened [16:14:00]FM_GetShiftState [16:14:00]SAM_PROTO_GetShiftState [16:14:00]wFMCommunicate request_size=4 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 13 01 00 [16:14:00]Write to MH i2c: E2 08 00 6B 30 80 13 01 00 00 00 00 00 18 [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:00]Read from MH i2c: E2 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 0E 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 0E 00 6B 30 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 67 [16:14:00]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:14:00]wFMCommunicate OK [16:14:00]SAM_PROTO_GetShiftState done [16:14:00]FM_GetShiftState done [16:14:00]req_shift_opened done [16:14:00]requested_item shift.open_date is exist - process it [16:14:00]req_shift_open_date [16:14:00]req_shift_open_date done [16:14:00]produce_requested_data done [16:14:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103972,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:14:00]process_action_free close_receipt [16:14:00]json_value_free [16:14:00]json_value_free done [16:14:00]process_json_proto returns [16:14:00]Send response to host [16:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103972,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:14:00]free response buf [16:14:00]execute_script done [16:14:00]execute_script returns [16:14:00]free content buf [16:14:00]Sock 9.Close socket [16:14:00]Sock 9.Thread stoped [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:58]accept exits with 7 [16:14:58]New connection [16:14:58]New thread 3067207012 created [16:14:58]Thread 3067063652 joined [16:14:58]Waiting for new connection... [16:14:58] Sock 7.Parse request [16:14:58]Sock 7.Check first char [16:14:58]Sock 7.First char is OK [16:14:58]request: POST /json_proto HTTP/1.0 [16:14:58]Method: POST [16:14:58]URL: /json_proto [16:14:58]Method is POST - this is cgi request [16:14:58]url: /json_proto [16:14:58]query_string will be loaded in cgi processing [16:14:58]execute_cgi json_proto POST (null) [16:14:58]execute_cgi path=json_proto method=POST [16:14:58]POST find Content-Length [16:14:58]Host: 172.17.38.133:8080 [16:14:58]Content-Length: 819 [16:14:58]Content-Type: application/json [16:14:58] [16:14:58]POST finish read [16:14:58]Found Content-Length = 819 [16:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673340", "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" : 73.90, "quantity" : 35.910, "sum" : 2653.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2653.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:58]execute_script... [16: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)673340", "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" : 73.90, "quantity" : 35.910, "sum" : 2653.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2653.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:58]POST & json_proto [16:14:58]process_json_proto [16:14:58]json parsed OK: [16:14:58]protocol is kg_v1.0 [16:14:58]action value=close_receipt [16:14:58]process_action close_receipt [16:14:58]cmd_close_receipt [16:14:58]MH_GetDate [16:14:58]Write to MH i2c: F0 00 00 6C 30 8B [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: F0 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: F0 09 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: F0 09 00 6C 30 00 84 55 74 66 BD 8F 7C 64 73 [16:14:58]GetLastDocTimeStamp 1718900039 [16:14:58]current date 1718900100 [16:14:58]FM_GetShiftState [16:14:58]SAM_PROTO_GetShiftState [16:14:58]wFMCommunicate request_size=4 [16:14:58]MH_SAM_APDU [16:14:58]CAPDU: 80 13 01 00 [16:14:58]Write to MH i2c: E2 08 00 6D 30 80 13 01 00 00 00 00 00 1A [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:58]Read from MH i2c: E2 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 0E 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 0E 00 6D 30 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 69 [16:14:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:14:58]wFMCommunicate OK [16:14:58]SAM_PROTO_GetShiftState done [16:14:58]FM_GetShiftState done [16:14:58]opened in 1718843124 [16:14:58]opened+sec_in_day 1718929524 [16:14:58]quantity*price = 265374 [16:14:58]sum+1 = 265376 [16:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2653.75 НСП 1% : 23.48 НДС 12% : 281.81 Наличными: 0.00 Безнал.: 2653.75 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 158 20.06.2024 16:15 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103973 ФПД: 230949480171873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161500&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103973&fm=230949480171873&tin=02508201610067®Number=0000000000092785&sum=265375 [16:14:59]StoreToDocumentArchive [16:14:59]shift 354 fd 103973 [16:14:59]save to /storage/0354/doc_00103973 [16:14:59]save last doc name /storage/0354/doc_00103973 to /storage/kkm_last_doc_name [16:14:59]save OK [16:14:59]Clear old archive folders... [16:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:59]tlvbuf is 0085CE10 [16:14:59]SAM_PROTO_ClearQueue [16:14:59]wFMCommunicate request_size=4 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 09 00 00 [16:14:59]Write to MH i2c: E2 08 00 7A 30 80 09 00 00 00 00 00 00 1C [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 7A 30 00 90 00 1E [16:14:59]RAPDU: 90 00 [16:14:59]wFMCommunicate OK [16:14:59]SAM_PROTO_ClearQueue done [16:14:59]KKMCreateOFDPacket [16:14:59]OFDProtocolAddRootSTLVToBuf [16:14:59]FM_MakeSignedData [16:14:59]FM_MakeSignedData [16:14:59]SAM_PROTO_SignData [16:14:59]wFMCommunicate request_size=4 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 0D 01 02 [16:14:59]Write to MH i2c: E2 08 00 7B 30 80 0D 01 02 00 00 00 00 24 [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 7B 30 00 90 00 1F [16:14:59]RAPDU: 90 00 [16:14:59]wFMCommunicate OK [16:14:59]wFMCommunicate request_size=255 [16:14:59]MH_SAM_APDU [16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 8C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9F 0C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 0C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 0C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 84 55 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 96 01 00 35 04 06 00 D2 [16:14:59]Write to MH i2c: E2 02 01 7C 30 80 0D 02 02 FA 00 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 46 8C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9F 0C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 0C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 0C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 84 55 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 96 01 00 35 04 06 00 D2 00 00 0B [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]OFD Sender: No OFD packet to send [16:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 7C 30 00 90 00 20 [16:14:59]RAPDU: 90 00 [16:14:59]wFMCommunicate OK [16:14:59]wFMCommunicate request_size=10 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 0D 02 02 05 0C 1D BA 09 61 [16:14:59]Write to MH i2c: E2 0D 00 7D 30 80 0D 02 02 05 00 0C 1D BA 09 61 00 00 7E [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 03 00 7D 30 00 90 00 21 [16:14:59]RAPDU: 90 00 [16:14:59]wFMCommunicate OK [16:14:59]wFMCommunicate request_size=4 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 0D 03 02 [16:14:59]Write to MH i2c: E2 08 00 7E 30 80 0D 03 02 00 00 00 00 29 [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 0B 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 0B 00 7E 30 00 9D 93 41 19 AD EF 93 C5 90 00 A8 [16:14:59]RAPDU: 9D 93 41 19 AD EF 93 C5 90 00 [16:14:59]wFMCommunicate OK [16:14:59]SAM_PROTO_SignData done [16:14:59]FM_MakeSignedData done [16:14:59]CreateOFDProtocolMessage [16:14:59]wFMCommunicate request_size=4 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 11 00 00 [16:14:59]Write to MH i2c: E2 08 00 7F 30 80 11 00 00 00 00 00 00 29 [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 17 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 17 00 7F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7C [16:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:14:59]wFMCommunicate OK [16:14:59]CreateOFDProtocolMessage done [16:14:59]OFDSenderStorePacket 103973 [16:14:59]StoreOFDPacket docnum=103973 [16:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 47 F9 07 01 10 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 8C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9F 0C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 0C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 0C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 84 55 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 96 01 00 35 04 06 00 D2 0C 1D BA 09 61 9D 93 41 19 AD EF 93 C5 [16:14:59]CheckFolder [16:14:59]dirname=/storage/ofd_packets [16:14:59]CheckFolder done [16:14:59]ProducePacketName [16:14:59]name=ofd_packets/00103973 [16:14:59]NVStorageSaveData ofd_packets/00103973 [16:14:59]File name is /storage/ofd_packets/00103973 [16:14:59]Write 301 bytes [16:14:59]NVStorageSaveData done [16:14:59]OFDSenderStorePacket done [16:14:59]KKMCreateOFDPacket done [16:14:59]NVStorageSaveData kkm_last_timestamp [16:14:59]File name is /storage/kkm_last_timestamp [16:14:59]Write 4 bytes [16:14:59]NVStorageSaveData done [16:14:59]ExternCall_PrintAddStr [16:14:59]wPrintStart [16:14:59]Write to MH i2c: 01 00 00 80 30 B0 [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: 01 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: 01 07 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: 01 07 00 80 30 00 00 00 00 00 FF 0F C5 [16:14:59]RasterBufferAndPrint [16:14:59]line Счет N : (1)673340 [16:14:59]line ИНН: 02508201610067 [16:14:59]line Контрольно-Кассовый Чек [16:14:59]line ПРОДАЖА [16:14:59]line ТРК (МРК, ГНК) : 41 [16:14:59]line Товар: 2710124500 [16:14:59]line Аи-95-К-5 [16:14:59]line 35.910 * 73.90 [16:14:59]line = 2653.75 [16:14:59]line НДС 12% НСП 1% [16:14:59]line > о реализуемом товаре [16:14:59]line ИТОГО: 2653.75 [16:14:59]line НСП 1% : 23.48 [16:14:59]line НДС 12% : 281.81 [16:14:59]line Наличными: 0.00 [16:14:59]line Безнал.: 2653.75 [16:14:59]line Место: АЗС № 120 "Партнер Нефть" [16:14:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:14:59]line СНО: Общий режим [16:14:59]line Чек 158 20.06.2024 16:15 [16:14:59]line Смена: 354 ФФД: 1.0 [16:14:59]line ЗНМ: 0300000164 [16:14:59]line РНМ: 0000000000092785 [16:14:59]line Версия ККМ: 001 [16:14:59]line Платежная система: Бакай Банк [16:14:59]line ФМ: 0000000000875093 [16:14:59]line ФД: 103973 [16:14:59]line ФПД: 230949480171873 [16:14:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161500&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103973&fm=230949480171873&tin=02508201610067®Number=0000000000092785&sum=265375 [16:15:00]OFD Sender: Processing packet 103973 [packets to send 17, broken 16] [16:15:00]ProducePacketName [16:15:00]name=ofd_packets/00103973 [16:15:00]OFD Sender: To server: pG, [16:15:00]CommunicateWithHost lk.salyk.kg:30040 [16:15:00]ConnectInit lk.salyk.kg [16:15:00]written 0, free lines is 4095 [16:15:00]Connected sock=10 [16: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 35 30 39 33 0F 01 00 00 47 F9 07 01 10 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 8C 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 9F 0C 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9F 0C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9F 0C 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 84 55 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 25 96 01 00 35 04 06 00 D2 0C 1D BA 09 61 9D 93 41 19 AD EF 93 C5 [16:15:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 50 50 47 00 EE 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 35 30 39 33 10 04 04 00 25 96 01 00 F4 03 04 00 09 FC 73 66 B6 04 01 00 00 20 C0 1F 8F 22 C8 C1 67 [16:15:00]CommunicateWithHost err = 0 [16:15:00]CheckOFDResponse [16:15:00]1017 (14) - 77093643461234 [16:15:00]1041 (16) - 0000000000875093 [16:15:00]1040 (4) - 103973 [16:15:00]1012 (4) - 20.06.2024 09:53 [16:15:00]1206 (1) - 0 [16:15:00]OFD Sender: Remove packet 103973 [16:15:00]ProducePacketName [16:15:00]name=ofd_packets/00103973 [16:15:00]NVStorageDeleteData [16:15:00]Write to MH i2c: 01 00 00 AA 30 DA [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: 01 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: 01 07 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: 01 07 00 AA 30 00 00 00 00 00 FD 0C EA [16:15:00]RasterBufferAndPrint [16:15:00]line [16:15:00]line [16:15:00]line [16:15:00]line [16:15:00]line [16:15:00]written 0, free lines is 3333 [16:15:00]MH_Cut [16:15:00]Write to MH i2c: D1 01 00 B1 30 01 B3 [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: D1 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: D1 01 00 [16:15:00]MH_I2C_Read... [16:15:00]Read from MH i2c: D1 01 00 B1 30 00 B2 [16:15:00]Write to MH i2c: 01 00 00 B2 30 E2 [16:15:00]Write i2c OK [16:15:00]MH_I2C_Read... [16:15:01]OFD Sender: No OFD packet to send [16:15:01]*** Cut start [16:15:01]*** Partial cut [16:15:01]*** CUTSNS_PIN = 1 [16:15:01]*** CUTSNS_PIN = 0 [16:15:01]*** Brake cut motor [16:15:01]Read from MH i2c: 01 [16:15:01]MH_I2C_Read... [16:15:01]*** Stop cut motor [16:15:01]*** Cut end [16:15:01]Read from MH i2c: 01 07 00 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: 01 07 00 B2 30 00 00 00 00 00 FF 0F F7 [16:15:01]process_action close_receipt done [16:15:01]requested_data is exist [16:15:01]produce_requested_data [16:15:01]requested_item fm.sn is exist - process it [16:15:01]wFMCommunicate request_size=4 [16:15:01]MH_SAM_APDU [16:15:01]CAPDU: 80 11 00 00 [16:15:01]Write to MH i2c: E2 08 00 B3 30 80 11 00 00 00 00 00 00 5D [16:15:01]Write i2c OK [16:15:01]MH_I2C_Read... [16:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:01]Read from MH i2c: E2 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 17 00 [16:15:01]MH_I2C_Read... [16:15:01]Read from MH i2c: E2 17 00 B3 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [16:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:15:01]wFMCommunicate OK [16:15:01]requested_item fd.num is exist - process it [16:15:01]SAM_PROTO_GetFieldsCounters [16:15:01]wFMCommunicate request_size=4 [16:15:01]MH_SAM_APDU [16:15:01]CAPDU: 80 13 00 00 [16:15:01]Write to MH i2c: E2 08 00 B4 30 80 13 00 00 00 00 00 00 60 [16:15:01]Write i2c OK [16:15:02]MH_I2C_Read... [16:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:02]Read from MH i2c: E2 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 62 00 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 62 00 B4 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 25 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [16:15:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 25 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:02]wFMCommunicate OK [16:15:02]SAM_PROTO_GetFieldsCounters done [16:15:02]requested_item shift.num is exist - process it [16:15:02]requested_item shift.opened is exist - process it [16:15:02]req_shift_opened [16:15:02]FM_GetShiftState [16:15:02]SAM_PROTO_GetShiftState [16:15:02]wFMCommunicate request_size=4 [16:15:02]MH_SAM_APDU [16:15:02]CAPDU: 80 13 01 00 [16:15:02]Write to MH i2c: E2 08 00 B5 30 80 13 01 00 00 00 00 00 62 [16:15:02]Write i2c OK [16:15:02]MH_I2C_Read... [16:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:02]Read from MH i2c: E2 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 0E 00 [16:15:02]MH_I2C_Read... [16:15:02]Read from MH i2c: E2 0E 00 B5 30 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B1 [16:15:02]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:15:02]wFMCommunicate OK [16:15:02]SAM_PROTO_GetShiftState done [16:15:02]FM_GetShiftState done [16:15:02]req_shift_opened done [16:15:02]requested_item shift.open_date is exist - process it [16:15:02]req_shift_open_date [16:15:02]req_shift_open_date done [16:15:02]produce_requested_data done [16:15:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103973,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:15:02]process_action_free close_receipt [16:15:02]json_value_free [16:15:02]json_value_free done [16:15:02]process_json_proto returns [16:15:02]Send response to host [16:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103973,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:15:02]free response buf [16:15:02]execute_script done [16:15:02]execute_script returns [16:15:02]free content buf [16:15:02]Sock 7.Close socket [16:15:02]Sock 7.Thread stoped [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:38]accept exits with 9 [16:18:38]New connection [16:18:38]New thread 3067063652 created [16:18:38]Thread 3067207012 joined [16:18:38]Waiting for new connection... [16:18:38] Sock 9.Parse request [16:18:38]Sock 9.Check first char [16:18:38]Sock 9.First char is OK [16:18:38]request: POST /json_proto HTTP/1.0 [16:18:38]Method: POST [16:18:38]URL: /json_proto [16:18:38]Method is POST - this is cgi request [16:18:38]url: /json_proto [16:18:38]query_string will be loaded in cgi processing [16:18:38]execute_cgi json_proto POST (null) [16:18:38]execute_cgi path=json_proto method=POST [16:18:38]POST find Content-Length [16:18:38]Host: 172.17.38.133:8080 [16:18:38]Content-Length: 687 [16:18:38]Content-Type: application/json [16:18:38] [16:18:38]POST finish read [16:18:38]Found Content-Length = 687 [16:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 15.090, "sum" : 1100.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:38]execute_script... [16: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)673342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 15.090, "sum" : 1100.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:38]POST & json_proto [16:18:38]process_json_proto [16:18:38]json parsed OK: [16:18:38]protocol is kg_v1.0 [16:18:38]action value=close_receipt [16:18:38]process_action close_receipt [16:18:38]cmd_close_receipt [16:18:38]MH_GetDate [16:18:38]Write to MH i2c: F0 00 00 B6 30 D5 [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: F0 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: F0 09 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: F0 09 00 B6 30 00 61 56 74 66 BD 8F 7C 64 9B [16:18:38]GetLastDocTimeStamp 1718900100 [16:18:38]current date 1718900321 [16:18:38]FM_GetShiftState [16:18:38]SAM_PROTO_GetShiftState [16:18:38]wFMCommunicate request_size=4 [16:18:38]MH_SAM_APDU [16:18:38]CAPDU: 80 13 01 00 [16:18:38]Write to MH i2c: E2 08 00 B7 30 80 13 01 00 00 00 00 00 64 [16:18:38]Write i2c OK [16:18:38]MH_I2C_Read... [16:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:38]Read from MH i2c: E2 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 0E 00 [16:18:38]MH_I2C_Read... [16:18:38]Read from MH i2c: E2 0E 00 B7 30 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B3 [16:18:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:18:38]wFMCommunicate OK [16:18:38]SAM_PROTO_GetShiftState done [16:18:38]FM_GetShiftState done [16:18:38]opened in 1718843124 [16:18:38]opened+sec_in_day 1718929524 [16:18:38]quantity*price = 110006 [16:18:38]sum+1 = 110007 [16:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 159 20.06.2024 16:18 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103974 ФПД: 227654999769859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161841&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103974&fm=227654999769859&tin=02508201610067®Number=0000000000092785&sum=110000 [16:18:39]StoreToDocumentArchive [16:18:39]shift 354 fd 103974 [16:18:39]save to /storage/0354/doc_00103974 [16:18:39]save last doc name /storage/0354/doc_00103974 to /storage/kkm_last_doc_name [16:18:39]save OK [16:18:39]Clear old archive folders... [16:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:18:39]tlvbuf is 0089B9D0 [16:18:39]SAM_PROTO_ClearQueue [16:18:39]wFMCommunicate request_size=4 [16:18:39]MH_SAM_APDU [16:18:39]CAPDU: 80 09 00 00 [16:18:39]Write to MH i2c: E2 08 00 C4 30 80 09 00 00 00 00 00 00 66 [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:39]Read from MH i2c: E2 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 C4 30 00 90 00 68 [16:18:39]RAPDU: 90 00 [16:18:39]wFMCommunicate OK [16:18:39]SAM_PROTO_ClearQueue done [16:18:39]KKMCreateOFDPacket [16:18:39]OFDProtocolAddRootSTLVToBuf [16:18:39]FM_MakeSignedData [16:18:39]FM_MakeSignedData [16:18:39]SAM_PROTO_SignData [16:18:39]wFMCommunicate request_size=4 [16:18:39]MH_SAM_APDU [16:18:39]CAPDU: 80 0D 01 02 [16:18:39]Write to MH i2c: E2 08 00 C5 30 80 0D 01 02 00 00 00 00 6E [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:39]Read from MH i2c: E2 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 C5 30 00 90 00 69 [16:18:39]RAPDU: 90 00 [16:18:39]wFMCommunicate OK [16:18:39]wFMCommunicate request_size=255 [16:18:39]MH_SAM_APDU [16:18: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 61 56 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 96 01 00 35 04 06 00 [16:18:39]Write to MH i2c: E2 02 01 C6 30 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 61 56 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 96 01 00 35 04 06 00 00 00 8A [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:39]Read from MH i2c: E2 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 C6 30 00 90 00 6A [16:18:39]RAPDU: 90 00 [16:18:39]wFMCommunicate OK [16:18:39]wFMCommunicate request_size=11 [16:18:39]MH_SAM_APDU [16:18:39]CAPDU: 80 0D 02 02 06 CF 0D 0F 64 83 03 [16:18:39]Write to MH i2c: E2 0E 00 C7 30 80 0D 02 02 06 00 CF 0D 0F 64 83 03 00 00 52 [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:39]Read from MH i2c: E2 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 [16:18:39]MH_I2C_Read... [16:18:39]Read from MH i2c: E2 03 00 C7 30 00 90 00 6B [16:18:39]RAPDU: 90 00 [16:18:39]wFMCommunicate OK [16:18:39]wFMCommunicate request_size=4 [16:18:39]MH_SAM_APDU [16:18:39]CAPDU: 80 0D 03 02 [16:18:39]Write to MH i2c: E2 08 00 C8 30 80 0D 03 02 00 00 00 00 73 [16:18:39]Write i2c OK [16:18:39]MH_I2C_Read... [16:18:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:40]Read from MH i2c: E2 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 0B 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 0B 00 C8 30 00 E4 3C 2E 68 67 43 86 0A 90 00 64 [16:18:40]RAPDU: E4 3C 2E 68 67 43 86 0A 90 00 [16:18:40]wFMCommunicate OK [16:18:40]SAM_PROTO_SignData done [16:18:40]FM_MakeSignedData done [16:18:40]CreateOFDProtocolMessage [16:18:40]wFMCommunicate request_size=4 [16:18:40]MH_SAM_APDU [16:18:40]CAPDU: 80 11 00 00 [16:18:40]Write to MH i2c: E2 08 00 C9 30 80 11 00 00 00 00 00 00 73 [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:40]Read from MH i2c: E2 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 17 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: E2 17 00 C9 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C6 [16:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:18:40]wFMCommunicate OK [16:18:40]CreateOFDProtocolMessage done [16:18:40]OFDSenderStorePacket 103974 [16:18:40]StoreOFDPacket docnum=103974 [16:18:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DC D7 08 01 4F 4C 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 61 56 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 96 01 00 35 04 06 00 CF 0D 0F 64 83 03 E4 3C 2E 68 67 43 86 0A [16:18:40]CheckFolder [16:18:40]dirname=/storage/ofd_packets [16:18:40]CheckFolder done [16:18:40]ProducePacketName [16:18:40]name=ofd_packets/00103974 [16:18:40]NVStorageSaveData ofd_packets/00103974 [16:18:40]File name is /storage/ofd_packets/00103974 [16:18:40]Write 302 bytes [16:18:40]NVStorageSaveData done [16:18:40]OFDSenderStorePacket done [16:18:40]KKMCreateOFDPacket done [16:18:40]NVStorageSaveData kkm_last_timestamp [16:18:40]File name is /storage/kkm_last_timestamp [16:18:40]Write 4 bytes [16:18:40]NVStorageSaveData done [16:18:40]ExternCall_PrintAddStr [16:18:40]wPrintStart [16:18:40]Write to MH i2c: 01 00 00 CA 30 FA [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 07 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 07 00 CA 30 00 00 00 00 00 FF 0F 0F [16:18:40]RasterBufferAndPrint [16:18:40]line Счет N : (1)673342 [16:18:40]line ИНН: 02508201610067 [16:18:40]line Контрольно-Кассовый Чек [16:18:40]line ПРОДАЖА [16:18:40]line ТРК (МРК, ГНК) : 21 [16:18:40]line Товар: 2710194210 [16:18:40]line ДТ(л)-К-5 [16:18:40]line 15.090 * 72.90 [16:18:40]line = 1100.06 [16:18:40]line НДС 12% НСП 1% [16:18:40]line > о реализуемом товаре [16:18:40]line ОКРУГЛЕНИЕ: -0.06 [16:18:40]line ИТОГО: 1100.00 [16:18:40]line Внесено: 1100.00 [16:18:40]line СДАЧА: 0.00 [16:18:40]line НСП 1% : 9.73 [16:18:40]line НДС 12% : 116.82 [16:18:40]line Наличными: 1100.00 [16:18:40]line Безнал.: 0.00 [16:18:40]line Место: АЗС № 120 "Партнер Нефть" [16:18:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:18:40]line СНО: Общий режим [16:18:40]line Чек 159 20.06.2024 16:18 [16:18:40]line Смена: 354 ФФД: 1.0 [16:18:40]line ЗНМ: 0300000164 [16:18:40]line РНМ: 0000000000092785 [16:18:40]line Версия ККМ: 001 [16:18:40]line ФМ: 0000000000875093 [16:18:40]line ФД: 103974 [16:18:40]line ФПД: 227654999769859 [16:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T161841&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103974&fm=227654999769859&tin=02508201610067®Number=0000000000092785&sum=110000 [16:18:40]OFD Sender: Processing packet 103974 [packets to send 17, broken 16] [16:18:40]ProducePacketName [16:18:40]name=ofd_packets/00103974 [16:18:40]OFD Sender: To server: pG, [16:18:40]CommunicateWithHost lk.salyk.kg:30040 [16:18:40]ConnectInit lk.salyk.kg [16:18:40]written 0, free lines is 4095 [16:18:40]Write to MH i2c: 01 00 00 F5 30 25 [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 07 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: 01 07 00 F5 30 00 00 00 00 00 DE 0C 16 [16:18:40]RasterBufferAndPrint [16:18:40]line [16:18:40]line [16:18:40]line [16:18:40]line [16:18:40]line [16:18:40]written 0, free lines is 3301 [16:18:40]MH_Cut [16:18:40]Write to MH i2c: D1 01 00 FC 30 01 FE [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: D1 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: D1 01 00 [16:18:40]MH_I2C_Read... [16:18:40]Read from MH i2c: D1 01 00 FC 30 00 FD [16:18:40]Write to MH i2c: 01 00 00 FD 30 2D [16:18:40]Write i2c OK [16:18:40]MH_I2C_Read... [16:18:41]*** Cut start [16:18:41]*** Partial cut [16:18:41]*** CUTSNS_PIN = 1 [16:18:41]*** CUTSNS_PIN = 0 [16:18:41]*** Brake cut motor [16:18:42]Read from MH i2c: 01 [16:18:42]MH_I2C_Read... [16:18:42]*** Stop cut motor [16:18:42]*** Cut end [16:18:42]Read from MH i2c: 01 07 00 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: 01 07 00 FD 30 00 00 00 00 00 FF 0F 42 [16:18:42]process_action close_receipt done [16:18:42]requested_data is exist [16:18:42]produce_requested_data [16:18:42]requested_item fm.sn is exist - process it [16:18:42]wFMCommunicate request_size=4 [16:18:42]MH_SAM_APDU [16:18:42]CAPDU: 80 11 00 00 [16:18:42]Write to MH i2c: E2 08 00 FE 30 80 11 00 00 00 00 00 00 A8 [16:18:42]Write i2c OK [16:18:42]MH_I2C_Read... [16:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:42]Read from MH i2c: E2 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 17 00 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 17 00 FE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FB [16:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:18:42]wFMCommunicate OK [16:18:42]requested_item fd.num is exist - process it [16:18:42]SAM_PROTO_GetFieldsCounters [16:18:42]wFMCommunicate request_size=4 [16:18:42]MH_SAM_APDU [16:18:42]CAPDU: 80 13 00 00 [16:18:42]Write to MH i2c: E2 08 00 FF 30 80 13 00 00 00 00 00 00 AB [16:18:42]Write i2c OK [16:18:42]MH_I2C_Read... [16:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:42]Read from MH i2c: E2 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 62 00 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 62 00 FF 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 26 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [16:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 26 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:42]wFMCommunicate OK [16:18:42]SAM_PROTO_GetFieldsCounters done [16:18:42]requested_item shift.num is exist - process it [16:18:42]requested_item shift.opened is exist - process it [16:18:42]req_shift_opened [16:18:42]FM_GetShiftState [16:18:42]SAM_PROTO_GetShiftState [16:18:42]wFMCommunicate request_size=4 [16:18:42]MH_SAM_APDU [16:18:42]CAPDU: 80 13 01 00 [16:18:42]Write to MH i2c: E2 08 00 00 31 80 13 01 00 00 00 00 00 AE [16:18:42]Write i2c OK [16:18:42]MH_I2C_Read... [16:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:42]Read from MH i2c: E2 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 0E 00 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 0E 00 00 31 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FD [16:18:42]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:18:42]wFMCommunicate OK [16:18:42]SAM_PROTO_GetShiftState done [16:18:42]FM_GetShiftState done [16:18:42]req_shift_opened done [16:18:42]requested_item shift.open_date is exist - process it [16:18:42]req_shift_open_date [16:18:42]req_shift_open_date done [16:18:42]produce_requested_data done [16:18:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103974,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:18:42]process_action_free close_receipt [16:18:42]json_value_free [16:18:42]json_value_free done [16:18:42]process_json_proto returns [16:18:42]Send response to host [16:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103974,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:18:42]free response buf [16:18:42]execute_script done [16:18:42]execute_script returns [16:18:42]free content buf [16:18:42]Sock 9.Close socket [16:18:42]Sock 9.Thread stoped [16:20:46]accept exits with 7 [16:20:46]New connection [16:20:46]New thread 3067207012 created [16:20:46]Thread 3067063652 joined [16:20:46]Waiting for new connection... [16:20:46] Sock 7.Parse request [16:20:46]Sock 7.Check first char [16:20:46]Sock 7.First char is OK [16:20:46]request: POST /json_proto HTTP/1.0 [16:20:46]Method: POST [16:20:46]URL: /json_proto [16:20:46]Method is POST - this is cgi request [16:20:46]url: /json_proto [16:20:46]query_string will be loaded in cgi processing [16:20:46]execute_cgi json_proto POST (null) [16:20:46]execute_cgi path=json_proto method=POST [16:20:46]POST find Content-Length [16:20:46]Host: 172.17.38.133:8080 [16:20:46]Content-Length: 1173 [16:20:46]Content-Type: application/json [16:20:46] [16:20:46]POST finish read [16:20:46]Found Content-Length = 1173 [16:20:46]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673343\u000A20.06.2024 15:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:46]execute_script... [16:20:46]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673343\u000A20.06.2024 15:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:46]POST & json_proto [16:20:46]process_json_proto [16:20:46]json parsed OK: [16:20:46]protocol is kg_v1.0 [16:20:46]action value=print_text [16:20:46]process_action print_text [16:20:46]cmd_print_text [16:20:46]ExternCall_PrintAddStr [16:20:46]wPrintStart [16:20:46]Write to MH i2c: 01 00 00 01 31 32 [16:20:46]Write i2c OK [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: 01 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: 01 07 00 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: 01 07 00 01 31 00 00 00 00 00 FF 0F 47 [16:20:46]RasterBufferAndPrint [16:20:46]line *****ТОВАРНЫЙ ЧЕК***** [16:20:46]line АЗС 120 [16:20:46]line Партнер нефть [16:20:46]line 02508201610067 [16:20:46]line Кассир : Дуйшенбиев А. [16:20:46]line Счет N : (1)673343 [16:20:46]line 20.06.2024 15:58 [16:20:46]line ПРОДАЖА [16:20:46]line ТРК (МРК, ГНК): 11 [16:20:46]line Вид ГСМ : 2710194210 [16:20:46]line ДТ(л)-К-5 [16:20:46]line 10.000 x 72.90 [16:20:46]line ИТОГ: 729.00 [16:20:46]line Тип оплаты: Талоны: ТК ГПНА Online [16:20:46]line 30101788 [16:20:46]line ______________________ [16:20:46]line (подпись) [16:20:46]written 0, free lines is 4095 [16:20:46]Write to MH i2c: 01 00 00 15 31 46 [16:20:46]Write i2c OK [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: 01 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: 01 07 00 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: 01 07 00 15 31 00 00 00 00 00 0F 0E 6A [16:20:46]RasterBufferAndPrint [16:20:46]line [16:20:46]line [16:20:46]line [16:20:46]line [16:20:46]line [16:20:46]written 0, free lines is 3601 [16:20:46]MH_Cut [16:20:46]Write to MH i2c: D1 01 00 1C 31 01 1F [16:20:46]Write i2c OK [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: D1 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: D1 01 00 [16:20:46]MH_I2C_Read... [16:20:46]Read from MH i2c: D1 01 00 1C 31 00 1E [16:20:46]Write to MH i2c: 01 00 00 1D 31 4E [16:20:46]Write i2c OK [16:20:46]MH_I2C_Read... [16:20:47]*** Cut start [16:20:47]*** Partial cut [16:20:47]*** CUTSNS_PIN = 1 [16:20:47]*** CUTSNS_PIN = 0 [16:20:47]*** Brake cut motor [16:20:47]Read from MH i2c: 01 [16:20:47]MH_I2C_Read... [16:20:47]Read from MH i2c: 01 07 00 [16:20:47]MH_I2C_Read... [16:20:47]*** Stop cut motor [16:20:47]*** Cut end [16:20:47]Read from MH i2c: 01 07 00 1D 31 00 00 00 00 00 FF 0F 63 [16:20:47]process_action print_text done [16:20:47]requested_data is exist [16:20:47]produce_requested_data [16:20:47]requested_item fm.sn is exist - process it [16:20:47]wFMCommunicate request_size=4 [16:20:47]MH_SAM_APDU [16:20:47]CAPDU: 80 11 00 00 [16:20:47]Write to MH i2c: E2 08 00 1E 31 80 11 00 00 00 00 00 00 C9 [16:20:47]Write i2c OK [16:20:47]MH_I2C_Read... [16:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:47]Read from MH i2c: E2 [16:20:47]MH_I2C_Read... [16:20:47]Read from MH i2c: E2 17 00 [16:20:47]MH_I2C_Read... [16:20:47]Read from MH i2c: E2 17 00 1E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [16:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:20:47]wFMCommunicate OK [16:20:47]requested_item fd.num is exist - process it [16:20:47]SAM_PROTO_GetFieldsCounters [16:20:47]wFMCommunicate request_size=4 [16:20:47]MH_SAM_APDU [16:20:47]CAPDU: 80 13 00 00 [16:20:47]Write to MH i2c: E2 08 00 1F 31 80 13 00 00 00 00 00 00 CC [16:20:47]Write i2c OK [16:20:47]MH_I2C_Read... [16:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:47]Read from MH i2c: E2 [16:20:47]MH_I2C_Read... [16:20:47]Read from MH i2c: E2 62 00 [16:20:47]MH_I2C_Read... [16:20:47]Read from MH i2c: E2 62 00 1F 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 26 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [16:20:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 26 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:47]wFMCommunicate OK [16:20:47]SAM_PROTO_GetFieldsCounters done [16:20:47]requested_item shift.num is exist - process it [16:20:47]requested_item shift.opened is exist - process it [16:20:47]req_shift_opened [16:20:47]FM_GetShiftState [16:20:47]SAM_PROTO_GetShiftState [16:20:47]wFMCommunicate request_size=4 [16:20:47]MH_SAM_APDU [16:20:47]CAPDU: 80 13 01 00 [16:20:47]Write to MH i2c: E2 08 00 20 31 80 13 01 00 00 00 00 00 CE [16:20:47]Write i2c OK [16:20:47]MH_I2C_Read... [16:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:48]Read from MH i2c: E2 [16:20:48]MH_I2C_Read... [16:20:48]Read from MH i2c: E2 0E 00 [16:20:48]MH_I2C_Read... [16:20:48]Read from MH i2c: E2 0E 00 20 31 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1D [16:20:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:20:48]wFMCommunicate OK [16:20:48]SAM_PROTO_GetShiftState done [16:20:48]FM_GetShiftState done [16:20:48]req_shift_opened done [16:20:48]requested_item shift.open_date is exist - process it [16:20:48]req_shift_open_date [16:20:48]req_shift_open_date done [16:20:48]produce_requested_data done [16:20:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103974,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:20:48]process_action_free print_text [16:20:48]json_value_free [16:20:48]json_value_free done [16:20:48]process_json_proto returns [16:20:48]Send response to host [16:20:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103974,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:20:48]free response buf [16:20:48]execute_script done [16:20:48]execute_script returns [16:20:48]free content buf [16:20:48]Sock 7.Close socket [16:20:48]Sock 7.Thread stoped [16:20:52]ConnectInit Can't connect to host [16:20:52]CommunicateWithHost connect error [16:20:52]CommunicateWithHost err = -1 [16:20:52]OFD Sender: Server communicate error [16:20:57]OFD Sender: Processing packet 103974 [packets to send 17, broken 16] [16:20:57]ProducePacketName [16:20:57]name=ofd_packets/00103974 [16:20:57]OFD Sender: To server: pG, [16:20:57]CommunicateWithHost lk.salyk.kg:30040 [16:20:57]ConnectInit lk.salyk.kg [16:20:57]Connected sock=7 [16:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DC D7 08 01 4F 4C 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B6 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 61 56 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 96 01 00 35 04 06 00 CF 0D 0F 64 83 03 E4 3C 2E 68 67 43 86 0A [16:20:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A3 09 47 00 FF FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 26 96 01 00 F4 03 04 00 6E FD 73 66 B6 04 01 00 00 3F 97 C6 13 8C 17 C5 F0 [16:20:57]CommunicateWithHost err = 0 [16:20:57]CheckOFDResponse [16:20:57]1017 (14) - 77093643461234 [16:20:57]1041 (16) - 0000000000875093 [16:20:57]1040 (4) - 103974 [16:20:57]1012 (4) - 20.06.2024 09:59 [16:20:57]1206 (1) - 0 [16:20:57]OFD Sender: Remove packet 103974 [16:20:57]ProducePacketName [16:20:57]name=ofd_packets/00103974 [16:20:57]NVStorageDeleteData [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:05]accept exits with 9 [16:24:05]New connection [16:24:05]New thread 3067063652 created [16:24:05]Thread 3067207012 joined [16:24:05]Waiting for new connection... [16:24:05] Sock 9.Parse request [16:24:05]Sock 9.Check first char [16:24:05]Sock 9.First char is OK [16:24:05]request: POST /json_proto HTTP/1.0 [16:24:05]Method: POST [16:24:05]URL: /json_proto [16:24:05]Method is POST - this is cgi request [16:24:05]url: /json_proto [16:24:05]query_string will be loaded in cgi processing [16:24:05]execute_cgi json_proto POST (null) [16:24:05]execute_cgi path=json_proto method=POST [16:24:05]POST find Content-Length [16:24:05]Host: 172.17.38.133:8080 [16:24:05]Content-Length: 687 [16:24:05]Content-Type: application/json [16:24:05] [16:24:05]POST finish read [16:24:05]Found Content-Length = 687 [16:24:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:05]execute_script... [16:24: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)673344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:05]POST & json_proto [16:24:05]process_json_proto [16:24:05]json parsed OK: [16:24:05]protocol is kg_v1.0 [16:24:05]action value=close_receipt [16:24:05]process_action close_receipt [16:24:05]cmd_close_receipt [16:24:05]MH_GetDate [16:24:05]Write to MH i2c: F0 00 00 21 31 41 [16:24:05]Write i2c OK [16:24:05]MH_I2C_Read... [16:24:05]Read from MH i2c: F0 [16:24:05]MH_I2C_Read... [16:24:05]Read from MH i2c: F0 09 00 [16:24:05]MH_I2C_Read... [16:24:05]Read from MH i2c: F0 09 00 21 31 00 A8 57 74 66 BD 8F 7C 64 4F [16:24:05]GetLastDocTimeStamp 1718900321 [16:24:05]current date 1718900648 [16:24:05]FM_GetShiftState [16:24:05]SAM_PROTO_GetShiftState [16:24:05]wFMCommunicate request_size=4 [16:24:05]MH_SAM_APDU [16:24:05]CAPDU: 80 13 01 00 [16:24:05]Write to MH i2c: E2 08 00 22 31 80 13 01 00 00 00 00 00 D0 [16:24:05]Write i2c OK [16:24:05]MH_I2C_Read... [16:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:05]Read from MH i2c: E2 [16:24:05]MH_I2C_Read... [16:24:05]Read from MH i2c: E2 0E 00 [16:24:05]MH_I2C_Read... [16:24:05]Read from MH i2c: E2 0E 00 22 31 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1F [16:24:05]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:24:05]wFMCommunicate OK [16:24:05]SAM_PROTO_GetShiftState done [16:24:05]FM_GetShiftState done [16:24:05]opened in 1718843124 [16:24:05]opened+sec_in_day 1718929524 [16:24:05]quantity*price = 100018 [16:24:05]sum+1 = 100020 [16:24:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 160 20.06.2024 16:24 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103975 ФПД: 249377058622559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162408&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103975&fm=249377058622559&tin=02508201610067®Number=0000000000092785&sum=100000 [16:24:07]StoreToDocumentArchive [16:24:07]shift 354 fd 103975 [16:24:07]save to /storage/0354/doc_00103975 [16:24:07]save last doc name /storage/0354/doc_00103975 to /storage/kkm_last_doc_name [16:24:07]save OK [16:24:07]Clear old archive folders... [16:24:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:24:07]tlvbuf is 0084D570 [16:24:07]SAM_PROTO_ClearQueue [16:24:07]wFMCommunicate request_size=4 [16:24:07]MH_SAM_APDU [16:24:07]CAPDU: 80 09 00 00 [16:24:07]Write to MH i2c: E2 08 00 2F 31 80 09 00 00 00 00 00 00 D2 [16:24:07]Write i2c OK [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 [16:24:07]MH_I2C_Read... [16:24:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:07]Read from MH i2c: E2 03 00 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 03 00 2F 31 00 90 00 D4 [16:24:07]RAPDU: 90 00 [16:24:07]wFMCommunicate OK [16:24:07]SAM_PROTO_ClearQueue done [16:24:07]KKMCreateOFDPacket [16:24:07]OFDProtocolAddRootSTLVToBuf [16:24:07]FM_MakeSignedData [16:24:07]FM_MakeSignedData [16:24:07]SAM_PROTO_SignData [16:24:07]wFMCommunicate request_size=4 [16:24:07]MH_SAM_APDU [16:24:07]CAPDU: 80 0D 01 02 [16:24:07]Write to MH i2c: E2 08 00 30 31 80 0D 01 02 00 00 00 00 DA [16:24:07]Write i2c OK [16:24:07]MH_I2C_Read... [16:24:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:07]Read from MH i2c: E2 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 03 00 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 03 00 30 31 00 90 00 D5 [16:24:07]RAPDU: 90 00 [16:24:07]wFMCommunicate OK [16:24:07]wFMCommunicate request_size=255 [16:24:07]MH_SAM_APDU [16:24:07]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 A8 57 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 96 01 00 35 04 06 00 [16:24:07]Write to MH i2c: E2 02 01 31 31 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 A8 57 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 96 01 00 35 04 06 00 00 00 C8 [16:24:07]Write i2c OK [16:24:07]MH_I2C_Read... [16:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:07]Read from MH i2c: E2 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 03 00 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 03 00 31 31 00 90 00 D6 [16:24:07]RAPDU: 90 00 [16:24:07]wFMCommunicate OK [16:24:07]wFMCommunicate request_size=11 [16:24:07]MH_SAM_APDU [16:24:07]CAPDU: 80 0D 02 02 06 E2 CE 9E FE 8C 5F [16:24:07]Write to MH i2c: E2 0E 00 32 31 80 0D 02 02 06 00 E2 CE 9E FE 8C 5F 00 00 20 [16:24:07]Write i2c OK [16:24:07]MH_I2C_Read... [16:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:07]Read from MH i2c: E2 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 03 00 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 03 00 32 31 00 90 00 D7 [16:24:07]RAPDU: 90 00 [16:24:07]wFMCommunicate OK [16:24:07]wFMCommunicate request_size=4 [16:24:07]MH_SAM_APDU [16:24:07]CAPDU: 80 0D 03 02 [16:24:07]Write to MH i2c: E2 08 00 33 31 80 0D 03 02 00 00 00 00 DF [16:24:07]Write i2c OK [16:24:07]MH_I2C_Read... [16:24:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:07]Read from MH i2c: E2 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 0B 00 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 0B 00 33 31 00 AE 67 E6 16 74 65 E8 F4 90 00 A6 [16:24:07]RAPDU: AE 67 E6 16 74 65 E8 F4 90 00 [16:24:07]wFMCommunicate OK [16:24:07]SAM_PROTO_SignData done [16:24:07]FM_MakeSignedData done [16:24:07]CreateOFDProtocolMessage [16:24:07]wFMCommunicate request_size=4 [16:24:07]MH_SAM_APDU [16:24:07]CAPDU: 80 11 00 00 [16:24:07]Write to MH i2c: E2 08 00 34 31 80 11 00 00 00 00 00 00 DF [16:24:07]Write i2c OK [16:24:07]MH_I2C_Read... [16:24:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:07]Read from MH i2c: E2 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 17 00 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 17 00 34 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [16:24:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:24:07]wFMCommunicate OK [16:24:07]CreateOFDProtocolMessage done [16:24:07]OFDSenderStorePacket 103975 [16:24:07]StoreOFDPacket docnum=103975 [16:24:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1B 61 08 01 CB FD 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 A8 57 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 96 01 00 35 04 06 00 E2 CE 9E FE 8C 5F AE 67 E6 16 74 65 E8 F4 [16:24:07]CheckFolder [16:24:07]dirname=/storage/ofd_packets [16:24:07]CheckFolder done [16:24:07]ProducePacketName [16:24:07]name=ofd_packets/00103975 [16:24:07]NVStorageSaveData ofd_packets/00103975 [16:24:07]File name is /storage/ofd_packets/00103975 [16:24:07]Write 302 bytes [16:24:07]NVStorageSaveData done [16:24:07]OFDSenderStorePacket done [16:24:07]KKMCreateOFDPacket done [16:24:07]NVStorageSaveData kkm_last_timestamp [16:24:07]File name is /storage/kkm_last_timestamp [16:24:07]Write 4 bytes [16:24:07]NVStorageSaveData done [16:24:07]ExternCall_PrintAddStr [16:24:07]wPrintStart [16:24:07]Write to MH i2c: 01 00 00 35 31 66 [16:24:07]Write i2c OK [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: 01 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: 01 07 00 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: 01 07 00 35 31 00 00 00 00 00 FF 0F 7B [16:24:07]RasterBufferAndPrint [16:24:07]line Счет N : (1)673344 [16:24:07]line ИНН: 02508201610067 [16:24:07]line Контрольно-Кассовый Чек [16:24:07]line ПРОДАЖА [16:24:07]line ТРК (МРК, ГНК) : 21 [16:24:07]line Товар: 2710194210 [16:24:07]line ДТ(л)-К-5 [16:24:07]line 13.720 * 72.90 [16:24:07]line = 1000.19 [16:24:07]line НДС 12% НСП 1% [16:24:07]line > о реализуемом товаре [16:24:07]line ОКРУГЛЕНИЕ: -0.19 [16:24:07]line ИТОГО: 1000.00 [16:24:07]line Внесено: 1000.00 [16:24:07]line СДАЧА: 0.00 [16:24:07]line НСП 1% : 8.85 [16:24:07]line НДС 12% : 106.21 [16:24:07]line Наличными: 1000.00 [16:24:07]line Безнал.: 0.00 [16:24:07]line Место: АЗС № 120 "Партнер Нефть" [16:24:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:24:07]line СНО: Общий режим [16:24:07]line Чек 160 20.06.2024 16:24 [16:24:07]line Смена: 354 ФФД: 1.0 [16:24:07]line ЗНМ: 0300000164 [16:24:07]line РНМ: 0000000000092785 [16:24:07]line Версия ККМ: 001 [16:24:07]line ФМ: 0000000000875093 [16:24:07]line ФД: 103975 [16:24:07]line ФПД: 249377058622559 [16:24:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162408&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103975&fm=249377058622559&tin=02508201610067®Number=0000000000092785&sum=100000 [16:24:07]OFD Sender: Processing packet 103975 [packets to send 17, broken 16] [16:24:07]ProducePacketName [16:24:07]name=ofd_packets/00103975 [16:24:07]OFD Sender: To server: pG, [16:24:07]CommunicateWithHost lk.salyk.kg:30040 [16:24:07]ConnectInit lk.salyk.kg [16:24:07]written 0, free lines is 4095 [16:24:08]Connected sock=10 [16:24:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1B 61 08 01 CB FD 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 A8 57 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 96 01 00 35 04 06 00 E2 CE 9E FE 8C 5F AE 67 E6 16 74 65 E8 F4 [16:24:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 33 FF 47 00 15 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 27 96 01 00 F4 03 04 00 2D FE 73 66 B6 04 01 00 00 5E E5 D1 CB 3E 40 B8 C3 [16:24:08]CommunicateWithHost err = 0 [16:24:08]CheckOFDResponse [16:24:08]1017 (14) - 77093643461234 [16:24:08]1041 (16) - 0000000000875093 [16:24:08]1040 (4) - 103975 [16:24:08]1012 (4) - 20.06.2024 10:02 [16:24:08]1206 (1) - 0 [16:24:08]OFD Sender: Remove packet 103975 [16:24:08]ProducePacketName [16:24:08]name=ofd_packets/00103975 [16:24:08]NVStorageDeleteData [16:24:08]Write to MH i2c: 01 00 00 60 31 91 [16:24:08]Write i2c OK [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: 01 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: 01 07 00 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: 01 07 00 60 31 00 00 00 00 00 EC 0C 90 [16:24:08]RasterBufferAndPrint [16:24:08]line [16:24:08]line [16:24:08]line [16:24:08]line [16:24:08]line [16:24:08]written 0, free lines is 3314 [16:24:08]MH_Cut [16:24:08]Write to MH i2c: D1 01 00 67 31 01 6A [16:24:08]Write i2c OK [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: D1 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: D1 01 00 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: D1 01 00 67 31 00 69 [16:24:08]Write to MH i2c: 01 00 00 68 31 99 [16:24:08]Write i2c OK [16:24:08]MH_I2C_Read... [16:24:08]OFD Sender: No OFD packet to send [16:24:09]*** Cut start [16:24:09]*** Partial cut [16:24:09]*** CUTSNS_PIN = 1 [16:24:09]*** CUTSNS_PIN = 0 [16:24:09]*** Brake cut motor [16:24:09]Read from MH i2c: 01 [16:24:09]MH_I2C_Read... [16:24:09]*** Stop cut motor [16:24:09]*** Cut end [16:24:09]Read from MH i2c: 01 07 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: 01 07 00 68 31 00 00 00 00 00 FF 0F AE [16:24:09]process_action close_receipt done [16:24:09]requested_data is exist [16:24:09]produce_requested_data [16:24:09]requested_item fm.sn is exist - process it [16:24:09]wFMCommunicate request_size=4 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 11 00 00 [16:24:09]Write to MH i2c: E2 08 00 69 31 80 11 00 00 00 00 00 00 14 [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:09]Read from MH i2c: E2 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 17 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 17 00 69 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [16:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:24:09]wFMCommunicate OK [16:24:09]requested_item fd.num is exist - process it [16:24:09]SAM_PROTO_GetFieldsCounters [16:24:09]wFMCommunicate request_size=4 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 13 00 00 [16:24:09]Write to MH i2c: E2 08 00 6A 31 80 13 00 00 00 00 00 00 17 [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:09]Read from MH i2c: E2 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 62 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 62 00 6A 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 27 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [16:24:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 27 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:09]wFMCommunicate OK [16:24:09]SAM_PROTO_GetFieldsCounters done [16:24:09]requested_item shift.num is exist - process it [16:24:09]requested_item shift.opened is exist - process it [16:24:09]req_shift_opened [16:24:09]FM_GetShiftState [16:24:09]SAM_PROTO_GetShiftState [16:24:09]wFMCommunicate request_size=4 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 13 01 00 [16:24:09]Write to MH i2c: E2 08 00 6B 31 80 13 01 00 00 00 00 00 19 [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 0E 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 0E 00 6B 31 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 68 [16:24:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:24:10]wFMCommunicate OK [16:24:10]SAM_PROTO_GetShiftState done [16:24:10]FM_GetShiftState done [16:24:10]req_shift_opened done [16:24:10]requested_item shift.open_date is exist - process it [16:24:10]req_shift_open_date [16:24:10]req_shift_open_date done [16:24:10]produce_requested_data done [16:24:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103975,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:24:10]process_action_free close_receipt [16:24:10]json_value_free [16:24:10]json_value_free done [16:24:10]process_json_proto returns [16:24:10]Send response to host [16:24:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103975,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:24:10]free response buf [16:24:10]execute_script done [16:24:10]execute_script returns [16:24:10]free content buf [16:24:10]Sock 9.Close socket [16:24:10]Sock 9.Thread stoped [16:24:12]accept exits with 7 [16:24:12]New connection [16:24:12]New thread 3067207012 created [16:24:12]Thread 3067063652 joined [16:24:12]Waiting for new connection... [16:24:12] Sock 7.Parse request [16:24:12]Sock 7.Check first char [16:24:12]Sock 7.First char is OK [16:24:12]request: POST /json_proto HTTP/1.0 [16:24:12]Method: POST [16:24:12]URL: /json_proto [16:24:12]Method is POST - this is cgi request [16:24:12]url: /json_proto [16:24:12]query_string will be loaded in cgi processing [16:24:12]execute_cgi json_proto POST (null) [16:24:12]execute_cgi path=json_proto method=POST [16:24:12]POST find Content-Length [16:24:12]Host: 172.17.38.133:8080 [16:24:12]Content-Length: 1206 [16:24:12]Content-Type: application/json [16:24:12] [16:24:12]POST finish read [16:24:12]Found Content-Length = 1206 [16:24: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673345\u000A20.06.2024 16:01\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 66.40\u000A\u0418\u0422\u041E\u0413: 664.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\u000A54982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:12]execute_script... [16:24: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673345\u000A20.06.2024 16:01\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 66.40\u000A\u0418\u0422\u041E\u0413: 664.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\u000A54982\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:12]POST & json_proto [16:24:12]process_json_proto [16:24:12]json parsed OK: [16:24:12]protocol is kg_v1.0 [16:24:12]action value=print_text [16:24:12]process_action print_text [16:24:12]cmd_print_text [16:24:12]ExternCall_PrintAddStr [16:24:12]wPrintStart [16:24:12]Write to MH i2c: 01 00 00 6C 31 9D [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 07 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 07 00 6C 31 00 00 00 00 00 FF 0F B2 [16:24:12]RasterBufferAndPrint [16:24:12]line *****ТОВАРНЫЙ ЧЕК***** [16:24:12]line АЗС 120 [16:24:12]line Партнер нефть [16:24:12]line 02508201610067 [16:24:12]line Кассир : Дуйшенбиев А. [16:24:12]line Счет N : (1)673345 [16:24:12]line 20.06.2024 16:01 [16:24:12]line ПРОДАЖА [16:24:12]line ТРК (МРК, ГНК): 42 [16:24:12]line Вид ГСМ : 2710124130 [16:24:12]line Аи-92-К-5 [16:24:12]line 10.000 x 66.40 [16:24:12]line ИТОГ: 664.00 [16:24:12]line Тип оплаты: Талоны: Топливная Карта [16:24:12]line 54982 [16:24:12]line ______________________ [16:24:12]line (подпись) [16:24:12]written 0, free lines is 4095 [16:24:12]Write to MH i2c: 01 00 00 80 31 B1 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 07 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 07 00 80 31 00 00 00 00 00 12 0E D8 [16:24:12]RasterBufferAndPrint [16:24:12]line [16:24:12]line [16:24:12]line [16:24:12]line [16:24:12]line [16:24:12]written 0, free lines is 3604 [16:24:12]MH_Cut [16:24:12]Write to MH i2c: D1 01 00 87 31 01 8A [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: D1 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: D1 01 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: D1 01 00 87 31 00 89 [16:24:12]Write to MH i2c: 01 00 00 88 31 B9 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]*** Cut start [16:24:12]*** Partial cut [16:24:12]*** CUTSNS_PIN = 1 [16:24:13]*** CUTSNS_PIN = 0 [16:24:13]*** Brake cut motor [16:24:13]Read from MH i2c: 01 [16:24:13]MH_I2C_Read... [16:24:13]*** Stop cut motor [16:24:13]*** Cut end [16:24:13]Read from MH i2c: 01 07 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: 01 07 00 88 31 00 00 00 00 00 FF 0F CE [16:24:13]process_action print_text done [16:24:13]requested_data is exist [16:24:13]produce_requested_data [16:24:13]requested_item fm.sn is exist - process it [16:24:13]wFMCommunicate request_size=4 [16:24:13]MH_SAM_APDU [16:24:13]CAPDU: 80 11 00 00 [16:24:13]Write to MH i2c: E2 08 00 89 31 80 11 00 00 00 00 00 00 34 [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:13]Read from MH i2c: E2 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 17 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 17 00 89 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [16:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:24:13]wFMCommunicate OK [16:24:13]requested_item fd.num is exist - process it [16:24:13]SAM_PROTO_GetFieldsCounters [16:24:13]wFMCommunicate request_size=4 [16:24:13]MH_SAM_APDU [16:24:13]CAPDU: 80 13 00 00 [16:24:13]Write to MH i2c: E2 08 00 8A 31 80 13 00 00 00 00 00 00 37 [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:13]Read from MH i2c: E2 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 62 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 62 00 8A 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 27 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [16:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 27 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:13]wFMCommunicate OK [16:24:13]SAM_PROTO_GetFieldsCounters done [16:24:13]requested_item shift.num is exist - process it [16:24:13]requested_item shift.opened is exist - process it [16:24:13]req_shift_opened [16:24:13]FM_GetShiftState [16:24:13]SAM_PROTO_GetShiftState [16:24:13]wFMCommunicate request_size=4 [16:24:13]MH_SAM_APDU [16:24:13]CAPDU: 80 13 01 00 [16:24:13]Write to MH i2c: E2 08 00 8B 31 80 13 01 00 00 00 00 00 39 [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:13]Read from MH i2c: E2 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 0E 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 0E 00 8B 31 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 88 [16:24:13]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:24:13]wFMCommunicate OK [16:24:13]SAM_PROTO_GetShiftState done [16:24:13]FM_GetShiftState done [16:24:13]req_shift_opened done [16:24:13]requested_item shift.open_date is exist - process it [16:24:13]req_shift_open_date [16:24:13]req_shift_open_date done [16:24:13]produce_requested_data done [16:24:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103975,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:24:13]process_action_free print_text [16:24:13]json_value_free [16:24:13]json_value_free done [16:24:13]process_json_proto returns [16:24:13]Send response to host [16:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103975,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:24:13]free response buf [16:24:13]execute_script done [16:24:13]execute_script returns [16:24:13]free content buf [16:24:13]Sock 7.Close socket [16:24:13]Sock 7.Thread stoped [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:34]accept exits with 9 [16:27:34]New connection [16:27:34]New thread 3067063652 created [16:27:34]Thread 3067207012 joined [16:27:34]Waiting for new connection... [16:27:34] Sock 9.Parse request [16:27:34]Sock 9.Check first char [16:27:34]Sock 9.First char is OK [16:27:34]request: POST /json_proto HTTP/1.0 [16:27:34]Method: POST [16:27:34]URL: /json_proto [16:27:34]Method is POST - this is cgi request [16:27:34]url: /json_proto [16:27:34]query_string will be loaded in cgi processing [16:27:34]execute_cgi json_proto POST (null) [16:27:34]execute_cgi path=json_proto method=POST [16:27:34]POST find Content-Length [16:27:34]Host: 172.17.38.133:8080 [16:27:34]Content-Length: 822 [16:27:34]Content-Type: application/json [16:27:34] [16:27:34]POST finish read [16:27:34]Found Content-Length = 822 [16:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.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" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:34]execute_script... [16:27: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)673346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.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" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:34]POST & json_proto [16:27:34]process_json_proto [16:27:34]json parsed OK: [16:27:34]protocol is kg_v1.0 [16:27:34]action value=close_receipt [16:27:34]process_action close_receipt [16:27:34]cmd_close_receipt [16:27:34]MH_GetDate [16:27:34]Write to MH i2c: F0 00 00 8C 31 AC [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: F0 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: F0 09 00 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: F0 09 00 8C 31 00 79 58 74 66 BD 8F 7C 64 8C [16:27:34]GetLastDocTimeStamp 1718900648 [16:27:34]current date 1718900857 [16:27:34]FM_GetShiftState [16:27:34]SAM_PROTO_GetShiftState [16:27:34]wFMCommunicate request_size=4 [16:27:34]MH_SAM_APDU [16:27:34]CAPDU: 80 13 01 00 [16:27:34]Write to MH i2c: E2 08 00 8D 31 80 13 01 00 00 00 00 00 3B [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:34]Read from MH i2c: E2 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 0E 00 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 0E 00 8D 31 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8A [16:27:34]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:27:34]wFMCommunicate OK [16:27:34]SAM_PROTO_GetShiftState done [16:27:34]FM_GetShiftState done [16:27:34]opened in 1718843124 [16:27:34]opened+sec_in_day 1718929524 [16:27:34]quantity*price = 72900 [16:27:34]sum+1 = 72901 [16:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.00 НСП 1% : 6.45 НДС 12% : 77.42 Наличными: 0.00 Безнал.: 729.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 161 20.06.2024 16:27 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103976 ФПД: 63194310372210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162737&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103976&fm=63194310372210&tin=02508201610067®Number=0000000000092785&sum=72900 [16:27:35]StoreToDocumentArchive [16:27:35]shift 354 fd 103976 [16:27:35]save to /storage/0354/doc_00103976 [16:27:35]save last doc name /storage/0354/doc_00103976 to /storage/kkm_last_doc_name [16:27:35]save OK [16:27:35]Clear old archive folders... [16:27:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:27:35]tlvbuf is 00878800 [16:27:35]SAM_PROTO_ClearQueue [16:27:35]wFMCommunicate request_size=4 [16:27:35]MH_SAM_APDU [16:27:35]CAPDU: 80 09 00 00 [16:27:35]Write to MH i2c: E2 08 00 9A 31 80 09 00 00 00 00 00 00 3D [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 [16:27:35]MH_I2C_Read... [16:27:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:35]Read from MH i2c: E2 03 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 9A 31 00 90 00 3F [16:27:35]RAPDU: 90 00 [16:27:35]wFMCommunicate OK [16:27:35]SAM_PROTO_ClearQueue done [16:27:35]KKMCreateOFDPacket [16:27:35]OFDProtocolAddRootSTLVToBuf [16:27:35]FM_MakeSignedData [16:27:35]FM_MakeSignedData [16:27:35]SAM_PROTO_SignData [16:27:35]wFMCommunicate request_size=4 [16:27:35]MH_SAM_APDU [16:27:35]CAPDU: 80 0D 01 02 [16:27:35]Write to MH i2c: E2 08 00 9B 31 80 0D 01 02 00 00 00 00 45 [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:35]Read from MH i2c: E2 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 9B 31 00 90 00 40 [16:27:35]RAPDU: 90 00 [16:27:35]wFMCommunicate OK [16:27:35]wFMCommunicate request_size=255 [16:27:35]MH_SAM_APDU [16:27:35]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 79 58 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 96 01 00 35 04 06 00 [16:27:35]Write to MH i2c: E2 02 01 9C 31 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 79 58 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 96 01 00 35 04 06 00 00 00 51 [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:35]Read from MH i2c: E2 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 03 00 9C 31 00 90 00 41 [16:27:35]RAPDU: 90 00 [16:27:35]wFMCommunicate OK [16:27:35]wFMCommunicate request_size=11 [16:27:35]MH_SAM_APDU [16:27:35]CAPDU: 80 0D 02 02 06 39 79 92 6B EB 72 [16:27:35]Write to MH i2c: E2 0E 00 9D 31 80 0D 02 02 06 00 39 79 92 6B EB 72 00 00 60 [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 03 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 03 00 9D 31 00 90 00 42 [16:27:36]RAPDU: 90 00 [16:27:36]wFMCommunicate OK [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 0D 03 02 [16:27:36]Write to MH i2c: E2 08 00 9E 31 80 0D 03 02 00 00 00 00 4A [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 0B 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 0B 00 9E 31 00 3F CA 68 B8 59 C3 42 23 90 00 F5 [16:27:36]RAPDU: 3F CA 68 B8 59 C3 42 23 90 00 [16:27:36]wFMCommunicate OK [16:27:36]SAM_PROTO_SignData done [16:27:36]FM_MakeSignedData done [16:27:36]CreateOFDProtocolMessage [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 11 00 00 [16:27:36]Write to MH i2c: E2 08 00 9F 31 80 11 00 00 00 00 00 00 4A [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 17 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 17 00 9F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [16:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:27:36]wFMCommunicate OK [16:27:36]CreateOFDProtocolMessage done [16:27:36]OFDSenderStorePacket 103976 [16:27:36]StoreOFDPacket docnum=103976 [16:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 CA D5 08 01 1B 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 79 58 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 96 01 00 35 04 06 00 39 79 92 6B EB 72 3F CA 68 B8 59 C3 42 23 [16:27:36]CheckFolder [16:27:36]dirname=/storage/ofd_packets [16:27:36]CheckFolder done [16:27:36]ProducePacketName [16:27:36]name=ofd_packets/00103976 [16:27:36]NVStorageSaveData ofd_packets/00103976 [16:27:36]File name is /storage/ofd_packets/00103976 [16:27:36]Write 302 bytes [16:27:36]NVStorageSaveData done [16:27:36]OFDSenderStorePacket done [16:27:36]KKMCreateOFDPacket done [16:27:36]NVStorageSaveData kkm_last_timestamp [16:27:36]File name is /storage/kkm_last_timestamp [16:27:36]Write 4 bytes [16:27:36]NVStorageSaveData done [16:27:36]ExternCall_PrintAddStr [16:27:36]wPrintStart [16:27:36]Write to MH i2c: 01 00 00 A0 31 D1 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 07 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 07 00 A0 31 00 00 00 00 00 FF 0F E6 [16:27:36]RasterBufferAndPrint [16:27:36]line Счет N : (1)673346 [16:27:36]line ИНН: 02508201610067 [16:27:36]line Контрольно-Кассовый Чек [16:27:36]line ПРОДАЖА [16:27:36]line ТРК (МРК, ГНК) : 11 [16:27:36]line Товар: 2710194210 [16:27:36]line ДТ(л)-К-5 [16:27:36]line 10.000 * 72.90 [16:27:36]line = 729.00 [16:27:36]line НДС 12% НСП 1% [16:27:36]line > о реализуемом товаре [16:27:36]line ИТОГО: 729.00 [16:27:36]line НСП 1% : 6.45 [16:27:36]line НДС 12% : 77.42 [16:27:36]line Наличными: 0.00 [16:27:36]line Безнал.: 729.00 [16:27:36]line Место: АЗС № 120 "Партнер Нефть" [16:27:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:27:36]line СНО: Общий режим [16:27:36]line Чек 161 20.06.2024 16:27 [16:27:36]line Смена: 354 ФФД: 1.0 [16:27:36]line ЗНМ: 0300000164 [16:27:36]line РНМ: 0000000000092785 [16:27:36]line Версия ККМ: 001 [16:27:36]line Платежная система: Бакай Банк [16:27:36]line ФМ: 0000000000875093 [16:27:36]line ФД: 103976 [16:27:36]line ФПД: 63194310372210 [16:27:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T162737&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103976&fm=63194310372210&tin=02508201610067®Number=0000000000092785&sum=72900 [16:27:36]OFD Sender: Processing packet 103976 [packets to send 17, broken 16] [16:27:36]ProducePacketName [16:27:36]name=ofd_packets/00103976 [16:27:36]OFD Sender: To server: pG, [16:27:36]CommunicateWithHost lk.salyk.kg:30040 [16:27:36]ConnectInit lk.salyk.kg [16:27:36]written 0, free lines is 4095 [16:27:36]Connected sock=10 [16:27:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 CA D5 08 01 1B 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 79 58 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 96 01 00 35 04 06 00 39 79 92 6B EB 72 3F CA 68 B8 59 C3 42 23 [16:27:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 65 03 47 00 79 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 28 96 01 00 F4 03 04 00 FE FE 73 66 B6 04 01 00 00 80 97 B6 96 A3 45 68 C2 [16:27:36]CommunicateWithHost err = 0 [16:27:36]CheckOFDResponse [16:27:36]1017 (14) - 77093643461234 [16:27:36]1041 (16) - 0000000000875093 [16:27:36]1040 (4) - 103976 [16:27:36]1012 (4) - 20.06.2024 10:05 [16:27:36]1206 (1) - 0 [16:27:36]OFD Sender: Remove packet 103976 [16:27:36]ProducePacketName [16:27:36]name=ofd_packets/00103976 [16:27:36]NVStorageDeleteData [16:27:36]Write to MH i2c: 01 00 00 CA 31 FB [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 07 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 07 00 CA 31 00 00 00 00 00 F3 0C 01 [16:27:36]RasterBufferAndPrint [16:27:36]line [16:27:36]line [16:27:36]line [16:27:36]line [16:27:36]line [16:27:36]written 0, free lines is 3324 [16:27:36]MH_Cut [16:27:36]Write to MH i2c: D1 01 00 D1 31 01 D4 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: D1 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: D1 01 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: D1 01 00 D1 31 00 D3 [16:27:36]Write to MH i2c: 01 00 00 D2 31 03 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:37]OFD Sender: No OFD packet to send [16:27:37]*** Cut start [16:27:37]*** Partial cut [16:27:37]*** CUTSNS_PIN = 1 [16:27:37]*** CUTSNS_PIN = 0 [16:27:37]*** Brake cut motor [16:27:38]Read from MH i2c: 01 [16:27:38]MH_I2C_Read... [16:27:38]*** Stop cut motor [16:27:38]*** Cut end [16:27:38]Read from MH i2c: 01 07 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: 01 07 00 D2 31 00 00 00 00 00 FF 0F 18 [16:27:38]process_action close_receipt done [16:27:38]requested_data is exist [16:27:38]produce_requested_data [16:27:38]requested_item fm.sn is exist - process it [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 11 00 00 [16:27:38]Write to MH i2c: E2 08 00 D3 31 80 11 00 00 00 00 00 00 7E [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 17 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 17 00 D3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D1 [16:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:27:38]wFMCommunicate OK [16:27:38]requested_item fd.num is exist - process it [16:27:38]SAM_PROTO_GetFieldsCounters [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 13 00 00 [16:27:38]Write to MH i2c: E2 08 00 D4 31 80 13 00 00 00 00 00 00 81 [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 62 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 62 00 D4 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 28 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [16:27:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 28 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:38]wFMCommunicate OK [16:27:38]SAM_PROTO_GetFieldsCounters done [16:27:38]requested_item shift.num is exist - process it [16:27:38]requested_item shift.opened is exist - process it [16:27:38]req_shift_opened [16:27:38]FM_GetShiftState [16:27:38]SAM_PROTO_GetShiftState [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 13 01 00 [16:27:38]Write to MH i2c: E2 08 00 D5 31 80 13 01 00 00 00 00 00 83 [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 0E 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 0E 00 D5 31 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D2 [16:27:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:27:38]wFMCommunicate OK [16:27:38]SAM_PROTO_GetShiftState done [16:27:38]FM_GetShiftState done [16:27:38]req_shift_opened done [16:27:38]requested_item shift.open_date is exist - process it [16:27:38]req_shift_open_date [16:27:38]req_shift_open_date done [16:27:38]produce_requested_data done [16:27:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103976,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:27:38]process_action_free close_receipt [16:27:38]json_value_free [16:27:38]json_value_free done [16:27:38]process_json_proto returns [16:27:38]Send response to host [16:27:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103976,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:27:38]free response buf [16:27:38]execute_script done [16:27:38]execute_script returns [16:27:38]free content buf [16:27:38]Sock 9.Close socket [16:27:38]Sock 9.Thread stoped [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:45]accept exits with 7 [16:33:45]New connection [16:33:45]New thread 3067207012 created [16:33:45]Thread 3067063652 joined [16:33:45]Waiting for new connection... [16:33:45] Sock 7.Parse request [16:33:45]Sock 7.Check first char [16:33:45]Sock 7.First char is OK [16:33:45]request: POST /json_proto HTTP/1.0 [16:33:45]Method: POST [16:33:45]URL: /json_proto [16:33:45]Method is POST - this is cgi request [16:33:45]url: /json_proto [16:33:45]query_string will be loaded in cgi processing [16:33:45]execute_cgi json_proto POST (null) [16:33:45]execute_cgi path=json_proto method=POST [16:33:45]POST find Content-Length [16:33:45]Host: 172.17.38.133:8080 [16:33:45]Content-Length: 1169 [16:33:45]Content-Type: application/json [16:33:45] [16:33:45]POST finish read [16:33:45]Found Content-Length = 1169 [16:33: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673347\u000A20.06.2024 16:11\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 45.190 x 66.40\u000A\u0418\u0422\u041E\u0413: 3000.62\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060778\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:45]execute_script... [16:33: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673347\u000A20.06.2024 16:11\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 45.190 x 66.40\u000A\u0418\u0422\u041E\u0413: 3000.62\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060778\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:45]POST & json_proto [16:33:45]process_json_proto [16:33:45]json parsed OK: [16:33:45]protocol is kg_v1.0 [16:33:45]action value=print_text [16:33:45]process_action print_text [16:33:45]cmd_print_text [16:33:45]ExternCall_PrintAddStr [16:33:45]wPrintStart [16:33:45]Write to MH i2c: 01 00 00 D6 31 07 [16:33:45]Write i2c OK [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: 01 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: 01 07 00 [16:33:45]MH_I2C_Read... [16:33:45]Read from MH i2c: 01 07 00 D6 31 00 00 00 00 00 FF 0F 1C [16:33:45]RasterBufferAndPrint [16:33:45]line *****ТОВАРНЫЙ ЧЕК***** [16:33:45]line АЗС 120 [16:33:45]line Партнер нефть [16:33:45]line 02508201610067 [16:33:45]line Кассир : Дуйшенбиев А. [16:33:45]line Счет N : (1)673347 [16:33:45]line 20.06.2024 16:11 [16:33:45]line ПРОДАЖА [16:33:45]line ТРК (МРК, ГНК): 42 [16:33:45]line Вид ГСМ : 2710124130 [16:33:45]line Аи-92-К-5 [16:33:45]line 45.190 x 66.40 [16:33:45]line ИТОГ: 3000.62 [16:33:45]line Тип оплаты: Талоны: ТК ГПНА Online [16:33:45]line 30060778 [16:33:45]line ______________________ [16:33:45]line (подпись) [16:33:45]written 0, free lines is 4095 [16:33:46]Write to MH i2c: 01 00 00 EA 31 1B [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 07 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: 01 07 00 EA 31 00 00 00 00 00 11 0E 41 [16:33:46]RasterBufferAndPrint [16:33:46]line [16:33:46]line [16:33:46]line [16:33:46]line [16:33:46]line [16:33:46]written 0, free lines is 3602 [16:33:46]MH_Cut [16:33:46]Write to MH i2c: D1 01 00 F1 31 01 F4 [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: D1 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: D1 01 00 [16:33:46]MH_I2C_Read... [16:33:46]Read from MH i2c: D1 01 00 F1 31 00 F3 [16:33:46]Write to MH i2c: 01 00 00 F2 31 23 [16:33:46]Write i2c OK [16:33:46]MH_I2C_Read... [16:33:46]*** Cut start [16:33:46]*** Partial cut [16:33:46]*** CUTSNS_PIN = 1 [16:33:46]*** CUTSNS_PIN = 0 [16:33:46]*** Brake cut motor [16:33:47]Read from MH i2c: 01 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: 01 07 00 [16:33:47]MH_I2C_Read... [16:33:47]*** Stop cut motor [16:33:47]*** Cut end [16:33:47]Read from MH i2c: 01 07 00 F2 31 00 00 00 00 00 FF 0F 38 [16:33:47]process_action print_text done [16:33:47]requested_data is exist [16:33:47]produce_requested_data [16:33:47]requested_item fm.sn is exist - process it [16:33:47]wFMCommunicate request_size=4 [16:33:47]MH_SAM_APDU [16:33:47]CAPDU: 80 11 00 00 [16:33:47]Write to MH i2c: E2 08 00 F3 31 80 11 00 00 00 00 00 00 9E [16:33:47]Write i2c OK [16:33:47]MH_I2C_Read... [16:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:47]Read from MH i2c: E2 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 17 00 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 17 00 F3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F1 [16:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:33:47]wFMCommunicate OK [16:33:47]requested_item fd.num is exist - process it [16:33:47]SAM_PROTO_GetFieldsCounters [16:33:47]wFMCommunicate request_size=4 [16:33:47]MH_SAM_APDU [16:33:47]CAPDU: 80 13 00 00 [16:33:47]Write to MH i2c: E2 08 00 F4 31 80 13 00 00 00 00 00 00 A1 [16:33:47]Write i2c OK [16:33:47]MH_I2C_Read... [16:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:47]Read from MH i2c: E2 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 62 00 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 62 00 F4 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 28 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [16:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 28 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:47]wFMCommunicate OK [16:33:47]SAM_PROTO_GetFieldsCounters done [16:33:47]requested_item shift.num is exist - process it [16:33:47]requested_item shift.opened is exist - process it [16:33:47]req_shift_opened [16:33:47]FM_GetShiftState [16:33:47]SAM_PROTO_GetShiftState [16:33:47]wFMCommunicate request_size=4 [16:33:47]MH_SAM_APDU [16:33:47]CAPDU: 80 13 01 00 [16:33:47]Write to MH i2c: E2 08 00 F5 31 80 13 01 00 00 00 00 00 A3 [16:33:47]Write i2c OK [16:33:47]MH_I2C_Read... [16:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:47]Read from MH i2c: E2 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 0E 00 [16:33:47]MH_I2C_Read... [16:33:47]Read from MH i2c: E2 0E 00 F5 31 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F2 [16:33:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:33:47]wFMCommunicate OK [16:33:47]SAM_PROTO_GetShiftState done [16:33:47]FM_GetShiftState done [16:33:47]req_shift_opened done [16:33:47]requested_item shift.open_date is exist - process it [16:33:47]req_shift_open_date [16:33:47]req_shift_open_date done [16:33:47]produce_requested_data done [16:33:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103976,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:33:47]process_action_free print_text [16:33:47]json_value_free [16:33:47]json_value_free done [16:33:47]process_json_proto returns [16:33:47]Send response to host [16:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103976,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:33:47]free response buf [16:33:47]execute_script done [16:33:47]execute_script returns [16:33:47]free content buf [16:33:47]Sock 7.Close socket [16:33:47]Sock 7.Thread stoped [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:15]accept exits with 9 [16:46:15]New connection [16:46:15]New thread 3067063652 created [16:46:15]Thread 3067207012 joined [16:46:15]Waiting for new connection... [16:46:15] Sock 9.Parse request [16:46:15]Sock 9.Check first char [16:46:15]Sock 9.First char is OK [16:46:15]request: POST /json_proto HTTP/1.0 [16:46:15]Method: POST [16:46:15]URL: /json_proto [16:46:15]Method is POST - this is cgi request [16:46:15]url: /json_proto [16:46:15]query_string will be loaded in cgi processing [16:46:15]execute_cgi json_proto POST (null) [16:46:15]execute_cgi path=json_proto method=POST [16:46:15]POST find Content-Length [16:46:15]Host: 172.17.38.133:8080 [16:46:15]Content-Length: 682 [16:46:15]Content-Type: application/json [16:46:15] [16:46:15]POST finish read [16:46:15]Found Content-Length = 682 [16:46:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.820, "sum" : 1249.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1249.00, "payments": [ { "type": 0, "sum" : 1249.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:15]execute_script... [16:46: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)673348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.820, "sum" : 1249.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1249.00, "payments": [ { "type": 0, "sum" : 1249.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:15]POST & json_proto [16:46:15]process_json_proto [16:46:15]json parsed OK: [16:46:15]protocol is kg_v1.0 [16:46:15]action value=close_receipt [16:46:15]process_action close_receipt [16:46:15]cmd_close_receipt [16:46:15]MH_GetDate [16:46:15]Write to MH i2c: F0 00 00 F6 31 16 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: F0 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: F0 09 00 [16:46:15]MH_I2C_Read... [16:46:15]Read from MH i2c: F0 09 00 F6 31 00 DA 5C 74 66 BD 8F 7C 64 5B [16:46:15]GetLastDocTimeStamp 1718900857 [16:46:15]current date 1718901978 [16:46:15]FM_GetShiftState [16:46:15]SAM_PROTO_GetShiftState [16:46:15]wFMCommunicate request_size=4 [16:46:15]MH_SAM_APDU [16:46:15]CAPDU: 80 13 01 00 [16:46:15]Write to MH i2c: E2 08 00 F7 31 80 13 01 00 00 00 00 00 A5 [16:46:15]Write i2c OK [16:46:15]MH_I2C_Read... [16:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:16]Read from MH i2c: E2 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 0E 00 [16:46:16]MH_I2C_Read... [16:46:16]Read from MH i2c: E2 0E 00 F7 31 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F4 [16:46:16]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:46:16]wFMCommunicate OK [16:46:16]SAM_PROTO_GetShiftState done [16:46:16]FM_GetShiftState done [16:46:16]opened in 1718843124 [16:46:16]opened+sec_in_day 1718929524 [16:46:16]quantity*price = 124964 [16:46:16]sum+1 = 124966 [16:46:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1249.00 Внесено: 2000.00 СДАЧА: 751.00 НСП 1% : 11.06 НДС 12% : 132.71 Наличными: 1249.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 162 20.06.2024 16:46 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103977 ФПД: 217824470149644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T164618&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103977&fm=217824470149644&tin=02508201610067®Number=0000000000092785&sum=124900 [16:46:17]StoreToDocumentArchive [16:46:17]shift 354 fd 103977 [16:46:17]save to /storage/0354/doc_00103977 [16:46:17]save last doc name /storage/0354/doc_00103977 to /storage/kkm_last_doc_name [16:46:17]save OK [16:46:17]Clear old archive folders... [16:46:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:17]tlvbuf is 00823F20 [16:46:17]SAM_PROTO_ClearQueue [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 09 00 00 [16:46:17]Write to MH i2c: E2 08 00 04 32 80 09 00 00 00 00 00 00 A8 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 04 32 00 90 00 AA [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]SAM_PROTO_ClearQueue done [16:46:17]KKMCreateOFDPacket [16:46:17]OFDProtocolAddRootSTLVToBuf [16:46:17]FM_MakeSignedData [16:46:17]FM_MakeSignedData [16:46:17]SAM_PROTO_SignData [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 0D 01 02 [16:46:17]Write to MH i2c: E2 08 00 05 32 80 0D 01 02 00 00 00 00 B0 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 05 32 00 90 00 AB [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]wFMCommunicate request_size=255 [16:46:17]MH_SAM_APDU [16:46: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 84 49 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 25 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 E7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 33 00 00 00 00 07 04 06 00 E4 E7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 DA 5C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 96 01 00 35 04 06 00 C6 [16:46:17]Write to MH i2c: E2 02 01 06 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 49 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 25 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 E7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 33 00 00 00 00 07 04 06 00 E4 E7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 DA 5C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 96 01 00 35 04 06 00 C6 00 00 37 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 06 32 00 90 00 AC [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]wFMCommunicate request_size=10 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 0D 02 02 05 1C 36 2A AA 0C [16:46:17]Write to MH i2c: E2 0D 00 07 32 80 0D 02 02 05 00 1C 36 2A AA 0C 00 00 EF [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 03 00 07 32 00 90 00 AD [16:46:17]RAPDU: 90 00 [16:46:17]wFMCommunicate OK [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 0D 03 02 [16:46:17]Write to MH i2c: E2 08 00 08 32 80 0D 03 02 00 00 00 00 B5 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 0B 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 0B 00 08 32 00 F8 E2 5E 0D 68 6E 6B B5 90 00 F1 [16:46:17]RAPDU: F8 E2 5E 0D 68 6E 6B B5 90 00 [16:46:17]wFMCommunicate OK [16:46:17]SAM_PROTO_SignData done [16:46:17]FM_MakeSignedData done [16:46:17]CreateOFDProtocolMessage [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 11 00 00 [16:46:17]Write to MH i2c: E2 08 00 09 32 80 11 00 00 00 00 00 00 B5 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 17 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 17 00 09 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 08 [16:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:46:17]wFMCommunicate OK [16:46:17]CreateOFDProtocolMessage done [16:46:17]OFDSenderStorePacket 103977 [16:46:17]StoreOFDPacket docnum=103977 [16:46:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0A 00 07 01 3F 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 49 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 25 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 E7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 33 00 00 00 00 07 04 06 00 E4 E7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 DA 5C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 96 01 00 35 04 06 00 C6 1C 36 2A AA 0C F8 E2 5E 0D 68 6E 6B B5 [16:46:17]CheckFolder [16:46:17]dirname=/storage/ofd_packets [16:46:17]CheckFolder done [16:46:17]ProducePacketName [16:46:17]name=ofd_packets/00103977 [16:46:17]NVStorageSaveData ofd_packets/00103977 [16:46:17]File name is /storage/ofd_packets/00103977 [16:46:17]Write 301 bytes [16:46:17]NVStorageSaveData done [16:46:17]OFDSenderStorePacket done [16:46:17]KKMCreateOFDPacket done [16:46:17]NVStorageSaveData kkm_last_timestamp [16:46:17]File name is /storage/kkm_last_timestamp [16:46:17]Write 4 bytes [16:46:17]NVStorageSaveData done [16:46:17]ExternCall_PrintAddStr [16:46:17]wPrintStart [16:46:17]Write to MH i2c: 01 00 00 0A 32 3C [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 07 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: 01 07 00 0A 32 00 00 00 00 00 FF 0F 51 [16:46:17]RasterBufferAndPrint [16:46:17]line Счет N : (1)673348 [16:46:17]line ИНН: 02508201610067 [16:46:17]line Контрольно-Кассовый Чек [16:46:17]line ПРОДАЖА [16:46:17]line ТРК (МРК, ГНК) : 42 [16:46:17]line Товар: 2710124130 [16:46:17]line Аи-92-К-5 [16:46:17]line 18.820 * 66.40 [16:46:17]line = 1249.65 [16:46:17]line НДС 12% НСП 1% [16:46:17]line > о реализуемом товаре [16:46:17]line ОКРУГЛЕНИЕ: -0.65 [16:46:17]line ИТОГО: 1249.00 [16:46:17]line Внесено: 2000.00 [16:46:17]line СДАЧА: 751.00 [16:46:17]line НСП 1% : 11.06 [16:46:17]line НДС 12% : 132.71 [16:46:17]line Наличными: 1249.00 [16:46:17]line Безнал.: 0.00 [16:46:17]line Место: АЗС № 120 "Партнер Нефть" [16:46:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [16:46:17]line СНО: Общий режим [16:46:17]line Чек 162 20.06.2024 16:46 [16:46:17]line Смена: 354 ФФД: 1.0 [16:46:17]line ЗНМ: 0300000164 [16:46:17]line РНМ: 0000000000092785 [16:46:17]line Версия ККМ: 001 [16:46:17]line ФМ: 0000000000875093 [16:46:17]line ФД: 103977 [16:46:17]line ФПД: 217824470149644 [16:46:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T164618&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103977&fm=217824470149644&tin=02508201610067®Number=0000000000092785&sum=124900 [16:46:18]OFD Sender: Processing packet 103977 [packets to send 17, broken 16] [16:46:18]ProducePacketName [16:46:18]name=ofd_packets/00103977 [16:46:18]OFD Sender: To server: pG, [16:46:18]CommunicateWithHost lk.salyk.kg:30040 [16:46:18]ConnectInit lk.salyk.kg [16:46:18]written 0, free lines is 4095 [16:46:18]Connected sock=11 [16:46:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0A 00 07 01 3F 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 49 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 25 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 E7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 33 00 00 00 00 07 04 06 00 E4 E7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 DA 5C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 29 96 01 00 35 04 06 00 C6 1C 36 2A AA 0C F8 E2 5E 0D 68 6E 6B B5 [16:46:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0C D8 47 00 AE 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 35 30 39 33 10 04 04 00 29 96 01 00 F4 03 04 00 5F 03 74 66 B6 04 01 00 00 A6 62 DE AE D3 90 03 A8 [16:46:18]CommunicateWithHost err = 0 [16:46:18]CheckOFDResponse [16:46:18]1017 (14) - 77093643461234 [16:46:18]1041 (16) - 0000000000875093 [16:46:18]1040 (4) - 103977 [16:46:18]1012 (4) - 20.06.2024 10:24 [16:46:18]1206 (1) - 0 [16:46:18]OFD Sender: Remove packet 103977 [16:46:18]ProducePacketName [16:46:18]name=ofd_packets/00103977 [16:46:18]NVStorageDeleteData [16:46:18]Write to MH i2c: 01 00 00 35 32 67 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 35 32 00 00 00 00 00 E1 0C 5B [16:46:18]RasterBufferAndPrint [16:46:18]line [16:46:18]line [16:46:18]line [16:46:18]line [16:46:18]line [16:46:18]written 0, free lines is 3302 [16:46:18]MH_Cut [16:46:18]Write to MH i2c: D1 01 00 3C 32 01 40 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: D1 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: D1 01 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: D1 01 00 3C 32 00 3F [16:46:18]Write to MH i2c: 01 00 00 3D 32 6F [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]OFD Sender: No OFD packet to send [16:46:19]*** Cut start [16:46:19]*** Partial cut [16:46:19]*** CUTSNS_PIN = 1 [16:46:19]*** CUTSNS_PIN = 0 [16:46:19]*** Brake cut motor [16:46:19]Read from MH i2c: 01 [16:46:19]MH_I2C_Read... [16:46:19]*** Stop cut motor [16:46:19]*** Cut end [16:46:19]Read from MH i2c: 01 07 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 07 00 3D 32 00 00 00 00 00 FF 0F 84 [16:46:19]process_action close_receipt done [16:46:19]requested_data is exist [16:46:19]produce_requested_data [16:46:19]requested_item fm.sn is exist - process it [16:46:19]wFMCommunicate request_size=4 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 11 00 00 [16:46:19]Write to MH i2c: E2 08 00 3E 32 80 11 00 00 00 00 00 00 EA [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 17 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 17 00 3E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3D [16:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [16:46:19]wFMCommunicate OK [16:46:19]requested_item fd.num is exist - process it [16:46:19]SAM_PROTO_GetFieldsCounters [16:46:19]wFMCommunicate request_size=4 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 13 00 00 [16:46:19]Write to MH i2c: E2 08 00 3F 32 80 13 00 00 00 00 00 00 ED [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 62 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 62 00 3F 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 29 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [16:46:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 29 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:20]wFMCommunicate OK [16:46:20]SAM_PROTO_GetFieldsCounters done [16:46:20]requested_item shift.num is exist - process it [16:46:20]requested_item shift.opened is exist - process it [16:46:20]req_shift_opened [16:46:20]FM_GetShiftState [16:46:20]SAM_PROTO_GetShiftState [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 13 01 00 [16:46:20]Write to MH i2c: E2 08 00 40 32 80 13 01 00 00 00 00 00 EF [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0E 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0E 00 40 32 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3E [16:46:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [16:46:20]wFMCommunicate OK [16:46:20]SAM_PROTO_GetShiftState done [16:46:20]FM_GetShiftState done [16:46:20]req_shift_opened done [16:46:20]requested_item shift.open_date is exist - process it [16:46:20]req_shift_open_date [16:46:20]req_shift_open_date done [16:46:20]produce_requested_data done [16:46:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103977,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [16:46:20]process_action_free close_receipt [16:46:20]json_value_free [16:46:20]json_value_free done [16:46:20]process_json_proto returns [16:46:20]Send response to host [16:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103977,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [16:46:20]free response buf [16:46:20]execute_script done [16:46:20]execute_script returns [16:46:20]free content buf [16:46:20]Sock 9.Close socket [16:46:20]Sock 9.Thread stoped [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:08]accept exits with 7 [17:12:08]New connection [17:12:08]New thread 3067207012 created [17:12:08]Thread 3067063652 joined [17:12:08]Waiting for new connection... [17:12:08] Sock 7.Parse request [17:12:08]Sock 7.Check first char [17:12:08]Sock 7.First char is OK [17:12:08]request: POST /json_proto HTTP/1.0 [17:12:08]Method: POST [17:12:08]URL: /json_proto [17:12:08]Method is POST - this is cgi request [17:12:08]url: /json_proto [17:12:08]query_string will be loaded in cgi processing [17:12:08]execute_cgi json_proto POST (null) [17:12:08]execute_cgi path=json_proto method=POST [17:12:08]POST find Content-Length [17:12:08]Host: 172.17.38.133:8080 [17:12:08]Content-Length: 1167 [17:12:08]Content-Type: application/json [17:12:08] [17:12:08]POST finish read [17:12:08]Found Content-Length = 1167 [17:12: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673349\u000A20.06.2024 16:49\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 5.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 332.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060778\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:08]execute_script... [17:12: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673349\u000A20.06.2024 16:49\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 5.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 332.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060778\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:08]POST & json_proto [17:12:08]process_json_proto [17:12:08]json parsed OK: [17:12:08]protocol is kg_v1.0 [17:12:08]action value=print_text [17:12:08]process_action print_text [17:12:08]cmd_print_text [17:12:08]ExternCall_PrintAddStr [17:12:08]wPrintStart [17:12:08]Write to MH i2c: 01 00 00 41 32 73 [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 07 00 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 07 00 41 32 00 00 00 00 00 FF 0F 88 [17:12:08]RasterBufferAndPrint [17:12:08]line *****ТОВАРНЫЙ ЧЕК***** [17:12:08]line АЗС 120 [17:12:08]line Партнер нефть [17:12:08]line 02508201610067 [17:12:08]line Кассир : Дуйшенбиев А. [17:12:08]line Счет N : (1)673349 [17:12:08]line 20.06.2024 16:49 [17:12:08]line ПРОДАЖА [17:12:08]line ТРК (МРК, ГНК): 32 [17:12:08]line Вид ГСМ : 2710124130 [17:12:08]line Аи-92-К-5 [17:12:08]line 5.000 x 66.40 [17:12:08]line ИТОГ: 332.00 [17:12:08]line Тип оплаты: Талоны: ТК ГПНА Online [17:12:08]line 30060778 [17:12:08]line ______________________ [17:12:08]line (подпись) [17:12:08]written 0, free lines is 4095 [17:12:08]Write to MH i2c: 01 00 00 55 32 87 [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 07 00 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: 01 07 00 55 32 00 00 00 00 00 10 0E AC [17:12:08]RasterBufferAndPrint [17:12:08]line [17:12:08]line [17:12:08]line [17:12:08]line [17:12:08]line [17:12:08]written 0, free lines is 3602 [17:12:08]MH_Cut [17:12:08]Write to MH i2c: D1 01 00 5C 32 01 60 [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: D1 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: D1 01 00 [17:12:08]MH_I2C_Read... [17:12:08]Read from MH i2c: D1 01 00 5C 32 00 5F [17:12:08]Write to MH i2c: 01 00 00 5D 32 8F [17:12:08]Write i2c OK [17:12:08]MH_I2C_Read... [17:12:08]*** Cut start [17:12:08]*** Partial cut [17:12:08]*** CUTSNS_PIN = 1 [17:12:08]*** CUTSNS_PIN = 0 [17:12:09]*** Brake cut motor [17:12:09]Read from MH i2c: 01 [17:12:09]MH_I2C_Read... [17:12:09]*** Stop cut motor [17:12:09]*** Cut end [17:12:09]Read from MH i2c: 01 07 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: 01 07 00 5D 32 00 00 00 00 00 FF 0F A4 [17:12:09]process_action print_text done [17:12:09]requested_data is exist [17:12:09]produce_requested_data [17:12:09]requested_item fm.sn is exist - process it [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 11 00 00 [17:12:09]Write to MH i2c: E2 08 00 5E 32 80 11 00 00 00 00 00 00 0A [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 17 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 17 00 5E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5D [17:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:12:09]wFMCommunicate OK [17:12:09]requested_item fd.num is exist - process it [17:12:09]SAM_PROTO_GetFieldsCounters [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 13 00 00 [17:12:09]Write to MH i2c: E2 08 00 5F 32 80 13 00 00 00 00 00 00 0D [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 62 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 62 00 5F 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 29 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [17:12:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 29 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:09]wFMCommunicate OK [17:12:09]SAM_PROTO_GetFieldsCounters done [17:12:09]requested_item shift.num is exist - process it [17:12:09]requested_item shift.opened is exist - process it [17:12:09]req_shift_opened [17:12:09]FM_GetShiftState [17:12:09]SAM_PROTO_GetShiftState [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 13 01 00 [17:12:09]Write to MH i2c: E2 08 00 60 32 80 13 01 00 00 00 00 00 0F [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 0E 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 0E 00 60 32 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5E [17:12:09]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:12:09]wFMCommunicate OK [17:12:09]SAM_PROTO_GetShiftState done [17:12:09]FM_GetShiftState done [17:12:09]req_shift_opened done [17:12:09]requested_item shift.open_date is exist - process it [17:12:09]req_shift_open_date [17:12:09]req_shift_open_date done [17:12:09]produce_requested_data done [17:12:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103977,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:12:09]process_action_free print_text [17:12:09]json_value_free [17:12:09]json_value_free done [17:12:09]process_json_proto returns [17:12:09]Send response to host [17:12:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103977,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:12:09]free response buf [17:12:09]execute_script done [17:12:09]execute_script returns [17:12:09]free content buf [17:12:09]Sock 7.Close socket [17:12:09]Sock 7.Thread stoped [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:52]accept exits with 9 [17:13:52]New connection [17:13:52]New thread 3067063652 created [17:13:52]Thread 3067207012 joined [17:13:52]Waiting for new connection... [17:13:52] Sock 9.Parse request [17:13:52]Sock 9.Check first char [17:13:52]Sock 9.First char is OK [17:13:52]request: POST /json_proto HTTP/1.0 [17:13:52]Method: POST [17:13:52]URL: /json_proto [17:13:52]Method is POST - this is cgi request [17:13:52]url: /json_proto [17:13:52]query_string will be loaded in cgi processing [17:13:52]execute_cgi json_proto POST (null) [17:13:52]execute_cgi path=json_proto method=POST [17:13:52]POST find Content-Length [17:13:52]Host: 172.17.38.133:8080 [17:13:52]Content-Length: 819 [17:13:52]Content-Type: application/json [17:13:52] [17:13:52]POST finish read [17:13:52]Found Content-Length = 819 [17:13:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:52]execute_script... [17:13: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)673350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:52]POST & json_proto [17:13:52]process_json_proto [17:13:52]json parsed OK: [17:13:52]protocol is kg_v1.0 [17:13:52]action value=close_receipt [17:13:52]process_action close_receipt [17:13:52]cmd_close_receipt [17:13:52]MH_GetDate [17:13:52]Write to MH i2c: F0 00 00 61 32 82 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: F0 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: F0 09 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: F0 09 00 61 32 00 53 63 74 66 BD 8F 7C 64 47 [17:13:52]GetLastDocTimeStamp 1718901978 [17:13:52]current date 1718903635 [17:13:52]FM_GetShiftState [17:13:52]SAM_PROTO_GetShiftState [17:13:52]wFMCommunicate request_size=4 [17:13:52]MH_SAM_APDU [17:13:52]CAPDU: 80 13 01 00 [17:13:52]Write to MH i2c: E2 08 00 62 32 80 13 01 00 00 00 00 00 11 [17:13:52]Write i2c OK [17:13:52]MH_I2C_Read... [17:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:52]Read from MH i2c: E2 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 0E 00 [17:13:52]MH_I2C_Read... [17:13:52]Read from MH i2c: E2 0E 00 62 32 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 60 [17:13:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:13:52]wFMCommunicate OK [17:13:52]SAM_PROTO_GetShiftState done [17:13:52]FM_GetShiftState done [17:13:52]opened in 1718843124 [17:13:52]opened+sec_in_day 1718929524 [17:13:52]quantity*price = 100064 [17:13:52]sum+1 = 100066 [17:13:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 163 20.06.2024 17:13 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 103978 ФПД: 206380644221708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T171355&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103978&fm=206380644221708&tin=02508201610067®Number=0000000000092785&sum=100065 [17:13:53]StoreToDocumentArchive [17:13:53]shift 354 fd 103978 [17:13:53]save to /storage/0354/doc_00103978 [17:13:53]save last doc name /storage/0354/doc_00103978 to /storage/kkm_last_doc_name [17:13:53]save OK [17:13:53]Clear old archive folders... [17:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:53]tlvbuf is 008265D0 [17:13:53]SAM_PROTO_ClearQueue [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 09 00 00 [17:13:53]Write to MH i2c: E2 08 00 6F 32 80 09 00 00 00 00 00 00 13 [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 6F 32 00 90 00 15 [17:13:53]RAPDU: 90 00 [17:13:53]wFMCommunicate OK [17:13:53]SAM_PROTO_ClearQueue done [17:13:53]KKMCreateOFDPacket [17:13:53]OFDProtocolAddRootSTLVToBuf [17:13:53]FM_MakeSignedData [17:13:53]FM_MakeSignedData [17:13:53]SAM_PROTO_SignData [17:13:53]wFMCommunicate request_size=4 [17:13:53]MH_SAM_APDU [17:13:53]CAPDU: 80 0D 01 02 [17:13:53]Write to MH i2c: E2 08 00 70 32 80 0D 01 02 00 00 00 00 1B [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:53]Read from MH i2c: E2 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 [17:13:53]MH_I2C_Read... [17:13:53]Read from MH i2c: E2 03 00 70 32 00 90 00 16 [17:13:53]RAPDU: 90 00 [17:13:53]wFMCommunicate OK [17:13:53]wFMCommunicate request_size=255 [17:13:53]MH_SAM_APDU [17:13: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 53 63 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 96 01 00 35 04 06 00 BB [17:13:53]Write to MH i2c: E2 02 01 71 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 53 63 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 96 01 00 35 04 06 00 BB 00 00 B9 [17:13:53]Write i2c OK [17:13:53]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 71 32 00 90 00 17 [17:13:54]RAPDU: 90 00 [17:13:54]wFMCommunicate OK [17:13:54]wFMCommunicate request_size=10 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 0D 02 02 05 B3 BC FC C3 0C [17:13:54]Write to MH i2c: E2 0D 00 72 32 80 0D 02 02 05 00 B3 BC FC C3 0C 00 00 62 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 03 00 72 32 00 90 00 18 [17:13:54]RAPDU: 90 00 [17:13:54]wFMCommunicate OK [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 0D 03 02 [17:13:54]Write to MH i2c: E2 08 00 73 32 80 0D 03 02 00 00 00 00 20 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0B 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 0B 00 73 32 00 CF FE A8 D6 78 EA 1D 77 90 00 62 [17:13:54]RAPDU: CF FE A8 D6 78 EA 1D 77 90 00 [17:13:54]wFMCommunicate OK [17:13:54]SAM_PROTO_SignData done [17:13:54]FM_MakeSignedData done [17:13:54]CreateOFDProtocolMessage [17:13:54]wFMCommunicate request_size=4 [17:13:54]MH_SAM_APDU [17:13:54]CAPDU: 80 11 00 00 [17:13:54]Write to MH i2c: E2 08 00 74 32 80 11 00 00 00 00 00 00 20 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:54]Read from MH i2c: E2 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 17 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: E2 17 00 74 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 73 [17:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:13:54]wFMCommunicate OK [17:13:54]CreateOFDProtocolMessage done [17:13:54]OFDSenderStorePacket 103978 [17:13:54]StoreOFDPacket docnum=103978 [17:13:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 56 56 07 01 2F BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 53 63 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 96 01 00 35 04 06 00 BB B3 BC FC C3 0C CF FE A8 D6 78 EA 1D 77 [17:13:54]CheckFolder [17:13:54]dirname=/storage/ofd_packets [17:13:54]CheckFolder done [17:13:54]ProducePacketName [17:13:54]name=ofd_packets/00103978 [17:13:54]NVStorageSaveData ofd_packets/00103978 [17:13:54]File name is /storage/ofd_packets/00103978 [17:13:54]Write 301 bytes [17:13:54]NVStorageSaveData done [17:13:54]OFDSenderStorePacket done [17:13:54]KKMCreateOFDPacket done [17:13:54]NVStorageSaveData kkm_last_timestamp [17:13:54]File name is /storage/kkm_last_timestamp [17:13:54]Write 4 bytes [17:13:54]NVStorageSaveData done [17:13:54]ExternCall_PrintAddStr [17:13:54]wPrintStart [17:13:54]Write to MH i2c: 01 00 00 75 32 A7 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 07 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 07 00 75 32 00 00 00 00 00 FF 0F BC [17:13:54]RasterBufferAndPrint [17:13:54]line Счет N : (1)673350 [17:13:54]line ИНН: 02508201610067 [17:13:54]line Контрольно-Кассовый Чек [17:13:54]line ПРОДАЖА [17:13:54]line ТРК (МРК, ГНК) : 42 [17:13:54]line Товар: 2710124130 [17:13:54]line Аи-92-К-5 [17:13:54]line 15.070 * 66.40 [17:13:54]line = 1000.65 [17:13:54]line НДС 12% НСП 1% [17:13:54]line > о реализуемом товаре [17:13:54]line ИТОГО: 1000.65 [17:13:54]line НСП 1% : 8.85 [17:13:54]line НДС 12% : 106.26 [17:13:54]line Наличными: 0.00 [17:13:54]line Безнал.: 1000.65 [17:13:54]line Место: АЗС № 120 "Партнер Нефть" [17:13:54]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:13:54]line СНО: Общий режим [17:13:54]line Чек 163 20.06.2024 17:13 [17:13:54]line Смена: 354 ФФД: 1.0 [17:13:54]line ЗНМ: 0300000164 [17:13:54]line РНМ: 0000000000092785 [17:13:54]line Версия ККМ: 001 [17:13:54]line Платежная система: Бакай Банк [17:13:54]line ФМ: 0000000000875093 [17:13:54]line ФД: 103978 [17:13:54]line ФПД: 206380644221708 [17:13:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T171355&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103978&fm=206380644221708&tin=02508201610067®Number=0000000000092785&sum=100065 [17:13:54]written 0, free lines is 4095 [17:13:54]OFD Sender: Processing packet 103978 [packets to send 17, broken 16] [17:13:54]ProducePacketName [17:13:54]name=ofd_packets/00103978 [17:13:54]OFD Sender: To server: pG, [17:13:54]CommunicateWithHost lk.salyk.kg:30040 [17:13:54]ConnectInit lk.salyk.kg [17:13:54]Connected sock=10 [17:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 56 56 07 01 2F BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 53 63 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2A 96 01 00 35 04 06 00 BB B3 BC FC C3 0C CF FE A8 D6 78 EA 1D 77 [17:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 31 B9 47 00 CF 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 35 30 39 33 10 04 04 00 2A 96 01 00 F4 03 04 00 D8 09 74 66 B6 04 01 00 00 94 8D D0 B5 50 39 B3 61 [17:13:54]CommunicateWithHost err = 0 [17:13:54]CheckOFDResponse [17:13:54]1017 (14) - 77093643461234 [17:13:54]1041 (16) - 0000000000875093 [17:13:54]1040 (4) - 103978 [17:13:54]1012 (4) - 20.06.2024 10:52 [17:13:54]1206 (1) - 0 [17:13:54]OFD Sender: Remove packet 103978 [17:13:54]ProducePacketName [17:13:54]name=ofd_packets/00103978 [17:13:54]NVStorageDeleteData [17:13:54]Write to MH i2c: 01 00 00 9F 32 D1 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 07 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: 01 07 00 9F 32 00 00 00 00 00 EF 0C D3 [17:13:54]RasterBufferAndPrint [17:13:54]line [17:13:54]line [17:13:54]line [17:13:54]line [17:13:54]line [17:13:54]written 0, free lines is 3318 [17:13:54]MH_Cut [17:13:54]Write to MH i2c: D1 01 00 A6 32 01 AA [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: D1 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: D1 01 00 [17:13:54]MH_I2C_Read... [17:13:54]Read from MH i2c: D1 01 00 A6 32 00 A9 [17:13:54]Write to MH i2c: 01 00 00 A7 32 D9 [17:13:54]Write i2c OK [17:13:54]MH_I2C_Read... [17:13:55]OFD Sender: No OFD packet to send [17:13:55]*** Cut start [17:13:55]*** Partial cut [17:13:55]*** CUTSNS_PIN = 1 [17:13:55]*** CUTSNS_PIN = 0 [17:13:55]*** Brake cut motor [17:13:56]Read from MH i2c: 01 [17:13:56]MH_I2C_Read... [17:13:56]*** Stop cut motor [17:13:56]*** Cut end [17:13:56]Read from MH i2c: 01 07 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: 01 07 00 A7 32 00 00 00 00 00 FF 0F EE [17:13:56]process_action close_receipt done [17:13:56]requested_data is exist [17:13:56]produce_requested_data [17:13:56]requested_item fm.sn is exist - process it [17:13:56]wFMCommunicate request_size=4 [17:13:56]MH_SAM_APDU [17:13:56]CAPDU: 80 11 00 00 [17:13:56]Write to MH i2c: E2 08 00 A8 32 80 11 00 00 00 00 00 00 54 [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 [17:13:56]MH_I2C_Read... [17:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:56]Read from MH i2c: E2 17 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 17 00 A8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A7 [17:13:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:13:56]wFMCommunicate OK [17:13:56]requested_item fd.num is exist - process it [17:13:56]SAM_PROTO_GetFieldsCounters [17:13:56]wFMCommunicate request_size=4 [17:13:56]MH_SAM_APDU [17:13:56]CAPDU: 80 13 00 00 [17:13:56]Write to MH i2c: E2 08 00 A9 32 80 13 00 00 00 00 00 00 57 [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:56]Read from MH i2c: E2 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 62 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 62 00 A9 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [17:13:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:56]wFMCommunicate OK [17:13:56]SAM_PROTO_GetFieldsCounters done [17:13:56]requested_item shift.num is exist - process it [17:13:56]requested_item shift.opened is exist - process it [17:13:56]req_shift_opened [17:13:56]FM_GetShiftState [17:13:56]SAM_PROTO_GetShiftState [17:13:56]wFMCommunicate request_size=4 [17:13:56]MH_SAM_APDU [17:13:56]CAPDU: 80 13 01 00 [17:13:56]Write to MH i2c: E2 08 00 AA 32 80 13 01 00 00 00 00 00 59 [17:13:56]Write i2c OK [17:13:56]MH_I2C_Read... [17:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:56]Read from MH i2c: E2 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 0E 00 [17:13:56]MH_I2C_Read... [17:13:56]Read from MH i2c: E2 0E 00 AA 32 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A8 [17:13:56]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:13:56]wFMCommunicate OK [17:13:56]SAM_PROTO_GetShiftState done [17:13:56]FM_GetShiftState done [17:13:56]req_shift_opened done [17:13:56]requested_item shift.open_date is exist - process it [17:13:56]req_shift_open_date [17:13:56]req_shift_open_date done [17:13:56]produce_requested_data done [17:13:56]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103978,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:13:56]process_action_free close_receipt [17:13:56]json_value_free [17:13:56]json_value_free done [17:13:56]process_json_proto returns [17:13:56]Send response to host [17:13:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103978,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:13:56]free response buf [17:13:56]execute_script done [17:13:56]execute_script returns [17:13:56]free content buf [17:13:56]Sock 9.Close socket [17:13:56]Sock 9.Thread stoped [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:44]accept exits with 7 [17:16:44]New connection [17:16:44]New thread 3067207012 created [17:16:44]Thread 3067063652 joined [17:16:44]Waiting for new connection... [17:16:44] Sock 7.Parse request [17:16:44]Sock 7.Check first char [17:16:44]Sock 7.First char is OK [17:16:44]request: POST /json_proto HTTP/1.0 [17:16:44]Method: POST [17:16:44]URL: /json_proto [17:16:44]Method is POST - this is cgi request [17:16:44]url: /json_proto [17:16:44]query_string will be loaded in cgi processing [17:16:44]execute_cgi json_proto POST (null) [17:16:44]execute_cgi path=json_proto method=POST [17:16:44]POST find Content-Length [17:16:44]Host: 172.17.38.133:8080 [17:16:44]Content-Length: 677 [17:16:44]Content-Type: application/json [17:16:44] [17:16:44]POST finish read [17:16:44]Found Content-Length = 677 [17:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:44]execute_script... [17:16: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)673351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:44]POST & json_proto [17:16:44]process_json_proto [17:16:44]json parsed OK: [17:16:44]protocol is kg_v1.0 [17:16:44]action value=close_receipt [17:16:44]process_action close_receipt [17:16:44]cmd_close_receipt [17:16:44]MH_GetDate [17:16:44]Write to MH i2c: F0 00 00 AB 32 CC [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: F0 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: F0 09 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: F0 09 00 AB 32 00 FE 63 74 66 BD 8F 7C 64 3C [17:16:44]GetLastDocTimeStamp 1718903635 [17:16:44]current date 1718903806 [17:16:44]FM_GetShiftState [17:16:44]SAM_PROTO_GetShiftState [17:16:44]wFMCommunicate request_size=4 [17:16:44]MH_SAM_APDU [17:16:44]CAPDU: 80 13 01 00 [17:16:44]Write to MH i2c: E2 08 00 AC 32 80 13 01 00 00 00 00 00 5B [17:16:44]Write i2c OK [17:16:44]MH_I2C_Read... [17:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:44]Read from MH i2c: E2 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 0E 00 [17:16:44]MH_I2C_Read... [17:16:44]Read from MH i2c: E2 0E 00 AC 32 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AA [17:16:44]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:16:44]wFMCommunicate OK [17:16:44]SAM_PROTO_GetShiftState done [17:16:44]FM_GetShiftState done [17:16:44]opened in 1718843124 [17:16:44]opened+sec_in_day 1718929524 [17:16:44]quantity*price = 50065 [17:16:44]sum+1 = 50067 [17:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 164 20.06.2024 17:16 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103979 ФПД: 230058336251607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T171646&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103979&fm=230058336251607&tin=02508201610067®Number=0000000000092785&sum=50000 [17:16:45]StoreToDocumentArchive [17:16:45]shift 354 fd 103979 [17:16:45]save to /storage/0354/doc_00103979 [17:16:45]save last doc name /storage/0354/doc_00103979 to /storage/kkm_last_doc_name [17:16:45]save OK [17:16:45]Clear old archive folders... [17:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:45]tlvbuf is 00847020 [17:16:45]SAM_PROTO_ClearQueue [17:16:45]wFMCommunicate request_size=4 [17:16:45]MH_SAM_APDU [17:16:45]CAPDU: 80 09 00 00 [17:16:45]Write to MH i2c: E2 08 00 B9 32 80 09 00 00 00 00 00 00 5D [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:45]Read from MH i2c: E2 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 03 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 03 00 B9 32 00 90 00 5F [17:16:45]RAPDU: 90 00 [17:16:45]wFMCommunicate OK [17:16:45]SAM_PROTO_ClearQueue done [17:16:45]KKMCreateOFDPacket [17:16:45]OFDProtocolAddRootSTLVToBuf [17:16:45]FM_MakeSignedData [17:16:45]FM_MakeSignedData [17:16:45]SAM_PROTO_SignData [17:16:45]wFMCommunicate request_size=4 [17:16:45]MH_SAM_APDU [17:16:45]CAPDU: 80 0D 01 02 [17:16:45]Write to MH i2c: E2 08 00 BA 32 80 0D 01 02 00 00 00 00 65 [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:45]Read from MH i2c: E2 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 03 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 03 00 BA 32 00 90 00 60 [17:16:45]RAPDU: 90 00 [17:16:45]wFMCommunicate OK [17:16:45]wFMCommunicate request_size=255 [17:16:45]MH_SAM_APDU [17:16: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 FE 63 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 96 01 00 35 04 06 00 D1 [17:16:45]Write to MH i2c: E2 02 01 BB 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 FE 63 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 96 01 00 35 04 06 00 D1 00 00 F4 [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]OFD Sender: No OFD packet to send [17:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:45]Read from MH i2c: E2 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 03 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 03 00 BB 32 00 90 00 61 [17:16:45]RAPDU: 90 00 [17:16:45]wFMCommunicate OK [17:16:45]wFMCommunicate request_size=10 [17:16:45]MH_SAM_APDU [17:16:45]CAPDU: 80 0D 02 02 05 3C A1 68 EE D7 [17:16:45]Write to MH i2c: E2 0D 00 BC 32 80 0D 02 02 05 00 3C A1 68 EE D7 00 00 7C [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:45]Read from MH i2c: E2 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 03 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 03 00 BC 32 00 90 00 62 [17:16:45]RAPDU: 90 00 [17:16:45]wFMCommunicate OK [17:16:45]wFMCommunicate request_size=4 [17:16:45]MH_SAM_APDU [17:16:45]CAPDU: 80 0D 03 02 [17:16:45]Write to MH i2c: E2 08 00 BD 32 80 0D 03 02 00 00 00 00 6A [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:45]Read from MH i2c: E2 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 0B 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 0B 00 BD 32 00 DA 6A 23 9D 05 C3 17 BF 90 00 0D [17:16:45]RAPDU: DA 6A 23 9D 05 C3 17 BF 90 00 [17:16:45]wFMCommunicate OK [17:16:45]SAM_PROTO_SignData done [17:16:45]FM_MakeSignedData done [17:16:45]CreateOFDProtocolMessage [17:16:45]wFMCommunicate request_size=4 [17:16:45]MH_SAM_APDU [17:16:45]CAPDU: 80 11 00 00 [17:16:45]Write to MH i2c: E2 08 00 BE 32 80 11 00 00 00 00 00 00 6A [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:45]Read from MH i2c: E2 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 17 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: E2 17 00 BE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BD [17:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:16:45]wFMCommunicate OK [17:16:45]CreateOFDProtocolMessage done [17:16:45]OFDSenderStorePacket 103979 [17:16:45]StoreOFDPacket docnum=103979 [17:16:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A2 8F 07 01 98 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 FE 63 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 96 01 00 35 04 06 00 D1 3C A1 68 EE D7 DA 6A 23 9D 05 C3 17 BF [17:16:45]CheckFolder [17:16:45]dirname=/storage/ofd_packets [17:16:45]CheckFolder done [17:16:45]ProducePacketName [17:16:45]name=ofd_packets/00103979 [17:16:45]NVStorageSaveData ofd_packets/00103979 [17:16:45]File name is /storage/ofd_packets/00103979 [17:16:45]Write 301 bytes [17:16:45]NVStorageSaveData done [17:16:45]OFDSenderStorePacket done [17:16:45]KKMCreateOFDPacket done [17:16:45]NVStorageSaveData kkm_last_timestamp [17:16:45]File name is /storage/kkm_last_timestamp [17:16:45]Write 4 bytes [17:16:45]NVStorageSaveData done [17:16:45]ExternCall_PrintAddStr [17:16:45]wPrintStart [17:16:45]Write to MH i2c: 01 00 00 BF 32 F1 [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 07 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 07 00 BF 32 00 00 00 00 00 FF 0F 06 [17:16:45]RasterBufferAndPrint [17:16:45]line Счет N : (1)673351 [17:16:45]line ИНН: 02508201610067 [17:16:45]line Контрольно-Кассовый Чек [17:16:45]line ПРОДАЖА [17:16:45]line ТРК (МРК, ГНК) : 42 [17:16:45]line Товар: 2710124130 [17:16:45]line Аи-92-К-5 [17:16:45]line 7.540 * 66.40 [17:16:45]line = 500.66 [17:16:45]line НДС 12% НСП 1% [17:16:45]line > о реализуемом товаре [17:16:45]line ОКРУГЛЕНИЕ: -0.66 [17:16:45]line ИТОГО: 500.00 [17:16:45]line Внесено: 500.00 [17:16:45]line СДАЧА: 0.00 [17:16:45]line НСП 1% : 4.43 [17:16:45]line НДС 12% : 53.17 [17:16:45]line Наличными: 500.00 [17:16:45]line Безнал.: 0.00 [17:16:45]line Место: АЗС № 120 "Партнер Нефть" [17:16:45]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:16:45]line СНО: Общий режим [17:16:45]line Чек 164 20.06.2024 17:16 [17:16:45]line Смена: 354 ФФД: 1.0 [17:16:45]line ЗНМ: 0300000164 [17:16:45]line РНМ: 0000000000092785 [17:16:45]line Версия ККМ: 001 [17:16:45]line ФМ: 0000000000875093 [17:16:45]line ФД: 103979 [17:16:45]line ФПД: 230058336251607 [17:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T171646&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103979&fm=230058336251607&tin=02508201610067®Number=0000000000092785&sum=50000 [17:16:46]OFD Sender: Processing packet 103979 [packets to send 17, broken 16] [17:16:46]ProducePacketName [17:16:46]name=ofd_packets/00103979 [17:16:46]OFD Sender: To server: pG, [17:16:46]CommunicateWithHost lk.salyk.kg:30040 [17:16:46]ConnectInit lk.salyk.kg [17:16:46]written 0, free lines is 4095 [17:16:46]Connected sock=10 [17:16:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 A2 8F 07 01 98 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 FE 63 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 96 01 00 35 04 06 00 D1 3C A1 68 EE D7 DA 6A 23 9D 05 C3 17 BF [17:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 89 C4 47 00 12 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2B 96 01 00 F4 03 04 00 83 0A 74 66 B6 04 01 00 00 61 6C 1B 18 22 E5 F6 F3 [17:16:46]CommunicateWithHost err = 0 [17:16:46]CheckOFDResponse [17:16:46]1017 (14) - 77093643461234 [17:16:46]1041 (16) - 0000000000875093 [17:16:46]1040 (4) - 103979 [17:16:46]1012 (4) - 20.06.2024 10:54 [17:16:46]1206 (1) - 0 [17:16:46]OFD Sender: Remove packet 103979 [17:16:46]ProducePacketName [17:16:46]name=ofd_packets/00103979 [17:16:46]NVStorageDeleteData [17:16:46]Write to MH i2c: 01 00 00 EA 32 1C [17:16:46]Write i2c OK [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: 01 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: 01 07 00 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: 01 07 00 EA 32 00 00 00 00 00 DA 0C 09 [17:16:46]RasterBufferAndPrint [17:16:46]line [17:16:46]line [17:16:46]line [17:16:46]line [17:16:46]line [17:16:46]written 0, free lines is 3297 [17:16:46]MH_Cut [17:16:46]Write to MH i2c: D1 01 00 F1 32 01 F5 [17:16:46]Write i2c OK [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: D1 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: D1 01 00 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: D1 01 00 F1 32 00 F4 [17:16:46]Write to MH i2c: 01 00 00 F2 32 24 [17:16:46]Write i2c OK [17:16:46]MH_I2C_Read... [17:16:46]OFD Sender: No OFD packet to send [17:16:47]*** Cut start [17:16:47]*** Partial cut [17:16:47]*** CUTSNS_PIN = 1 [17:16:47]*** CUTSNS_PIN = 0 [17:16:47]*** Brake cut motor [17:16:47]Read from MH i2c: 01 [17:16:47]MH_I2C_Read... [17:16:47]*** Stop cut motor [17:16:47]*** Cut end [17:16:47]Read from MH i2c: 01 07 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: 01 07 00 F2 32 00 00 00 00 00 FF 0F 39 [17:16:47]process_action close_receipt done [17:16:47]requested_data is exist [17:16:47]produce_requested_data [17:16:47]requested_item fm.sn is exist - process it [17:16:47]wFMCommunicate request_size=4 [17:16:47]MH_SAM_APDU [17:16:47]CAPDU: 80 11 00 00 [17:16:47]Write to MH i2c: E2 08 00 F3 32 80 11 00 00 00 00 00 00 9F [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 17 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 17 00 F3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F2 [17:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:16:47]wFMCommunicate OK [17:16:47]requested_item fd.num is exist - process it [17:16:47]SAM_PROTO_GetFieldsCounters [17:16:47]wFMCommunicate request_size=4 [17:16:47]MH_SAM_APDU [17:16:47]CAPDU: 80 13 00 00 [17:16:47]Write to MH i2c: E2 08 00 F4 32 80 13 00 00 00 00 00 00 A2 [17:16:47]Write i2c OK [17:16:47]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 62 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 62 00 F4 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [17:16:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:48]wFMCommunicate OK [17:16:48]SAM_PROTO_GetFieldsCounters done [17:16:48]requested_item shift.num is exist - process it [17:16:48]requested_item shift.opened is exist - process it [17:16:48]req_shift_opened [17:16:48]FM_GetShiftState [17:16:48]SAM_PROTO_GetShiftState [17:16:48]wFMCommunicate request_size=4 [17:16:48]MH_SAM_APDU [17:16:48]CAPDU: 80 13 01 00 [17:16:48]Write to MH i2c: E2 08 00 F5 32 80 13 01 00 00 00 00 00 A4 [17:16:48]Write i2c OK [17:16:48]MH_I2C_Read... [17:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:48]Read from MH i2c: E2 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 0E 00 [17:16:48]MH_I2C_Read... [17:16:48]Read from MH i2c: E2 0E 00 F5 32 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F3 [17:16:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:16:48]wFMCommunicate OK [17:16:48]SAM_PROTO_GetShiftState done [17:16:48]FM_GetShiftState done [17:16:48]req_shift_opened done [17:16:48]requested_item shift.open_date is exist - process it [17:16:48]req_shift_open_date [17:16:48]req_shift_open_date done [17:16:48]produce_requested_data done [17:16:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103979,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:16:48]process_action_free close_receipt [17:16:48]json_value_free [17:16:48]json_value_free done [17:16:48]process_json_proto returns [17:16:48]Send response to host [17:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103979,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:16:48]free response buf [17:16:48]execute_script done [17:16:48]execute_script returns [17:16:48]free content buf [17:16:48]Sock 7.Close socket [17:16:48]Sock 7.Thread stoped [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:27]accept exits with 9 [17:25:27]New connection [17:25:27]New thread 3067063652 created [17:25:27]Thread 3067207012 joined [17:25:27]Waiting for new connection... [17:25:27] Sock 9.Parse request [17:25:27]Sock 9.Check first char [17:25:27]Sock 9.First char is OK [17:25:27]request: POST /json_proto HTTP/1.0 [17:25:27]Method: POST [17:25:27]URL: /json_proto [17:25:27]Method is POST - this is cgi request [17:25:27]url: /json_proto [17:25:27]query_string will be loaded in cgi processing [17:25:27]execute_cgi json_proto POST (null) [17:25:27]execute_cgi path=json_proto method=POST [17:25:27]POST find Content-Length [17:25:27]Host: 172.17.38.133:8080 [17:25:27]Content-Length: 682 [17:25:27]Content-Type: application/json [17:25:27] [17:25:27]POST finish read [17:25:27]Found Content-Length = 682 [17:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:27]execute_script... [17:25: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)673353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:27]POST & json_proto [17:25:27]process_json_proto [17:25:27]json parsed OK: [17:25:27]protocol is kg_v1.0 [17:25:27]action value=close_receipt [17:25:27]process_action close_receipt [17:25:27]cmd_close_receipt [17:25:27]MH_GetDate [17:25:27]Write to MH i2c: F0 00 00 F6 32 17 [17:25:27]Write i2c OK [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: F0 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: F0 09 00 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: F0 09 00 F6 32 00 0A 66 74 66 BD 8F 7C 64 96 [17:25:27]GetLastDocTimeStamp 1718903806 [17:25:27]current date 1718904330 [17:25:27]FM_GetShiftState [17:25:27]SAM_PROTO_GetShiftState [17:25:27]wFMCommunicate request_size=4 [17:25:27]MH_SAM_APDU [17:25:27]CAPDU: 80 13 01 00 [17:25:27]Write to MH i2c: E2 08 00 F7 32 80 13 01 00 00 00 00 00 A6 [17:25:27]Write i2c OK [17:25:27]MH_I2C_Read... [17:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:27]Read from MH i2c: E2 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: E2 0E 00 [17:25:27]MH_I2C_Read... [17:25:27]Read from MH i2c: E2 0E 00 F7 32 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F5 [17:25:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:25:27]wFMCommunicate OK [17:25:27]SAM_PROTO_GetShiftState done [17:25:27]FM_GetShiftState done [17:25:27]opened in 1718843124 [17:25:27]opened+sec_in_day 1718929524 [17:25:27]quantity*price = 100064 [17:25:27]sum+1 = 100066 [17:25:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 165 20.06.2024 17:25 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103980 ФПД: 85740839148465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T172530&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103980&fm=85740839148465&tin=02508201610067®Number=0000000000092785&sum=100000 [17:25:28]StoreToDocumentArchive [17:25:28]shift 354 fd 103980 [17:25:28]save to /storage/0354/doc_00103980 [17:25:28]save last doc name /storage/0354/doc_00103980 to /storage/kkm_last_doc_name [17:25:28]save OK [17:25:28]Clear old archive folders... [17:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:28]tlvbuf is 008263F0 [17:25:28]SAM_PROTO_ClearQueue [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 09 00 00 [17:25:28]Write to MH i2c: E2 08 00 04 33 80 09 00 00 00 00 00 00 A9 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 04 33 00 90 00 AB [17:25:28]RAPDU: 90 00 [17:25:28]wFMCommunicate OK [17:25:28]SAM_PROTO_ClearQueue done [17:25:28]KKMCreateOFDPacket [17:25:28]OFDProtocolAddRootSTLVToBuf [17:25:28]FM_MakeSignedData [17:25:28]FM_MakeSignedData [17:25:28]SAM_PROTO_SignData [17:25:28]wFMCommunicate request_size=4 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 0D 01 02 [17:25:28]Write to MH i2c: E2 08 00 05 33 80 0D 01 02 00 00 00 00 B1 [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:28]Read from MH i2c: E2 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 [17:25:28]MH_I2C_Read... [17:25:28]Read from MH i2c: E2 03 00 05 33 00 90 00 AC [17:25:28]RAPDU: 90 00 [17:25:28]wFMCommunicate OK [17:25:28]wFMCommunicate request_size=255 [17:25:28]MH_SAM_APDU [17:25:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 0A 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 96 01 00 35 04 06 00 4D [17:25:28]Write to MH i2c: E2 02 01 06 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 0A 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 96 01 00 35 04 06 00 4D 00 00 1D [17:25:28]Write i2c OK [17:25:28]MH_I2C_Read... [17:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:29]Read from MH i2c: E2 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: E2 03 00 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: E2 03 00 06 33 00 90 00 AD [17:25:29]RAPDU: 90 00 [17:25:29]wFMCommunicate OK [17:25:29]wFMCommunicate request_size=10 [17:25:29]MH_SAM_APDU [17:25:29]CAPDU: 80 0D 02 02 05 FB 18 42 9B B1 [17:25:29]Write to MH i2c: E2 0D 00 07 33 80 0D 02 02 05 00 FB 18 42 9B B1 00 00 5F [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:29]Read from MH i2c: E2 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: E2 03 00 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: E2 03 00 07 33 00 90 00 AE [17:25:29]RAPDU: 90 00 [17:25:29]wFMCommunicate OK [17:25:29]wFMCommunicate request_size=4 [17:25:29]MH_SAM_APDU [17:25:29]CAPDU: 80 0D 03 02 [17:25:29]Write to MH i2c: E2 08 00 08 33 80 0D 03 02 00 00 00 00 B6 [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:29]Read from MH i2c: E2 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: E2 0B 00 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: E2 0B 00 08 33 00 AD 33 DD 29 BC 47 A9 B7 90 00 00 [17:25:29]RAPDU: AD 33 DD 29 BC 47 A9 B7 90 00 [17:25:29]wFMCommunicate OK [17:25:29]SAM_PROTO_SignData done [17:25:29]FM_MakeSignedData done [17:25:29]CreateOFDProtocolMessage [17:25:29]wFMCommunicate request_size=4 [17:25:29]MH_SAM_APDU [17:25:29]CAPDU: 80 11 00 00 [17:25:29]Write to MH i2c: E2 08 00 09 33 80 11 00 00 00 00 00 00 B6 [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:29]Read from MH i2c: E2 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: E2 17 00 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: E2 17 00 09 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 09 [17:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:25:29]wFMCommunicate OK [17:25:29]CreateOFDProtocolMessage done [17:25:29]OFDSenderStorePacket 103980 [17:25:29]StoreOFDPacket docnum=103980 [17:25:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 69 F0 07 01 2D E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 0A 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 96 01 00 35 04 06 00 4D FB 18 42 9B B1 AD 33 DD 29 BC 47 A9 B7 [17:25:29]CheckFolder [17:25:29]dirname=/storage/ofd_packets [17:25:29]CheckFolder done [17:25:29]ProducePacketName [17:25:29]name=ofd_packets/00103980 [17:25:29]NVStorageSaveData ofd_packets/00103980 [17:25:29]File name is /storage/ofd_packets/00103980 [17:25:29]Write 301 bytes [17:25:29]NVStorageSaveData done [17:25:29]OFDSenderStorePacket done [17:25:29]KKMCreateOFDPacket done [17:25:29]NVStorageSaveData kkm_last_timestamp [17:25:29]File name is /storage/kkm_last_timestamp [17:25:29]Write 4 bytes [17:25:29]NVStorageSaveData done [17:25:29]ExternCall_PrintAddStr [17:25:29]wPrintStart [17:25:29]Write to MH i2c: 01 00 00 0A 33 3D [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 07 00 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 07 00 0A 33 00 00 00 00 00 FF 0F 52 [17:25:29]RasterBufferAndPrint [17:25:29]line Счет N : (1)673353 [17:25:29]line ИНН: 02508201610067 [17:25:29]line Контрольно-Кассовый Чек [17:25:29]line ПРОДАЖА [17:25:29]line ТРК (МРК, ГНК) : 42 [17:25:29]line Товар: 2710124130 [17:25:29]line Аи-92-К-5 [17:25:29]line 15.070 * 66.40 [17:25:29]line = 1000.65 [17:25:29]line НДС 12% НСП 1% [17:25:29]line > о реализуемом товаре [17:25:29]line ОКРУГЛЕНИЕ: -0.65 [17:25:29]line ИТОГО: 1000.00 [17:25:29]line Внесено: 1000.00 [17:25:29]line СДАЧА: 0.00 [17:25:29]line НСП 1% : 8.85 [17:25:29]line НДС 12% : 106.26 [17:25:29]line Наличными: 1000.00 [17:25:29]line Безнал.: 0.00 [17:25:29]line Место: АЗС № 120 "Партнер Нефть" [17:25:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:25:29]line СНО: Общий режим [17:25:29]line Чек 165 20.06.2024 17:25 [17:25:29]line Смена: 354 ФФД: 1.0 [17:25:29]line ЗНМ: 0300000164 [17:25:29]line РНМ: 0000000000092785 [17:25:29]line Версия ККМ: 001 [17:25:29]line ФМ: 0000000000875093 [17:25:29]line ФД: 103980 [17:25:29]line ФПД: 85740839148465 [17:25:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T172530&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103980&fm=85740839148465&tin=02508201610067®Number=0000000000092785&sum=100000 [17:25:29]written 0, free lines is 4095 [17:25:29]OFD Sender: Processing packet 103980 [packets to send 17, broken 16] [17:25:29]ProducePacketName [17:25:29]name=ofd_packets/00103980 [17:25:29]OFD Sender: To server: pG, [17:25:29]CommunicateWithHost lk.salyk.kg:30040 [17:25:29]ConnectInit lk.salyk.kg [17:25:29]Connected sock=10 [17:25:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 69 F0 07 01 2D E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 0A 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 96 01 00 35 04 06 00 4D FB 18 42 9B B1 AD 33 DD 29 BC 47 A9 B7 [17:25:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AD 9B 47 00 6F DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2C 96 01 00 F4 03 04 00 8F 0C 74 66 B6 04 01 00 00 6E CD E9 F2 57 54 F3 16 [17:25:29]CommunicateWithHost err = 0 [17:25:29]CheckOFDResponse [17:25:29]1017 (14) - 77093643461234 [17:25:29]1041 (16) - 0000000000875093 [17:25:29]1040 (4) - 103980 [17:25:29]1012 (4) - 20.06.2024 11:03 [17:25:29]1206 (1) - 0 [17:25:29]OFD Sender: Remove packet 103980 [17:25:29]ProducePacketName [17:25:29]name=ofd_packets/00103980 [17:25:29]NVStorageDeleteData [17:25:29]Write to MH i2c: 01 00 00 35 33 68 [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 07 00 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: 01 07 00 35 33 00 00 00 00 00 E9 0C 64 [17:25:29]RasterBufferAndPrint [17:25:29]line [17:25:29]line [17:25:29]line [17:25:29]line [17:25:29]line [17:25:29]written 0, free lines is 3312 [17:25:29]MH_Cut [17:25:29]Write to MH i2c: D1 01 00 3C 33 01 41 [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: D1 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: D1 01 00 [17:25:29]MH_I2C_Read... [17:25:29]Read from MH i2c: D1 01 00 3C 33 00 40 [17:25:29]Write to MH i2c: 01 00 00 3D 33 70 [17:25:29]Write i2c OK [17:25:29]MH_I2C_Read... [17:25:30]OFD Sender: No OFD packet to send [17:25:30]*** Cut start [17:25:30]*** Partial cut [17:25:30]*** CUTSNS_PIN = 1 [17:25:30]*** CUTSNS_PIN = 0 [17:25:30]*** Brake cut motor [17:25:31]Read from MH i2c: 01 [17:25:31]MH_I2C_Read... [17:25:31]*** Stop cut motor [17:25:31]*** Cut end [17:25:31]Read from MH i2c: 01 07 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: 01 07 00 3D 33 00 00 00 00 00 FF 0F 85 [17:25:31]process_action close_receipt done [17:25:31]requested_data is exist [17:25:31]produce_requested_data [17:25:31]requested_item fm.sn is exist - process it [17:25:31]wFMCommunicate request_size=4 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 11 00 00 [17:25:31]Write to MH i2c: E2 08 00 3E 33 80 11 00 00 00 00 00 00 EB [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 17 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 17 00 3E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3E [17:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:25:31]wFMCommunicate OK [17:25:31]requested_item fd.num is exist - process it [17:25:31]SAM_PROTO_GetFieldsCounters [17:25:31]wFMCommunicate request_size=4 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 13 00 00 [17:25:31]Write to MH i2c: E2 08 00 3F 33 80 13 00 00 00 00 00 00 EE [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 62 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 62 00 3F 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [17:25:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:31]wFMCommunicate OK [17:25:31]SAM_PROTO_GetFieldsCounters done [17:25:31]requested_item shift.num is exist - process it [17:25:31]requested_item shift.opened is exist - process it [17:25:31]req_shift_opened [17:25:31]FM_GetShiftState [17:25:31]SAM_PROTO_GetShiftState [17:25:31]wFMCommunicate request_size=4 [17:25:31]MH_SAM_APDU [17:25:31]CAPDU: 80 13 01 00 [17:25:31]Write to MH i2c: E2 08 00 40 33 80 13 01 00 00 00 00 00 F0 [17:25:31]Write i2c OK [17:25:31]MH_I2C_Read... [17:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:31]Read from MH i2c: E2 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 0E 00 [17:25:31]MH_I2C_Read... [17:25:31]Read from MH i2c: E2 0E 00 40 33 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3F [17:25:31]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:25:31]wFMCommunicate OK [17:25:31]SAM_PROTO_GetShiftState done [17:25:31]FM_GetShiftState done [17:25:31]req_shift_opened done [17:25:31]requested_item shift.open_date is exist - process it [17:25:31]req_shift_open_date [17:25:31]req_shift_open_date done [17:25:31]produce_requested_data done [17:25:31]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103980,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:25:31]process_action_free close_receipt [17:25:31]json_value_free [17:25:31]json_value_free done [17:25:31]process_json_proto returns [17:25:31]Send response to host [17:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103980,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:25:31]free response buf [17:25:31]execute_script done [17:25:31]execute_script returns [17:25:31]free content buf [17:25:31]Sock 9.Close socket [17:25:31]Sock 9.Thread stoped [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:31]accept exits with 7 [17:26:31]New connection [17:26:31]New thread 3067207012 created [17:26:31]Thread 3067063652 joined [17:26:31]Waiting for new connection... [17:26:31] Sock 7.Parse request [17:26:31]Sock 7.Check first char [17:26:31]Sock 7.First char is OK [17:26:31]request: POST /json_proto HTTP/1.0 [17:26:31]Method: POST [17:26:31]URL: /json_proto [17:26:31]Method is POST - this is cgi request [17:26:31]url: /json_proto [17:26:31]query_string will be loaded in cgi processing [17:26:31]execute_cgi json_proto POST (null) [17:26:31]execute_cgi path=json_proto method=POST [17:26:31]POST find Content-Length [17:26:31]Host: 172.17.38.133:8080 [17:26:31]Content-Length: 683 [17:26:31]Content-Type: application/json [17:26:31] [17:26:31]POST finish read [17:26:31]Found Content-Length = 683 [17:26:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 76.820, "sum" : 5100.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 5100.00, "payments": [ { "type": 0, "sum" : 5100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:31]execute_script... [17:26:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 76.820, "sum" : 5100.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 5100.00, "payments": [ { "type": 0, "sum" : 5100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:31]POST & json_proto [17:26:31]process_json_proto [17:26:31]json parsed OK: [17:26:31]protocol is kg_v1.0 [17:26:31]action value=close_receipt [17:26:31]process_action close_receipt [17:26:31]cmd_close_receipt [17:26:31]MH_GetDate [17:26:31]Write to MH i2c: F0 00 00 41 33 63 [17:26:31]Write i2c OK [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: F0 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: F0 09 00 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: F0 09 00 41 33 00 4A 66 74 66 BD 8F 7C 64 22 [17:26:31]GetLastDocTimeStamp 1718904330 [17:26:31]current date 1718904394 [17:26:31]FM_GetShiftState [17:26:31]SAM_PROTO_GetShiftState [17:26:31]wFMCommunicate request_size=4 [17:26:31]MH_SAM_APDU [17:26:31]CAPDU: 80 13 01 00 [17:26:31]Write to MH i2c: E2 08 00 42 33 80 13 01 00 00 00 00 00 F2 [17:26:31]Write i2c OK [17:26:31]MH_I2C_Read... [17:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:31]Read from MH i2c: E2 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: E2 0E 00 [17:26:31]MH_I2C_Read... [17:26:31]Read from MH i2c: E2 0E 00 42 33 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 41 [17:26:31]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:26:31]wFMCommunicate OK [17:26:31]SAM_PROTO_GetShiftState done [17:26:31]FM_GetShiftState done [17:26:31]opened in 1718843124 [17:26:31]opened+sec_in_day 1718929524 [17:26:31]quantity*price = 510084 [17:26:31]sum+1 = 510086 [17:26:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.85 ИТОГО: 5100.00 Внесено: 15000.00 СДАЧА: 9900.00 НСП 1% : 45.14 НДС 12% : 541.68 Наличными: 5100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 166 20.06.2024 17:26 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103981 ФПД: 116064193773296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T172634&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103981&fm=116064193773296&tin=02508201610067®Number=0000000000092785&sum=510000 [17:26:32]StoreToDocumentArchive [17:26:32]shift 354 fd 103981 [17:26:32]save to /storage/0354/doc_00103981 [17:26:32]save last doc name /storage/0354/doc_00103981 to /storage/kkm_last_doc_name [17:26:32]save OK [17:26:32]Clear old archive folders... [17:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:32]tlvbuf is 00843650 [17:26:32]SAM_PROTO_ClearQueue [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 09 00 00 [17:26:32]Write to MH i2c: E2 08 00 4F 33 80 09 00 00 00 00 00 00 F4 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 4F 33 00 90 00 F6 [17:26:32]RAPDU: 90 00 [17:26:32]wFMCommunicate OK [17:26:32]SAM_PROTO_ClearQueue done [17:26:32]KKMCreateOFDPacket [17:26:32]OFDProtocolAddRootSTLVToBuf [17:26:32]FM_MakeSignedData [17:26:32]FM_MakeSignedData [17:26:32]SAM_PROTO_SignData [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 0D 01 02 [17:26:32]Write to MH i2c: E2 08 00 50 33 80 0D 01 02 00 00 00 00 FC [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 50 33 00 90 00 F7 [17:26:32]RAPDU: 90 00 [17:26:32]wFMCommunicate OK [17:26:32]wFMCommunicate request_size=255 [17:26:32]MH_SAM_APDU [17:26: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 14 2C 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 85 C8 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 D3 00 00 00 00 07 04 06 00 30 C8 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 4A 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 96 01 00 35 04 06 00 69 [17:26:32]Write to MH i2c: E2 02 01 51 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 2C 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 85 C8 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 D3 00 00 00 00 07 04 06 00 30 C8 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 4A 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 96 01 00 35 04 06 00 69 00 00 86 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 51 33 00 90 00 F8 [17:26:32]RAPDU: 90 00 [17:26:32]wFMCommunicate OK [17:26:32]wFMCommunicate request_size=10 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 0D 02 02 05 8F 4D 0A 7E F0 [17:26:32]Write to MH i2c: E2 0D 00 52 33 80 0D 02 02 05 00 8F 4D 0A 7E F0 00 00 5D [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 03 00 52 33 00 90 00 F9 [17:26:32]RAPDU: 90 00 [17:26:32]wFMCommunicate OK [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 0D 03 02 [17:26:32]Write to MH i2c: E2 08 00 53 33 80 0D 03 02 00 00 00 00 01 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 0B 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 0B 00 53 33 00 81 FB 9A E5 61 00 73 9A 90 00 6B [17:26:32]RAPDU: 81 FB 9A E5 61 00 73 9A 90 00 [17:26:32]wFMCommunicate OK [17:26:32]SAM_PROTO_SignData done [17:26:32]FM_MakeSignedData done [17:26:32]CreateOFDProtocolMessage [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 11 00 00 [17:26:32]Write to MH i2c: E2 08 00 54 33 80 11 00 00 00 00 00 00 01 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 17 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 17 00 54 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 54 [17:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:26:32]wFMCommunicate OK [17:26:32]CreateOFDProtocolMessage done [17:26:32]OFDSenderStorePacket 103981 [17:26:32]StoreOFDPacket docnum=103981 [17:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3A 03 07 01 E7 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 2C 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 85 C8 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 D3 00 00 00 00 07 04 06 00 30 C8 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 4A 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 96 01 00 35 04 06 00 69 8F 4D 0A 7E F0 81 FB 9A E5 61 00 73 9A [17:26:32]CheckFolder [17:26:32]dirname=/storage/ofd_packets [17:26:32]CheckFolder done [17:26:32]ProducePacketName [17:26:32]name=ofd_packets/00103981 [17:26:32]NVStorageSaveData ofd_packets/00103981 [17:26:32]File name is /storage/ofd_packets/00103981 [17:26:32]Write 301 bytes [17:26:32]NVStorageSaveData done [17:26:32]OFDSenderStorePacket done [17:26:32]KKMCreateOFDPacket done [17:26:32]NVStorageSaveData kkm_last_timestamp [17:26:32]File name is /storage/kkm_last_timestamp [17:26:32]Write 4 bytes [17:26:32]NVStorageSaveData done [17:26:32]ExternCall_PrintAddStr [17:26:32]wPrintStart [17:26:32]Write to MH i2c: 01 00 00 55 33 88 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: 01 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: 01 07 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: 01 07 00 55 33 00 00 00 00 00 FF 0F 9D [17:26:32]RasterBufferAndPrint [17:26:32]line Счет N : (1)673352 [17:26:32]line ИНН: 02508201610067 [17:26:32]line Контрольно-Кассовый Чек [17:26:32]line ПРОДАЖА [17:26:32]line ТРК (МРК, ГНК) : 32 [17:26:32]line Товар: 2710124130 [17:26:32]line Аи-92-К-5 [17:26:32]line 76.820 * 66.40 [17:26:32]line = 5100.85 [17:26:32]line НДС 12% НСП 1% [17:26:32]line > о реализуемом товаре [17:26:32]line ОКРУГЛЕНИЕ: -0.85 [17:26:32]line ИТОГО: 5100.00 [17:26:32]line Внесено: 15000.00 [17:26:32]line СДАЧА: 9900.00 [17:26:32]line НСП 1% : 45.14 [17:26:32]line НДС 12% : 541.68 [17:26:32]line Наличными: 5100.00 [17:26:32]line Безнал.: 0.00 [17:26:32]line Место: АЗС № 120 "Партнер Нефть" [17:26:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:26:32]line СНО: Общий режим [17:26:32]line Чек 166 20.06.2024 17:26 [17:26:32]line Смена: 354 ФФД: 1.0 [17:26:32]line ЗНМ: 0300000164 [17:26:32]line РНМ: 0000000000092785 [17:26:32]line Версия ККМ: 001 [17:26:32]line ФМ: 0000000000875093 [17:26:32]line ФД: 103981 [17:26:32]line ФПД: 116064193773296 [17:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T172634&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103981&fm=116064193773296&tin=02508201610067®Number=0000000000092785&sum=510000 [17:26:33]OFD Sender: Processing packet 103981 [packets to send 17, broken 16] [17:26:33]ProducePacketName [17:26:33]name=ofd_packets/00103981 [17:26:33]OFD Sender: To server: pG, [17:26:33]CommunicateWithHost lk.salyk.kg:30040 [17:26:33]ConnectInit lk.salyk.kg [17:26:33]written 0, free lines is 4095 [17:26:33]Connected sock=10 [17:26:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3A 03 07 01 E7 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 2C 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 85 C8 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C8 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 D3 00 00 00 00 07 04 06 00 30 C8 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 4A 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2D 96 01 00 35 04 06 00 69 8F 4D 0A 7E F0 81 FB 9A E5 61 00 73 9A [17:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0B 19 47 00 45 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 35 30 39 33 10 04 04 00 2D 96 01 00 F4 03 04 00 CF 0C 74 66 B6 04 01 00 00 68 DA 43 2B C0 D8 6B 24 [17:26:33]CommunicateWithHost err = 0 [17:26:33]CheckOFDResponse [17:26:33]1017 (14) - 77093643461234 [17:26:33]1041 (16) - 0000000000875093 [17:26:33]1040 (4) - 103981 [17:26:33]1012 (4) - 20.06.2024 11:04 [17:26:33]1206 (1) - 0 [17:26:33]OFD Sender: Remove packet 103981 [17:26:33]ProducePacketName [17:26:33]name=ofd_packets/00103981 [17:26:33]NVStorageDeleteData [17:26:33]Write to MH i2c: 01 00 00 80 33 B3 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 07 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 07 00 80 33 00 00 00 00 00 EC 0C B2 [17:26:33]RasterBufferAndPrint [17:26:33]line [17:26:33]line [17:26:33]line [17:26:33]line [17:26:33]line [17:26:33]written 0, free lines is 3314 [17:26:33]MH_Cut [17:26:33]Write to MH i2c: D1 01 00 87 33 01 8C [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: D1 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: D1 01 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: D1 01 00 87 33 00 8B [17:26:33]Write to MH i2c: 01 00 00 88 33 BB [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:34]OFD Sender: No OFD packet to send [17:26:34]*** Cut start [17:26:34]*** Partial cut [17:26:34]*** CUTSNS_PIN = 1 [17:26:34]*** CUTSNS_PIN = 0 [17:26:34]*** Brake cut motor [17:26:34]Read from MH i2c: 01 [17:26:34]MH_I2C_Read... [17:26:34]*** Stop cut motor [17:26:34]*** Cut end [17:26:34]Read from MH i2c: 01 07 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 88 33 00 00 00 00 00 FF 0F D0 [17:26:34]process_action close_receipt done [17:26:34]requested_data is exist [17:26:34]produce_requested_data [17:26:34]requested_item fm.sn is exist - process it [17:26:34]wFMCommunicate request_size=4 [17:26:34]MH_SAM_APDU [17:26:34]CAPDU: 80 11 00 00 [17:26:34]Write to MH i2c: E2 08 00 89 33 80 11 00 00 00 00 00 00 36 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 17 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 17 00 89 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 89 [17:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:26:35]wFMCommunicate OK [17:26:35]requested_item fd.num is exist - process it [17:26:35]SAM_PROTO_GetFieldsCounters [17:26:35]wFMCommunicate request_size=4 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 13 00 00 [17:26:35]Write to MH i2c: E2 08 00 8A 33 80 13 00 00 00 00 00 00 39 [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 62 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 62 00 8A 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [17:26:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:35]wFMCommunicate OK [17:26:35]SAM_PROTO_GetFieldsCounters done [17:26:35]requested_item shift.num is exist - process it [17:26:35]requested_item shift.opened is exist - process it [17:26:35]req_shift_opened [17:26:35]FM_GetShiftState [17:26:35]SAM_PROTO_GetShiftState [17:26:35]wFMCommunicate request_size=4 [17:26:35]MH_SAM_APDU [17:26:35]CAPDU: 80 13 01 00 [17:26:35]Write to MH i2c: E2 08 00 8B 33 80 13 01 00 00 00 00 00 3B [17:26:35]Write i2c OK [17:26:35]MH_I2C_Read... [17:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:35]Read from MH i2c: E2 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 0E 00 [17:26:35]MH_I2C_Read... [17:26:35]Read from MH i2c: E2 0E 00 8B 33 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8A [17:26:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:26:35]wFMCommunicate OK [17:26:35]SAM_PROTO_GetShiftState done [17:26:35]FM_GetShiftState done [17:26:35]req_shift_opened done [17:26:35]requested_item shift.open_date is exist - process it [17:26:35]req_shift_open_date [17:26:35]req_shift_open_date done [17:26:35]produce_requested_data done [17:26:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103981,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:26:35]process_action_free close_receipt [17:26:35]json_value_free [17:26:35]json_value_free done [17:26:35]process_json_proto returns [17:26:35]Send response to host [17:26:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103981,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:26:35]free response buf [17:26:35]execute_script done [17:26:35]execute_script returns [17:26:35]free content buf [17:26:35]Sock 7.Close socket [17:26:35]Sock 7.Thread stoped [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:54]accept exits with 9 [17:27:54]New connection [17:27:54]New thread 3067063652 created [17:27:54]Thread 3067207012 joined [17:27:54]Waiting for new connection... [17:27:54] Sock 9.Parse request [17:27:54]Sock 9.Check first char [17:27:54]Sock 9.First char is OK [17:27:54]request: POST /json_proto HTTP/1.0 [17:27:54]Method: POST [17:27:54]URL: /json_proto [17:27:54]Method is POST - this is cgi request [17:27:54]url: /json_proto [17:27:54]query_string will be loaded in cgi processing [17:27:54]execute_cgi json_proto POST (null) [17:27:54]execute_cgi path=json_proto method=POST [17:27:54]POST find Content-Length [17:27:54]Host: 172.17.38.133:8080 [17:27:54]Content-Length: 677 [17:27:54]Content-Type: application/json [17:27:54] [17:27:54]POST finish read [17:27:54]Found Content-Length = 677 [17:27:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [17:27:54]execute_script... [17:27: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)673354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [17:27:54]POST & json_proto [17:27:54]process_json_proto [17:27:54]json parsed OK: [17:27:54]protocol is kg_v1.0 [17:27:54]action value=close_receipt [17:27:54]process_action close_receipt [17:27:54]cmd_close_receipt [17:27:54]MH_GetDate [17:27:54]Write to MH i2c: F0 00 00 8C 33 AE [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: F0 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: F0 09 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: F0 09 00 8C 33 00 9D 66 74 66 BD 8F 7C 64 C0 [17:27:54]GetLastDocTimeStamp 1718904394 [17:27:54]current date 1718904477 [17:27:54]FM_GetShiftState [17:27:54]SAM_PROTO_GetShiftState [17:27:54]wFMCommunicate request_size=4 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 13 01 00 [17:27:54]Write to MH i2c: E2 08 00 8D 33 80 13 01 00 00 00 00 00 3D [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 0E 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 0E 00 8D 33 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8C [17:27:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:27:54]wFMCommunicate OK [17:27:54]SAM_PROTO_GetShiftState done [17:27:54]FM_GetShiftState done [17:27:54]opened in 1718843124 [17:27:54]opened+sec_in_day 1718929524 [17:27:54]quantity*price = 35059 [17:27:54]sum+1 = 35060 [17:27:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 167 20.06.2024 17:27 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103982 ФПД: 215350425272574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T172757&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103982&fm=215350425272574&tin=02508201610067®Number=0000000000092785&sum=35000 [17:27:55]StoreToDocumentArchive [17:27:55]shift 354 fd 103982 [17:27:55]save to /storage/0354/doc_00103982 [17:27:55]save last doc name /storage/0354/doc_00103982 to /storage/kkm_last_doc_name [17:27:55]save OK [17:27:55]Clear old archive folders... [17:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:55]tlvbuf is 008263D0 [17:27:55]SAM_PROTO_ClearQueue [17:27:55]wFMCommunicate request_size=4 [17:27:55]MH_SAM_APDU [17:27:55]CAPDU: 80 09 00 00 [17:27:55]Write to MH i2c: E2 08 00 9A 33 80 09 00 00 00 00 00 00 3F [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:55]Read from MH i2c: E2 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: E2 03 00 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: E2 03 00 9A 33 00 90 00 41 [17:27:55]RAPDU: 90 00 [17:27:55]wFMCommunicate OK [17:27:55]SAM_PROTO_ClearQueue done [17:27:55]KKMCreateOFDPacket [17:27:55]OFDProtocolAddRootSTLVToBuf [17:27:55]FM_MakeSignedData [17:27:55]FM_MakeSignedData [17:27:55]SAM_PROTO_SignData [17:27:55]wFMCommunicate request_size=4 [17:27:55]MH_SAM_APDU [17:27:55]CAPDU: 80 0D 01 02 [17:27:55]Write to MH i2c: E2 08 00 9B 33 80 0D 01 02 00 00 00 00 47 [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:55]Read from MH i2c: E2 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: E2 03 00 [17:27:55]MH_I2C_Read... [17:27:55]Read from MH i2c: E2 03 00 9B 33 00 90 00 42 [17:27:55]RAPDU: 90 00 [17:27:55]wFMCommunicate OK [17:27:55]wFMCommunicate request_size=255 [17:27:55]MH_SAM_APDU [17:27: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 9D 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 96 01 00 35 04 06 00 C3 [17:27:55]Write to MH i2c: E2 02 01 9C 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 9D 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 96 01 00 35 04 06 00 C3 00 00 4E [17:27:55]Write i2c OK [17:27:55]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 9C 33 00 90 00 43 [17:27:56]RAPDU: 90 00 [17:27:56]wFMCommunicate OK [17:27:56]wFMCommunicate request_size=10 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 0D 02 02 05 DC 2D 99 C0 FE [17:27:56]Write to MH i2c: E2 0D 00 9D 33 80 0D 02 02 05 00 DC 2D 99 C0 FE 00 00 B4 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 03 00 9D 33 00 90 00 44 [17:27:56]RAPDU: 90 00 [17:27:56]wFMCommunicate OK [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 0D 03 02 [17:27:56]Write to MH i2c: E2 08 00 9E 33 80 0D 03 02 00 00 00 00 4C [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 0B 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 0B 00 9E 33 00 14 8C 15 9E DB 61 61 FF 90 00 3C [17:27:56]RAPDU: 14 8C 15 9E DB 61 61 FF 90 00 [17:27:56]wFMCommunicate OK [17:27:56]SAM_PROTO_SignData done [17:27:56]FM_MakeSignedData done [17:27:56]CreateOFDProtocolMessage [17:27:56]wFMCommunicate request_size=4 [17:27:56]MH_SAM_APDU [17:27:56]CAPDU: 80 11 00 00 [17:27:56]Write to MH i2c: E2 08 00 9F 33 80 11 00 00 00 00 00 00 4C [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:56]Read from MH i2c: E2 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 17 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: E2 17 00 9F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9F [17:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:27:56]wFMCommunicate OK [17:27:56]CreateOFDProtocolMessage done [17:27:56]OFDSenderStorePacket 103982 [17:27:56]StoreOFDPacket docnum=103982 [17:27:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 12 F0 07 01 0D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 9D 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 96 01 00 35 04 06 00 C3 DC 2D 99 C0 FE 14 8C 15 9E DB 61 61 FF [17:27:56]CheckFolder [17:27:56]dirname=/storage/ofd_packets [17:27:56]CheckFolder done [17:27:56]ProducePacketName [17:27:56]name=ofd_packets/00103982 [17:27:56]NVStorageSaveData ofd_packets/00103982 [17:27:56]File name is /storage/ofd_packets/00103982 [17:27:56]Write 301 bytes [17:27:56]NVStorageSaveData done [17:27:56]OFDSenderStorePacket done [17:27:56]KKMCreateOFDPacket done [17:27:56]NVStorageSaveData kkm_last_timestamp [17:27:56]File name is /storage/kkm_last_timestamp [17:27:56]Write 4 bytes [17:27:56]NVStorageSaveData done [17:27:56]ExternCall_PrintAddStr [17:27:56]wPrintStart [17:27:56]Write to MH i2c: 01 00 00 A0 33 D3 [17:27:56]Write i2c OK [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: 01 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: 01 07 00 [17:27:56]MH_I2C_Read... [17:27:56]Read from MH i2c: 01 07 00 A0 33 00 00 00 00 00 FF 0F E8 [17:27:56]RasterBufferAndPrint [17:27:56]line Счет N : (1)673354 [17:27:56]line ИНН: 02508201610067 [17:27:56]line Контрольно-Кассовый Чек [17:27:56]line ПРОДАЖА [17:27:56]line ТРК (МРК, ГНК) : 42 [17:27:56]line Товар: 2710124130 [17:27:56]line Аи-92-К-5 [17:27:56]line 5.280 * 66.40 [17:27:56]line = 350.59 [17:27:56]line НДС 12% НСП 1% [17:27:56]line > о реализуемом товаре [17:27:56]line ОКРУГЛЕНИЕ: -0.59 [17:27:56]line ИТОГО: 350.00 [17:27:56]line Внесено: 350.00 [17:27:56]line СДАЧА: 0.00 [17:27:56]line НСП 1% : 3.10 [17:27:56]line НДС 12% : 37.23 [17:27:56]line Наличными: 350.00 [17:27:56]line Безнал.: 0.00 [17:27:56]line Место: АЗС № 120 "Партнер Нефть" [17:27:56]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:27:56]line СНО: Общий режим [17:27:56]line Чек 167 20.06.2024 17:27 [17:27:56]line Смена: 354 ФФД: 1.0 [17:27:56]line ЗНМ: 0300000164 [17:27:56]line РНМ: 0000000000092785 [17:27:56]line Версия ККМ: 001 [17:27:56]line ФМ: 0000000000875093 [17:27:56]line ФД: 103982 [17:27:56]line ФПД: 215350425272574 [17:27:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T172757&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103982&fm=215350425272574&tin=02508201610067®Number=0000000000092785&sum=35000 [17:27:56]OFD Sender: Processing packet 103982 [packets to send 17, broken 16] [17:27:56]ProducePacketName [17:27:56]name=ofd_packets/00103982 [17:27:56]OFD Sender: To server: pG, [17:27:56]CommunicateWithHost lk.salyk.kg:30040 [17:27:56]ConnectInit lk.salyk.kg [17:27:56]written 0, free lines is 4095 [17:27:56]Connected sock=10 [17:27:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 12 F0 07 01 0D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 9D 66 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2E 96 01 00 35 04 06 00 C3 DC 2D 99 C0 FE 14 8C 15 9E DB 61 61 FF [17:27:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 8B A5 47 00 3B 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 35 30 39 33 10 04 04 00 2E 96 01 00 F4 03 04 00 22 0D 74 66 B6 04 01 00 00 44 DE E2 58 F9 D3 5C 3F [17:27:57]CommunicateWithHost err = 0 [17:27:57]CheckOFDResponse [17:27:57]1017 (14) - 77093643461234 [17:27:57]1041 (16) - 0000000000875093 [17:27:57]1040 (4) - 103982 [17:27:57]1012 (4) - 20.06.2024 11:06 [17:27:57]1206 (1) - 0 [17:27:57]OFD Sender: Remove packet 103982 [17:27:57]ProducePacketName [17:27:57]name=ofd_packets/00103982 [17:27:57]NVStorageDeleteData [17:27:57]Write to MH i2c: 01 00 00 CB 33 FE [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: 01 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: 01 07 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: 01 07 00 CB 33 00 00 00 00 00 E5 0C F6 [17:27:57]RasterBufferAndPrint [17:27:57]line [17:27:57]line [17:27:57]line [17:27:57]line [17:27:57]line [17:27:57]written 0, free lines is 3307 [17:27:57]MH_Cut [17:27:57]Write to MH i2c: D1 01 00 D2 33 01 D7 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: D1 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: D1 01 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: D1 01 00 D2 33 00 D6 [17:27:57]Write to MH i2c: 01 00 00 D3 33 06 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]OFD Sender: No OFD packet to send [17:27:57]*** Cut start [17:27:57]*** Partial cut [17:27:57]*** CUTSNS_PIN = 1 [17:27:57]*** CUTSNS_PIN = 0 [17:27:58]*** Brake cut motor [17:27:58]Read from MH i2c: 01 [17:27:58]MH_I2C_Read... [17:27:58]*** Stop cut motor [17:27:58]*** Cut end [17:27:58]Read from MH i2c: 01 07 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: 01 07 00 D3 33 00 00 00 00 00 FF 0F 1B [17:27:58]process_action close_receipt done [17:27:58]requested_data is exist [17:27:58]produce_requested_data [17:27:58]requested_item fm.sn is exist - process it [17:27:58]wFMCommunicate request_size=4 [17:27:58]MH_SAM_APDU [17:27:58]CAPDU: 80 11 00 00 [17:27:58]Write to MH i2c: E2 08 00 D4 33 80 11 00 00 00 00 00 00 81 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:58]Read from MH i2c: E2 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 17 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 17 00 D4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D4 [17:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:27:58]wFMCommunicate OK [17:27:58]requested_item fd.num is exist - process it [17:27:58]SAM_PROTO_GetFieldsCounters [17:27:58]wFMCommunicate request_size=4 [17:27:58]MH_SAM_APDU [17:27:58]CAPDU: 80 13 00 00 [17:27:58]Write to MH i2c: E2 08 00 D5 33 80 13 00 00 00 00 00 00 84 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:58]Read from MH i2c: E2 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 62 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 62 00 D5 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [17:27:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:58]wFMCommunicate OK [17:27:58]SAM_PROTO_GetFieldsCounters done [17:27:58]requested_item shift.num is exist - process it [17:27:58]requested_item shift.opened is exist - process it [17:27:58]req_shift_opened [17:27:58]FM_GetShiftState [17:27:58]SAM_PROTO_GetShiftState [17:27:58]wFMCommunicate request_size=4 [17:27:58]MH_SAM_APDU [17:27:58]CAPDU: 80 13 01 00 [17:27:58]Write to MH i2c: E2 08 00 D6 33 80 13 01 00 00 00 00 00 86 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:58]Read from MH i2c: E2 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 0E 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 0E 00 D6 33 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D5 [17:27:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:27:58]wFMCommunicate OK [17:27:58]SAM_PROTO_GetShiftState done [17:27:58]FM_GetShiftState done [17:27:58]req_shift_opened done [17:27:58]requested_item shift.open_date is exist - process it [17:27:58]req_shift_open_date [17:27:58]req_shift_open_date done [17:27:58]produce_requested_data done [17:27:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103982,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:27:58]process_action_free close_receipt [17:27:58]json_value_free [17:27:58]json_value_free done [17:27:58]process_json_proto returns [17:27:58]Send response to host [17:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103982,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:27:58]free response buf [17:27:58]execute_script done [17:27:58]execute_script returns [17:27:58]free content buf [17:27:58]Sock 9.Close socket [17:27:58]Sock 9.Thread stoped [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:49]accept exits with 7 [17:29:49]New connection [17:29:49]New thread 3067207012 created [17:29:49]Thread 3067063652 joined [17:29:49]Waiting for new connection... [17:29:49] Sock 7.Parse request [17:29:49]Sock 7.Check first char [17:29:49]Sock 7.First char is OK [17:29:49]request: POST /json_proto HTTP/1.0 [17:29:49]Method: POST [17:29:49]URL: /json_proto [17:29:49]Method is POST - this is cgi request [17:29:49]url: /json_proto [17:29:49]query_string will be loaded in cgi processing [17:29:49]execute_cgi json_proto POST (null) [17:29:49]execute_cgi path=json_proto method=POST [17:29:49]POST find Content-Length [17:29:49]Host: 172.17.38.133:8080 [17:29:49]Content-Length: 677 [17:29:49]Content-Type: application/json [17:29:49] [17:29:49]POST finish read [17:29:49]Found Content-Length = 677 [17:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:49]execute_script... [17:29: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)673355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:49]POST & json_proto [17:29:49]process_json_proto [17:29:49]json parsed OK: [17:29:49]protocol is kg_v1.0 [17:29:49]action value=close_receipt [17:29:49]process_action close_receipt [17:29:49]cmd_close_receipt [17:29:49]MH_GetDate [17:29:49]Write to MH i2c: F0 00 00 D7 33 F9 [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: F0 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: F0 09 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: F0 09 00 D7 33 00 10 67 74 66 BD 8F 7C 64 7F [17:29:49]GetLastDocTimeStamp 1718904477 [17:29:49]current date 1718904592 [17:29:49]FM_GetShiftState [17:29:49]SAM_PROTO_GetShiftState [17:29:49]wFMCommunicate request_size=4 [17:29:49]MH_SAM_APDU [17:29:49]CAPDU: 80 13 01 00 [17:29:49]Write to MH i2c: E2 08 00 D8 33 80 13 01 00 00 00 00 00 88 [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:50]Read from MH i2c: E2 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 0E 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 0E 00 D8 33 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D7 [17:29:50]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:29:50]wFMCommunicate OK [17:29:50]SAM_PROTO_GetShiftState done [17:29:50]FM_GetShiftState done [17:29:50]opened in 1718843124 [17:29:50]opened+sec_in_day 1718929524 [17:29:50]quantity*price = 40039 [17:29:50]sum+1 = 40040 [17:29:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 168 20.06.2024 17:29 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103983 ФПД: 19062052774679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T172952&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103983&fm=19062052774679&tin=02508201610067®Number=0000000000092785&sum=40000 [17:29:51]StoreToDocumentArchive [17:29:51]shift 354 fd 103983 [17:29:51]save to /storage/0354/doc_00103983 [17:29:51]save last doc name /storage/0354/doc_00103983 to /storage/kkm_last_doc_name [17:29:51]save OK [17:29:51]Clear old archive folders... [17:29:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:51]tlvbuf is 0088F1A0 [17:29:51]SAM_PROTO_ClearQueue [17:29:51]wFMCommunicate request_size=4 [17:29:51]MH_SAM_APDU [17:29:51]CAPDU: 80 09 00 00 [17:29:51]Write to MH i2c: E2 08 00 E5 33 80 09 00 00 00 00 00 00 8A [17:29:51]Write i2c OK [17:29:51]MH_I2C_Read... [17:29:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:51]Read from MH i2c: E2 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 03 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 03 00 E5 33 00 90 00 8C [17:29:51]RAPDU: 90 00 [17:29:51]wFMCommunicate OK [17:29:51]SAM_PROTO_ClearQueue done [17:29:51]KKMCreateOFDPacket [17:29:51]OFDProtocolAddRootSTLVToBuf [17:29:51]FM_MakeSignedData [17:29:51]FM_MakeSignedData [17:29:51]SAM_PROTO_SignData [17:29:51]wFMCommunicate request_size=4 [17:29:51]MH_SAM_APDU [17:29:51]CAPDU: 80 0D 01 02 [17:29:51]Write to MH i2c: E2 08 00 E6 33 80 0D 01 02 00 00 00 00 92 [17:29:51]Write i2c OK [17:29:51]MH_I2C_Read... [17:29:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:51]Read from MH i2c: E2 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 03 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 03 00 E6 33 00 90 00 8D [17:29:51]RAPDU: 90 00 [17:29:51]wFMCommunicate OK [17:29:51]wFMCommunicate request_size=255 [17:29:51]MH_SAM_APDU [17:29: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 A8 00 00 00 F4 03 04 00 10 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 96 01 00 35 04 06 00 11 [17:29:51]Write to MH i2c: E2 02 01 E7 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 A8 00 00 00 F4 03 04 00 10 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 96 01 00 35 04 06 00 11 00 00 4D [17:29:51]Write i2c OK [17:29:51]MH_I2C_Read... [17:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:51]Read from MH i2c: E2 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 03 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 03 00 E7 33 00 90 00 8E [17:29:51]RAPDU: 90 00 [17:29:51]wFMCommunicate OK [17:29:51]wFMCommunicate request_size=10 [17:29:51]MH_SAM_APDU [17:29:51]CAPDU: 80 0D 02 02 05 56 3A E2 63 17 [17:29:51]Write to MH i2c: E2 0D 00 E8 33 80 0D 02 02 05 00 56 3A E2 63 17 00 00 8B [17:29:51]Write i2c OK [17:29:51]MH_I2C_Read... [17:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:51]Read from MH i2c: E2 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 03 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 03 00 E8 33 00 90 00 8F [17:29:51]RAPDU: 90 00 [17:29:51]wFMCommunicate OK [17:29:51]wFMCommunicate request_size=4 [17:29:51]MH_SAM_APDU [17:29:51]CAPDU: 80 0D 03 02 [17:29:51]Write to MH i2c: E2 08 00 E9 33 80 0D 03 02 00 00 00 00 97 [17:29:51]Write i2c OK [17:29:51]MH_I2C_Read... [17:29:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:51]Read from MH i2c: E2 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 0B 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 0B 00 E9 33 00 AB EA 8C F0 24 EC 6E 9A 90 00 C1 [17:29:51]RAPDU: AB EA 8C F0 24 EC 6E 9A 90 00 [17:29:51]wFMCommunicate OK [17:29:51]SAM_PROTO_SignData done [17:29:51]FM_MakeSignedData done [17:29:51]CreateOFDProtocolMessage [17:29:51]wFMCommunicate request_size=4 [17:29:51]MH_SAM_APDU [17:29:51]CAPDU: 80 11 00 00 [17:29:51]Write to MH i2c: E2 08 00 EA 33 80 11 00 00 00 00 00 00 97 [17:29:51]Write i2c OK [17:29:51]MH_I2C_Read... [17:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:51]Read from MH i2c: E2 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 17 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: E2 17 00 EA 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EA [17:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:29:51]wFMCommunicate OK [17:29:51]CreateOFDProtocolMessage done [17:29:51]OFDSenderStorePacket 103983 [17:29:51]StoreOFDPacket docnum=103983 [17:29:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 13 45 07 01 36 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 A8 00 00 00 F4 03 04 00 10 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 96 01 00 35 04 06 00 11 56 3A E2 63 17 AB EA 8C F0 24 EC 6E 9A [17:29:51]CheckFolder [17:29:51]dirname=/storage/ofd_packets [17:29:51]CheckFolder done [17:29:51]ProducePacketName [17:29:51]name=ofd_packets/00103983 [17:29:51]NVStorageSaveData ofd_packets/00103983 [17:29:51]File name is /storage/ofd_packets/00103983 [17:29:51]Write 301 bytes [17:29:51]NVStorageSaveData done [17:29:51]OFDSenderStorePacket done [17:29:51]KKMCreateOFDPacket done [17:29:51]NVStorageSaveData kkm_last_timestamp [17:29:51]File name is /storage/kkm_last_timestamp [17:29:51]Write 4 bytes [17:29:51]NVStorageSaveData done [17:29:51]ExternCall_PrintAddStr [17:29:51]wPrintStart [17:29:51]Write to MH i2c: 01 00 00 EB 33 1E [17:29:51]Write i2c OK [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: 01 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: 01 07 00 [17:29:51]MH_I2C_Read... [17:29:51]Read from MH i2c: 01 07 00 EB 33 00 00 00 00 00 FF 0F 33 [17:29:51]RasterBufferAndPrint [17:29:51]line Счет N : (1)673355 [17:29:51]line ИНН: 02508201610067 [17:29:51]line Контрольно-Кассовый Чек [17:29:51]line ПРОДАЖА [17:29:51]line ТРК (МРК, ГНК) : 42 [17:29:51]line Товар: 2710124130 [17:29:51]line Аи-92-К-5 [17:29:51]line 6.030 * 66.40 [17:29:51]line = 400.39 [17:29:51]line НДС 12% НСП 1% [17:29:51]line > о реализуемом товаре [17:29:51]line ОКРУГЛЕНИЕ: -0.39 [17:29:51]line ИТОГО: 400.00 [17:29:51]line Внесено: 400.00 [17:29:51]line СДАЧА: 0.00 [17:29:51]line НСП 1% : 3.54 [17:29:51]line НДС 12% : 42.52 [17:29:51]line Наличными: 400.00 [17:29:51]line Безнал.: 0.00 [17:29:51]line Место: АЗС № 120 "Партнер Нефть" [17:29:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:29:51]line СНО: Общий режим [17:29:51]line Чек 168 20.06.2024 17:29 [17:29:51]line Смена: 354 ФФД: 1.0 [17:29:51]line ЗНМ: 0300000164 [17:29:51]line РНМ: 0000000000092785 [17:29:51]line Версия ККМ: 001 [17:29:51]line ФМ: 0000000000875093 [17:29:51]line ФД: 103983 [17:29:51]line ФПД: 19062052774679 [17:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T172952&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103983&fm=19062052774679&tin=02508201610067®Number=0000000000092785&sum=40000 [17:29:52]written 0, free lines is 4095 [17:29:52]OFD Sender: Processing packet 103983 [packets to send 17, broken 16] [17:29:52]ProducePacketName [17:29:52]name=ofd_packets/00103983 [17:29:52]OFD Sender: To server: pG, [17:29:52]CommunicateWithHost lk.salyk.kg:30040 [17:29:52]ConnectInit lk.salyk.kg [17:29:52]Connected sock=10 [17:29:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 13 45 07 01 36 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 A8 00 00 00 F4 03 04 00 10 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 2F 96 01 00 35 04 06 00 11 56 3A E2 63 17 AB EA 8C F0 24 EC 6E 9A [17:29:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D2 E2 47 00 8E 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 35 30 39 33 10 04 04 00 2F 96 01 00 F4 03 04 00 95 0D 74 66 B6 04 01 00 00 FD 60 31 EA 44 BD 8A 41 [17:29:52]CommunicateWithHost err = 0 [17:29:52]CheckOFDResponse [17:29:52]1017 (14) - 77093643461234 [17:29:52]1041 (16) - 0000000000875093 [17:29:52]1040 (4) - 103983 [17:29:52]1012 (4) - 20.06.2024 11:08 [17:29:52]1206 (1) - 0 [17:29:52]OFD Sender: Remove packet 103983 [17:29:52]ProducePacketName [17:29:52]name=ofd_packets/00103983 [17:29:52]NVStorageDeleteData [17:29:52]Write to MH i2c: 01 00 00 16 34 4A [17:29:52]Write i2c OK [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: 01 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: 01 07 00 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: 01 07 00 16 34 00 00 00 00 00 EC 0C 49 [17:29:52]RasterBufferAndPrint [17:29:52]line [17:29:52]line [17:29:52]line [17:29:52]line [17:29:52]line [17:29:52]written 0, free lines is 3314 [17:29:52]MH_Cut [17:29:52]Write to MH i2c: D1 01 00 1D 34 01 23 [17:29:52]Write i2c OK [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: D1 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: D1 01 00 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: D1 01 00 1D 34 00 22 [17:29:52]Write to MH i2c: 01 00 00 1E 34 52 [17:29:52]Write i2c OK [17:29:52]MH_I2C_Read... [17:29:52]OFD Sender: No OFD packet to send [17:29:53]*** Cut start [17:29:53]*** Partial cut [17:29:53]*** CUTSNS_PIN = 1 [17:29:53]*** CUTSNS_PIN = 0 [17:29:53]*** Brake cut motor [17:29:53]Read from MH i2c: 01 [17:29:53]MH_I2C_Read... [17:29:53]*** Stop cut motor [17:29:53]*** Cut end [17:29:53]Read from MH i2c: 01 07 00 [17:29:53]MH_I2C_Read... [17:29:53]Read from MH i2c: 01 07 00 1E 34 00 00 00 00 00 FF 0F 67 [17:29:53]process_action close_receipt done [17:29:53]requested_data is exist [17:29:53]produce_requested_data [17:29:53]requested_item fm.sn is exist - process it [17:29:53]wFMCommunicate request_size=4 [17:29:53]MH_SAM_APDU [17:29:53]CAPDU: 80 11 00 00 [17:29:53]Write to MH i2c: E2 08 00 1F 34 80 11 00 00 00 00 00 00 CD [17:29:53]Write i2c OK [17:29:53]MH_I2C_Read... [17:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:53]Read from MH i2c: E2 [17:29:53]MH_I2C_Read... [17:29:53]Read from MH i2c: E2 17 00 [17:29:53]MH_I2C_Read... [17:29:53]Read from MH i2c: E2 17 00 1F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 20 [17:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:29:53]wFMCommunicate OK [17:29:53]requested_item fd.num is exist - process it [17:29:53]SAM_PROTO_GetFieldsCounters [17:29:53]wFMCommunicate request_size=4 [17:29:53]MH_SAM_APDU [17:29:53]CAPDU: 80 13 00 00 [17:29:53]Write to MH i2c: E2 08 00 20 34 80 13 00 00 00 00 00 00 D0 [17:29:53]Write i2c OK [17:29:53]MH_I2C_Read... [17:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:54]Read from MH i2c: E2 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 62 00 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 62 00 20 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [17: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 2F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:54]wFMCommunicate OK [17:29:54]SAM_PROTO_GetFieldsCounters done [17:29:54]requested_item shift.num is exist - process it [17:29:54]requested_item shift.opened is exist - process it [17:29:54]req_shift_opened [17:29:54]FM_GetShiftState [17:29:54]SAM_PROTO_GetShiftState [17:29:54]wFMCommunicate request_size=4 [17:29:54]MH_SAM_APDU [17:29:54]CAPDU: 80 13 01 00 [17:29:54]Write to MH i2c: E2 08 00 21 34 80 13 01 00 00 00 00 00 D2 [17:29:54]Write i2c OK [17:29:54]MH_I2C_Read... [17:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:54]Read from MH i2c: E2 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 0E 00 [17:29:54]MH_I2C_Read... [17:29:54]Read from MH i2c: E2 0E 00 21 34 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 21 [17:29:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:29:54]wFMCommunicate OK [17:29:54]SAM_PROTO_GetShiftState done [17:29:54]FM_GetShiftState done [17:29:54]req_shift_opened done [17:29:54]requested_item shift.open_date is exist - process it [17:29:54]req_shift_open_date [17:29:54]req_shift_open_date done [17:29:54]produce_requested_data done [17:29:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103983,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:29:54]process_action_free close_receipt [17:29:54]json_value_free [17:29:54]json_value_free done [17:29:54]process_json_proto returns [17:29:54]Send response to host [17:29:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103983,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:29:54]free response buf [17:29:54]execute_script done [17:29:54]execute_script returns [17:29:54]free content buf [17:29:54]Sock 7.Close socket [17:29:54]Sock 7.Thread stoped [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:19]accept exits with 9 [17:31:19]New connection [17:31:19]New thread 3067063652 created [17:31:19]Thread 3067207012 joined [17:31:19]Waiting for new connection... [17:31:19] Sock 9.Parse request [17:31:19]Sock 9.Check first char [17:31:19]Sock 9.First char is OK [17:31:19]request: POST /json_proto HTTP/1.0 [17:31:19]Method: POST [17:31:19]URL: /json_proto [17:31:19]Method is POST - this is cgi request [17:31:19]url: /json_proto [17:31:19]query_string will be loaded in cgi processing [17:31:19]execute_cgi json_proto POST (null) [17:31:19]execute_cgi path=json_proto method=POST [17:31:19]POST find Content-Length [17:31:19]Host: 172.17.38.133:8080 [17:31:19]Content-Length: 678 [17:31:19]Content-Type: application/json [17:31:19] [17:31:19]POST finish read [17:31:19]Found Content-Length = 678 [17:31:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:19]execute_script... [17:31: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)673356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:19]POST & json_proto [17:31:19]process_json_proto [17:31:19]json parsed OK: [17:31:19]protocol is kg_v1.0 [17:31:19]action value=close_receipt [17:31:19]process_action close_receipt [17:31:19]cmd_close_receipt [17:31:19]MH_GetDate [17:31:19]Write to MH i2c: F0 00 00 22 34 45 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: F0 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: F0 09 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: F0 09 00 22 34 00 6A 67 74 66 BD 8F 7C 64 25 [17:31:19]GetLastDocTimeStamp 1718904592 [17:31:19]current date 1718904682 [17:31:19]FM_GetShiftState [17:31:19]SAM_PROTO_GetShiftState [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 13 01 00 [17:31:19]Write to MH i2c: E2 08 00 23 34 80 13 01 00 00 00 00 00 D4 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0E 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0E 00 23 34 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 23 [17:31:19]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:31:19]wFMCommunicate OK [17:31:19]SAM_PROTO_GetShiftState done [17:31:19]FM_GetShiftState done [17:31:19]opened in 1718843124 [17:31:19]opened+sec_in_day 1718929524 [17:31:19]quantity*price = 70052 [17:31:19]sum+1 = 70053 [17:31:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 169 20.06.2024 17:31 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103984 ФПД: 74236429437486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T173122&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103984&fm=74236429437486&tin=02508201610067®Number=0000000000092785&sum=70000 [17:31:20]StoreToDocumentArchive [17:31:20]shift 354 fd 103984 [17:31:20]save to /storage/0354/doc_00103984 [17:31:20]save last doc name /storage/0354/doc_00103984 to /storage/kkm_last_doc_name [17:31:20]save OK [17:31:20]Clear old archive folders... [17:31:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:20]tlvbuf is 0088EEA0 [17:31:20]SAM_PROTO_ClearQueue [17:31:20]wFMCommunicate request_size=4 [17:31:20]MH_SAM_APDU [17:31:20]CAPDU: 80 09 00 00 [17:31:20]Write to MH i2c: E2 08 00 30 34 80 09 00 00 00 00 00 00 D6 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:20]Read from MH i2c: E2 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 30 34 00 90 00 D8 [17:31:20]RAPDU: 90 00 [17:31:20]wFMCommunicate OK [17:31:20]SAM_PROTO_ClearQueue done [17:31:20]KKMCreateOFDPacket [17:31:20]OFDProtocolAddRootSTLVToBuf [17:31:20]FM_MakeSignedData [17:31:20]FM_MakeSignedData [17:31:20]SAM_PROTO_SignData [17:31:20]wFMCommunicate request_size=4 [17:31:20]MH_SAM_APDU [17:31:20]CAPDU: 80 0D 01 02 [17:31:20]Write to MH i2c: E2 08 00 31 34 80 0D 01 02 00 00 00 00 DE [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:20]Read from MH i2c: E2 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: E2 03 00 31 34 00 90 00 D9 [17:31:20]RAPDU: 90 00 [17:31:20]wFMCommunicate OK [17:31:20]wFMCommunicate request_size=255 [17:31:20]MH_SAM_APDU [17:31: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 A9 00 00 00 F4 03 04 00 6A 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 96 01 00 35 04 06 00 43 [17:31:20]Write to MH i2c: E2 02 01 32 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 A9 00 00 00 F4 03 04 00 6A 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 96 01 00 35 04 06 00 43 00 00 6B [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 32 34 00 90 00 DA [17:31:21]RAPDU: 90 00 [17:31:21]wFMCommunicate OK [17:31:21]wFMCommunicate request_size=10 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 0D 02 02 05 84 84 01 8A 2E [17:31:21]Write to MH i2c: E2 0D 00 33 34 80 0D 02 02 05 00 84 84 01 8A 2E 00 00 AC [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 03 00 33 34 00 90 00 DB [17:31:21]RAPDU: 90 00 [17:31:21]wFMCommunicate OK [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 0D 03 02 [17:31:21]Write to MH i2c: E2 08 00 34 34 80 0D 03 02 00 00 00 00 E3 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 0B 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 0B 00 34 34 00 03 65 DA 30 F8 2D EA 96 90 00 FB [17:31:21]RAPDU: 03 65 DA 30 F8 2D EA 96 90 00 [17:31:21]wFMCommunicate OK [17:31:21]SAM_PROTO_SignData done [17:31:21]FM_MakeSignedData done [17:31:21]CreateOFDProtocolMessage [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 11 00 00 [17:31:21]Write to MH i2c: E2 08 00 35 34 80 11 00 00 00 00 00 00 E3 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 17 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 17 00 35 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 36 [17:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:31:21]wFMCommunicate OK [17:31:21]CreateOFDProtocolMessage done [17:31:21]OFDSenderStorePacket 103984 [17:31:21]StoreOFDPacket docnum=103984 [17:31:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F4 9B 07 01 73 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 A9 00 00 00 F4 03 04 00 6A 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 96 01 00 35 04 06 00 43 84 84 01 8A 2E 03 65 DA 30 F8 2D EA 96 [17:31:21]CheckFolder [17:31:21]dirname=/storage/ofd_packets [17:31:21]CheckFolder done [17:31:21]ProducePacketName [17:31:21]name=ofd_packets/00103984 [17:31:21]NVStorageSaveData ofd_packets/00103984 [17:31:21]File name is /storage/ofd_packets/00103984 [17:31:21]Write 301 bytes [17:31:21]NVStorageSaveData done [17:31:21]OFDSenderStorePacket done [17:31:21]KKMCreateOFDPacket done [17:31:21]NVStorageSaveData kkm_last_timestamp [17:31:21]File name is /storage/kkm_last_timestamp [17:31:21]Write 4 bytes [17:31:21]NVStorageSaveData done [17:31:21]ExternCall_PrintAddStr [17:31:21]wPrintStart [17:31:21]Write to MH i2c: 01 00 00 36 34 6A [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 07 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 07 00 36 34 00 00 00 00 00 FF 0F 7F [17:31:21]RasterBufferAndPrint [17:31:21]line Счет N : (1)673356 [17:31:21]line ИНН: 02508201610067 [17:31:21]line Контрольно-Кассовый Чек [17:31:21]line ПРОДАЖА [17:31:21]line ТРК (МРК, ГНК) : 32 [17:31:21]line Товар: 2710124130 [17:31:21]line Аи-92-К-5 [17:31:21]line 10.550 * 66.40 [17:31:21]line = 700.52 [17:31:21]line НДС 12% НСП 1% [17:31:21]line > о реализуемом товаре [17:31:21]line ОКРУГЛЕНИЕ: -0.52 [17:31:21]line ИТОГО: 700.00 [17:31:21]line Внесено: 700.00 [17:31:21]line СДАЧА: 0.00 [17:31:21]line НСП 1% : 6.20 [17:31:21]line НДС 12% : 74.39 [17:31:21]line Наличными: 700.00 [17:31:21]line Безнал.: 0.00 [17:31:21]line Место: АЗС № 120 "Партнер Нефть" [17:31:21]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:31:21]line СНО: Общий режим [17:31:21]line Чек 169 20.06.2024 17:31 [17:31:21]line Смена: 354 ФФД: 1.0 [17:31:21]line ЗНМ: 0300000164 [17:31:21]line РНМ: 0000000000092785 [17:31:21]line Версия ККМ: 001 [17:31:21]line ФМ: 0000000000875093 [17:31:21]line ФД: 103984 [17:31:21]line ФПД: 74236429437486 [17:31:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T173122&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103984&fm=74236429437486&tin=02508201610067®Number=0000000000092785&sum=70000 [17:31:21]written 0, free lines is 4095 [17:31:21]OFD Sender: Processing packet 103984 [packets to send 17, broken 16] [17:31:21]ProducePacketName [17:31:21]name=ofd_packets/00103984 [17:31:21]OFD Sender: To server: pG, [17:31:21]CommunicateWithHost lk.salyk.kg:30040 [17:31:21]ConnectInit lk.salyk.kg [17:31:21]Connected sock=10 [17:31:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F4 9B 07 01 73 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 A9 00 00 00 F4 03 04 00 6A 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 96 01 00 35 04 06 00 43 84 84 01 8A 2E 03 65 DA 30 F8 2D EA 96 [17:31:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 35 6C 47 00 8E 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 30 96 01 00 F4 03 04 00 EF 0D 74 66 B6 04 01 00 00 90 B7 30 AB 04 90 97 BD [17:31:22]CommunicateWithHost err = 0 [17:31:22]CheckOFDResponse [17:31:22]1017 (14) - 77093643461234 [17:31:22]1041 (16) - 0000000000875093 [17:31:22]1040 (4) - 103984 [17:31:22]1012 (4) - 20.06.2024 11:09 [17:31:22]1206 (1) - 0 [17:31:22]OFD Sender: Remove packet 103984 [17:31:22]ProducePacketName [17:31:22]name=ofd_packets/00103984 [17:31:22]NVStorageDeleteData [17:31:22]Write to MH i2c: 01 00 00 61 34 95 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 61 34 00 00 00 00 00 DC 0C 84 [17:31:22]RasterBufferAndPrint [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]line [17:31:22]written 0, free lines is 3298 [17:31:22]MH_Cut [17:31:22]Write to MH i2c: D1 01 00 68 34 01 6E [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 01 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: D1 01 00 68 34 00 6D [17:31:22]Write to MH i2c: 01 00 00 69 34 9D [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]OFD Sender: No OFD packet to send [17:31:22]*** Cut start [17:31:22]*** Partial cut [17:31:22]*** CUTSNS_PIN = 1 [17:31:22]*** CUTSNS_PIN = 0 [17:31:23]*** Brake cut motor [17:31:23]Read from MH i2c: 01 [17:31:23]MH_I2C_Read... [17:31:23]*** Stop cut motor [17:31:23]*** Cut end [17:31:23]Read from MH i2c: 01 07 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: 01 07 00 69 34 00 00 00 00 00 FF 0F B2 [17:31:23]process_action close_receipt done [17:31:23]requested_data is exist [17:31:23]produce_requested_data [17:31:23]requested_item fm.sn is exist - process it [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 11 00 00 [17:31:23]Write to MH i2c: E2 08 00 6A 34 80 11 00 00 00 00 00 00 18 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 17 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 17 00 6A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6B [17:31:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:31:23]wFMCommunicate OK [17:31:23]requested_item fd.num is exist - process it [17:31:23]SAM_PROTO_GetFieldsCounters [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 13 00 00 [17:31:23]Write to MH i2c: E2 08 00 6B 34 80 13 00 00 00 00 00 00 1B [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 62 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 62 00 6B 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 30 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [17:31: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 30 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:23]wFMCommunicate OK [17:31:23]SAM_PROTO_GetFieldsCounters done [17:31:23]requested_item shift.num is exist - process it [17:31:23]requested_item shift.opened is exist - process it [17:31:23]req_shift_opened [17:31:23]FM_GetShiftState [17:31:23]SAM_PROTO_GetShiftState [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 13 01 00 [17:31:23]Write to MH i2c: E2 08 00 6C 34 80 13 01 00 00 00 00 00 1D [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 6C 34 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 6C [17:31:23]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:31:23]wFMCommunicate OK [17:31:23]SAM_PROTO_GetShiftState done [17:31:23]FM_GetShiftState done [17:31:23]req_shift_opened done [17:31:23]requested_item shift.open_date is exist - process it [17:31:23]req_shift_open_date [17:31:23]req_shift_open_date done [17:31:23]produce_requested_data done [17:31:23]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103984,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:31:23]process_action_free close_receipt [17:31:23]json_value_free [17:31:23]json_value_free done [17:31:23]process_json_proto returns [17:31:23]Send response to host [17:31:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103984,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:31:23]free response buf [17:31:23]execute_script done [17:31:23]execute_script returns [17:31:23]free content buf [17:31:23]Sock 9.Close socket [17:31:23]Sock 9.Thread stoped [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:40]accept exits with 7 [17:32:40]New connection [17:32:40]New thread 3067207012 created [17:32:40]Thread 3067063652 joined [17:32:40]Waiting for new connection... [17:32:40] Sock 7.Parse request [17:32:40]Sock 7.Check first char [17:32:40]Sock 7.First char is OK [17:32:40]request: POST /json_proto HTTP/1.0 [17:32:40]Method: POST [17:32:40]URL: /json_proto [17:32:40]Method is POST - this is cgi request [17:32:40]url: /json_proto [17:32:40]query_string will be loaded in cgi processing [17:32:40]execute_cgi json_proto POST (null) [17:32:40]execute_cgi path=json_proto method=POST [17:32:40]POST find Content-Length [17:32:40]Host: 172.17.38.133:8080 [17:32:40]Content-Length: 677 [17:32:40]Content-Type: application/json [17:32:40] [17:32:40]POST finish read [17:32:40]Found Content-Length = 677 [17:32:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:40]execute_script... [17:32: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)673357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:40]POST & json_proto [17:32:40]process_json_proto [17:32:40]json parsed OK: [17:32:40]protocol is kg_v1.0 [17:32:40]action value=close_receipt [17:32:40]process_action close_receipt [17:32:40]cmd_close_receipt [17:32:40]MH_GetDate [17:32:40]Write to MH i2c: F0 00 00 6D 34 90 [17:32:40]Write i2c OK [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: F0 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: F0 09 00 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: F0 09 00 6D 34 00 BB 67 74 66 BD 8F 7C 64 C1 [17:32:40]GetLastDocTimeStamp 1718904682 [17:32:40]current date 1718904763 [17:32:40]FM_GetShiftState [17:32:40]SAM_PROTO_GetShiftState [17:32:40]wFMCommunicate request_size=4 [17:32:40]MH_SAM_APDU [17:32:40]CAPDU: 80 13 01 00 [17:32:40]Write to MH i2c: E2 08 00 6E 34 80 13 01 00 00 00 00 00 1F [17:32:40]Write i2c OK [17:32:40]MH_I2C_Read... [17:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:40]Read from MH i2c: E2 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 0E 00 [17:32:40]MH_I2C_Read... [17:32:40]Read from MH i2c: E2 0E 00 6E 34 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 6E [17:32:40]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:32:40]wFMCommunicate OK [17:32:40]SAM_PROTO_GetShiftState done [17:32:40]FM_GetShiftState done [17:32:40]opened in 1718843124 [17:32:40]opened+sec_in_day 1718929524 [17:32:40]quantity*price = 20052 [17:32:40]sum+1 = 20054 [17:32:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 170 20.06.2024 17:32 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103985 ФПД: 58781919734008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T173243&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103985&fm=58781919734008&tin=02508201610067®Number=0000000000092785&sum=20000 [17:32:41]StoreToDocumentArchive [17:32:41]shift 354 fd 103985 [17:32:41]save to /storage/0354/doc_00103985 [17:32:41]save last doc name /storage/0354/doc_00103985 to /storage/kkm_last_doc_name [17:32:41]save OK [17:32:41]Clear old archive folders... [17:32:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:41]tlvbuf is 00847520 [17:32:41]SAM_PROTO_ClearQueue [17:32:41]wFMCommunicate request_size=4 [17:32:41]MH_SAM_APDU [17:32:41]CAPDU: 80 09 00 00 [17:32:41]Write to MH i2c: E2 08 00 7B 34 80 09 00 00 00 00 00 00 21 [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:41]Read from MH i2c: E2 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 03 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 03 00 7B 34 00 90 00 23 [17:32:41]RAPDU: 90 00 [17:32:41]wFMCommunicate OK [17:32:41]SAM_PROTO_ClearQueue done [17:32:41]KKMCreateOFDPacket [17:32:41]OFDProtocolAddRootSTLVToBuf [17:32:41]FM_MakeSignedData [17:32:41]FM_MakeSignedData [17:32:41]SAM_PROTO_SignData [17:32:41]wFMCommunicate request_size=4 [17:32:41]MH_SAM_APDU [17:32:41]CAPDU: 80 0D 01 02 [17:32:41]Write to MH i2c: E2 08 00 7C 34 80 0D 01 02 00 00 00 00 29 [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:41]Read from MH i2c: E2 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 03 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 03 00 7C 34 00 90 00 24 [17:32:41]RAPDU: 90 00 [17:32:41]wFMCommunicate OK [17:32:41]wFMCommunicate request_size=255 [17:32:41]MH_SAM_APDU [17:32: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 AA 00 00 00 F4 03 04 00 BB 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 96 01 00 35 04 06 00 35 [17:32:41]Write to MH i2c: E2 02 01 7D 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 AA 00 00 00 F4 03 04 00 BB 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 96 01 00 35 04 06 00 35 00 00 A8 [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:42]Read from MH i2c: E2 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 03 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 03 00 7D 34 00 90 00 25 [17:32:42]RAPDU: 90 00 [17:32:42]wFMCommunicate OK [17:32:42]wFMCommunicate request_size=10 [17:32:42]MH_SAM_APDU [17:32:42]CAPDU: 80 0D 02 02 05 76 3B 71 E8 F8 [17:32:42]Write to MH i2c: E2 0D 00 7E 34 80 0D 02 02 05 00 76 3B 71 E8 F8 00 00 38 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:42]Read from MH i2c: E2 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 03 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 03 00 7E 34 00 90 00 26 [17:32:42]RAPDU: 90 00 [17:32:42]wFMCommunicate OK [17:32:42]wFMCommunicate request_size=4 [17:32:42]MH_SAM_APDU [17:32:42]CAPDU: 80 0D 03 02 [17:32:42]Write to MH i2c: E2 08 00 7F 34 80 0D 03 02 00 00 00 00 2E [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:42]Read from MH i2c: E2 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 0B 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 0B 00 7F 34 00 61 84 9F D5 92 F0 46 99 90 00 E9 [17:32:42]RAPDU: 61 84 9F D5 92 F0 46 99 90 00 [17:32:42]wFMCommunicate OK [17:32:42]SAM_PROTO_SignData done [17:32:42]FM_MakeSignedData done [17:32:42]CreateOFDProtocolMessage [17:32:42]wFMCommunicate request_size=4 [17:32:42]MH_SAM_APDU [17:32:42]CAPDU: 80 11 00 00 [17:32:42]Write to MH i2c: E2 08 00 80 34 80 11 00 00 00 00 00 00 2E [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:42]Read from MH i2c: E2 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 17 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: E2 17 00 80 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 81 [17:32:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:32:42]wFMCommunicate OK [17:32:42]CreateOFDProtocolMessage done [17:32:42]OFDSenderStorePacket 103985 [17:32:42]StoreOFDPacket docnum=103985 [17:32:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 64 98 07 01 D0 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 AA 00 00 00 F4 03 04 00 BB 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 96 01 00 35 04 06 00 35 76 3B 71 E8 F8 61 84 9F D5 92 F0 46 99 [17:32:42]CheckFolder [17:32:42]dirname=/storage/ofd_packets [17:32:42]CheckFolder done [17:32:42]ProducePacketName [17:32:42]name=ofd_packets/00103985 [17:32:42]NVStorageSaveData ofd_packets/00103985 [17:32:42]File name is /storage/ofd_packets/00103985 [17:32:42]Write 301 bytes [17:32:42]NVStorageSaveData done [17:32:42]OFDSenderStorePacket done [17:32:42]KKMCreateOFDPacket done [17:32:42]NVStorageSaveData kkm_last_timestamp [17:32:42]File name is /storage/kkm_last_timestamp [17:32:42]Write 4 bytes [17:32:42]NVStorageSaveData done [17:32:42]ExternCall_PrintAddStr [17:32:42]wPrintStart [17:32:42]Write to MH i2c: 01 00 00 81 34 B5 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: 01 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: 01 07 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: 01 07 00 81 34 00 00 00 00 00 FF 0F CA [17:32:42]RasterBufferAndPrint [17:32:42]line Счет N : (1)673357 [17:32:42]line ИНН: 02508201610067 [17:32:42]line Контрольно-Кассовый Чек [17:32:42]line ПРОДАЖА [17:32:42]line ТРК (МРК, ГНК) : 42 [17:32:42]line Товар: 2710124130 [17:32:42]line Аи-92-К-5 [17:32:42]line 3.020 * 66.40 [17:32:42]line = 200.53 [17:32:42]line НДС 12% НСП 1% [17:32:42]line > о реализуемом товаре [17:32:42]line ОКРУГЛЕНИЕ: -0.53 [17:32:42]line ИТОГО: 200.00 [17:32:42]line Внесено: 200.00 [17:32:42]line СДАЧА: 0.00 [17:32:42]line НСП 1% : 1.77 [17:32:42]line НДС 12% : 21.29 [17:32:42]line Наличными: 200.00 [17:32:42]line Безнал.: 0.00 [17:32:42]line Место: АЗС № 120 "Партнер Нефть" [17:32:42]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:32:42]line СНО: Общий режим [17:32:42]line Чек 170 20.06.2024 17:32 [17:32:42]line Смена: 354 ФФД: 1.0 [17:32:42]line ЗНМ: 0300000164 [17:32:42]line РНМ: 0000000000092785 [17:32:42]line Версия ККМ: 001 [17:32:42]line ФМ: 0000000000875093 [17:32:42]line ФД: 103985 [17:32:42]line ФПД: 58781919734008 [17:32:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T173243&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103985&fm=58781919734008&tin=02508201610067®Number=0000000000092785&sum=20000 [17:32:42]written 0, free lines is 4095 [17:32:42]OFD Sender: Processing packet 103985 [packets to send 17, broken 16] [17:32:42]ProducePacketName [17:32:42]name=ofd_packets/00103985 [17:32:42]OFD Sender: To server: pG, [17:32:42]CommunicateWithHost lk.salyk.kg:30040 [17:32:42]ConnectInit lk.salyk.kg [17:32:42]Connected sock=11 [17:32:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 64 98 07 01 D0 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 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 51 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 AA 00 00 00 F4 03 04 00 BB 67 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 31 96 01 00 35 04 06 00 35 76 3B 71 E8 F8 61 84 9F D5 92 F0 46 99 [17:32:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9D DA 47 00 F2 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 35 30 39 33 10 04 04 00 31 96 01 00 F4 03 04 00 40 0E 74 66 B6 04 01 00 00 C2 93 17 8C C2 51 95 8C [17:32:42]CommunicateWithHost err = 0 [17:32:42]CheckOFDResponse [17:32:42]1017 (14) - 77093643461234 [17:32:42]1041 (16) - 0000000000875093 [17:32:42]1040 (4) - 103985 [17:32:42]1012 (4) - 20.06.2024 11:10 [17:32:42]1206 (1) - 0 [17:32:42]OFD Sender: Remove packet 103985 [17:32:42]ProducePacketName [17:32:42]name=ofd_packets/00103985 [17:32:42]NVStorageDeleteData [17:32:42]Write to MH i2c: 01 00 00 AC 34 E0 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: 01 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: 01 07 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: 01 07 00 AC 34 00 00 00 00 00 E4 0C D7 [17:32:42]RasterBufferAndPrint [17:32:42]line [17:32:42]line [17:32:42]line [17:32:42]line [17:32:42]line [17:32:42]written 0, free lines is 3306 [17:32:42]MH_Cut [17:32:42]Write to MH i2c: D1 01 00 B3 34 01 B9 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: D1 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: D1 01 00 [17:32:42]MH_I2C_Read... [17:32:42]Read from MH i2c: D1 01 00 B3 34 00 B8 [17:32:42]Write to MH i2c: 01 00 00 B4 34 E8 [17:32:42]Write i2c OK [17:32:42]MH_I2C_Read... [17:32:43]OFD Sender: No OFD packet to send [17:32:43]*** Cut start [17:32:43]*** Partial cut [17:32:43]*** CUTSNS_PIN = 1 [17:32:43]*** CUTSNS_PIN = 0 [17:32:43]*** Brake cut motor [17:32:44]Read from MH i2c: 01 [17:32:44]MH_I2C_Read... [17:32:44]*** Stop cut motor [17:32:44]*** Cut end [17:32:44]Read from MH i2c: 01 07 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: 01 07 00 B4 34 00 00 00 00 00 FF 0F FD [17:32:44]process_action close_receipt done [17:32:44]requested_data is exist [17:32:44]produce_requested_data [17:32:44]requested_item fm.sn is exist - process it [17:32:44]wFMCommunicate request_size=4 [17:32:44]MH_SAM_APDU [17:32:44]CAPDU: 80 11 00 00 [17:32:44]Write to MH i2c: E2 08 00 B5 34 80 11 00 00 00 00 00 00 63 [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:44]Read from MH i2c: E2 17 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 17 00 B5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B6 [17:32:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:32:44]wFMCommunicate OK [17:32:44]requested_item fd.num is exist - process it [17:32:44]SAM_PROTO_GetFieldsCounters [17:32:44]wFMCommunicate request_size=4 [17:32:44]MH_SAM_APDU [17:32:44]CAPDU: 80 13 00 00 [17:32:44]Write to MH i2c: E2 08 00 B6 34 80 13 00 00 00 00 00 00 66 [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 62 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 62 00 B6 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 31 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [17:32:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 31 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:44]wFMCommunicate OK [17:32:44]SAM_PROTO_GetFieldsCounters done [17:32:44]requested_item shift.num is exist - process it [17:32:44]requested_item shift.opened is exist - process it [17:32:44]req_shift_opened [17:32:44]FM_GetShiftState [17:32:44]SAM_PROTO_GetShiftState [17:32:44]wFMCommunicate request_size=4 [17:32:44]MH_SAM_APDU [17:32:44]CAPDU: 80 13 01 00 [17:32:44]Write to MH i2c: E2 08 00 B7 34 80 13 01 00 00 00 00 00 68 [17:32:44]Write i2c OK [17:32:44]MH_I2C_Read... [17:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:44]Read from MH i2c: E2 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 0E 00 [17:32:44]MH_I2C_Read... [17:32:44]Read from MH i2c: E2 0E 00 B7 34 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B7 [17:32:44]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:32:44]wFMCommunicate OK [17:32:44]SAM_PROTO_GetShiftState done [17:32:44]FM_GetShiftState done [17:32:44]req_shift_opened done [17:32:44]requested_item shift.open_date is exist - process it [17:32:44]req_shift_open_date [17:32:44]req_shift_open_date done [17:32:44]produce_requested_data done [17:32:44]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103985,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:32:44]process_action_free close_receipt [17:32:44]json_value_free [17:32:44]json_value_free done [17:32:44]process_json_proto returns [17:32:44]Send response to host [17:32:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103985,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:32:44]free response buf [17:32:44]execute_script done [17:32:44]execute_script returns [17:32:44]free content buf [17:32:44]Sock 7.Close socket [17:32:44]Sock 7.Thread stoped [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:39]accept exits with 9 [17:33:39]New connection [17:33:39]New thread 3067063652 created [17:33:39]Thread 3067207012 joined [17:33:39]Waiting for new connection... [17:33:39] Sock 9.Parse request [17:33:39]Sock 9.Check first char [17:33:39]Sock 9.First char is OK [17:33:39]request: POST /json_proto HTTP/1.0 [17:33:39]Method: POST [17:33:39]URL: /json_proto [17:33:39]Method is POST - this is cgi request [17:33:39]url: /json_proto [17:33:39]query_string will be loaded in cgi processing [17:33:39]execute_cgi json_proto POST (null) [17:33:39]execute_cgi path=json_proto method=POST [17:33:39]POST find Content-Length [17:33:39]Host: 172.17.38.133:8080 [17:33:39]Content-Length: 1167 [17:33:39]Content-Type: application/json [17:33:39] [17:33:39]POST finish read [17:33:39]Found Content-Length = 1167 [17:33:39]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673358\u000A20.06.2024 17:10\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 9.810 x 66.40\u000A\u0418\u0422\u041E\u0413: 651.38\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060778\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:39]execute_script... [17:33:39]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673358\u000A20.06.2024 17:10\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 9.810 x 66.40\u000A\u0418\u0422\u041E\u0413: 651.38\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060778\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:39]POST & json_proto [17:33:39]process_json_proto [17:33:39]json parsed OK: [17:33:39]protocol is kg_v1.0 [17:33:39]action value=print_text [17:33:39]process_action print_text [17:33:39]cmd_print_text [17:33:39]ExternCall_PrintAddStr [17:33:39]wPrintStart [17:33:39]Write to MH i2c: 01 00 00 B8 34 EC [17:33:39]Write i2c OK [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: 01 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: 01 07 00 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: 01 07 00 B8 34 00 00 00 00 00 FF 0F 01 [17:33:39]RasterBufferAndPrint [17:33:39]line *****ТОВАРНЫЙ ЧЕК***** [17:33:39]line АЗС 120 [17:33:39]line Партнер нефть [17:33:39]line 02508201610067 [17:33:39]line Кассир : Дуйшенбиев А. [17:33:39]line Счет N : (1)673358 [17:33:39]line 20.06.2024 17:10 [17:33:39]line ПРОДАЖА [17:33:39]line ТРК (МРК, ГНК): 32 [17:33:39]line Вид ГСМ : 2710124130 [17:33:39]line Аи-92-К-5 [17:33:39]line 9.810 x 66.40 [17:33:39]line ИТОГ: 651.38 [17:33:39]line Тип оплаты: Талоны: ТК ГПНА Online [17:33:39]line 30060778 [17:33:39]line ______________________ [17:33:39]line (подпись) [17:33:39]written 0, free lines is 4095 [17:33:39]Write to MH i2c: 01 00 00 CC 34 00 [17:33:39]Write i2c OK [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: 01 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: 01 07 00 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: 01 07 00 CC 34 00 00 00 00 00 10 0E 25 [17:33:39]RasterBufferAndPrint [17:33:39]line [17:33:39]line [17:33:39]line [17:33:39]line [17:33:39]line [17:33:39]written 0, free lines is 3602 [17:33:39]MH_Cut [17:33:39]Write to MH i2c: D1 01 00 D3 34 01 D9 [17:33:39]Write i2c OK [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: D1 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: D1 01 00 [17:33:39]MH_I2C_Read... [17:33:39]Read from MH i2c: D1 01 00 D3 34 00 D8 [17:33:39]Write to MH i2c: 01 00 00 D4 34 08 [17:33:39]Write i2c OK [17:33:39]MH_I2C_Read... [17:33:40]*** Cut start [17:33:40]*** Partial cut [17:33:40]*** CUTSNS_PIN = 1 [17:33:40]*** CUTSNS_PIN = 0 [17:33:40]*** Brake cut motor [17:33:40]Read from MH i2c: 01 [17:33:40]MH_I2C_Read... [17:33:40]Read from MH i2c: 01 07 00 [17:33:41]MH_I2C_Read... [17:33:41]*** Stop cut motor [17:33:41]*** Cut end [17:33:41]Read from MH i2c: 01 07 00 D4 34 00 00 00 00 00 FF 0F 1D [17:33:41]process_action print_text done [17:33:41]requested_data is exist [17:33:41]produce_requested_data [17:33:41]requested_item fm.sn is exist - process it [17:33:41]wFMCommunicate request_size=4 [17:33:41]MH_SAM_APDU [17:33:41]CAPDU: 80 11 00 00 [17:33:41]Write to MH i2c: E2 08 00 D5 34 80 11 00 00 00 00 00 00 83 [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:41]Read from MH i2c: E2 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 17 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 17 00 D5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D6 [17:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:33:41]wFMCommunicate OK [17:33:41]requested_item fd.num is exist - process it [17:33:41]SAM_PROTO_GetFieldsCounters [17:33:41]wFMCommunicate request_size=4 [17:33:41]MH_SAM_APDU [17:33:41]CAPDU: 80 13 00 00 [17:33:41]Write to MH i2c: E2 08 00 D6 34 80 13 00 00 00 00 00 00 86 [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:41]Read from MH i2c: E2 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 62 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 62 00 D6 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 31 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [17:33:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 31 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:41]wFMCommunicate OK [17:33:41]SAM_PROTO_GetFieldsCounters done [17:33:41]requested_item shift.num is exist - process it [17:33:41]requested_item shift.opened is exist - process it [17:33:41]req_shift_opened [17:33:41]FM_GetShiftState [17:33:41]SAM_PROTO_GetShiftState [17:33:41]wFMCommunicate request_size=4 [17:33:41]MH_SAM_APDU [17:33:41]CAPDU: 80 13 01 00 [17:33:41]Write to MH i2c: E2 08 00 D7 34 80 13 01 00 00 00 00 00 88 [17:33:41]Write i2c OK [17:33:41]MH_I2C_Read... [17:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:41]Read from MH i2c: E2 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 0E 00 [17:33:41]MH_I2C_Read... [17:33:41]Read from MH i2c: E2 0E 00 D7 34 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D7 [17:33:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:33:41]wFMCommunicate OK [17:33:41]SAM_PROTO_GetShiftState done [17:33:41]FM_GetShiftState done [17:33:41]req_shift_opened done [17:33:41]requested_item shift.open_date is exist - process it [17:33:41]req_shift_open_date [17:33:41]req_shift_open_date done [17:33:41]produce_requested_data done [17:33:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103985,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:33:41]process_action_free print_text [17:33:41]json_value_free [17:33:41]json_value_free done [17:33:41]process_json_proto returns [17:33:41]Send response to host [17:33:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103985,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:33:41]free response buf [17:33:41]execute_script done [17:33:41]execute_script returns [17:33:41]free content buf [17:33:41]Sock 9.Close socket [17:33:41]Sock 9.Thread stoped [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:50]accept exits with 7 [17:34:50]New connection [17:34:50]New thread 3067207012 created [17:34:50]Thread 3067063652 joined [17:34:50]Waiting for new connection... [17:34:50] Sock 7.Parse request [17:34:50]Sock 7.Check first char [17:34:50]Sock 7.First char is OK [17:34:50]request: POST /json_proto HTTP/1.0 [17:34:50]Method: POST [17:34:50]URL: /json_proto [17:34:50]Method is POST - this is cgi request [17:34:50]url: /json_proto [17:34:50]query_string will be loaded in cgi processing [17:34:50]execute_cgi json_proto POST (null) [17:34:50]execute_cgi path=json_proto method=POST [17:34:50]POST find Content-Length [17:34:50]Host: 172.17.38.133:8080 [17:34:50]Content-Length: 677 [17:34:50]Content-Type: application/json [17:34:50] [17:34:50]POST finish read [17:34:50]Found Content-Length = 677 [17:34:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.260, "sum" : 349.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 349.00, "total" : 349.00, "payments": [ { "type": 0, "sum" : 349.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:50]execute_script... [17:34: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)673359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.260, "sum" : 349.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 349.00, "total" : 349.00, "payments": [ { "type": 0, "sum" : 349.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:50]POST & json_proto [17:34:50]process_json_proto [17:34:50]json parsed OK: [17:34:50]protocol is kg_v1.0 [17:34:50]action value=close_receipt [17:34:50]process_action close_receipt [17:34:50]cmd_close_receipt [17:34:50]MH_GetDate [17:34:50]Write to MH i2c: F0 00 00 D8 34 FB [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: F0 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: F0 09 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: F0 09 00 D8 34 00 3D 68 74 66 BD 8F 7C 64 AF [17:34:50]GetLastDocTimeStamp 1718904763 [17:34:50]current date 1718904893 [17:34:50]FM_GetShiftState [17:34:50]SAM_PROTO_GetShiftState [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 13 01 00 [17:34:50]Write to MH i2c: E2 08 00 D9 34 80 13 01 00 00 00 00 00 8A [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 0E 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 0E 00 D9 34 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D9 [17:34:50]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:34:50]wFMCommunicate OK [17:34:50]SAM_PROTO_GetShiftState done [17:34:50]FM_GetShiftState done [17:34:50]opened in 1718843124 [17:34:50]opened+sec_in_day 1718929524 [17:34:50]quantity*price = 34926 [17:34:50]sum+1 = 34927 [17:34:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 349.00 Внесено: 349.00 СДАЧА: 0.00 НСП 1% : 3.09 НДС 12% : 37.09 Наличными: 349.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 171 20.06.2024 17:34 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103986 ФПД: 133056288282821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T173453&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103986&fm=133056288282821&tin=02508201610067®Number=0000000000092785&sum=34900 [17:34:52]StoreToDocumentArchive [17:34:52]shift 354 fd 103986 [17:34:52]save to /storage/0354/doc_00103986 [17:34:52]save last doc name /storage/0354/doc_00103986 to /storage/kkm_last_doc_name [17:34:52]save OK [17:34:52]Clear old archive folders... [17:34:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:52]tlvbuf is B6F93590 [17:34:52]SAM_PROTO_ClearQueue [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 09 00 00 [17:34:52]Write to MH i2c: E2 08 00 E6 34 80 09 00 00 00 00 00 00 8C [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 03 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 03 00 E6 34 00 90 00 8E [17:34:52]RAPDU: 90 00 [17:34:52]wFMCommunicate OK [17:34:52]SAM_PROTO_ClearQueue done [17:34:52]KKMCreateOFDPacket [17:34:52]OFDProtocolAddRootSTLVToBuf [17:34:52]FM_MakeSignedData [17:34:52]FM_MakeSignedData [17:34:52]SAM_PROTO_SignData [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 0D 01 02 [17:34:52]Write to MH i2c: E2 08 00 E7 34 80 0D 01 02 00 00 00 00 94 [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 03 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 03 00 E7 34 00 90 00 8F [17:34:52]RAPDU: 90 00 [17:34:52]wFMCommunicate OK [17:34:52]wFMCommunicate request_size=255 [17:34:52]MH_SAM_APDU [17:34: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 8C 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6E 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 54 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 AB 00 00 00 F4 03 04 00 3D 68 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 96 01 00 35 04 06 00 79 [17:34:52]Write to MH i2c: E2 02 01 E8 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6E 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 54 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 AB 00 00 00 F4 03 04 00 3D 68 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 96 01 00 35 04 06 00 79 00 00 8B [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 03 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 03 00 E8 34 00 90 00 90 [17:34:52]RAPDU: 90 00 [17:34:52]wFMCommunicate OK [17:34:52]wFMCommunicate request_size=10 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 0D 02 02 05 03 94 CC 58 C5 [17:34:52]Write to MH i2c: E2 0D 00 E9 34 80 0D 02 02 05 00 03 94 CC 58 C5 00 00 21 [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 03 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 03 00 E9 34 00 90 00 91 [17:34:52]RAPDU: 90 00 [17:34:52]wFMCommunicate OK [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 0D 03 02 [17:34:52]Write to MH i2c: E2 08 00 EA 34 80 0D 03 02 00 00 00 00 99 [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 0B 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 0B 00 EA 34 00 5A E7 E5 D1 9C 7B EA BA 90 00 4C [17:34:52]RAPDU: 5A E7 E5 D1 9C 7B EA BA 90 00 [17:34:52]wFMCommunicate OK [17:34:52]SAM_PROTO_SignData done [17:34:52]FM_MakeSignedData done [17:34:52]CreateOFDProtocolMessage [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 11 00 00 [17:34:52]Write to MH i2c: E2 08 00 EB 34 80 11 00 00 00 00 00 00 99 [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 17 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 17 00 EB 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EC [17:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:34:52]wFMCommunicate OK [17:34:52]CreateOFDProtocolMessage done [17:34:52]OFDSenderStorePacket 103986 [17:34:52]StoreOFDPacket docnum=103986 [17:34:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E3 9E 07 01 A6 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6E 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 54 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 AB 00 00 00 F4 03 04 00 3D 68 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 96 01 00 35 04 06 00 79 03 94 CC 58 C5 5A E7 E5 D1 9C 7B EA BA [17:34:52]CheckFolder [17:34:52]dirname=/storage/ofd_packets [17:34:52]CheckFolder done [17:34:52]ProducePacketName [17:34:52]name=ofd_packets/00103986 [17:34:52]NVStorageSaveData ofd_packets/00103986 [17:34:52]File name is /storage/ofd_packets/00103986 [17:34:52]Write 301 bytes [17:34:52]NVStorageSaveData done [17:34:52]OFDSenderStorePacket done [17:34:52]KKMCreateOFDPacket done [17:34:52]NVStorageSaveData kkm_last_timestamp [17:34:52]File name is /storage/kkm_last_timestamp [17:34:52]Write 4 bytes [17:34:52]NVStorageSaveData done [17:34:52]ExternCall_PrintAddStr [17:34:52]wPrintStart [17:34:52]Write to MH i2c: 01 00 00 EC 34 20 [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: 01 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: 01 07 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: 01 07 00 EC 34 00 00 00 00 00 FF 0F 35 [17:34:52]RasterBufferAndPrint [17:34:52]line Счет N : (1)673359 [17:34:52]line ИНН: 02508201610067 [17:34:52]line Контрольно-Кассовый Чек [17:34:52]line ПРОДАЖА [17:34:52]line ТРК (МРК, ГНК) : 32 [17:34:52]line Товар: 2710124130 [17:34:52]line Аи-92-К-5 [17:34:52]line 5.260 * 66.40 [17:34:52]line = 349.26 [17:34:52]line НДС 12% НСП 1% [17:34:52]line > о реализуемом товаре [17:34:52]line ОКРУГЛЕНИЕ: -0.26 [17:34:52]line ИТОГО: 349.00 [17:34:52]line Внесено: 349.00 [17:34:52]line СДАЧА: 0.00 [17:34:52]line НСП 1% : 3.09 [17:34:52]line НДС 12% : 37.09 [17:34:52]line Наличными: 349.00 [17:34:52]line Безнал.: 0.00 [17:34:52]line Место: АЗС № 120 "Партнер Нефть" [17:34:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:34:52]line СНО: Общий режим [17:34:52]line Чек 171 20.06.2024 17:34 [17:34:52]line Смена: 354 ФФД: 1.0 [17:34:52]line ЗНМ: 0300000164 [17:34:52]line РНМ: 0000000000092785 [17:34:52]line Версия ККМ: 001 [17:34:52]line ФМ: 0000000000875093 [17:34:52]line ФД: 103986 [17:34:52]line ФПД: 133056288282821 [17:34:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T173453&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103986&fm=133056288282821&tin=02508201610067®Number=0000000000092785&sum=34900 [17:34:52]OFD Sender: Processing packet 103986 [packets to send 17, broken 16] [17:34:52]ProducePacketName [17:34:52]name=ofd_packets/00103986 [17:34:52]OFD Sender: To server: pG, [17:34:52]CommunicateWithHost lk.salyk.kg:30040 [17:34:52]ConnectInit lk.salyk.kg [17:34:52]written 0, free lines is 4095 [17:34:53]Connected sock=9 [17:34:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E3 9E 07 01 A6 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8C 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6E 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 0E 00 00 00 00 07 04 06 00 54 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 AB 00 00 00 F4 03 04 00 3D 68 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 96 01 00 35 04 06 00 79 03 94 CC 58 C5 5A E7 E5 D1 9C 7B EA BA [17:34:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B0 DA 47 00 8A F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 32 96 01 00 F4 03 04 00 C2 0E 74 66 B6 04 01 00 00 56 4D 96 7B B9 1A 4F 4E [17:34:53]CommunicateWithHost err = 0 [17:34:53]CheckOFDResponse [17:34:53]1017 (14) - 77093643461234 [17:34:53]1041 (16) - 0000000000875093 [17:34:53]1040 (4) - 103986 [17:34:53]1012 (4) - 20.06.2024 11:13 [17:34:53]1206 (1) - 0 [17:34:53]OFD Sender: Remove packet 103986 [17:34:53]ProducePacketName [17:34:53]name=ofd_packets/00103986 [17:34:53]NVStorageDeleteData [17:34:53]Write to MH i2c: 01 00 00 17 35 4C [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: 01 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: 01 07 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: 01 07 00 17 35 00 00 00 00 00 EF 0C 4E [17:34:53]RasterBufferAndPrint [17:34:53]line [17:34:53]line [17:34:53]line [17:34:53]line [17:34:53]line [17:34:53]written 0, free lines is 3320 [17:34:53]MH_Cut [17:34:53]Write to MH i2c: D1 01 00 1E 35 01 25 [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: D1 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: D1 01 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: D1 01 00 1E 35 00 24 [17:34:53]Write to MH i2c: 01 00 00 1F 35 54 [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]OFD Sender: No OFD packet to send [17:34:54]*** Cut start [17:34:54]*** Partial cut [17:34:54]*** CUTSNS_PIN = 1 [17:34:54]*** CUTSNS_PIN = 0 [17:34:54]*** Brake cut motor [17:34:54]Read from MH i2c: 01 [17:34:54]MH_I2C_Read... [17:34:54]*** Stop cut motor [17:34:54]*** Cut end [17:34:54]Read from MH i2c: 01 07 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: 01 07 00 1F 35 00 00 00 00 00 FF 0F 69 [17:34:54]process_action close_receipt done [17:34:54]requested_data is exist [17:34:54]produce_requested_data [17:34:54]requested_item fm.sn is exist - process it [17:34:54]wFMCommunicate request_size=4 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 11 00 00 [17:34:54]Write to MH i2c: E2 08 00 20 35 80 11 00 00 00 00 00 00 CF [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 17 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 17 00 20 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 22 [17:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:34:54]wFMCommunicate OK [17:34:54]requested_item fd.num is exist - process it [17:34:54]SAM_PROTO_GetFieldsCounters [17:34:54]wFMCommunicate request_size=4 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 13 00 00 [17:34:54]Write to MH i2c: E2 08 00 21 35 80 13 00 00 00 00 00 00 D2 [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 62 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 62 00 21 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 32 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [17:34:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 32 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:54]wFMCommunicate OK [17:34:54]SAM_PROTO_GetFieldsCounters done [17:34:54]requested_item shift.num is exist - process it [17:34:54]requested_item shift.opened is exist - process it [17:34:54]req_shift_opened [17:34:54]FM_GetShiftState [17:34:54]SAM_PROTO_GetShiftState [17:34:54]wFMCommunicate request_size=4 [17:34:54]MH_SAM_APDU [17:34:54]CAPDU: 80 13 01 00 [17:34:54]Write to MH i2c: E2 08 00 22 35 80 13 01 00 00 00 00 00 D4 [17:34:54]Write i2c OK [17:34:54]MH_I2C_Read... [17:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:54]Read from MH i2c: E2 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 0E 00 [17:34:54]MH_I2C_Read... [17:34:54]Read from MH i2c: E2 0E 00 22 35 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 23 [17:34:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:34:54]wFMCommunicate OK [17:34:54]SAM_PROTO_GetShiftState done [17:34:54]FM_GetShiftState done [17:34:54]req_shift_opened done [17:34:54]requested_item shift.open_date is exist - process it [17:34:54]req_shift_open_date [17:34:54]req_shift_open_date done [17:34:54]produce_requested_data done [17:34:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103986,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:34:54]process_action_free close_receipt [17:34:54]json_value_free [17:34:54]json_value_free done [17:34:54]process_json_proto returns [17:34:54]Send response to host [17:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103986,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:34:54]free response buf [17:34:54]execute_script done [17:34:54]execute_script returns [17:34:54]free content buf [17:34:54]Sock 7.Close socket [17:34:54]Sock 7.Thread stoped [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:50]accept exits with 10 [17:36:50]New connection [17:36:50]New thread 3067063652 created [17:36:50]Thread 3067207012 joined [17:36:50]Waiting for new connection... [17:36:50] Sock 10.Parse request [17:36:50]Sock 10.Check first char [17:36:50]Sock 10.First char is OK [17:36:50]request: POST /json_proto HTTP/1.0 [17:36:50]Method: POST [17:36:50]URL: /json_proto [17:36:50]Method is POST - this is cgi request [17:36:50]url: /json_proto [17:36:50]query_string will be loaded in cgi processing [17:36:50]execute_cgi json_proto POST (null) [17:36:50]execute_cgi path=json_proto method=POST [17:36:50]POST find Content-Length [17:36:50]Host: 172.17.38.133:8080 [17:36:50]Content-Length: 1205 [17:36:50]Content-Type: application/json [17:36:50] [17:36:50]POST finish read [17:36:50]Found Content-Length = 1205 [17:36: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673360\u000A20.06.2024 17:14\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 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3543825;3543824\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:50]execute_script... [17:36: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673360\u000A20.06.2024 17:14\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 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3543825;3543824\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:50]POST & json_proto [17:36:50]process_json_proto [17:36:50]json parsed OK: [17:36:50]protocol is kg_v1.0 [17:36:50]action value=print_text [17:36:50]process_action print_text [17:36:50]cmd_print_text [17:36:50]ExternCall_PrintAddStr [17:36:50]wPrintStart [17:36:50]Write to MH i2c: 01 00 00 23 35 58 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: 01 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: 01 07 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: 01 07 00 23 35 00 00 00 00 00 FF 0F 6D [17:36:50]RasterBufferAndPrint [17:36:50]line *****ТОВАРНЫЙ ЧЕК***** [17:36:50]line АЗС 120 [17:36:50]line Партнер нефть [17:36:50]line 02508201610067 [17:36:50]line Кассир : Дуйшенбиев А. [17:36:50]line Счет N : (1)673360 [17:36:50]line 20.06.2024 17:14 [17:36:50]line ПРОДАЖА [17:36:50]line ТРК (МРК, ГНК): 42 [17:36:50]line Вид ГСМ : 2710124130 [17:36:50]line Аи-92-К-5 [17:36:50]line 20.000 x 66.40 [17:36:50]line ИТОГ: 1328.00 [17:36:50]line Тип оплаты: Талоны: Партнер нефть [17:36:50]line 3543825;3543824 [17:36:50]line ______________________ [17:36:50]line (подпись) [17:36:50]written 0, free lines is 4095 [17:36:50]Write to MH i2c: 01 00 00 37 35 6C [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: 01 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: 01 07 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: 01 07 00 37 35 00 00 00 00 00 18 0E 99 [17:36:50]RasterBufferAndPrint [17:36:50]line [17:36:50]line [17:36:50]line [17:36:50]line [17:36:50]line [17:36:50]written 0, free lines is 3610 [17:36:50]MH_Cut [17:36:50]Write to MH i2c: D1 01 00 3E 35 01 45 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: D1 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: D1 01 00 [17:36:50]MH_I2C_Read... [17:36:50]Read from MH i2c: D1 01 00 3E 35 00 44 [17:36:50]Write to MH i2c: 01 00 00 3F 35 74 [17:36:50]Write i2c OK [17:36:50]MH_I2C_Read... [17:36:51]*** Cut start [17:36:51]*** Partial cut [17:36:51]*** CUTSNS_PIN = 1 [17:36:51]*** CUTSNS_PIN = 0 [17:36:51]*** Brake cut motor [17:36:51]Read from MH i2c: 01 [17:36:51]MH_I2C_Read... [17:36:51]*** Stop cut motor [17:36:51]*** Cut end [17:36:51]Read from MH i2c: 01 07 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: 01 07 00 3F 35 00 00 00 00 00 FF 0F 89 [17:36:51]process_action print_text done [17:36:51]requested_data is exist [17:36:51]produce_requested_data [17:36:51]requested_item fm.sn is exist - process it [17:36:51]wFMCommunicate request_size=4 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 11 00 00 [17:36:51]Write to MH i2c: E2 08 00 40 35 80 11 00 00 00 00 00 00 EF [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:51]Read from MH i2c: E2 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 17 00 [17:36:51]MH_I2C_Read... [17:36:51]Read from MH i2c: E2 17 00 40 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 42 [17:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:36:51]wFMCommunicate OK [17:36:51]requested_item fd.num is exist - process it [17:36:51]SAM_PROTO_GetFieldsCounters [17:36:51]wFMCommunicate request_size=4 [17:36:51]MH_SAM_APDU [17:36:51]CAPDU: 80 13 00 00 [17:36:51]Write to MH i2c: E2 08 00 41 35 80 13 00 00 00 00 00 00 F2 [17:36:51]Write i2c OK [17:36:51]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 62 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 62 00 41 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 32 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [17:36:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 32 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:52]wFMCommunicate OK [17:36:52]SAM_PROTO_GetFieldsCounters done [17:36:52]requested_item shift.num is exist - process it [17:36:52]requested_item shift.opened is exist - process it [17:36:52]req_shift_opened [17:36:52]FM_GetShiftState [17:36:52]SAM_PROTO_GetShiftState [17:36:52]wFMCommunicate request_size=4 [17:36:52]MH_SAM_APDU [17:36:52]CAPDU: 80 13 01 00 [17:36:52]Write to MH i2c: E2 08 00 42 35 80 13 01 00 00 00 00 00 F4 [17:36:52]Write i2c OK [17:36:52]MH_I2C_Read... [17:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:52]Read from MH i2c: E2 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 0E 00 [17:36:52]MH_I2C_Read... [17:36:52]Read from MH i2c: E2 0E 00 42 35 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 43 [17:36:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:36:52]wFMCommunicate OK [17:36:52]SAM_PROTO_GetShiftState done [17:36:52]FM_GetShiftState done [17:36:52]req_shift_opened done [17:36:52]requested_item shift.open_date is exist - process it [17:36:52]req_shift_open_date [17:36:52]req_shift_open_date done [17:36:52]produce_requested_data done [17:36:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103986,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:36:52]process_action_free print_text [17:36:52]json_value_free [17:36:52]json_value_free done [17:36:52]process_json_proto returns [17:36:52]Send response to host [17:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103986,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:36:52]free response buf [17:36:52]execute_script done [17:36:52]execute_script returns [17:36:52]free content buf [17:36:52]Sock 10.Close socket [17:36:52]Sock 10.Thread stoped [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:05]accept exits with 7 [17:41:05]New connection [17:41:05]New thread 3067207012 created [17:41:05]Thread 3067063652 joined [17:41:05]Waiting for new connection... [17:41:05] Sock 7.Parse request [17:41:05]Sock 7.Check first char [17:41:05]Sock 7.First char is OK [17:41:05]request: POST /json_proto HTTP/1.0 [17:41:05]Method: POST [17:41:05]URL: /json_proto [17:41:05]Method is POST - this is cgi request [17:41:05]url: /json_proto [17:41:05]query_string will be loaded in cgi processing [17:41:05]execute_cgi json_proto POST (null) [17:41:05]execute_cgi path=json_proto method=POST [17:41:05]POST find Content-Length [17:41:05]Host: 172.17.38.133:8080 [17:41:05]Content-Length: 677 [17:41:05]Content-Type: application/json [17:41:05] [17:41:05]POST finish read [17:41:05]Found Content-Length = 677 [17:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:05]execute_script... [17:41: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)673361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:05]POST & json_proto [17:41:05]process_json_proto [17:41:05]json parsed OK: [17:41:05]protocol is kg_v1.0 [17:41:05]action value=close_receipt [17:41:05]process_action close_receipt [17:41:05]cmd_close_receipt [17:41:05]MH_GetDate [17:41:05]Write to MH i2c: F0 00 00 43 35 67 [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: F0 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: F0 09 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: F0 09 00 43 35 00 B4 69 74 66 BD 8F 7C 64 93 [17:41:05]GetLastDocTimeStamp 1718904893 [17:41:05]current date 1718905268 [17:41:05]FM_GetShiftState [17:41:05]SAM_PROTO_GetShiftState [17:41:05]wFMCommunicate request_size=4 [17:41:05]MH_SAM_APDU [17:41:05]CAPDU: 80 13 01 00 [17:41:05]Write to MH i2c: E2 08 00 44 35 80 13 01 00 00 00 00 00 F6 [17:41:05]Write i2c OK [17:41:05]MH_I2C_Read... [17:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:05]Read from MH i2c: E2 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 0E 00 [17:41:05]MH_I2C_Read... [17:41:05]Read from MH i2c: E2 0E 00 44 35 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 45 [17:41:05]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:41:05]wFMCommunicate OK [17:41:05]SAM_PROTO_GetShiftState done [17:41:05]FM_GetShiftState done [17:41:05]opened in 1718843124 [17:41:05]opened+sec_in_day 1718929524 [17:41:05]quantity*price = 50065 [17:41:05]sum+1 = 50067 [17:41:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 172 20.06.2024 17:41 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103987 ФПД: 268115108326893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T174108&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103987&fm=268115108326893&tin=02508201610067®Number=0000000000092785&sum=50000 [17:41:06]StoreToDocumentArchive [17:41:06]shift 354 fd 103987 [17:41:06]save to /storage/0354/doc_00103987 [17:41:06]save last doc name /storage/0354/doc_00103987 to /storage/kkm_last_doc_name [17:41:06]save OK [17:41:06]Clear old archive folders... [17:41:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:06]tlvbuf is 00823530 [17:41:06]SAM_PROTO_ClearQueue [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 09 00 00 [17:41:06]Write to MH i2c: E2 08 00 51 35 80 09 00 00 00 00 00 00 F8 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 51 35 00 90 00 FA [17:41:06]RAPDU: 90 00 [17:41:06]wFMCommunicate OK [17:41:06]SAM_PROTO_ClearQueue done [17:41:06]KKMCreateOFDPacket [17:41:06]OFDProtocolAddRootSTLVToBuf [17:41:06]FM_MakeSignedData [17:41:06]FM_MakeSignedData [17:41:06]SAM_PROTO_SignData [17:41:06]wFMCommunicate request_size=4 [17:41:06]MH_SAM_APDU [17:41:06]CAPDU: 80 0D 01 02 [17:41:06]Write to MH i2c: E2 08 00 52 35 80 0D 01 02 00 00 00 00 00 [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:06]Read from MH i2c: E2 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 [17:41:06]MH_I2C_Read... [17:41:06]Read from MH i2c: E2 03 00 52 35 00 90 00 FB [17:41:06]RAPDU: 90 00 [17:41:06]wFMCommunicate OK [17:41:06]wFMCommunicate request_size=255 [17:41:06]MH_SAM_APDU [17:41: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 B4 69 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 96 01 00 35 04 06 00 F3 [17:41:06]Write to MH i2c: E2 02 01 53 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 B4 69 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 96 01 00 35 04 06 00 F3 00 00 7D [17:41:06]Write i2c OK [17:41:06]MH_I2C_Read... [17:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:07]Read from MH i2c: E2 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 03 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 03 00 53 35 00 90 00 FC [17:41:07]RAPDU: 90 00 [17:41:07]wFMCommunicate OK [17:41:07]wFMCommunicate request_size=10 [17:41:07]MH_SAM_APDU [17:41:07]CAPDU: 80 0D 02 02 05 D9 69 CA 6D ED [17:41:07]Write to MH i2c: E2 0D 00 54 35 80 0D 02 02 05 00 D9 69 CA 6D ED 00 00 73 [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:07]Read from MH i2c: E2 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 03 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 03 00 54 35 00 90 00 FD [17:41:07]RAPDU: 90 00 [17:41:07]wFMCommunicate OK [17:41:07]wFMCommunicate request_size=4 [17:41:07]MH_SAM_APDU [17:41:07]CAPDU: 80 0D 03 02 [17:41:07]Write to MH i2c: E2 08 00 55 35 80 0D 03 02 00 00 00 00 05 [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:07]Read from MH i2c: E2 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 0B 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 0B 00 55 35 00 59 68 75 65 31 7C 22 0C 90 00 7C [17:41:07]RAPDU: 59 68 75 65 31 7C 22 0C 90 00 [17:41:07]wFMCommunicate OK [17:41:07]SAM_PROTO_SignData done [17:41:07]FM_MakeSignedData done [17:41:07]CreateOFDProtocolMessage [17:41:07]wFMCommunicate request_size=4 [17:41:07]MH_SAM_APDU [17:41:07]CAPDU: 80 11 00 00 [17:41:07]Write to MH i2c: E2 08 00 56 35 80 11 00 00 00 00 00 00 05 [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:07]Read from MH i2c: E2 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 17 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 17 00 56 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 58 [17:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:41:07]wFMCommunicate OK [17:41:07]CreateOFDProtocolMessage done [17:41:07]OFDSenderStorePacket 103987 [17:41:07]StoreOFDPacket docnum=103987 [17:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 02 46 07 01 27 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 B4 69 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 96 01 00 35 04 06 00 F3 D9 69 CA 6D ED 59 68 75 65 31 7C 22 0C [17:41:07]CheckFolder [17:41:07]dirname=/storage/ofd_packets [17:41:07]CheckFolder done [17:41:07]ProducePacketName [17:41:07]name=ofd_packets/00103987 [17:41:07]NVStorageSaveData ofd_packets/00103987 [17:41:07]File name is /storage/ofd_packets/00103987 [17:41:07]Write 301 bytes [17:41:07]NVStorageSaveData done [17:41:07]OFDSenderStorePacket done [17:41:07]KKMCreateOFDPacket done [17:41:07]NVStorageSaveData kkm_last_timestamp [17:41:07]File name is /storage/kkm_last_timestamp [17:41:07]Write 4 bytes [17:41:07]NVStorageSaveData done [17:41:07]ExternCall_PrintAddStr [17:41:07]wPrintStart [17:41:07]Write to MH i2c: 01 00 00 57 35 8C [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 07 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 07 00 57 35 00 00 00 00 00 FF 0F A1 [17:41:07]RasterBufferAndPrint [17:41:07]line Счет N : (1)673361 [17:41:07]line ИНН: 02508201610067 [17:41:07]line Контрольно-Кассовый Чек [17:41:07]line ПРОДАЖА [17:41:07]line ТРК (МРК, ГНК) : 42 [17:41:07]line Товар: 2710124130 [17:41:07]line Аи-92-К-5 [17:41:07]line 7.540 * 66.40 [17:41:07]line = 500.66 [17:41:07]line НДС 12% НСП 1% [17:41:07]line > о реализуемом товаре [17:41:07]line ОКРУГЛЕНИЕ: -0.66 [17:41:07]line ИТОГО: 500.00 [17:41:07]line Внесено: 500.00 [17:41:07]line СДАЧА: 0.00 [17:41:07]line НСП 1% : 4.43 [17:41:07]line НДС 12% : 53.17 [17:41:07]line Наличными: 500.00 [17:41:07]line Безнал.: 0.00 [17:41:07]line Место: АЗС № 120 "Партнер Нефть" [17:41:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:41:07]line СНО: Общий режим [17:41:07]line Чек 172 20.06.2024 17:41 [17:41:07]line Смена: 354 ФФД: 1.0 [17:41:07]line ЗНМ: 0300000164 [17:41:07]line РНМ: 0000000000092785 [17:41:07]line Версия ККМ: 001 [17:41:07]line ФМ: 0000000000875093 [17:41:07]line ФД: 103987 [17:41:07]line ФПД: 268115108326893 [17:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T174108&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103987&fm=268115108326893&tin=02508201610067®Number=0000000000092785&sum=50000 [17:41:07]OFD Sender: Processing packet 103987 [packets to send 17, broken 16] [17:41:07]ProducePacketName [17:41:07]name=ofd_packets/00103987 [17:41:07]OFD Sender: To server: pG, [17:41:07]CommunicateWithHost lk.salyk.kg:30040 [17:41:07]ConnectInit lk.salyk.kg [17:41:07]written 0, free lines is 4095 [17:41:07]Connected sock=10 [17:41:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 02 46 07 01 27 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 B4 69 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 33 96 01 00 35 04 06 00 F3 D9 69 CA 6D ED 59 68 75 65 31 7C 22 0C [17:41:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 46 C1 47 00 40 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 35 30 39 33 10 04 04 00 33 96 01 00 F4 03 04 00 39 10 74 66 B6 04 01 00 00 87 EA 3E 18 F4 1A DD 9A [17:41:07]CommunicateWithHost err = 0 [17:41:07]CheckOFDResponse [17:41:07]1017 (14) - 77093643461234 [17:41:07]1041 (16) - 0000000000875093 [17:41:07]1040 (4) - 103987 [17:41:07]1012 (4) - 20.06.2024 11:19 [17:41:07]1206 (1) - 0 [17:41:07]OFD Sender: Remove packet 103987 [17:41:07]ProducePacketName [17:41:07]name=ofd_packets/00103987 [17:41:07]NVStorageDeleteData [17:41:07]Write to MH i2c: 01 00 00 82 35 B7 [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 07 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: 01 07 00 82 35 00 00 00 00 00 F6 0C C0 [17:41:07]RasterBufferAndPrint [17:41:07]line [17:41:07]line [17:41:08]line [17:41:08]line [17:41:08]line [17:41:08]written 0, free lines is 3328 [17:41:08]MH_Cut [17:41:08]Write to MH i2c: D1 01 00 89 35 01 90 [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: D1 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: D1 01 00 [17:41:08]MH_I2C_Read... [17:41:08]Read from MH i2c: D1 01 00 89 35 00 8F [17:41:08]Write to MH i2c: 01 00 00 8A 35 BF [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:08]OFD Sender: No OFD packet to send [17:41:08]*** Cut start [17:41:08]*** Partial cut [17:41:08]*** CUTSNS_PIN = 1 [17:41:08]*** CUTSNS_PIN = 0 [17:41:08]*** Brake cut motor [17:41:09]Read from MH i2c: 01 [17:41:09]MH_I2C_Read... [17:41:09]*** Stop cut motor [17:41:09]*** Cut end [17:41:09]Read from MH i2c: 01 07 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 07 00 8A 35 00 00 00 00 00 FF 0F D4 [17:41:09]process_action close_receipt done [17:41:09]requested_data is exist [17:41:09]produce_requested_data [17:41:09]requested_item fm.sn is exist - process it [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 11 00 00 [17:41:09]Write to MH i2c: E2 08 00 8B 35 80 11 00 00 00 00 00 00 3A [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 17 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 17 00 8B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8D [17:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:41:09]wFMCommunicate OK [17:41:09]requested_item fd.num is exist - process it [17:41:09]SAM_PROTO_GetFieldsCounters [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 13 00 00 [17:41:09]Write to MH i2c: E2 08 00 8C 35 80 13 00 00 00 00 00 00 3D [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 62 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 62 00 8C 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 33 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [17:41:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 33 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:09]wFMCommunicate OK [17:41:09]SAM_PROTO_GetFieldsCounters done [17:41:09]requested_item shift.num is exist - process it [17:41:09]requested_item shift.opened is exist - process it [17:41:09]req_shift_opened [17:41:09]FM_GetShiftState [17:41:09]SAM_PROTO_GetShiftState [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 13 01 00 [17:41:09]Write to MH i2c: E2 08 00 8D 35 80 13 01 00 00 00 00 00 3F [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 0E 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 0E 00 8D 35 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8E [17:41:09]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:41:09]wFMCommunicate OK [17:41:09]SAM_PROTO_GetShiftState done [17:41:09]FM_GetShiftState done [17:41:09]req_shift_opened done [17:41:09]requested_item shift.open_date is exist - process it [17:41:09]req_shift_open_date [17:41:09]req_shift_open_date done [17:41:09]produce_requested_data done [17:41:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103987,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:41:09]process_action_free close_receipt [17:41:09]json_value_free [17:41:09]json_value_free done [17:41:09]process_json_proto returns [17:41:09]Send response to host [17:41:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103987,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:41:09]free response buf [17:41:09]execute_script done [17:41:09]execute_script returns [17:41:09]free content buf [17:41:09]Sock 7.Close socket [17:41:09]Sock 7.Thread stoped [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]accept exits with 9 [17:45:58]New connection [17:45:58]New thread 3067063652 created [17:45:58]Thread 3067207012 joined [17:45:58]Waiting for new connection... [17:45:58] Sock 9.Parse request [17:45:58]Sock 9.Check first char [17:45:58]Sock 9.First char is OK [17:45:58]request: POST /json_proto HTTP/1.0 [17:45:58]Method: POST [17:45:58]URL: /json_proto [17:45:58]Method is POST - this is cgi request [17:45:58]url: /json_proto [17:45:58]query_string will be loaded in cgi processing [17:45:58]execute_cgi json_proto POST (null) [17:45:58]execute_cgi path=json_proto method=POST [17:45:58]POST find Content-Length [17:45:58]Host: 172.17.38.133:8080 [17:45:58]Content-Length: 677 [17:45:58]Content-Type: application/json [17:45:58] [17:45:58]POST finish read [17:45:58]Found Content-Length = 677 [17:45:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:58]execute_script... [17:45: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)673363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:58]POST & json_proto [17:45:58]process_json_proto [17:45:58]json parsed OK: [17:45:58]protocol is kg_v1.0 [17:45:58]action value=close_receipt [17:45:58]process_action close_receipt [17:45:58]cmd_close_receipt [17:45:58]MH_GetDate [17:45:58]Write to MH i2c: F0 00 00 8E 35 B2 [17:45:58]Write i2c OK [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: F0 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: F0 09 00 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: F0 09 00 8E 35 00 D9 6A 74 66 BD 8F 7C 64 04 [17:45:58]GetLastDocTimeStamp 1718905268 [17:45:58]current date 1718905561 [17:45:58]FM_GetShiftState [17:45:58]SAM_PROTO_GetShiftState [17:45:58]wFMCommunicate request_size=4 [17:45:58]MH_SAM_APDU [17:45:58]CAPDU: 80 13 01 00 [17:45:58]Write to MH i2c: E2 08 00 8F 35 80 13 01 00 00 00 00 00 41 [17:45:58]Write i2c OK [17:45:58]MH_I2C_Read... [17:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:58]Read from MH i2c: E2 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 0E 00 [17:45:58]MH_I2C_Read... [17:45:58]Read from MH i2c: E2 0E 00 8F 35 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 90 [17:45:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:45:58]wFMCommunicate OK [17:45:58]SAM_PROTO_GetShiftState done [17:45:58]FM_GetShiftState done [17:45:58]opened in 1718843124 [17:45:58]opened+sec_in_day 1718929524 [17:45:58]quantity*price = 50065 [17:45:58]sum+1 = 50067 [17:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 173 20.06.2024 17:46 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103988 ФПД: 209390819686480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T174601&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103988&fm=209390819686480&tin=02508201610067®Number=0000000000092785&sum=50000 [17:45:59]StoreToDocumentArchive [17:45:59]shift 354 fd 103988 [17:45:59]save to /storage/0354/doc_00103988 [17:45:59]save last doc name /storage/0354/doc_00103988 to /storage/kkm_last_doc_name [17:45:59]save OK [17:45:59]Clear old archive folders... [17:45:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:59]tlvbuf is 00846D20 [17:45:59]SAM_PROTO_ClearQueue [17:45:59]wFMCommunicate request_size=4 [17:45:59]MH_SAM_APDU [17:45:59]CAPDU: 80 09 00 00 [17:45:59]Write to MH i2c: E2 08 00 9C 35 80 09 00 00 00 00 00 00 43 [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:59]Read from MH i2c: E2 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 03 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 03 00 9C 35 00 90 00 45 [17:45:59]RAPDU: 90 00 [17:45:59]wFMCommunicate OK [17:45:59]SAM_PROTO_ClearQueue done [17:45:59]KKMCreateOFDPacket [17:45:59]OFDProtocolAddRootSTLVToBuf [17:45:59]FM_MakeSignedData [17:45:59]FM_MakeSignedData [17:45:59]SAM_PROTO_SignData [17:45:59]wFMCommunicate request_size=4 [17:45:59]MH_SAM_APDU [17:45:59]CAPDU: 80 0D 01 02 [17:45:59]Write to MH i2c: E2 08 00 9D 35 80 0D 01 02 00 00 00 00 4B [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:59]Read from MH i2c: E2 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 03 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 03 00 9D 35 00 90 00 46 [17:45:59]RAPDU: 90 00 [17:45:59]wFMCommunicate OK [17:45:59]wFMCommunicate request_size=255 [17:45:59]MH_SAM_APDU [17:45: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D9 6A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 96 01 00 35 04 06 00 BE [17:45:59]Write to MH i2c: E2 02 01 9E 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D9 6A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 96 01 00 35 04 06 00 BE 00 00 BB [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:59]Read from MH i2c: E2 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 03 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 03 00 9E 35 00 90 00 47 [17:45:59]RAPDU: 90 00 [17:45:59]wFMCommunicate OK [17:45:59]wFMCommunicate request_size=10 [17:45:59]MH_SAM_APDU [17:45:59]CAPDU: 80 0D 02 02 05 70 99 6D 38 50 [17:45:59]Write to MH i2c: E2 0D 00 9F 35 80 0D 02 02 05 00 70 99 6D 38 50 00 00 56 [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:59]Read from MH i2c: E2 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 03 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 03 00 9F 35 00 90 00 48 [17:45:59]RAPDU: 90 00 [17:45:59]wFMCommunicate OK [17:45:59]wFMCommunicate request_size=4 [17:45:59]MH_SAM_APDU [17:45:59]CAPDU: 80 0D 03 02 [17:45:59]Write to MH i2c: E2 08 00 A0 35 80 0D 03 02 00 00 00 00 50 [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:59]Read from MH i2c: E2 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 0B 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 0B 00 A0 35 00 F0 9F 49 34 D1 8C 10 DB 90 00 A5 [17:45:59]RAPDU: F0 9F 49 34 D1 8C 10 DB 90 00 [17:45:59]wFMCommunicate OK [17:45:59]SAM_PROTO_SignData done [17:45:59]FM_MakeSignedData done [17:45:59]CreateOFDProtocolMessage [17:45:59]wFMCommunicate request_size=4 [17:45:59]MH_SAM_APDU [17:45:59]CAPDU: 80 11 00 00 [17:45:59]Write to MH i2c: E2 08 00 A1 35 80 11 00 00 00 00 00 00 50 [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:59]Read from MH i2c: E2 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 17 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: E2 17 00 A1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A3 [17:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:45:59]wFMCommunicate OK [17:45:59]CreateOFDProtocolMessage done [17:45:59]OFDSenderStorePacket 103988 [17:45:59]StoreOFDPacket docnum=103988 [17:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DE 21 07 01 CD 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D9 6A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 96 01 00 35 04 06 00 BE 70 99 6D 38 50 F0 9F 49 34 D1 8C 10 DB [17:45:59]CheckFolder [17:45:59]dirname=/storage/ofd_packets [17:45:59]CheckFolder done [17:45:59]ProducePacketName [17:45:59]name=ofd_packets/00103988 [17:45:59]NVStorageSaveData ofd_packets/00103988 [17:45:59]File name is /storage/ofd_packets/00103988 [17:45:59]Write 301 bytes [17:45:59]NVStorageSaveData done [17:45:59]OFDSenderStorePacket done [17:45:59]KKMCreateOFDPacket done [17:45:59]NVStorageSaveData kkm_last_timestamp [17:45:59]File name is /storage/kkm_last_timestamp [17:45:59]Write 4 bytes [17:45:59]NVStorageSaveData done [17:45:59]ExternCall_PrintAddStr [17:45:59]wPrintStart [17:45:59]Write to MH i2c: 01 00 00 A2 35 D7 [17:45:59]Write i2c OK [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: 01 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: 01 07 00 [17:45:59]MH_I2C_Read... [17:45:59]Read from MH i2c: 01 07 00 A2 35 00 00 00 00 00 FF 0F EC [17:45:59]RasterBufferAndPrint [17:45:59]line Счет N : (1)673363 [17:45:59]line ИНН: 02508201610067 [17:45:59]line Контрольно-Кассовый Чек [17:45:59]line ПРОДАЖА [17:45:59]line ТРК (МРК, ГНК) : 32 [17:45:59]line Товар: 2710124130 [17:45:59]line Аи-92-К-5 [17:45:59]line 7.540 * 66.40 [17:45:59]line = 500.66 [17:45:59]line НДС 12% НСП 1% [17:45:59]line > о реализуемом товаре [17:45:59]line ОКРУГЛЕНИЕ: -0.66 [17:45:59]line ИТОГО: 500.00 [17:45:59]line Внесено: 500.00 [17:45:59]line СДАЧА: 0.00 [17:45:59]line НСП 1% : 4.43 [17:45:59]line НДС 12% : 53.17 [17:45:59]line Наличными: 500.00 [17:45:59]line Безнал.: 0.00 [17:45:59]line Место: АЗС № 120 "Партнер Нефть" [17:45:59]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:45:59]line СНО: Общий режим [17:45:59]line Чек 173 20.06.2024 17:46 [17:45:59]line Смена: 354 ФФД: 1.0 [17:45:59]line ЗНМ: 0300000164 [17:45:59]line РНМ: 0000000000092785 [17:45:59]line Версия ККМ: 001 [17:45:59]line ФМ: 0000000000875093 [17:45:59]line ФД: 103988 [17:45:59]line ФПД: 209390819686480 [17:45:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T174601&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103988&fm=209390819686480&tin=02508201610067®Number=0000000000092785&sum=50000 [17:46:00]OFD Sender: Processing packet 103988 [packets to send 17, broken 16] [17:46:00]ProducePacketName [17:46:00]name=ofd_packets/00103988 [17:46:00]OFD Sender: To server: pG, [17:46:00]CommunicateWithHost lk.salyk.kg:30040 [17:46:00]ConnectInit lk.salyk.kg [17:46:00]written 0, free lines is 4095 [17:46:00]Connected sock=10 [17:46:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DE 21 07 01 CD 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D9 6A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 96 01 00 35 04 06 00 BE 70 99 6D 38 50 F0 9F 49 34 D1 8C 10 DB [17:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A7 DC 47 00 F8 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 34 96 01 00 F4 03 04 00 5E 11 74 66 B6 04 01 00 00 9E AF B6 99 7B E7 80 E7 [17:46:00]CommunicateWithHost err = 0 [17:46:00]CheckOFDResponse [17:46:00]1017 (14) - 77093643461234 [17:46:00]1041 (16) - 0000000000875093 [17:46:00]1040 (4) - 103988 [17:46:00]1012 (4) - 20.06.2024 11:24 [17:46:00]1206 (1) - 0 [17:46:00]OFD Sender: Remove packet 103988 [17:46:00]ProducePacketName [17:46:00]name=ofd_packets/00103988 [17:46:00]NVStorageDeleteData [17:46:00]Write to MH i2c: 01 00 00 CD 35 02 [17:46:00]Write i2c OK [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: 01 [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: 01 07 00 [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: 01 07 00 CD 35 00 00 00 00 00 E0 0C F5 [17:46:00]RasterBufferAndPrint [17:46:00]line [17:46:00]line [17:46:00]line [17:46:00]line [17:46:00]line [17:46:00]written 0, free lines is 3304 [17:46:00]MH_Cut [17:46:00]Write to MH i2c: D1 01 00 D4 35 01 DB [17:46:00]Write i2c OK [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: D1 [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: D1 01 00 [17:46:00]MH_I2C_Read... [17:46:00]Read from MH i2c: D1 01 00 D4 35 00 DA [17:46:00]Write to MH i2c: 01 00 00 D5 35 0A [17:46:00]Write i2c OK [17:46:00]MH_I2C_Read... [17:46:01]OFD Sender: No OFD packet to send [17:46:01]*** Cut start [17:46:01]*** Partial cut [17:46:01]*** CUTSNS_PIN = 1 [17:46:01]*** CUTSNS_PIN = 0 [17:46:01]*** Brake cut motor [17:46:02]Read from MH i2c: 01 [17:46:02]MH_I2C_Read... [17:46:02]*** Stop cut motor [17:46:02]*** Cut end [17:46:02]Read from MH i2c: 01 07 00 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: 01 07 00 D5 35 00 00 00 00 00 FF 0F 1F [17:46:02]process_action close_receipt done [17:46:02]requested_data is exist [17:46:02]produce_requested_data [17:46:02]requested_item fm.sn is exist - process it [17:46:02]wFMCommunicate request_size=4 [17:46:02]MH_SAM_APDU [17:46:02]CAPDU: 80 11 00 00 [17:46:02]Write to MH i2c: E2 08 00 D6 35 80 11 00 00 00 00 00 00 85 [17:46:02]Write i2c OK [17:46:02]MH_I2C_Read... [17:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:02]Read from MH i2c: E2 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 17 00 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 17 00 D6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D8 [17:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:46:02]wFMCommunicate OK [17:46:02]requested_item fd.num is exist - process it [17:46:02]SAM_PROTO_GetFieldsCounters [17:46:02]wFMCommunicate request_size=4 [17:46:02]MH_SAM_APDU [17:46:02]CAPDU: 80 13 00 00 [17:46:02]Write to MH i2c: E2 08 00 D7 35 80 13 00 00 00 00 00 00 88 [17:46:02]Write i2c OK [17:46:02]MH_I2C_Read... [17:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:02]Read from MH i2c: E2 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 62 00 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 62 00 D7 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 34 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [17:46:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 34 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:02]wFMCommunicate OK [17:46:02]SAM_PROTO_GetFieldsCounters done [17:46:02]requested_item shift.num is exist - process it [17:46:02]requested_item shift.opened is exist - process it [17:46:02]req_shift_opened [17:46:02]FM_GetShiftState [17:46:02]SAM_PROTO_GetShiftState [17:46:02]wFMCommunicate request_size=4 [17:46:02]MH_SAM_APDU [17:46:02]CAPDU: 80 13 01 00 [17:46:02]Write to MH i2c: E2 08 00 D8 35 80 13 01 00 00 00 00 00 8A [17:46:02]Write i2c OK [17:46:02]MH_I2C_Read... [17:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:02]Read from MH i2c: E2 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 0E 00 [17:46:02]MH_I2C_Read... [17:46:02]Read from MH i2c: E2 0E 00 D8 35 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D9 [17:46:02]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:46:02]wFMCommunicate OK [17:46:02]SAM_PROTO_GetShiftState done [17:46:02]FM_GetShiftState done [17:46:02]req_shift_opened done [17:46:02]requested_item shift.open_date is exist - process it [17:46:02]req_shift_open_date [17:46:02]req_shift_open_date done [17:46:02]produce_requested_data done [17:46:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103988,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:46:02]process_action_free close_receipt [17:46:02]json_value_free [17:46:02]json_value_free done [17:46:02]process_json_proto returns [17:46:02]Send response to host [17:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103988,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:46:02]free response buf [17:46:02]execute_script done [17:46:02]execute_script returns [17:46:02]free content buf [17:46:02]Sock 9.Close socket [17:46:02]Sock 9.Thread stoped [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:55]accept exits with 7 [17:46:55]New connection [17:46:55]New thread 3067207012 created [17:46:55]Thread 3067063652 joined [17:46:55]Waiting for new connection... [17:46:55] Sock 7.Parse request [17:46:55]Sock 7.Check first char [17:46:55]Sock 7.First char is OK [17:46:55]request: POST /json_proto HTTP/1.0 [17:46:55]Method: POST [17:46:55]URL: /json_proto [17:46:55]Method is POST - this is cgi request [17:46:55]url: /json_proto [17:46:55]query_string will be loaded in cgi processing [17:46:55]execute_cgi json_proto POST (null) [17:46:55]execute_cgi path=json_proto method=POST [17:46:55]POST find Content-Length [17:46:55]Host: 172.17.38.133:8080 [17:46:55]Content-Length: 1168 [17:46:55]Content-Type: application/json [17:46:55] [17:46:55]POST finish read [17:46:55]Found Content-Length = 1168 [17:46:55]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673362\u000A20.06.2024 17:24\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.270 x 66.40\u000A\u0418\u0422\u041E\u0413: 681.93\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101572\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:55]execute_script... [17:46:55]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673362\u000A20.06.2024 17:24\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.270 x 66.40\u000A\u0418\u0422\u041E\u0413: 681.93\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101572\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:55]POST & json_proto [17:46:55]process_json_proto [17:46:55]json parsed OK: [17:46:55]protocol is kg_v1.0 [17:46:55]action value=print_text [17:46:55]process_action print_text [17:46:55]cmd_print_text [17:46:55]ExternCall_PrintAddStr [17:46:55]wPrintStart [17:46:55]Write to MH i2c: 01 00 00 D9 35 0E [17:46:55]Write i2c OK [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: 01 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: 01 07 00 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: 01 07 00 D9 35 00 00 00 00 00 FF 0F 23 [17:46:55]RasterBufferAndPrint [17:46:55]line *****ТОВАРНЫЙ ЧЕК***** [17:46:55]line АЗС 120 [17:46:55]line Партнер нефть [17:46:55]line 02508201610067 [17:46:55]line Кассир : Дуйшенбиев А. [17:46:55]line Счет N : (1)673362 [17:46:55]line 20.06.2024 17:24 [17:46:55]line ПРОДАЖА [17:46:55]line ТРК (МРК, ГНК): 42 [17:46:55]line Вид ГСМ : 2710124130 [17:46:55]line Аи-92-К-5 [17:46:55]line 10.270 x 66.40 [17:46:55]line ИТОГ: 681.93 [17:46:55]line Тип оплаты: Талоны: ТК ГПНА Online [17:46:55]line 30101572 [17:46:55]line ______________________ [17:46:55]line (подпись) [17:46:55]written 0, free lines is 4095 [17:46:56]Write to MH i2c: 01 00 00 ED 35 22 [17:46:56]Write i2c OK [17:46:56]MH_I2C_Read... [17:46:56]Read from MH i2c: 01 [17:46:56]MH_I2C_Read... [17:46:56]Read from MH i2c: 01 07 00 [17:46:56]MH_I2C_Read... [17:46:56]Read from MH i2c: 01 07 00 ED 35 00 00 00 00 00 10 0E 47 [17:46:56]RasterBufferAndPrint [17:46:56]line [17:46:56]line [17:46:56]line [17:46:56]line [17:46:56]line [17:46:56]written 0, free lines is 3602 [17:46:56]MH_Cut [17:46:56]Write to MH i2c: D1 01 00 F4 35 01 FB [17:46:56]Write i2c OK [17:46:56]MH_I2C_Read... [17:46:56]Read from MH i2c: D1 [17:46:56]MH_I2C_Read... [17:46:56]Read from MH i2c: D1 01 00 [17:46:56]MH_I2C_Read... [17:46:56]Read from MH i2c: D1 01 00 F4 35 00 FA [17:46:56]Write to MH i2c: 01 00 00 F5 35 2A [17:46:56]Write i2c OK [17:46:56]MH_I2C_Read... [17:46:56]OFD Sender: No OFD packet to send [17:46:56]*** Cut start [17:46:56]*** Partial cut [17:46:56]*** CUTSNS_PIN = 1 [17:46:56]*** CUTSNS_PIN = 0 [17:46:56]*** Brake cut motor [17:46:57]Read from MH i2c: 01 [17:46:57]MH_I2C_Read... [17:46:57]*** Stop cut motor [17:46:57]*** Cut end [17:46:57]Read from MH i2c: 01 07 00 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: 01 07 00 F5 35 00 00 00 00 00 FF 0F 3F [17:46:57]process_action print_text done [17:46:57]requested_data is exist [17:46:57]produce_requested_data [17:46:57]requested_item fm.sn is exist - process it [17:46:57]wFMCommunicate request_size=4 [17:46:57]MH_SAM_APDU [17:46:57]CAPDU: 80 11 00 00 [17:46:57]Write to MH i2c: E2 08 00 F6 35 80 11 00 00 00 00 00 00 A5 [17:46:57]Write i2c OK [17:46:57]MH_I2C_Read... [17:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:57]Read from MH i2c: E2 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 17 00 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 17 00 F6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F8 [17:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:46:57]wFMCommunicate OK [17:46:57]requested_item fd.num is exist - process it [17:46:57]SAM_PROTO_GetFieldsCounters [17:46:57]wFMCommunicate request_size=4 [17:46:57]MH_SAM_APDU [17:46:57]CAPDU: 80 13 00 00 [17:46:57]Write to MH i2c: E2 08 00 F7 35 80 13 00 00 00 00 00 00 A8 [17:46:57]Write i2c OK [17:46:57]MH_I2C_Read... [17:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:57]Read from MH i2c: E2 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 62 00 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 62 00 F7 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 34 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [17:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 34 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:57]wFMCommunicate OK [17:46:57]SAM_PROTO_GetFieldsCounters done [17:46:57]requested_item shift.num is exist - process it [17:46:57]requested_item shift.opened is exist - process it [17:46:57]req_shift_opened [17:46:57]FM_GetShiftState [17:46:57]SAM_PROTO_GetShiftState [17:46:57]wFMCommunicate request_size=4 [17:46:57]MH_SAM_APDU [17:46:57]CAPDU: 80 13 01 00 [17:46:57]Write to MH i2c: E2 08 00 F8 35 80 13 01 00 00 00 00 00 AA [17:46:57]Write i2c OK [17:46:57]MH_I2C_Read... [17:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:57]Read from MH i2c: E2 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 0E 00 [17:46:57]MH_I2C_Read... [17:46:57]Read from MH i2c: E2 0E 00 F8 35 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F9 [17:46:57]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:46:57]wFMCommunicate OK [17:46:57]SAM_PROTO_GetShiftState done [17:46:57]FM_GetShiftState done [17:46:57]req_shift_opened done [17:46:57]requested_item shift.open_date is exist - process it [17:46:57]req_shift_open_date [17:46:57]req_shift_open_date done [17:46:57]produce_requested_data done [17:46:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103988,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:46:57]process_action_free print_text [17:46:57]json_value_free [17:46:57]json_value_free done [17:46:57]process_json_proto returns [17:46:57]Send response to host [17:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103988,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:46:57]free response buf [17:46:57]execute_script done [17:46:57]execute_script returns [17:46:57]free content buf [17:46:57]Sock 7.Close socket [17:46:57]Sock 7.Thread stoped [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:41]accept exits with 9 [17:47:41]New connection [17:47:41]New thread 3067063652 created [17:47:41]Thread 3067207012 joined [17:47:41]Waiting for new connection... [17:47:41] Sock 9.Parse request [17:47:41]Sock 9.Check first char [17:47:41]Sock 9.First char is OK [17:47:41]request: POST /json_proto HTTP/1.0 [17:47:41]Method: POST [17:47:41]URL: /json_proto [17:47:41]Method is POST - this is cgi request [17:47:41]url: /json_proto [17:47:41]query_string will be loaded in cgi processing [17:47:41]execute_cgi json_proto POST (null) [17:47:41]execute_cgi path=json_proto method=POST [17:47:41]POST find Content-Length [17:47:41]Host: 172.17.38.133:8080 [17:47:41]Content-Length: 1167 [17:47:41]Content-Type: application/json [17:47:41] [17:47:41]POST finish read [17:47:41]Found Content-Length = 1167 [17:47: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673364\u000A20.06.2024 17:24\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 9.330 x 66.40\u000A\u0418\u0422\u041E\u0413: 619.51\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101713\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:41]execute_script... [17:47: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673364\u000A20.06.2024 17:24\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 9.330 x 66.40\u000A\u0418\u0422\u041E\u0413: 619.51\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101713\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:41]POST & json_proto [17:47:41]process_json_proto [17:47:41]json parsed OK: [17:47:41]protocol is kg_v1.0 [17:47:41]action value=print_text [17:47:41]process_action print_text [17:47:41]cmd_print_text [17:47:41]ExternCall_PrintAddStr [17:47:41]wPrintStart [17:47:41]Write to MH i2c: 01 00 00 F9 35 2E [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 07 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 07 00 F9 35 00 00 00 00 00 FF 0F 43 [17:47:41]RasterBufferAndPrint [17:47:41]line *****ТОВАРНЫЙ ЧЕК***** [17:47:41]line АЗС 120 [17:47:41]line Партнер нефть [17:47:41]line 02508201610067 [17:47:41]line Кассир : Дуйшенбиев А. [17:47:41]line Счет N : (1)673364 [17:47:41]line 20.06.2024 17:24 [17:47:41]line ПРОДАЖА [17:47:41]line ТРК (МРК, ГНК): 42 [17:47:41]line Вид ГСМ : 2710124130 [17:47:41]line Аи-92-К-5 [17:47:41]line 9.330 x 66.40 [17:47:41]line ИТОГ: 619.51 [17:47:41]line Тип оплаты: Талоны: ТК ГПНА Online [17:47:41]line 30101713 [17:47:41]line ______________________ [17:47:41]line (подпись) [17:47:41]written 0, free lines is 4095 [17:47:41]Write to MH i2c: 01 00 00 0D 36 43 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 07 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: 01 07 00 0D 36 00 00 00 00 00 0F 0E 67 [17:47:41]RasterBufferAndPrint [17:47:41]line [17:47:41]line [17:47:41]line [17:47:41]line [17:47:41]line [17:47:41]written 0, free lines is 3601 [17:47:41]MH_Cut [17:47:41]Write to MH i2c: D1 01 00 14 36 01 1C [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: D1 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: D1 01 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: D1 01 00 14 36 00 1B [17:47:41]Write to MH i2c: 01 00 00 15 36 4B [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:42]*** Cut start [17:47:42]*** Partial cut [17:47:42]*** CUTSNS_PIN = 1 [17:47:42]*** CUTSNS_PIN = 0 [17:47:42]*** Brake cut motor [17:47:43]Read from MH i2c: 01 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: 01 07 00 [17:47:43]MH_I2C_Read... [17:47:43]*** Stop cut motor [17:47:43]*** Cut end [17:47:43]Read from MH i2c: 01 07 00 15 36 00 00 00 00 00 FF 0F 60 [17:47:43]process_action print_text done [17:47:43]requested_data is exist [17:47:43]produce_requested_data [17:47:43]requested_item fm.sn is exist - process it [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 11 00 00 [17:47:43]Write to MH i2c: E2 08 00 16 36 80 11 00 00 00 00 00 00 C6 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 17 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 17 00 16 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 19 [17:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:47:43]wFMCommunicate OK [17:47:43]requested_item fd.num is exist - process it [17:47:43]SAM_PROTO_GetFieldsCounters [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 13 00 00 [17:47:43]Write to MH i2c: E2 08 00 17 36 80 13 00 00 00 00 00 00 C9 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 62 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 62 00 17 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 34 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [17:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 34 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:43]wFMCommunicate OK [17:47:43]SAM_PROTO_GetFieldsCounters done [17:47:43]requested_item shift.num is exist - process it [17:47:43]requested_item shift.opened is exist - process it [17:47:43]req_shift_opened [17:47:43]FM_GetShiftState [17:47:43]SAM_PROTO_GetShiftState [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 13 01 00 [17:47:43]Write to MH i2c: E2 08 00 18 36 80 13 01 00 00 00 00 00 CB [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 0E 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 0E 00 18 36 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1A [17:47:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:47:43]wFMCommunicate OK [17:47:43]SAM_PROTO_GetShiftState done [17:47:43]FM_GetShiftState done [17:47:43]req_shift_opened done [17:47:43]requested_item shift.open_date is exist - process it [17:47:43]req_shift_open_date [17:47:43]req_shift_open_date done [17:47:43]produce_requested_data done [17:47:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103988,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:47:43]process_action_free print_text [17:47:43]json_value_free [17:47:43]json_value_free done [17:47:43]process_json_proto returns [17:47:43]Send response to host [17:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103988,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:47:43]free response buf [17:47:43]execute_script done [17:47:43]execute_script returns [17:47:43]free content buf [17:47:43]Sock 9.Close socket [17:47:43]Sock 9.Thread stoped [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:30]accept exits with 7 [17:58:30]New connection [17:58:30]New thread 3067207012 created [17:58:30]Thread 3067063652 joined [17:58:30]Waiting for new connection... [17:58:30] Sock 7.Parse request [17:58:30]Sock 7.Check first char [17:58:30]Sock 7.First char is OK [17:58:30]request: POST /json_proto HTTP/1.0 [17:58:30]Method: POST [17:58:30]URL: /json_proto [17:58:30]Method is POST - this is cgi request [17:58:30]url: /json_proto [17:58:30]query_string will be loaded in cgi processing [17:58:30]execute_cgi json_proto POST (null) [17:58:30]execute_cgi path=json_proto method=POST [17:58:30]POST find Content-Length [17:58:30]Host: 172.17.38.133:8080 [17:58:30]Content-Length: 682 [17:58:30]Content-Type: application/json [17:58:30] [17:58:30]POST finish read [17:58:30]Found Content-Length = 682 [17:58:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:30]execute_script... [17:58: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)673366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:30]POST & json_proto [17:58:30]process_json_proto [17:58:30]json parsed OK: [17:58:30]protocol is kg_v1.0 [17:58:30]action value=close_receipt [17:58:30]process_action close_receipt [17:58:30]cmd_close_receipt [17:58:30]MH_GetDate [17:58:30]Write to MH i2c: F0 00 00 19 36 3E [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: F0 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: F0 09 00 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: F0 09 00 19 36 00 C9 6D 74 66 BD 8F 7C 64 83 [17:58:30]GetLastDocTimeStamp 1718905561 [17:58:30]current date 1718906313 [17:58:30]FM_GetShiftState [17:58:30]SAM_PROTO_GetShiftState [17:58:30]wFMCommunicate request_size=4 [17:58:30]MH_SAM_APDU [17:58:30]CAPDU: 80 13 01 00 [17:58:30]Write to MH i2c: E2 08 00 1A 36 80 13 01 00 00 00 00 00 CD [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:30]Read from MH i2c: E2 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 0E 00 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 0E 00 1A 36 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1C [17:58:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:58:30]wFMCommunicate OK [17:58:30]SAM_PROTO_GetShiftState done [17:58:30]FM_GetShiftState done [17:58:30]opened in 1718843124 [17:58:30]opened+sec_in_day 1718929524 [17:58:30]quantity*price = 100064 [17:58:30]sum+1 = 100066 [17:58:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 174 20.06.2024 17:58 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103989 ФПД: 253610496677008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T175833&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103989&fm=253610496677008&tin=02508201610067®Number=0000000000092785&sum=100000 [17:58:31]StoreToDocumentArchive [17:58:31]shift 354 fd 103989 [17:58:31]save to /storage/0354/doc_00103989 [17:58:31]save last doc name /storage/0354/doc_00103989 to /storage/kkm_last_doc_name [17:58:31]save OK [17:58:31]Clear old archive folders... [17:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:31]tlvbuf is 00843060 [17:58:31]SAM_PROTO_ClearQueue [17:58:31]wFMCommunicate request_size=4 [17:58:31]MH_SAM_APDU [17:58:31]CAPDU: 80 09 00 00 [17:58:31]Write to MH i2c: E2 08 00 27 36 80 09 00 00 00 00 00 00 CF [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:31]Read from MH i2c: E2 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: E2 03 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: E2 03 00 27 36 00 90 00 D1 [17:58:31]RAPDU: 90 00 [17:58:31]wFMCommunicate OK [17:58:31]SAM_PROTO_ClearQueue done [17:58:31]KKMCreateOFDPacket [17:58:31]OFDProtocolAddRootSTLVToBuf [17:58:31]FM_MakeSignedData [17:58:31]FM_MakeSignedData [17:58:31]SAM_PROTO_SignData [17:58:31]wFMCommunicate request_size=4 [17:58:31]MH_SAM_APDU [17:58:31]CAPDU: 80 0D 01 02 [17:58:31]Write to MH i2c: E2 08 00 28 36 80 0D 01 02 00 00 00 00 D7 [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 28 36 00 90 00 D2 [17:58:32]RAPDU: 90 00 [17:58:32]wFMCommunicate OK [17:58:32]wFMCommunicate request_size=255 [17:58:32]MH_SAM_APDU [17:58: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C9 6D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 96 01 00 35 04 06 00 E6 [17:58:32]Write to MH i2c: E2 02 01 29 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C9 6D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 96 01 00 35 04 06 00 E6 00 00 B4 [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 29 36 00 90 00 D3 [17:58:32]RAPDU: 90 00 [17:58:32]wFMCommunicate OK [17:58:32]wFMCommunicate request_size=10 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 0D 02 02 05 A8 4B 90 D4 90 [17:58:32]Write to MH i2c: E2 0D 00 2A 36 80 0D 02 02 05 00 A8 4B 90 D4 90 00 00 CB [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 03 00 2A 36 00 90 00 D4 [17:58:32]RAPDU: 90 00 [17:58:32]wFMCommunicate OK [17:58:32]wFMCommunicate request_size=4 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 0D 03 02 [17:58:32]Write to MH i2c: E2 08 00 2B 36 80 0D 03 02 00 00 00 00 DC [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 0B 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 0B 00 2B 36 00 0B 53 16 6F BD 12 8F 08 90 00 26 [17:58:32]RAPDU: 0B 53 16 6F BD 12 8F 08 90 00 [17:58:32]wFMCommunicate OK [17:58:32]SAM_PROTO_SignData done [17:58:32]FM_MakeSignedData done [17:58:32]CreateOFDProtocolMessage [17:58:32]wFMCommunicate request_size=4 [17:58:32]MH_SAM_APDU [17:58:32]CAPDU: 80 11 00 00 [17:58:32]Write to MH i2c: E2 08 00 2C 36 80 11 00 00 00 00 00 00 DC [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:32]Read from MH i2c: E2 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 17 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: E2 17 00 2C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2F [17:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:58:32]wFMCommunicate OK [17:58:32]CreateOFDProtocolMessage done [17:58:32]OFDSenderStorePacket 103989 [17:58:32]StoreOFDPacket docnum=103989 [17:58:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6D 32 07 01 3F 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C9 6D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 96 01 00 35 04 06 00 E6 A8 4B 90 D4 90 0B 53 16 6F BD 12 8F 08 [17:58:32]CheckFolder [17:58:32]dirname=/storage/ofd_packets [17:58:32]CheckFolder done [17:58:32]ProducePacketName [17:58:32]name=ofd_packets/00103989 [17:58:32]NVStorageSaveData ofd_packets/00103989 [17:58:32]File name is /storage/ofd_packets/00103989 [17:58:32]Write 301 bytes [17:58:32]NVStorageSaveData done [17:58:32]OFDSenderStorePacket done [17:58:32]KKMCreateOFDPacket done [17:58:32]NVStorageSaveData kkm_last_timestamp [17:58:32]File name is /storage/kkm_last_timestamp [17:58:32]Write 4 bytes [17:58:32]NVStorageSaveData done [17:58:32]ExternCall_PrintAddStr [17:58:32]wPrintStart [17:58:32]Write to MH i2c: 01 00 00 2D 36 63 [17:58:32]Write i2c OK [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: 01 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: 01 07 00 [17:58:32]MH_I2C_Read... [17:58:32]Read from MH i2c: 01 07 00 2D 36 00 00 00 00 00 FF 0F 78 [17:58:32]RasterBufferAndPrint [17:58:32]line Счет N : (1)673366 [17:58:32]line ИНН: 02508201610067 [17:58:32]line Контрольно-Кассовый Чек [17:58:32]line ПРОДАЖА [17:58:32]line ТРК (МРК, ГНК) : 42 [17:58:32]line Товар: 2710124130 [17:58:32]line Аи-92-К-5 [17:58:32]line 15.070 * 66.40 [17:58:32]line = 1000.65 [17:58:32]line НДС 12% НСП 1% [17:58:32]line > о реализуемом товаре [17:58:32]line ОКРУГЛЕНИЕ: -0.65 [17:58:32]line ИТОГО: 1000.00 [17:58:32]line Внесено: 1000.00 [17:58:32]line СДАЧА: 0.00 [17:58:32]line НСП 1% : 8.85 [17:58:32]line НДС 12% : 106.26 [17:58:32]line Наличными: 1000.00 [17:58:32]line Безнал.: 0.00 [17:58:32]line Место: АЗС № 120 "Партнер Нефть" [17:58:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:58:32]line СНО: Общий режим [17:58:32]line Чек 174 20.06.2024 17:58 [17:58:32]line Смена: 354 ФФД: 1.0 [17:58:32]line ЗНМ: 0300000164 [17:58:32]line РНМ: 0000000000092785 [17:58:32]line Версия ККМ: 001 [17:58:32]line ФМ: 0000000000875093 [17:58:32]line ФД: 103989 [17:58:32]line ФПД: 253610496677008 [17:58:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T175833&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103989&fm=253610496677008&tin=02508201610067®Number=0000000000092785&sum=100000 [17:58:32]OFD Sender: Processing packet 103989 [packets to send 17, broken 16] [17:58:32]ProducePacketName [17:58:32]name=ofd_packets/00103989 [17:58:32]OFD Sender: To server: pG, [17:58:32]CommunicateWithHost lk.salyk.kg:30040 [17:58:32]ConnectInit lk.salyk.kg [17:58:32]written 0, free lines is 4095 [17:58:32]Connected sock=9 [17:58:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6D 32 07 01 3F 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 C9 6D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 96 01 00 35 04 06 00 E6 A8 4B 90 D4 90 0B 53 16 6F BD 12 8F 08 [17:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 22 D4 47 00 0C 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 35 96 01 00 F4 03 04 00 4E 14 74 66 B6 04 01 00 00 60 D2 80 24 97 A4 BC D0 [17:58:33]CommunicateWithHost err = 0 [17:58:33]CheckOFDResponse [17:58:33]1017 (14) - 77093643461234 [17:58:33]1041 (16) - 0000000000875093 [17:58:33]1040 (4) - 103989 [17:58:33]1012 (4) - 20.06.2024 11:36 [17:58:33]1206 (1) - 0 [17:58:33]OFD Sender: Remove packet 103989 [17:58:33]ProducePacketName [17:58:33]name=ofd_packets/00103989 [17:58:33]NVStorageDeleteData [17:58:33]Write to MH i2c: 01 00 00 58 36 8E [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 58 36 00 00 00 00 00 E4 0C 85 [17:58:33]RasterBufferAndPrint [17:58:33]line [17:58:33]line [17:58:33]line [17:58:33]line [17:58:33]line [17:58:33]written 0, free lines is 3306 [17:58:33]MH_Cut [17:58:33]Write to MH i2c: D1 01 00 5F 36 01 67 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: D1 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: D1 01 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: D1 01 00 5F 36 00 66 [17:58:33]Write to MH i2c: 01 00 00 60 36 96 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]OFD Sender: No OFD packet to send [17:58:33]*** Cut start [17:58:33]*** Partial cut [17:58:33]*** CUTSNS_PIN = 1 [17:58:34]*** CUTSNS_PIN = 0 [17:58:34]*** Brake cut motor [17:58:34]Read from MH i2c: 01 [17:58:34]MH_I2C_Read... [17:58:34]*** Stop cut motor [17:58:34]*** Cut end [17:58:34]Read from MH i2c: 01 07 00 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: 01 07 00 60 36 00 00 00 00 00 FF 0F AB [17:58:34]process_action close_receipt done [17:58:34]requested_data is exist [17:58:34]produce_requested_data [17:58:34]requested_item fm.sn is exist - process it [17:58:34]wFMCommunicate request_size=4 [17:58:34]MH_SAM_APDU [17:58:34]CAPDU: 80 11 00 00 [17:58:34]Write to MH i2c: E2 08 00 61 36 80 11 00 00 00 00 00 00 11 [17:58:34]Write i2c OK [17:58:34]MH_I2C_Read... [17:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:34]Read from MH i2c: E2 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: E2 17 00 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: E2 17 00 61 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 64 [17:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:58:34]wFMCommunicate OK [17:58:34]requested_item fd.num is exist - process it [17:58:34]SAM_PROTO_GetFieldsCounters [17:58:34]wFMCommunicate request_size=4 [17:58:34]MH_SAM_APDU [17:58:34]CAPDU: 80 13 00 00 [17:58:34]Write to MH i2c: E2 08 00 62 36 80 13 00 00 00 00 00 00 14 [17:58:34]Write i2c OK [17:58:34]MH_I2C_Read... [17:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:34]Read from MH i2c: E2 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: E2 62 00 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: E2 62 00 62 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 35 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [17:58:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 35 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:34]wFMCommunicate OK [17:58:34]SAM_PROTO_GetFieldsCounters done [17:58:34]requested_item shift.num is exist - process it [17:58:34]requested_item shift.opened is exist - process it [17:58:34]req_shift_opened [17:58:34]FM_GetShiftState [17:58:34]SAM_PROTO_GetShiftState [17:58:34]wFMCommunicate request_size=4 [17:58:34]MH_SAM_APDU [17:58:34]CAPDU: 80 13 01 00 [17:58:34]Write to MH i2c: E2 08 00 63 36 80 13 01 00 00 00 00 00 16 [17:58:34]Write i2c OK [17:58:34]MH_I2C_Read... [17:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:34]Read from MH i2c: E2 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: E2 0E 00 [17:58:34]MH_I2C_Read... [17:58:34]Read from MH i2c: E2 0E 00 63 36 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 65 [17:58:34]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:58:34]wFMCommunicate OK [17:58:34]SAM_PROTO_GetShiftState done [17:58:34]FM_GetShiftState done [17:58:34]req_shift_opened done [17:58:34]requested_item shift.open_date is exist - process it [17:58:34]req_shift_open_date [17:58:34]req_shift_open_date done [17:58:34]produce_requested_data done [17:58:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103989,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:58:34]process_action_free close_receipt [17:58:34]json_value_free [17:58:34]json_value_free done [17:58:34]process_json_proto returns [17:58:34]Send response to host [17:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103989,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:58:34]free response buf [17:58:34]execute_script done [17:58:34]execute_script returns [17:58:34]free content buf [17:58:34]Sock 7.Close socket [17:58:34]Sock 7.Thread stoped [17:58:35]accept exits with 10 [17:58:35]New connection [17:58:35]New thread 3067063652 created [17:58:35]Thread 3067207012 joined [17:58:35]Waiting for new connection... [17:58:35] Sock 10.Parse request [17:58:35]Sock 10.Check first char [17:58:35]Sock 10.First char is OK [17:58:35]request: POST /json_proto HTTP/1.0 [17:58:35]Method: POST [17:58:35]URL: /json_proto [17:58:35]Method is POST - this is cgi request [17:58:35]url: /json_proto [17:58:35]query_string will be loaded in cgi processing [17:58:35]execute_cgi json_proto POST (null) [17:58:35]execute_cgi path=json_proto method=POST [17:58:35]POST find Content-Length [17:58:35]Host: 172.17.38.133:8080 [17:58:35]Content-Length: 811 [17:58:35]Content-Type: application/json [17:58:35] [17:58:35]POST finish read [17:58:35]Found Content-Length = 811 [17:58:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 200.000, "sum" : 14580.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 14580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:35]execute_script... [17:58: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)673365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 200.000, "sum" : 14580.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 14580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:35]POST & json_proto [17:58:35]process_json_proto [17:58:35]json parsed OK: [17:58:35]protocol is kg_v1.0 [17:58:35]action value=close_receipt [17:58:35]process_action close_receipt [17:58:35]cmd_close_receipt [17:58:35]MH_GetDate [17:58:35]Write to MH i2c: F0 00 00 64 36 89 [17:58:35]Write i2c OK [17:58:35]MH_I2C_Read... [17:58:35]Read from MH i2c: F0 [17:58:35]MH_I2C_Read... [17:58:35]Read from MH i2c: F0 09 00 [17:58:35]MH_I2C_Read... [17:58:35]Read from MH i2c: F0 09 00 64 36 00 CE 6D 74 66 BD 8F 7C 64 D3 [17:58:35]GetLastDocTimeStamp 1718906313 [17:58:35]current date 1718906318 [17:58:35]FM_GetShiftState [17:58:35]SAM_PROTO_GetShiftState [17:58:35]wFMCommunicate request_size=4 [17:58:35]MH_SAM_APDU [17:58:35]CAPDU: 80 13 01 00 [17:58:35]Write to MH i2c: E2 08 00 65 36 80 13 01 00 00 00 00 00 18 [17:58:35]Write i2c OK [17:58:35]MH_I2C_Read... [17:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:35]Read from MH i2c: E2 [17:58:35]MH_I2C_Read... [17:58:35]Read from MH i2c: E2 0E 00 [17:58:35]MH_I2C_Read... [17:58:35]Read from MH i2c: E2 0E 00 65 36 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 67 [17:58:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:58:35]wFMCommunicate OK [17:58:35]SAM_PROTO_GetShiftState done [17:58:35]FM_GetShiftState done [17:58:35]opened in 1718843124 [17:58:35]opened+sec_in_day 1718929524 [17:58:35]quantity*price = 1458000 [17:58:35]sum+1 = 1458001 [17:58:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14580.00 НСП 1% : 129.03 НДС 12% : 1548.32 Наличными: 0.00 Безнал.: 14580.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 175 20.06.2024 17:58 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103990 ФПД: 232439930305710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T175838&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103990&fm=232439930305710&tin=02508201610067®Number=0000000000092785&sum=1458000 [17:58:37]StoreToDocumentArchive [17:58:37]shift 354 fd 103990 [17:58:37]save to /storage/0354/doc_00103990 [17:58:37]save last doc name /storage/0354/doc_00103990 to /storage/kkm_last_doc_name [17:58:37]save OK [17:58:37]Clear old archive folders... [17:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:58:37]tlvbuf is 0084D2E0 [17:58:37]SAM_PROTO_ClearQueue [17:58:37]wFMCommunicate request_size=4 [17:58:37]MH_SAM_APDU [17:58:37]CAPDU: 80 09 00 00 [17:58:37]Write to MH i2c: E2 08 00 72 36 80 09 00 00 00 00 00 00 1A [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:37]Read from MH i2c: E2 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 72 36 00 90 00 1C [17:58:37]RAPDU: 90 00 [17:58:37]wFMCommunicate OK [17:58:37]SAM_PROTO_ClearQueue done [17:58:37]KKMCreateOFDPacket [17:58:37]OFDProtocolAddRootSTLVToBuf [17:58:37]FM_MakeSignedData [17:58:37]FM_MakeSignedData [17:58:37]SAM_PROTO_SignData [17:58:37]wFMCommunicate request_size=4 [17:58:37]MH_SAM_APDU [17:58:37]CAPDU: 80 0D 01 02 [17:58:37]Write to MH i2c: E2 08 00 73 36 80 0D 01 02 00 00 00 00 22 [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:37]Read from MH i2c: E2 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 73 36 00 90 00 1D [17:58:37]RAPDU: 90 00 [17:58:37]wFMCommunicate OK [17:58:37]wFMCommunicate request_size=255 [17:58:37]MH_SAM_APDU [17:58:37]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 3F 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CE 6D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 96 01 00 35 04 06 00 [17:58:37]Write to MH i2c: E2 02 01 74 36 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 3F 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CE 6D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 96 01 00 35 04 06 00 00 00 FD [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:37]Read from MH i2c: E2 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 74 36 00 90 00 1E [17:58:37]RAPDU: 90 00 [17:58:37]wFMCommunicate OK [17:58:37]wFMCommunicate request_size=11 [17:58:37]MH_SAM_APDU [17:58:37]CAPDU: 80 0D 02 02 06 D3 67 23 7A 3C AE [17:58:37]Write to MH i2c: E2 0E 00 75 36 80 0D 02 02 06 00 D3 67 23 7A 3C AE 00 00 F2 [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:37]Read from MH i2c: E2 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 03 00 75 36 00 90 00 1F [17:58:37]RAPDU: 90 00 [17:58:37]wFMCommunicate OK [17:58:37]wFMCommunicate request_size=4 [17:58:37]MH_SAM_APDU [17:58:37]CAPDU: 80 0D 03 02 [17:58:37]Write to MH i2c: E2 08 00 76 36 80 0D 03 02 00 00 00 00 27 [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:37]Read from MH i2c: E2 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 0B 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 0B 00 76 36 00 77 AA 66 CC 6C 65 F7 73 90 00 B6 [17:58:37]RAPDU: 77 AA 66 CC 6C 65 F7 73 90 00 [17:58:37]wFMCommunicate OK [17:58:37]SAM_PROTO_SignData done [17:58:37]FM_MakeSignedData done [17:58:37]CreateOFDProtocolMessage [17:58:37]wFMCommunicate request_size=4 [17:58:37]MH_SAM_APDU [17:58:37]CAPDU: 80 11 00 00 [17:58:37]Write to MH i2c: E2 08 00 77 36 80 11 00 00 00 00 00 00 27 [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:37]Read from MH i2c: E2 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 17 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: E2 17 00 77 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7A [17:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:58:37]wFMCommunicate OK [17:58:37]CreateOFDProtocolMessage done [17:58:37]OFDSenderStorePacket 103990 [17:58:37]StoreOFDPacket docnum=103990 [17:58:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1B 79 08 01 78 7A 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 3F 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CE 6D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 96 01 00 35 04 06 00 D3 67 23 7A 3C AE 77 AA 66 CC 6C 65 F7 73 [17:58:37]CheckFolder [17:58:37]dirname=/storage/ofd_packets [17:58:37]CheckFolder done [17:58:37]ProducePacketName [17:58:37]name=ofd_packets/00103990 [17:58:37]NVStorageSaveData ofd_packets/00103990 [17:58:37]File name is /storage/ofd_packets/00103990 [17:58:37]Write 302 bytes [17:58:37]NVStorageSaveData done [17:58:37]OFDSenderStorePacket done [17:58:37]KKMCreateOFDPacket done [17:58:37]NVStorageSaveData kkm_last_timestamp [17:58:37]File name is /storage/kkm_last_timestamp [17:58:37]Write 4 bytes [17:58:37]NVStorageSaveData done [17:58:37]ExternCall_PrintAddStr [17:58:37]wPrintStart [17:58:37]Write to MH i2c: 01 00 00 78 36 AE [17:58:37]Write i2c OK [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: 01 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: 01 07 00 [17:58:37]MH_I2C_Read... [17:58:37]Read from MH i2c: 01 07 00 78 36 00 00 00 00 00 FF 0F C3 [17:58:37]RasterBufferAndPrint [17:58:37]line Счет N : (1)673365 [17:58:37]line ИНН: 02508201610067 [17:58:37]line Контрольно-Кассовый Чек [17:58:37]line ПРОДАЖА [17:58:37]line ТРК (МРК, ГНК) : 11 [17:58:37]line Товар: 2710194210 [17:58:37]line ДТ(л)-К-5 [17:58:37]line 200.000 * 72.90 [17:58:37]line = 14580.00 [17:58:37]line НДС 12% НСП 1% [17:58:37]line > о реализуемом товаре [17:58:37]line ИТОГО: 14580.00 [17:58:37]line НСП 1% : 129.03 [17:58:37]line НДС 12% : 1548.32 [17:58:37]line Наличными: 0.00 [17:58:37]line Безнал.: 14580.00 [17:58:37]line Место: АЗС № 120 "Партнер Нефть" [17:58:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [17:58:37]line СНО: Общий режим [17:58:37]line Чек 175 20.06.2024 17:58 [17:58:37]line Смена: 354 ФФД: 1.0 [17:58:37]line ЗНМ: 0300000164 [17:58:37]line РНМ: 0000000000092785 [17:58:37]line Версия ККМ: 001 [17:58:37]line Платежная система: O! деньги [17:58:37]line ФМ: 0000000000875093 [17:58:37]line ФД: 103990 [17:58:37]line ФПД: 232439930305710 [17:58:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T175838&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103990&fm=232439930305710&tin=02508201610067®Number=0000000000092785&sum=1458000 [17:58:37]OFD Sender: Processing packet 103990 [packets to send 17, broken 16] [17:58:37]ProducePacketName [17:58:37]name=ofd_packets/00103990 [17:58:37]OFD Sender: To server: pG, [17:58:37]CommunicateWithHost lk.salyk.kg:30040 [17:58:37]ConnectInit lk.salyk.kg [17:58:37]written 0, free lines is 4095 [17:58:38]Connected sock=9 [17:58:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 1B 79 08 01 78 7A 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 3F 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 CE 6D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 36 96 01 00 35 04 06 00 D3 67 23 7A 3C AE 77 AA 66 CC 6C 65 F7 73 [17:58:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 4C E9 47 00 E0 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 35 30 39 33 10 04 04 00 36 96 01 00 F4 03 04 00 53 14 74 66 B6 04 01 00 00 5A 41 8D B0 BC 72 80 40 [17:58:38]CommunicateWithHost err = 0 [17:58:38]CheckOFDResponse [17:58:38]1017 (14) - 77093643461234 [17:58:38]1041 (16) - 0000000000875093 [17:58:38]1040 (4) - 103990 [17:58:38]1012 (4) - 20.06.2024 11:36 [17:58:38]1206 (1) - 0 [17:58:38]OFD Sender: Remove packet 103990 [17:58:38]ProducePacketName [17:58:38]name=ofd_packets/00103990 [17:58:38]NVStorageDeleteData [17:58:38]Write to MH i2c: 01 00 00 A2 36 D8 [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: 01 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: 01 07 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: 01 07 00 A2 36 00 00 00 00 00 00 0D EC [17:58:38]RasterBufferAndPrint [17:58:38]line [17:58:38]line [17:58:38]line [17:58:38]line [17:58:38]line [17:58:38]written 0, free lines is 3339 [17:58:38]MH_Cut [17:58:38]Write to MH i2c: D1 01 00 A9 36 01 B1 [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: D1 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: D1 01 00 [17:58:38]MH_I2C_Read... [17:58:38]Read from MH i2c: D1 01 00 A9 36 00 B0 [17:58:38]Write to MH i2c: 01 00 00 AA 36 E0 [17:58:38]Write i2c OK [17:58:38]MH_I2C_Read... [17:58:38]OFD Sender: No OFD packet to send [17:58:39]*** Cut start [17:58:39]*** Partial cut [17:58:39]*** CUTSNS_PIN = 1 [17:58:39]*** CUTSNS_PIN = 0 [17:58:39]*** Brake cut motor [17:58:39]Read from MH i2c: 01 [17:58:39]MH_I2C_Read... [17:58:39]*** Stop cut motor [17:58:39]*** Cut end [17:58:39]Read from MH i2c: 01 07 00 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: 01 07 00 AA 36 00 00 00 00 00 FF 0F F5 [17:58:39]process_action close_receipt done [17:58:39]requested_data is exist [17:58:39]produce_requested_data [17:58:39]requested_item fm.sn is exist - process it [17:58:39]wFMCommunicate request_size=4 [17:58:39]MH_SAM_APDU [17:58:39]CAPDU: 80 11 00 00 [17:58:39]Write to MH i2c: E2 08 00 AB 36 80 11 00 00 00 00 00 00 5B [17:58:39]Write i2c OK [17:58:39]MH_I2C_Read... [17:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:39]Read from MH i2c: E2 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: E2 17 00 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: E2 17 00 AB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AE [17:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [17:58:39]wFMCommunicate OK [17:58:39]requested_item fd.num is exist - process it [17:58:39]SAM_PROTO_GetFieldsCounters [17:58:39]wFMCommunicate request_size=4 [17:58:39]MH_SAM_APDU [17:58:39]CAPDU: 80 13 00 00 [17:58:39]Write to MH i2c: E2 08 00 AC 36 80 13 00 00 00 00 00 00 5E [17:58:39]Write i2c OK [17:58:39]MH_I2C_Read... [17:58:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:39]Read from MH i2c: E2 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: E2 62 00 [17:58:39]MH_I2C_Read... [17:58:39]Read from MH i2c: E2 62 00 AC 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 36 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [17:58:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 36 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:40]wFMCommunicate OK [17:58:40]SAM_PROTO_GetFieldsCounters done [17:58:40]requested_item shift.num is exist - process it [17:58:40]requested_item shift.opened is exist - process it [17:58:40]req_shift_opened [17:58:40]FM_GetShiftState [17:58:40]SAM_PROTO_GetShiftState [17:58:40]wFMCommunicate request_size=4 [17:58:40]MH_SAM_APDU [17:58:40]CAPDU: 80 13 01 00 [17:58:40]Write to MH i2c: E2 08 00 AD 36 80 13 01 00 00 00 00 00 60 [17:58:40]Write i2c OK [17:58:40]MH_I2C_Read... [17:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:40]Read from MH i2c: E2 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 0E 00 [17:58:40]MH_I2C_Read... [17:58:40]Read from MH i2c: E2 0E 00 AD 36 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AF [17:58:40]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [17:58:40]wFMCommunicate OK [17:58:40]SAM_PROTO_GetShiftState done [17:58:40]FM_GetShiftState done [17:58:40]req_shift_opened done [17:58:40]requested_item shift.open_date is exist - process it [17:58:40]req_shift_open_date [17:58:40]req_shift_open_date done [17:58:40]produce_requested_data done [17:58:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103990,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [17:58:40]process_action_free close_receipt [17:58:40]json_value_free [17:58:40]json_value_free done [17:58:40]process_json_proto returns [17:58:40]Send response to host [17:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103990,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [17:58:40]free response buf [17:58:40]execute_script done [17:58:40]execute_script returns [17:58:40]free content buf [17:58:40]Sock 10.Close socket [17:58:40]Sock 10.Thread stoped [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:39]accept exits with 7 [18:00:39]New connection [18:00:39]New thread 3067207012 created [18:00:39]Thread 3067063652 joined [18:00:39]Waiting for new connection... [18:00:39] Sock 7.Parse request [18:00:39]Sock 7.Check first char [18:00:39]Sock 7.First char is OK [18:00:39]request: POST /json_proto HTTP/1.0 [18:00:39]Method: POST [18:00:39]URL: /json_proto [18:00:39]Method is POST - this is cgi request [18:00:39]url: /json_proto [18:00:39]query_string will be loaded in cgi processing [18:00:39]execute_cgi json_proto POST (null) [18:00:39]execute_cgi path=json_proto method=POST [18:00:39]POST find Content-Length [18:00:39]Host: 172.17.38.133:8080 [18:00:39]Content-Length: 682 [18:00:39]Content-Type: application/json [18:00:39] [18:00:39]POST finish read [18:00:39]Found Content-Length = 682 [18:00:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:39]execute_script... [18:00: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)673368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:39]POST & json_proto [18:00:39]process_json_proto [18:00:39]json parsed OK: [18:00:39]protocol is kg_v1.0 [18:00:39]action value=close_receipt [18:00:39]process_action close_receipt [18:00:39]cmd_close_receipt [18:00:39]MH_GetDate [18:00:39]Write to MH i2c: F0 00 00 AE 36 D3 [18:00:39]Write i2c OK [18:00:39]MH_I2C_Read... [18:00:39]Read from MH i2c: F0 [18:00:39]MH_I2C_Read... [18:00:39]Read from MH i2c: F0 09 00 [18:00:39]MH_I2C_Read... [18:00:39]Read from MH i2c: F0 09 00 AE 36 00 4A 6E 74 66 BD 8F 7C 64 9A [18:00:39]GetLastDocTimeStamp 1718906318 [18:00:39]current date 1718906442 [18:00:39]FM_GetShiftState [18:00:39]SAM_PROTO_GetShiftState [18:00:39]wFMCommunicate request_size=4 [18:00:39]MH_SAM_APDU [18:00:39]CAPDU: 80 13 01 00 [18:00:39]Write to MH i2c: E2 08 00 AF 36 80 13 01 00 00 00 00 00 62 [18:00:39]Write i2c OK [18:00:39]MH_I2C_Read... [18:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:39]Read from MH i2c: E2 [18:00:39]MH_I2C_Read... [18:00:39]Read from MH i2c: E2 0E 00 [18:00:39]MH_I2C_Read... [18:00:39]Read from MH i2c: E2 0E 00 AF 36 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B1 [18:00:39]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:00:39]wFMCommunicate OK [18:00:39]SAM_PROTO_GetShiftState done [18:00:39]FM_GetShiftState done [18:00:39]opened in 1718843124 [18:00:39]opened+sec_in_day 1718929524 [18:00:39]quantity*price = 110024 [18:00:39]sum+1 = 110026 [18:00:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.84 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 176 20.06.2024 18:00 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103991 ФПД: 12790795498373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180042&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103991&fm=12790795498373&tin=02508201610067®Number=0000000000092785&sum=110000 [18:00:40]StoreToDocumentArchive [18:00:40]shift 354 fd 103991 [18:00:40]save to /storage/0354/doc_00103991 [18:00:40]save last doc name /storage/0354/doc_00103991 to /storage/kkm_last_doc_name [18:00:40]save OK [18:00:40]Clear old archive folders... [18:00:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:40]tlvbuf is 00855230 [18:00:40]SAM_PROTO_ClearQueue [18:00:40]wFMCommunicate request_size=4 [18:00:40]MH_SAM_APDU [18:00:40]CAPDU: 80 09 00 00 [18:00:40]Write to MH i2c: E2 08 00 BC 36 80 09 00 00 00 00 00 00 64 [18:00:40]Write i2c OK [18:00:40]MH_I2C_Read... [18:00:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:40]Read from MH i2c: E2 [18:00:40]MH_I2C_Read... [18:00:40]Read from MH i2c: E2 03 00 [18:00:40]MH_I2C_Read... [18:00:40]Read from MH i2c: E2 03 00 BC 36 00 90 00 66 [18:00:40]RAPDU: 90 00 [18:00:40]wFMCommunicate OK [18:00:40]SAM_PROTO_ClearQueue done [18:00:40]KKMCreateOFDPacket [18:00:40]OFDProtocolAddRootSTLVToBuf [18:00:40]FM_MakeSignedData [18:00:40]FM_MakeSignedData [18:00:40]SAM_PROTO_SignData [18:00:40]wFMCommunicate request_size=4 [18:00:40]MH_SAM_APDU [18:00:40]CAPDU: 80 0D 01 02 [18:00:40]Write to MH i2c: E2 08 00 BD 36 80 0D 01 02 00 00 00 00 6C [18:00:40]Write i2c OK [18:00:40]MH_I2C_Read... [18:00:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:40]Read from MH i2c: E2 [18:00:40]MH_I2C_Read... [18:00:40]Read from MH i2c: E2 03 00 [18:00:40]MH_I2C_Read... [18:00:40]Read from MH i2c: E2 03 00 BD 36 00 90 00 67 [18:00:40]RAPDU: 90 00 [18:00:40]wFMCommunicate OK [18:00:40]wFMCommunicate request_size=255 [18:00:40]MH_SAM_APDU [18:00:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4A 6E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 96 01 00 35 04 06 00 0B [18:00:40]Write to MH i2c: E2 02 01 BE 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4A 6E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 96 01 00 35 04 06 00 0B 00 00 D2 [18:00:40]Write i2c OK [18:00:40]MH_I2C_Read... [18:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:41]Read from MH i2c: E2 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: E2 03 00 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: E2 03 00 BE 36 00 90 00 68 [18:00:41]RAPDU: 90 00 [18:00:41]wFMCommunicate OK [18:00:41]wFMCommunicate request_size=10 [18:00:41]MH_SAM_APDU [18:00:41]CAPDU: 80 0D 02 02 05 A2 16 D2 73 85 [18:00:41]Write to MH i2c: E2 0D 00 BF 36 80 0D 02 02 05 00 A2 16 D2 73 85 00 00 FB [18:00:41]Write i2c OK [18:00:41]MH_I2C_Read... [18:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:41]Read from MH i2c: E2 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: E2 03 00 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: E2 03 00 BF 36 00 90 00 69 [18:00:41]RAPDU: 90 00 [18:00:41]wFMCommunicate OK [18:00:41]wFMCommunicate request_size=4 [18:00:41]MH_SAM_APDU [18:00:41]CAPDU: 80 0D 03 02 [18:00:41]Write to MH i2c: E2 08 00 C0 36 80 0D 03 02 00 00 00 00 71 [18:00:41]Write i2c OK [18:00:41]MH_I2C_Read... [18:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:41]Read from MH i2c: E2 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: E2 0B 00 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: E2 0B 00 C0 36 00 4D F0 8F 9F 63 E5 35 13 90 00 6D [18:00:41]RAPDU: 4D F0 8F 9F 63 E5 35 13 90 00 [18:00:41]wFMCommunicate OK [18:00:41]SAM_PROTO_SignData done [18:00:41]FM_MakeSignedData done [18:00:41]CreateOFDProtocolMessage [18:00:41]wFMCommunicate request_size=4 [18:00:41]MH_SAM_APDU [18:00:41]CAPDU: 80 11 00 00 [18:00:41]Write to MH i2c: E2 08 00 C1 36 80 11 00 00 00 00 00 00 71 [18:00:41]Write i2c OK [18:00:41]MH_I2C_Read... [18:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:41]Read from MH i2c: E2 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: E2 17 00 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: E2 17 00 C1 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C4 [18:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:00:41]wFMCommunicate OK [18:00:41]CreateOFDProtocolMessage done [18:00:41]OFDSenderStorePacket 103991 [18:00:41]StoreOFDPacket docnum=103991 [18:00:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 75 64 07 01 4B 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 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4A 6E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 96 01 00 35 04 06 00 0B A2 16 D2 73 85 4D F0 8F 9F 63 E5 35 13 [18:00:41]CheckFolder [18:00:41]dirname=/storage/ofd_packets [18:00:41]CheckFolder done [18:00:41]ProducePacketName [18:00:41]name=ofd_packets/00103991 [18:00:41]NVStorageSaveData ofd_packets/00103991 [18:00:41]File name is /storage/ofd_packets/00103991 [18:00:41]Write 301 bytes [18:00:41]NVStorageSaveData done [18:00:41]OFDSenderStorePacket done [18:00:41]KKMCreateOFDPacket done [18:00:41]NVStorageSaveData kkm_last_timestamp [18:00:41]File name is /storage/kkm_last_timestamp [18:00:41]Write 4 bytes [18:00:41]NVStorageSaveData done [18:00:41]ExternCall_PrintAddStr [18:00:41]wPrintStart [18:00:41]Write to MH i2c: 01 00 00 C2 36 F8 [18:00:41]Write i2c OK [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: 01 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: 01 07 00 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: 01 07 00 C2 36 00 00 00 00 00 FF 0F 0D [18:00:41]RasterBufferAndPrint [18:00:41]line Счет N : (1)673368 [18:00:41]line ИНН: 02508201610067 [18:00:41]line Контрольно-Кассовый Чек [18:00:41]line ПРОДАЖА [18:00:41]line ТРК (МРК, ГНК) : 42 [18:00:41]line Товар: 2710124130 [18:00:41]line Аи-92-К-5 [18:00:41]line 16.570 * 66.40 [18:00:41]line = 1100.25 [18:00:41]line НДС 12% НСП 1% [18:00:41]line > о реализуемом товаре [18:00:41]line ОКРУГЛЕНИЕ: -0.25 [18:00:41]line ИТОГО: 1100.00 [18:00:41]line Внесено: 1100.00 [18:00:41]line СДАЧА: 0.00 [18:00:41]line НСП 1% : 9.74 [18:00:41]line НДС 12% : 116.84 [18:00:41]line Наличными: 1100.00 [18:00:41]line Безнал.: 0.00 [18:00:41]line Место: АЗС № 120 "Партнер Нефть" [18:00:41]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:00:41]line СНО: Общий режим [18:00:41]line Чек 176 20.06.2024 18:00 [18:00:41]line Смена: 354 ФФД: 1.0 [18:00:41]line ЗНМ: 0300000164 [18:00:41]line РНМ: 0000000000092785 [18:00:41]line Версия ККМ: 001 [18:00:41]line ФМ: 0000000000875093 [18:00:41]line ФД: 103991 [18:00:41]line ФПД: 12790795498373 [18:00:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180042&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103991&fm=12790795498373&tin=02508201610067®Number=0000000000092785&sum=110000 [18:00:41]OFD Sender: Processing packet 103991 [packets to send 17, broken 16] [18:00:41]ProducePacketName [18:00:41]name=ofd_packets/00103991 [18:00:41]OFD Sender: To server: pG, [18:00:41]CommunicateWithHost lk.salyk.kg:30040 [18:00:41]ConnectInit lk.salyk.kg [18:00:41]written 0, free lines is 4095 [18:00:41]Connected sock=10 [18:00:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 75 64 07 01 4B 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 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4A 6E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 37 96 01 00 35 04 06 00 0B A2 16 D2 73 85 4D F0 8F 9F 63 E5 35 13 [18:00:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BE 77 47 00 DF 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 35 30 39 33 10 04 04 00 37 96 01 00 F4 03 04 00 CF 14 74 66 B6 04 01 00 00 3D 31 3D 7F 2D EF 2D FC [18:00:41]CommunicateWithHost err = 0 [18:00:41]CheckOFDResponse [18:00:41]1017 (14) - 77093643461234 [18:00:41]1041 (16) - 0000000000875093 [18:00:41]1040 (4) - 103991 [18:00:41]1012 (4) - 20.06.2024 11:38 [18:00:41]1206 (1) - 0 [18:00:41]OFD Sender: Remove packet 103991 [18:00:41]ProducePacketName [18:00:41]name=ofd_packets/00103991 [18:00:41]NVStorageDeleteData [18:00:41]Write to MH i2c: 01 00 00 ED 36 23 [18:00:41]Write i2c OK [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: 01 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: 01 07 00 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: 01 07 00 ED 36 00 00 00 00 00 E8 0C 1E [18:00:41]RasterBufferAndPrint [18:00:41]line [18:00:41]line [18:00:41]line [18:00:41]line [18:00:41]line [18:00:41]written 0, free lines is 3314 [18:00:41]MH_Cut [18:00:41]Write to MH i2c: D1 01 00 F4 36 01 FC [18:00:41]Write i2c OK [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: D1 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: D1 01 00 [18:00:41]MH_I2C_Read... [18:00:41]Read from MH i2c: D1 01 00 F4 36 00 FB [18:00:41]Write to MH i2c: 01 00 00 F5 36 2B [18:00:41]Write i2c OK [18:00:41]MH_I2C_Read... [18:00:42]OFD Sender: No OFD packet to send [18:00:42]*** Cut start [18:00:42]*** Partial cut [18:00:42]*** CUTSNS_PIN = 1 [18:00:42]*** CUTSNS_PIN = 0 [18:00:42]*** Brake cut motor [18:00:43]Read from MH i2c: 01 [18:00:43]MH_I2C_Read... [18:00:43]*** Stop cut motor [18:00:43]*** Cut end [18:00:43]Read from MH i2c: 01 07 00 [18:00:43]MH_I2C_Read... [18:00:43]Read from MH i2c: 01 07 00 F5 36 00 00 00 00 00 FF 0F 40 [18:00:43]process_action close_receipt done [18:00:43]requested_data is exist [18:00:43]produce_requested_data [18:00:43]requested_item fm.sn is exist - process it [18:00:43]wFMCommunicate request_size=4 [18:00:43]MH_SAM_APDU [18:00:43]CAPDU: 80 11 00 00 [18:00:43]Write to MH i2c: E2 08 00 F6 36 80 11 00 00 00 00 00 00 A6 [18:00:43]Write i2c OK [18:00:43]MH_I2C_Read... [18:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:43]Read from MH i2c: E2 [18:00:43]MH_I2C_Read... [18:00:43]Read from MH i2c: E2 17 00 [18:00:43]MH_I2C_Read... [18:00:43]Read from MH i2c: E2 17 00 F6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F9 [18:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:00:43]wFMCommunicate OK [18:00:43]requested_item fd.num is exist - process it [18:00:43]SAM_PROTO_GetFieldsCounters [18:00:43]wFMCommunicate request_size=4 [18:00:43]MH_SAM_APDU [18:00:43]CAPDU: 80 13 00 00 [18:00:43]Write to MH i2c: E2 08 00 F7 36 80 13 00 00 00 00 00 00 A9 [18:00:43]Write i2c OK [18:00:43]MH_I2C_Read... [18:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:43]Read from MH i2c: E2 [18:00:43]MH_I2C_Read... [18:00:43]Read from MH i2c: E2 62 00 [18:00:43]MH_I2C_Read... [18:00:43]Read from MH i2c: E2 62 00 F7 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 37 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [18:00:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 37 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:43]wFMCommunicate OK [18:00:43]SAM_PROTO_GetFieldsCounters done [18:00:43]requested_item shift.num is exist - process it [18:00:43]requested_item shift.opened is exist - process it [18:00:43]req_shift_opened [18:00:43]FM_GetShiftState [18:00:43]SAM_PROTO_GetShiftState [18:00:43]wFMCommunicate request_size=4 [18:00:43]MH_SAM_APDU [18:00:43]CAPDU: 80 13 01 00 [18:00:43]Write to MH i2c: E2 08 00 F8 36 80 13 01 00 00 00 00 00 AB [18:00:43]Write i2c OK [18:00:43]MH_I2C_Read... [18:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:43]Read from MH i2c: E2 [18:00:43]MH_I2C_Read... [18:00:43]Read from MH i2c: E2 0E 00 [18:00:43]MH_I2C_Read... [18:00:43]Read from MH i2c: E2 0E 00 F8 36 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FA [18:00:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:00:43]wFMCommunicate OK [18:00:43]SAM_PROTO_GetShiftState done [18:00:43]FM_GetShiftState done [18:00:43]req_shift_opened done [18:00:43]requested_item shift.open_date is exist - process it [18:00:43]req_shift_open_date [18:00:43]req_shift_open_date done [18:00:43]produce_requested_data done [18:00:43]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103991,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:00:43]process_action_free close_receipt [18:00:43]json_value_free [18:00:43]json_value_free done [18:00:43]process_json_proto returns [18:00:43]Send response to host [18:00:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103991,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:00:43]free response buf [18:00:43]execute_script done [18:00:43]execute_script returns [18:00:43]free content buf [18:00:43]Sock 7.Close socket [18:00:43]Sock 7.Thread stoped [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:00]accept exits with 9 [18:04:00]New connection [18:04:00]New thread 3067063652 created [18:04:00]Thread 3067207012 joined [18:04:00]Waiting for new connection... [18:04:00] Sock 9.Parse request [18:04:00]Sock 9.Check first char [18:04:00]Sock 9.First char is OK [18:04:00]request: POST /json_proto HTTP/1.0 [18:04:00]Method: POST [18:04:00]URL: /json_proto [18:04:00]Method is POST - this is cgi request [18:04:00]url: /json_proto [18:04:00]query_string will be loaded in cgi processing [18:04:00]execute_cgi json_proto POST (null) [18:04:00]execute_cgi path=json_proto method=POST [18:04:00]POST find Content-Length [18:04:00]Host: 172.17.38.133:8080 [18:04:00]Content-Length: 682 [18:04:00]Content-Type: application/json [18:04:00] [18:04:00]POST finish read [18:04:00]Found Content-Length = 682 [18:04:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 31.630, "sum" : 2100.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:00]execute_script... [18:04: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)673369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 31.630, "sum" : 2100.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:00]POST & json_proto [18:04:00]process_json_proto [18:04:00]json parsed OK: [18:04:00]protocol is kg_v1.0 [18:04:00]action value=close_receipt [18:04:00]process_action close_receipt [18:04:00]cmd_close_receipt [18:04:00]MH_GetDate [18:04:00]Write to MH i2c: F0 00 00 F9 36 1E [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: F0 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: F0 09 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: F0 09 00 F9 36 00 13 6F 74 66 BD 8F 7C 64 AF [18:04:00]GetLastDocTimeStamp 1718906442 [18:04:00]current date 1718906643 [18:04:00]FM_GetShiftState [18:04:00]SAM_PROTO_GetShiftState [18:04:00]wFMCommunicate request_size=4 [18:04:00]MH_SAM_APDU [18:04:00]CAPDU: 80 13 01 00 [18:04:00]Write to MH i2c: E2 08 00 FA 36 80 13 01 00 00 00 00 00 AD [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:00]Read from MH i2c: E2 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 0E 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 0E 00 FA 36 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FC [18:04:00]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:04:00]wFMCommunicate OK [18:04:00]SAM_PROTO_GetShiftState done [18:04:00]FM_GetShiftState done [18:04:00]opened in 1718843124 [18:04:00]opened+sec_in_day 1718929524 [18:04:00]quantity*price = 210023 [18:04:00]sum+1 = 210024 [18:04:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 2100.00 Внесено: 2100.00 СДАЧА: 0.00 НСП 1% : 18.59 НДС 12% : 223.03 Наличными: 2100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 177 20.06.2024 18:04 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103992 ФПД: 143883398152471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180403&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103992&fm=143883398152471&tin=02508201610067®Number=0000000000092785&sum=210000 [18:04:01]StoreToDocumentArchive [18:04:01]shift 354 fd 103992 [18:04:01]save to /storage/0354/doc_00103992 [18:04:01]save last doc name /storage/0354/doc_00103992 to /storage/kkm_last_doc_name [18:04:01]save OK [18:04:01]Clear old archive folders... [18:04:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:01]tlvbuf is 0082A380 [18:04:01]SAM_PROTO_ClearQueue [18:04:01]wFMCommunicate request_size=4 [18:04:01]MH_SAM_APDU [18:04:01]CAPDU: 80 09 00 00 [18:04:01]Write to MH i2c: E2 08 00 07 37 80 09 00 00 00 00 00 00 B0 [18:04:01]Write i2c OK [18:04:01]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 03 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 03 00 07 37 00 90 00 B2 [18:04:02]RAPDU: 90 00 [18:04:02]wFMCommunicate OK [18:04:02]SAM_PROTO_ClearQueue done [18:04:02]KKMCreateOFDPacket [18:04:02]OFDProtocolAddRootSTLVToBuf [18:04:02]FM_MakeSignedData [18:04:02]FM_MakeSignedData [18:04:02]SAM_PROTO_SignData [18:04:02]wFMCommunicate request_size=4 [18:04:02]MH_SAM_APDU [18:04:02]CAPDU: 80 0D 01 02 [18:04:02]Write to MH i2c: E2 08 00 08 37 80 0D 01 02 00 00 00 00 B8 [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 03 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 03 00 08 37 00 90 00 B3 [18:04:02]RAPDU: 90 00 [18:04:02]wFMCommunicate OK [18:04:02]wFMCommunicate request_size=255 [18:04:02]MH_SAM_APDU [18:04: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 8E 7B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 13 6F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 96 01 00 35 04 06 00 82 [18:04:02]Write to MH i2c: E2 02 01 09 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 7B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 13 6F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 96 01 00 35 04 06 00 82 00 00 07 [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 03 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 03 00 09 37 00 90 00 B4 [18:04:02]RAPDU: 90 00 [18:04:02]wFMCommunicate OK [18:04:02]wFMCommunicate request_size=10 [18:04:02]MH_SAM_APDU [18:04:02]CAPDU: 80 0D 02 02 05 DC 76 D6 01 17 [18:04:02]Write to MH i2c: E2 0D 00 0A 37 80 0D 02 02 05 00 DC 76 D6 01 17 00 00 05 [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 03 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 03 00 0A 37 00 90 00 B5 [18:04:02]RAPDU: 90 00 [18:04:02]wFMCommunicate OK [18:04:02]wFMCommunicate request_size=4 [18:04:02]MH_SAM_APDU [18:04:02]CAPDU: 80 0D 03 02 [18:04:02]Write to MH i2c: E2 08 00 0B 37 80 0D 03 02 00 00 00 00 BD [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 0B 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 0B 00 0B 37 00 93 E8 CE 2A 4C 3A 6F CF 90 00 F5 [18:04:02]RAPDU: 93 E8 CE 2A 4C 3A 6F CF 90 00 [18:04:02]wFMCommunicate OK [18:04:02]SAM_PROTO_SignData done [18:04:02]FM_MakeSignedData done [18:04:02]CreateOFDProtocolMessage [18:04:02]wFMCommunicate request_size=4 [18:04:02]MH_SAM_APDU [18:04:02]CAPDU: 80 11 00 00 [18:04:02]Write to MH i2c: E2 08 00 0C 37 80 11 00 00 00 00 00 00 BD [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 17 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 17 00 0C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 10 [18:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:04:02]wFMCommunicate OK [18:04:02]CreateOFDProtocolMessage done [18:04:02]OFDSenderStorePacket 103992 [18:04:02]StoreOFDPacket docnum=103992 [18:04:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 95 87 07 01 6D 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 8E 7B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 13 6F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 96 01 00 35 04 06 00 82 DC 76 D6 01 17 93 E8 CE 2A 4C 3A 6F CF [18:04:02]CheckFolder [18:04:02]dirname=/storage/ofd_packets [18:04:02]CheckFolder done [18:04:02]ProducePacketName [18:04:02]name=ofd_packets/00103992 [18:04:02]NVStorageSaveData ofd_packets/00103992 [18:04:02]File name is /storage/ofd_packets/00103992 [18:04:02]Write 301 bytes [18:04:02]NVStorageSaveData done [18:04:02]OFDSenderStorePacket done [18:04:02]KKMCreateOFDPacket done [18:04:02]NVStorageSaveData kkm_last_timestamp [18:04:02]File name is /storage/kkm_last_timestamp [18:04:02]Write 4 bytes [18:04:02]NVStorageSaveData done [18:04:02]ExternCall_PrintAddStr [18:04:02]wPrintStart [18:04:02]Write to MH i2c: 01 00 00 0D 37 44 [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: 01 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: 01 07 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: 01 07 00 0D 37 00 00 00 00 00 FF 0F 59 [18:04:02]RasterBufferAndPrint [18:04:02]line Счет N : (1)673369 [18:04:02]line ИНН: 02508201610067 [18:04:02]line Контрольно-Кассовый Чек [18:04:02]line ПРОДАЖА [18:04:02]line ТРК (МРК, ГНК) : 42 [18:04:02]line Товар: 2710124130 [18:04:02]line Аи-92-К-5 [18:04:02]line 31.630 * 66.40 [18:04:02]line = 2100.23 [18:04:02]line НДС 12% НСП 1% [18:04:02]line > о реализуемом товаре [18:04:02]line ОКРУГЛЕНИЕ: -0.23 [18:04:02]line ИТОГО: 2100.00 [18:04:02]line Внесено: 2100.00 [18:04:02]line СДАЧА: 0.00 [18:04:02]line НСП 1% : 18.59 [18:04:02]line НДС 12% : 223.03 [18:04:02]line Наличными: 2100.00 [18:04:02]line Безнал.: 0.00 [18:04:02]line Место: АЗС № 120 "Партнер Нефть" [18:04:02]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:04:02]line СНО: Общий режим [18:04:02]line Чек 177 20.06.2024 18:04 [18:04:02]line Смена: 354 ФФД: 1.0 [18:04:02]line ЗНМ: 0300000164 [18:04:02]line РНМ: 0000000000092785 [18:04:02]line Версия ККМ: 001 [18:04:02]line ФМ: 0000000000875093 [18:04:02]line ФД: 103992 [18:04:02]line ФПД: 143883398152471 [18:04:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180403&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103992&fm=143883398152471&tin=02508201610067®Number=0000000000092785&sum=210000 [18:04:02]OFD Sender: Processing packet 103992 [packets to send 17, broken 16] [18:04:02]ProducePacketName [18:04:02]name=ofd_packets/00103992 [18:04:02]OFD Sender: To server: pG, [18:04:02]CommunicateWithHost lk.salyk.kg:30040 [18:04:02]ConnectInit lk.salyk.kg [18:04:02]written 0, free lines is 4095 [18:04:02]Connected sock=10 [18:04:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 95 87 07 01 6D 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 8E 7B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 13 6F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 96 01 00 35 04 06 00 82 DC 76 D6 01 17 93 E8 CE 2A 4C 3A 6F CF [18:04:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 20 67 47 00 73 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 38 96 01 00 F4 03 04 00 98 15 74 66 B6 04 01 00 00 D4 21 BA 95 C9 74 A7 9E [18:04:03]CommunicateWithHost err = 0 [18:04:03]CheckOFDResponse [18:04:03]1017 (14) - 77093643461234 [18:04:03]1041 (16) - 0000000000875093 [18:04:03]1040 (4) - 103992 [18:04:03]1012 (4) - 20.06.2024 11:42 [18:04:03]1206 (1) - 0 [18:04:03]OFD Sender: Remove packet 103992 [18:04:03]ProducePacketName [18:04:03]name=ofd_packets/00103992 [18:04:03]NVStorageDeleteData [18:04:03]Write to MH i2c: 01 00 00 38 37 6F [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: 01 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: 01 07 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: 01 07 00 38 37 00 00 00 00 00 DF 0C 61 [18:04:03]RasterBufferAndPrint [18:04:03]line [18:04:03]line [18:04:03]line [18:04:03]line [18:04:03]line [18:04:03]written 0, free lines is 3301 [18:04:03]MH_Cut [18:04:03]Write to MH i2c: D1 01 00 3F 37 01 48 [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: D1 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: D1 01 00 [18:04:03]MH_I2C_Read... [18:04:03]Read from MH i2c: D1 01 00 3F 37 00 47 [18:04:03]Write to MH i2c: 01 00 00 40 37 77 [18:04:03]Write i2c OK [18:04:03]MH_I2C_Read... [18:04:03]OFD Sender: No OFD packet to send [18:04:04]*** Cut start [18:04:04]*** Partial cut [18:04:04]*** CUTSNS_PIN = 1 [18:04:04]*** CUTSNS_PIN = 0 [18:04:04]*** Brake cut motor [18:04:04]Read from MH i2c: 01 [18:04:04]MH_I2C_Read... [18:04:04]*** Stop cut motor [18:04:04]*** Cut end [18:04:04]Read from MH i2c: 01 07 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: 01 07 00 40 37 00 00 00 00 00 FF 0F 8C [18:04:04]process_action close_receipt done [18:04:04]requested_data is exist [18:04:04]produce_requested_data [18:04:04]requested_item fm.sn is exist - process it [18:04:04]wFMCommunicate request_size=4 [18:04:04]MH_SAM_APDU [18:04:04]CAPDU: 80 11 00 00 [18:04:04]Write to MH i2c: E2 08 00 41 37 80 11 00 00 00 00 00 00 F2 [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:04]Read from MH i2c: E2 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: E2 17 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: E2 17 00 41 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 45 [18:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:04:04]wFMCommunicate OK [18:04:04]requested_item fd.num is exist - process it [18:04:04]SAM_PROTO_GetFieldsCounters [18:04:04]wFMCommunicate request_size=4 [18:04:04]MH_SAM_APDU [18:04:04]CAPDU: 80 13 00 00 [18:04:04]Write to MH i2c: E2 08 00 42 37 80 13 00 00 00 00 00 00 F5 [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:04]Read from MH i2c: E2 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: E2 62 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: E2 62 00 42 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 38 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [18:04:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 38 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:04]wFMCommunicate OK [18:04:04]SAM_PROTO_GetFieldsCounters done [18:04:04]requested_item shift.num is exist - process it [18:04:04]requested_item shift.opened is exist - process it [18:04:04]req_shift_opened [18:04:04]FM_GetShiftState [18:04:04]SAM_PROTO_GetShiftState [18:04:04]wFMCommunicate request_size=4 [18:04:04]MH_SAM_APDU [18:04:04]CAPDU: 80 13 01 00 [18:04:04]Write to MH i2c: E2 08 00 43 37 80 13 01 00 00 00 00 00 F7 [18:04:04]Write i2c OK [18:04:04]MH_I2C_Read... [18:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:04]Read from MH i2c: E2 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: E2 0E 00 [18:04:04]MH_I2C_Read... [18:04:04]Read from MH i2c: E2 0E 00 43 37 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 46 [18:04:04]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:04:04]wFMCommunicate OK [18:04:04]SAM_PROTO_GetShiftState done [18:04:04]FM_GetShiftState done [18:04:04]req_shift_opened done [18:04:04]requested_item shift.open_date is exist - process it [18:04:04]req_shift_open_date [18:04:04]req_shift_open_date done [18:04:04]produce_requested_data done [18:04:04]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103992,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:04:04]process_action_free close_receipt [18:04:04]json_value_free [18:04:04]json_value_free done [18:04:04]process_json_proto returns [18:04:04]Send response to host [18:04:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103992,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:04:04]free response buf [18:04:04]execute_script done [18:04:04]execute_script returns [18:04:04]free content buf [18:04:04]Sock 9.Close socket [18:04:04]Sock 9.Thread stoped [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:20]accept exits with 7 [18:07:20]New connection [18:07:20]New thread 3067207012 created [18:07:20]Thread 3067063652 joined [18:07:20]Waiting for new connection... [18:07:20] Sock 7.Parse request [18:07:20]Sock 7.Check first char [18:07:20]Sock 7.First char is OK [18:07:20]request: POST /json_proto HTTP/1.0 [18:07:20]Method: POST [18:07:20]URL: /json_proto [18:07:20]Method is POST - this is cgi request [18:07:20]url: /json_proto [18:07:20]query_string will be loaded in cgi processing [18:07:20]execute_cgi json_proto POST (null) [18:07:20]execute_cgi path=json_proto method=POST [18:07:20]POST find Content-Length [18:07:20]Host: 172.17.38.133:8080 [18:07:20]Content-Length: 677 [18:07:20]Content-Type: application/json [18:07:20] [18:07:20]POST finish read [18:07:20]Found Content-Length = 677 [18:07:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:20]execute_script... [18:07: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)673370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:20]POST & json_proto [18:07:20]process_json_proto [18:07:20]json parsed OK: [18:07:20]protocol is kg_v1.0 [18:07:20]action value=close_receipt [18:07:20]process_action close_receipt [18:07:20]cmd_close_receipt [18:07:20]MH_GetDate [18:07:20]Write to MH i2c: F0 00 00 44 37 6A [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: F0 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: F0 09 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: F0 09 00 44 37 00 DC 6F 74 66 BD 8F 7C 64 C4 [18:07:20]GetLastDocTimeStamp 1718906643 [18:07:20]current date 1718906844 [18:07:20]FM_GetShiftState [18:07:20]SAM_PROTO_GetShiftState [18:07:20]wFMCommunicate request_size=4 [18:07:20]MH_SAM_APDU [18:07:20]CAPDU: 80 13 01 00 [18:07:20]Write to MH i2c: E2 08 00 45 37 80 13 01 00 00 00 00 00 F9 [18:07:20]Write i2c OK [18:07:20]MH_I2C_Read... [18:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:20]Read from MH i2c: E2 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 0E 00 [18:07:20]MH_I2C_Read... [18:07:20]Read from MH i2c: E2 0E 00 45 37 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 48 [18:07:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:07:20]wFMCommunicate OK [18:07:20]SAM_PROTO_GetShiftState done [18:07:20]FM_GetShiftState done [18:07:20]opened in 1718843124 [18:07:20]opened+sec_in_day 1718929524 [18:07:20]quantity*price = 50065 [18:07:20]sum+1 = 50067 [18:07:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 178 20.06.2024 18:07 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103993 ФПД: 142553105864677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180724&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103993&fm=142553105864677&tin=02508201610067®Number=0000000000092785&sum=50000 [18:07:22]StoreToDocumentArchive [18:07:22]shift 354 fd 103993 [18:07:22]save to /storage/0354/doc_00103993 [18:07:22]save last doc name /storage/0354/doc_00103993 to /storage/kkm_last_doc_name [18:07:22]save OK [18:07:22]Clear old archive folders... [18:07:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:22]tlvbuf is 0089BAC0 [18:07:22]SAM_PROTO_ClearQueue [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 09 00 00 [18:07:22]Write to MH i2c: E2 08 00 52 37 80 09 00 00 00 00 00 00 FB [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 52 37 00 90 00 FD [18:07:22]RAPDU: 90 00 [18:07:22]wFMCommunicate OK [18:07:22]SAM_PROTO_ClearQueue done [18:07:22]KKMCreateOFDPacket [18:07:22]OFDProtocolAddRootSTLVToBuf [18:07:22]FM_MakeSignedData [18:07:22]FM_MakeSignedData [18:07:22]SAM_PROTO_SignData [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 0D 01 02 [18:07:22]Write to MH i2c: E2 08 00 53 37 80 0D 01 02 00 00 00 00 03 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 53 37 00 90 00 FE [18:07:22]RAPDU: 90 00 [18:07:22]wFMCommunicate OK [18:07:22]wFMCommunicate request_size=255 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 DC 6F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 96 01 00 35 04 06 00 81 [18:07:22]Write to MH i2c: E2 02 01 54 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 DC 6F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 96 01 00 35 04 06 00 81 00 00 48 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 54 37 00 90 00 FF [18:07:22]RAPDU: 90 00 [18:07:22]wFMCommunicate OK [18:07:22]wFMCommunicate request_size=10 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 0D 02 02 05 A6 BB 3C 97 E5 [18:07:22]Write to MH i2c: E2 0D 00 55 37 80 0D 02 02 05 00 A6 BB 3C 97 E5 00 00 29 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 03 00 55 37 00 90 00 00 [18:07:22]RAPDU: 90 00 [18:07:22]wFMCommunicate OK [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 0D 03 02 [18:07:22]Write to MH i2c: E2 08 00 56 37 80 0D 03 02 00 00 00 00 08 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 0B 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 0B 00 56 37 00 5C 57 0B 9C 7B E7 B4 C0 90 00 39 [18:07:22]RAPDU: 5C 57 0B 9C 7B E7 B4 C0 90 00 [18:07:22]wFMCommunicate OK [18:07:22]SAM_PROTO_SignData done [18:07:22]FM_MakeSignedData done [18:07:22]CreateOFDProtocolMessage [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 11 00 00 [18:07:22]Write to MH i2c: E2 08 00 57 37 80 11 00 00 00 00 00 00 08 [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:22]Read from MH i2c: E2 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 17 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: E2 17 00 57 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5B [18:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:07:22]wFMCommunicate OK [18:07:22]CreateOFDProtocolMessage done [18:07:22]OFDSenderStorePacket 103993 [18:07:22]StoreOFDPacket docnum=103993 [18:07:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 07 AD 07 01 D5 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 DC 6F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 96 01 00 35 04 06 00 81 A6 BB 3C 97 E5 5C 57 0B 9C 7B E7 B4 C0 [18:07:22]CheckFolder [18:07:22]dirname=/storage/ofd_packets [18:07:22]CheckFolder done [18:07:22]ProducePacketName [18:07:22]name=ofd_packets/00103993 [18:07:22]NVStorageSaveData ofd_packets/00103993 [18:07:22]File name is /storage/ofd_packets/00103993 [18:07:22]Write 301 bytes [18:07:22]NVStorageSaveData done [18:07:22]OFDSenderStorePacket done [18:07:22]KKMCreateOFDPacket done [18:07:22]NVStorageSaveData kkm_last_timestamp [18:07:22]File name is /storage/kkm_last_timestamp [18:07:22]Write 4 bytes [18:07:22]NVStorageSaveData done [18:07:22]ExternCall_PrintAddStr [18:07:22]wPrintStart [18:07:22]Write to MH i2c: 01 00 00 58 37 8F [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 07 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: 01 07 00 58 37 00 00 00 00 00 FF 0F A4 [18:07:22]RasterBufferAndPrint [18:07:22]line Счет N : (1)673370 [18:07:22]line ИНН: 02508201610067 [18:07:22]line Контрольно-Кассовый Чек [18:07:22]line ПРОДАЖА [18:07:22]line ТРК (МРК, ГНК) : 32 [18:07:22]line Товар: 2710124130 [18:07:22]line Аи-92-К-5 [18:07:22]line 7.540 * 66.40 [18:07:22]line = 500.66 [18:07:22]line НДС 12% НСП 1% [18:07:22]line > о реализуемом товаре [18:07:22]line ОКРУГЛЕНИЕ: -0.66 [18:07:22]line ИТОГО: 500.00 [18:07:22]line Внесено: 500.00 [18:07:22]line СДАЧА: 0.00 [18:07:22]line НСП 1% : 4.43 [18:07:22]line НДС 12% : 53.17 [18:07:22]line Наличными: 500.00 [18:07:22]line Безнал.: 0.00 [18:07:22]line Место: АЗС № 120 "Партнер Нефть" [18:07:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:07:22]line СНО: Общий режим [18:07:22]line Чек 178 20.06.2024 18:07 [18:07:22]line Смена: 354 ФФД: 1.0 [18:07:22]line ЗНМ: 0300000164 [18:07:22]line РНМ: 0000000000092785 [18:07:22]line Версия ККМ: 001 [18:07:22]line ФМ: 0000000000875093 [18:07:22]line ФД: 103993 [18:07:22]line ФПД: 142553105864677 [18:07:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180724&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103993&fm=142553105864677&tin=02508201610067®Number=0000000000092785&sum=50000 [18:07:22]OFD Sender: Processing packet 103993 [packets to send 17, broken 16] [18:07:22]ProducePacketName [18:07:22]name=ofd_packets/00103993 [18:07:22]OFD Sender: To server: pG, [18:07:22]CommunicateWithHost lk.salyk.kg:30040 [18:07:22]ConnectInit lk.salyk.kg [18:07:22]written 0, free lines is 4095 [18:07:23]Connected sock=10 [18:07:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 07 AD 07 01 D5 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 DC 6F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 39 96 01 00 35 04 06 00 81 A6 BB 3C 97 E5 5C 57 0B 9C 7B E7 B4 C0 [18:07:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 53 9A 47 00 09 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 35 30 39 33 10 04 04 00 39 96 01 00 F4 03 04 00 60 16 74 66 B6 04 01 00 00 44 92 A3 2A B6 5B 16 F6 [18:07:23]CommunicateWithHost err = 0 [18:07:23]CheckOFDResponse [18:07:23]1017 (14) - 77093643461234 [18:07:23]1041 (16) - 0000000000875093 [18:07:23]1040 (4) - 103993 [18:07:23]1012 (4) - 20.06.2024 11:45 [18:07:23]1206 (1) - 0 [18:07:23]OFD Sender: Remove packet 103993 [18:07:23]ProducePacketName [18:07:23]name=ofd_packets/00103993 [18:07:23]NVStorageDeleteData [18:07:23]Write to MH i2c: 01 00 00 83 37 BA [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: 01 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: 01 07 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: 01 07 00 83 37 00 00 00 00 00 E1 0C AE [18:07:23]RasterBufferAndPrint [18:07:23]line [18:07:23]line [18:07:23]line [18:07:23]line [18:07:23]line [18:07:23]written 0, free lines is 3306 [18:07:23]MH_Cut [18:07:23]Write to MH i2c: D1 01 00 8A 37 01 93 [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: D1 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: D1 01 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: D1 01 00 8A 37 00 92 [18:07:23]Write to MH i2c: 01 00 00 8B 37 C2 [18:07:23]Write i2c OK [18:07:23]MH_I2C_Read... [18:07:23]OFD Sender: No OFD packet to send [18:07:24]*** Cut start [18:07:24]*** Partial cut [18:07:24]*** CUTSNS_PIN = 1 [18:07:24]*** CUTSNS_PIN = 0 [18:07:24]*** Brake cut motor [18:07:24]Read from MH i2c: 01 [18:07:24]MH_I2C_Read... [18:07:24]*** Stop cut motor [18:07:24]*** Cut end [18:07:24]Read from MH i2c: 01 07 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 07 00 8B 37 00 00 00 00 00 FF 0F D7 [18:07:24]process_action close_receipt done [18:07:24]requested_data is exist [18:07:24]produce_requested_data [18:07:24]requested_item fm.sn is exist - process it [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 11 00 00 [18:07:24]Write to MH i2c: E2 08 00 8C 37 80 11 00 00 00 00 00 00 3D [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 17 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 17 00 8C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 90 [18:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:07:24]wFMCommunicate OK [18:07:24]requested_item fd.num is exist - process it [18:07:24]SAM_PROTO_GetFieldsCounters [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 13 00 00 [18:07:24]Write to MH i2c: E2 08 00 8D 37 80 13 00 00 00 00 00 00 40 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 62 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 62 00 8D 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 39 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [18:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 39 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:24]wFMCommunicate OK [18:07:24]SAM_PROTO_GetFieldsCounters done [18:07:24]requested_item shift.num is exist - process it [18:07:24]requested_item shift.opened is exist - process it [18:07:24]req_shift_opened [18:07:24]FM_GetShiftState [18:07:24]SAM_PROTO_GetShiftState [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 13 01 00 [18:07:24]Write to MH i2c: E2 08 00 8E 37 80 13 01 00 00 00 00 00 42 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:25]Read from MH i2c: E2 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: E2 0E 00 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: E2 0E 00 8E 37 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 91 [18:07:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:07:25]wFMCommunicate OK [18:07:25]SAM_PROTO_GetShiftState done [18:07:25]FM_GetShiftState done [18:07:25]req_shift_opened done [18:07:25]requested_item shift.open_date is exist - process it [18:07:25]req_shift_open_date [18:07:25]req_shift_open_date done [18:07:25]produce_requested_data done [18:07:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103993,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:07:25]process_action_free close_receipt [18:07:25]json_value_free [18:07:25]json_value_free done [18:07:25]process_json_proto returns [18:07:25]Send response to host [18:07:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103993,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:07:25]free response buf [18:07:25]execute_script done [18:07:25]execute_script returns [18:07:25]free content buf [18:07:25]Sock 7.Close socket [18:07:25]Sock 7.Thread stoped [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]accept exits with 9 [18:08:33]New connection [18:08:33]New thread 3067063652 created [18:08:33]Thread 3067207012 joined [18:08:33]Waiting for new connection... [18:08:33] Sock 9.Parse request [18:08:33]Sock 9.Check first char [18:08:33]Sock 9.First char is OK [18:08:33]request: POST /json_proto HTTP/1.0 [18:08:33]Method: POST [18:08:33]URL: /json_proto [18:08:33]Method is POST - this is cgi request [18:08:33]url: /json_proto [18:08:33]query_string will be loaded in cgi processing [18:08:33]execute_cgi json_proto POST (null) [18:08:33]execute_cgi path=json_proto method=POST [18:08:33]POST find Content-Length [18:08:33]Host: 172.17.38.133:8080 [18:08:33]Content-Length: 811 [18:08:33]Content-Type: application/json [18:08:33] [18:08:33]POST finish read [18:08:33]Found Content-Length = 811 [18:08:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 200.000, "sum" : 14580.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 14580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:33]execute_script... [18:08:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 200.000, "sum" : 14580.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 14580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:33]POST & json_proto [18:08:33]process_json_proto [18:08:33]json parsed OK: [18:08:33]protocol is kg_v1.0 [18:08:33]action value=close_receipt [18:08:33]process_action close_receipt [18:08:33]cmd_close_receipt [18:08:33]MH_GetDate [18:08:33]Write to MH i2c: F0 00 00 8F 37 B5 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: F0 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: F0 09 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: F0 09 00 8F 37 00 24 70 74 66 BD 8F 7C 64 58 [18:08:33]GetLastDocTimeStamp 1718906844 [18:08:33]current date 1718906916 [18:08:33]FM_GetShiftState [18:08:33]SAM_PROTO_GetShiftState [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 13 01 00 [18:08:33]Write to MH i2c: E2 08 00 90 37 80 13 01 00 00 00 00 00 44 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 0E 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 0E 00 90 37 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 93 [18:08:33]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:08:33]wFMCommunicate OK [18:08:33]SAM_PROTO_GetShiftState done [18:08:33]FM_GetShiftState done [18:08:33]opened in 1718843124 [18:08:33]opened+sec_in_day 1718929524 [18:08:33]quantity*price = 1458000 [18:08:33]sum+1 = 1458001 [18:08:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14580.00 НСП 1% : 129.03 НДС 12% : 1548.32 Наличными: 0.00 Безнал.: 14580.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 179 20.06.2024 18:08 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103994 ФПД: 47599918508084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180836&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103994&fm=47599918508084&tin=02508201610067®Number=0000000000092785&sum=1458000 [18:08:34]StoreToDocumentArchive [18:08:34]shift 354 fd 103994 [18:08:34]save to /storage/0354/doc_00103994 [18:08:34]save last doc name /storage/0354/doc_00103994 to /storage/kkm_last_doc_name [18:08:34]save OK [18:08:34]Clear old archive folders... [18:08:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:08:34]tlvbuf is 00907510 [18:08:34]SAM_PROTO_ClearQueue [18:08:34]wFMCommunicate request_size=4 [18:08:34]MH_SAM_APDU [18:08:34]CAPDU: 80 09 00 00 [18:08:34]Write to MH i2c: E2 08 00 9D 37 80 09 00 00 00 00 00 00 46 [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 9D 37 00 90 00 48 [18:08:35]RAPDU: 90 00 [18:08:35]wFMCommunicate OK [18:08:35]SAM_PROTO_ClearQueue done [18:08:35]KKMCreateOFDPacket [18:08:35]OFDProtocolAddRootSTLVToBuf [18:08:35]FM_MakeSignedData [18:08:35]FM_MakeSignedData [18:08:35]SAM_PROTO_SignData [18:08:35]wFMCommunicate request_size=4 [18:08:35]MH_SAM_APDU [18:08:35]CAPDU: 80 0D 01 02 [18:08:35]Write to MH i2c: E2 08 00 9E 37 80 0D 01 02 00 00 00 00 4E [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 9E 37 00 90 00 49 [18:08:35]RAPDU: 90 00 [18:08:35]wFMCommunicate OK [18:08:35]wFMCommunicate request_size=255 [18:08:35]MH_SAM_APDU [18:08:35]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 3F 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 24 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 96 01 00 35 04 06 00 [18:08:35]Write to MH i2c: E2 02 01 9F 37 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 3F 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 24 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 96 01 00 35 04 06 00 00 00 8A [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 9F 37 00 90 00 4A [18:08:35]RAPDU: 90 00 [18:08:35]wFMCommunicate OK [18:08:35]wFMCommunicate request_size=11 [18:08:35]MH_SAM_APDU [18:08:35]CAPDU: 80 0D 02 02 06 2B 4A B8 3B E8 34 [18:08:35]Write to MH i2c: E2 0E 00 A0 37 80 0D 02 02 06 00 2B 4A B8 3B E8 34 00 00 E1 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 03 00 A0 37 00 90 00 4B [18:08:35]RAPDU: 90 00 [18:08:35]wFMCommunicate OK [18:08:35]wFMCommunicate request_size=4 [18:08:35]MH_SAM_APDU [18:08:35]CAPDU: 80 0D 03 02 [18:08:35]Write to MH i2c: E2 08 00 A1 37 80 0D 03 02 00 00 00 00 53 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 0B 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 0B 00 A1 37 00 E9 BE 06 D3 68 7B 24 43 90 00 1E [18:08:35]RAPDU: E9 BE 06 D3 68 7B 24 43 90 00 [18:08:35]wFMCommunicate OK [18:08:35]SAM_PROTO_SignData done [18:08:35]FM_MakeSignedData done [18:08:35]CreateOFDProtocolMessage [18:08:35]wFMCommunicate request_size=4 [18:08:35]MH_SAM_APDU [18:08:35]CAPDU: 80 11 00 00 [18:08:35]Write to MH i2c: E2 08 00 A2 37 80 11 00 00 00 00 00 00 53 [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 17 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 17 00 A2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A6 [18:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:08:35]wFMCommunicate OK [18:08:35]CreateOFDProtocolMessage done [18:08:35]OFDSenderStorePacket 103994 [18:08:35]StoreOFDPacket docnum=103994 [18:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E6 48 08 01 25 14 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 3F 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 24 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 96 01 00 35 04 06 00 2B 4A B8 3B E8 34 E9 BE 06 D3 68 7B 24 43 [18:08:35]CheckFolder [18:08:35]dirname=/storage/ofd_packets [18:08:35]CheckFolder done [18:08:35]ProducePacketName [18:08:35]name=ofd_packets/00103994 [18:08:35]NVStorageSaveData ofd_packets/00103994 [18:08:35]File name is /storage/ofd_packets/00103994 [18:08:35]Write 302 bytes [18:08:35]NVStorageSaveData done [18:08:35]OFDSenderStorePacket done [18:08:35]KKMCreateOFDPacket done [18:08:35]NVStorageSaveData kkm_last_timestamp [18:08:35]File name is /storage/kkm_last_timestamp [18:08:35]Write 4 bytes [18:08:35]NVStorageSaveData done [18:08:35]ExternCall_PrintAddStr [18:08:35]wPrintStart [18:08:35]Write to MH i2c: 01 00 00 A3 37 DA [18:08:35]Write i2c OK [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: 01 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: 01 07 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: 01 07 00 A3 37 00 00 00 00 00 FF 0F EF [18:08:35]RasterBufferAndPrint [18:08:35]line Счет N : (1)673367 [18:08:35]line ИНН: 02508201610067 [18:08:35]line Контрольно-Кассовый Чек [18:08:35]line ПРОДАЖА [18:08:35]line ТРК (МРК, ГНК) : 11 [18:08:35]line Товар: 2710194210 [18:08:35]line ДТ(л)-К-5 [18:08:35]line 200.000 * 72.90 [18:08:35]line = 14580.00 [18:08:35]line НДС 12% НСП 1% [18:08:35]line > о реализуемом товаре [18:08:35]line ИТОГО: 14580.00 [18:08:35]line НСП 1% : 129.03 [18:08:35]line НДС 12% : 1548.32 [18:08:35]line Наличными: 0.00 [18:08:35]line Безнал.: 14580.00 [18:08:35]line Место: АЗС № 120 "Партнер Нефть" [18:08:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:08:35]line СНО: Общий режим [18:08:35]line Чек 179 20.06.2024 18:08 [18:08:35]line Смена: 354 ФФД: 1.0 [18:08:35]line ЗНМ: 0300000164 [18:08:35]line РНМ: 0000000000092785 [18:08:35]line Версия ККМ: 001 [18:08:35]line Платежная система: O! деньги [18:08:35]line ФМ: 0000000000875093 [18:08:35]line ФД: 103994 [18:08:35]line ФПД: 47599918508084 [18:08:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180836&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103994&fm=47599918508084&tin=02508201610067®Number=0000000000092785&sum=1458000 [18:08:35]written 0, free lines is 4095 [18:08:35]OFD Sender: Processing packet 103994 [packets to send 17, broken 16] [18:08:35]ProducePacketName [18:08:35]name=ofd_packets/00103994 [18:08:35]OFD Sender: To server: pG, [18:08:35]CommunicateWithHost lk.salyk.kg:30040 [18:08:35]ConnectInit lk.salyk.kg [18:08:35]Connected sock=7 [18:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E6 48 08 01 25 14 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 3F 16 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 24 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3A 96 01 00 35 04 06 00 2B 4A B8 3B E8 34 E9 BE 06 D3 68 7B 24 43 [18:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B3 91 47 00 3D 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 35 30 39 33 10 04 04 00 3A 96 01 00 F4 03 04 00 A9 16 74 66 B6 04 01 00 00 32 CB C6 C7 63 FD FC D2 [18:08:36]CommunicateWithHost err = 0 [18:08:36]CheckOFDResponse [18:08:36]1017 (14) - 77093643461234 [18:08:36]1041 (16) - 0000000000875093 [18:08:36]1040 (4) - 103994 [18:08:36]1012 (4) - 20.06.2024 11:46 [18:08:36]1206 (1) - 0 [18:08:36]OFD Sender: Remove packet 103994 [18:08:36]ProducePacketName [18:08:36]name=ofd_packets/00103994 [18:08:36]NVStorageDeleteData [18:08:36]Write to MH i2c: 01 00 00 CD 37 04 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 07 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 07 00 CD 37 00 00 00 00 00 EE 0C 05 [18:08:36]RasterBufferAndPrint [18:08:36]line [18:08:36]line [18:08:36]line [18:08:36]line [18:08:36]line [18:08:36]written 0, free lines is 3317 [18:08:36]MH_Cut [18:08:36]Write to MH i2c: D1 01 00 D4 37 01 DD [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: D1 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: D1 01 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: D1 01 00 D4 37 00 DC [18:08:36]Write to MH i2c: 01 00 00 D5 37 0C [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]OFD Sender: No OFD packet to send [18:08:37]*** Cut start [18:08:37]*** Partial cut [18:08:37]*** CUTSNS_PIN = 1 [18:08:37]*** CUTSNS_PIN = 0 [18:08:37]*** Brake cut motor [18:08:37]Read from MH i2c: 01 [18:08:37]MH_I2C_Read... [18:08:37]*** Stop cut motor [18:08:37]*** Cut end [18:08:37]Read from MH i2c: 01 07 00 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: 01 07 00 D5 37 00 00 00 00 00 FF 0F 21 [18:08:37]process_action close_receipt done [18:08:37]requested_data is exist [18:08:37]produce_requested_data [18:08:37]requested_item fm.sn is exist - process it [18:08:37]wFMCommunicate request_size=4 [18:08:37]MH_SAM_APDU [18:08:37]CAPDU: 80 11 00 00 [18:08:37]Write to MH i2c: E2 08 00 D6 37 80 11 00 00 00 00 00 00 87 [18:08:37]Write i2c OK [18:08:37]MH_I2C_Read... [18:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:37]Read from MH i2c: E2 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: E2 17 00 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: E2 17 00 D6 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DA [18:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:08:37]wFMCommunicate OK [18:08:37]requested_item fd.num is exist - process it [18:08:37]SAM_PROTO_GetFieldsCounters [18:08:37]wFMCommunicate request_size=4 [18:08:37]MH_SAM_APDU [18:08:37]CAPDU: 80 13 00 00 [18:08:37]Write to MH i2c: E2 08 00 D7 37 80 13 00 00 00 00 00 00 8A [18:08:37]Write i2c OK [18:08:37]MH_I2C_Read... [18:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:37]Read from MH i2c: E2 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: E2 62 00 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: E2 62 00 D7 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [18:08:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:37]wFMCommunicate OK [18:08:37]SAM_PROTO_GetFieldsCounters done [18:08:37]requested_item shift.num is exist - process it [18:08:37]requested_item shift.opened is exist - process it [18:08:37]req_shift_opened [18:08:37]FM_GetShiftState [18:08:37]SAM_PROTO_GetShiftState [18:08:37]wFMCommunicate request_size=4 [18:08:37]MH_SAM_APDU [18:08:37]CAPDU: 80 13 01 00 [18:08:37]Write to MH i2c: E2 08 00 D8 37 80 13 01 00 00 00 00 00 8C [18:08:37]Write i2c OK [18:08:37]MH_I2C_Read... [18:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:37]Read from MH i2c: E2 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: E2 0E 00 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: E2 0E 00 D8 37 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DB [18:08:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:08:37]wFMCommunicate OK [18:08:37]SAM_PROTO_GetShiftState done [18:08:37]FM_GetShiftState done [18:08:37]req_shift_opened done [18:08:37]requested_item shift.open_date is exist - process it [18:08:37]req_shift_open_date [18:08:37]req_shift_open_date done [18:08:37]produce_requested_data done [18:08:37]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103994,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:08:37]process_action_free close_receipt [18:08:37]json_value_free [18:08:37]json_value_free done [18:08:37]process_json_proto returns [18:08:37]Send response to host [18:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103994,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:08:37]free response buf [18:08:37]execute_script done [18:08:37]execute_script returns [18:08:37]free content buf [18:08:37]Sock 9.Close socket [18:08:37]Sock 9.Thread stoped [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:20]accept exits with 10 [18:09:20]New connection [18:09:20]New thread 3067207012 created [18:09:20]Thread 3067063652 joined [18:09:20]Waiting for new connection... [18:09:20] Sock 10.Parse request [18:09:20]Sock 10.Check first char [18:09:20]Sock 10.First char is OK [18:09:20]request: POST /json_proto HTTP/1.0 [18:09:20]Method: POST [18:09:20]URL: /json_proto [18:09:20]Method is POST - this is cgi request [18:09:20]url: /json_proto [18:09:20]query_string will be loaded in cgi processing [18:09:20]execute_cgi json_proto POST (null) [18:09:20]execute_cgi path=json_proto method=POST [18:09:20]POST find Content-Length [18:09:20]Host: 172.17.38.133:8080 [18:09:20]Content-Length: 672 [18:09:20]Content-Type: application/json [18:09:20] [18:09:20]POST finish read [18:09:20]Found Content-Length = 672 [18:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 0.030, "sum" : 1.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:20]execute_script... [18:09: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)673371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 0.030, "sum" : 1.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:20]POST & json_proto [18:09:20]process_json_proto [18:09:20]json parsed OK: [18:09:20]protocol is kg_v1.0 [18:09:20]action value=close_receipt [18:09:20]process_action close_receipt [18:09:20]cmd_close_receipt [18:09:20]MH_GetDate [18:09:20]Write to MH i2c: F0 00 00 D9 37 FF [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: F0 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: F0 09 00 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: F0 09 00 D9 37 00 53 70 74 66 BD 8F 7C 64 D1 [18:09:20]GetLastDocTimeStamp 1718906916 [18:09:20]current date 1718906963 [18:09:20]FM_GetShiftState [18:09:20]SAM_PROTO_GetShiftState [18:09:20]wFMCommunicate request_size=4 [18:09:20]MH_SAM_APDU [18:09:20]CAPDU: 80 13 01 00 [18:09:20]Write to MH i2c: E2 08 00 DA 37 80 13 01 00 00 00 00 00 8E [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:20]Read from MH i2c: E2 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: E2 0E 00 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: E2 0E 00 DA 37 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 DD [18:09:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:09:20]wFMCommunicate OK [18:09:20]SAM_PROTO_GetShiftState done [18:09:20]FM_GetShiftState done [18:09:20]opened in 1718843124 [18:09:20]opened+sec_in_day 1718929524 [18:09:20]quantity*price = 199 [18:09:20]sum+1 = 200 [18:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 1.00 Внесено: 1400.00 СДАЧА: 1399.00 НСП 1% : 0.02 НДС 12% : 0.21 Наличными: 1.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 180 20.06.2024 18:09 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103995 ФПД: 11741488304141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180923&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103995&fm=11741488304141&tin=02508201610067®Number=0000000000092785&sum=100 [18:09:21]StoreToDocumentArchive [18:09:21]shift 354 fd 103995 [18:09:21]save to /storage/0354/doc_00103995 [18:09:21]save last doc name /storage/0354/doc_00103995 to /storage/kkm_last_doc_name [18:09:21]save OK [18:09:21]Clear old archive folders... [18:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:21]tlvbuf is B6F96660 [18:09:21]SAM_PROTO_ClearQueue [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 09 00 00 [18:09:21]Write to MH i2c: E2 08 00 E7 37 80 09 00 00 00 00 00 00 90 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 E7 37 00 90 00 92 [18:09:21]RAPDU: 90 00 [18:09:21]wFMCommunicate OK [18:09:21]SAM_PROTO_ClearQueue done [18:09:21]KKMCreateOFDPacket [18:09:21]OFDProtocolAddRootSTLVToBuf [18:09:21]FM_MakeSignedData [18:09:21]FM_MakeSignedData [18:09:21]SAM_PROTO_SignData [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 0D 01 02 [18:09:21]Write to MH i2c: E2 08 00 E8 37 80 0D 01 02 00 00 00 00 98 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 E8 37 00 90 00 93 [18:09:21]RAPDU: 90 00 [18:09:21]wFMCommunicate OK [18:09:21]wFMCommunicate request_size=255 [18:09:21]MH_SAM_APDU [18:09: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 1E 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C7 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 53 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 96 01 00 35 04 06 00 0A [18:09:21]Write to MH i2c: E2 02 01 E9 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C7 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 53 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 96 01 00 35 04 06 00 0A 00 00 05 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:22]Read from MH i2c: E2 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 03 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 03 00 E9 37 00 90 00 94 [18:09:22]RAPDU: 90 00 [18:09:22]wFMCommunicate OK [18:09:22]wFMCommunicate request_size=10 [18:09:22]MH_SAM_APDU [18:09:22]CAPDU: 80 0D 02 02 05 AD C7 3D 50 0D [18:09:22]Write to MH i2c: E2 0D 00 EA 37 80 0D 02 02 05 00 AD C7 3D 50 0D 00 00 B3 [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:22]Read from MH i2c: E2 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 03 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 03 00 EA 37 00 90 00 95 [18:09:22]RAPDU: 90 00 [18:09:22]wFMCommunicate OK [18:09:22]wFMCommunicate request_size=4 [18:09:22]MH_SAM_APDU [18:09:22]CAPDU: 80 0D 03 02 [18:09:22]Write to MH i2c: E2 08 00 EB 37 80 0D 03 02 00 00 00 00 9D [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:22]Read from MH i2c: E2 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 0B 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 0B 00 EB 37 00 ED 77 8D 35 8A 27 FE 92 90 00 05 [18:09:22]RAPDU: ED 77 8D 35 8A 27 FE 92 90 00 [18:09:22]wFMCommunicate OK [18:09:22]SAM_PROTO_SignData done [18:09:22]FM_MakeSignedData done [18:09:22]CreateOFDProtocolMessage [18:09:22]wFMCommunicate request_size=4 [18:09:22]MH_SAM_APDU [18:09:22]CAPDU: 80 11 00 00 [18:09:22]Write to MH i2c: E2 08 00 EC 37 80 11 00 00 00 00 00 00 9D [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:22]Read from MH i2c: E2 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 17 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: E2 17 00 EC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F0 [18:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:09:22]wFMCommunicate OK [18:09:22]CreateOFDProtocolMessage done [18:09:22]OFDSenderStorePacket 103995 [18:09:22]StoreOFDPacket docnum=103995 [18:09:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B2 28 07 01 EB E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C7 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 53 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 96 01 00 35 04 06 00 0A AD C7 3D 50 0D ED 77 8D 35 8A 27 FE 92 [18:09:22]CheckFolder [18:09:22]dirname=/storage/ofd_packets [18:09:22]CheckFolder done [18:09:22]ProducePacketName [18:09:22]name=ofd_packets/00103995 [18:09:22]NVStorageSaveData ofd_packets/00103995 [18:09:22]File name is /storage/ofd_packets/00103995 [18:09:22]Write 301 bytes [18:09:22]NVStorageSaveData done [18:09:22]OFDSenderStorePacket done [18:09:22]KKMCreateOFDPacket done [18:09:22]NVStorageSaveData kkm_last_timestamp [18:09:22]File name is /storage/kkm_last_timestamp [18:09:22]Write 4 bytes [18:09:22]NVStorageSaveData done [18:09:22]ExternCall_PrintAddStr [18:09:22]wPrintStart [18:09:22]Write to MH i2c: 01 00 00 ED 37 24 [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 07 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 07 00 ED 37 00 00 00 00 00 FF 0F 39 [18:09:22]RasterBufferAndPrint [18:09:22]line Счет N : (1)673371 [18:09:22]line ИНН: 02508201610067 [18:09:22]line Контрольно-Кассовый Чек [18:09:22]line ПРОДАЖА [18:09:22]line ТРК (МРК, ГНК) : 32 [18:09:22]line Товар: 2710124130 [18:09:22]line Аи-92-К-5 [18:09:22]line 0.030 * 66.40 [18:09:22]line = 1.99 [18:09:22]line НДС 12% НСП 1% [18:09:22]line > о реализуемом товаре [18:09:22]line ОКРУГЛЕНИЕ: -0.99 [18:09:22]line ИТОГО: 1.00 [18:09:22]line Внесено: 1400.00 [18:09:22]line СДАЧА: 1399.00 [18:09:22]line НСП 1% : 0.02 [18:09:22]line НДС 12% : 0.21 [18:09:22]line Наличными: 1.00 [18:09:22]line Безнал.: 0.00 [18:09:22]line Место: АЗС № 120 "Партнер Нефть" [18:09:22]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:09:22]line СНО: Общий режим [18:09:22]line Чек 180 20.06.2024 18:09 [18:09:22]line Смена: 354 ФФД: 1.0 [18:09:22]line ЗНМ: 0300000164 [18:09:22]line РНМ: 0000000000092785 [18:09:22]line Версия ККМ: 001 [18:09:22]line ФМ: 0000000000875093 [18:09:22]line ФД: 103995 [18:09:22]line ФПД: 11741488304141 [18:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T180923&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103995&fm=11741488304141&tin=02508201610067®Number=0000000000092785&sum=100 [18:09:22]OFD Sender: Processing packet 103995 [packets to send 17, broken 16] [18:09:22]ProducePacketName [18:09:22]name=ofd_packets/00103995 [18:09:22]OFD Sender: To server: pG, [18:09:22]CommunicateWithHost lk.salyk.kg:30040 [18:09:22]ConnectInit lk.salyk.kg [18:09:22]written 0, free lines is 4095 [18:09:22]Connected sock=9 [18:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B2 28 07 01 EB E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C7 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 53 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 96 01 00 35 04 06 00 0A AD C7 3D 50 0D ED 77 8D 35 8A 27 FE 92 [18:09:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B3 43 47 00 0E 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3B 96 01 00 F4 03 04 00 D8 16 74 66 B6 04 01 00 00 F8 65 8E 44 E8 47 E0 AA [18:09:23]CommunicateWithHost err = 0 [18:09:23]CheckOFDResponse [18:09:23]1017 (14) - 77093643461234 [18:09:23]1041 (16) - 0000000000875093 [18:09:23]1040 (4) - 103995 [18:09:23]1012 (4) - 20.06.2024 11:47 [18:09:23]1206 (1) - 0 [18:09:23]OFD Sender: Remove packet 103995 [18:09:23]ProducePacketName [18:09:23]name=ofd_packets/00103995 [18:09:23]NVStorageDeleteData [18:09:23]Write to MH i2c: 01 00 00 18 38 50 [18:09:23]Write i2c OK [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: 01 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: 01 07 00 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: 01 07 00 18 38 00 00 00 00 00 E6 0C 49 [18:09:23]RasterBufferAndPrint [18:09:23]line [18:09:23]line [18:09:23]line [18:09:23]line [18:09:23]line [18:09:23]written 0, free lines is 3308 [18:09:23]MH_Cut [18:09:23]Write to MH i2c: D1 01 00 1F 38 01 29 [18:09:23]Write i2c OK [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: D1 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: D1 01 00 [18:09:23]MH_I2C_Read... [18:09:23]Read from MH i2c: D1 01 00 1F 38 00 28 [18:09:23]Write to MH i2c: 01 00 00 20 38 58 [18:09:23]Write i2c OK [18:09:23]MH_I2C_Read... [18:09:23]OFD Sender: No OFD packet to send [18:09:23]*** Cut start [18:09:23]*** Partial cut [18:09:23]*** CUTSNS_PIN = 1 [18:09:23]*** CUTSNS_PIN = 0 [18:09:24]*** Brake cut motor [18:09:24]Read from MH i2c: 01 [18:09:24]MH_I2C_Read... [18:09:24]*** Stop cut motor [18:09:24]*** Cut end [18:09:24]Read from MH i2c: 01 07 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: 01 07 00 20 38 00 00 00 00 00 FF 0F 6D [18:09:24]process_action close_receipt done [18:09:24]requested_data is exist [18:09:24]produce_requested_data [18:09:24]requested_item fm.sn is exist - process it [18:09:24]wFMCommunicate request_size=4 [18:09:24]MH_SAM_APDU [18:09:24]CAPDU: 80 11 00 00 [18:09:24]Write to MH i2c: E2 08 00 21 38 80 11 00 00 00 00 00 00 D3 [18:09:24]Write i2c OK [18:09:24]MH_I2C_Read... [18:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:24]Read from MH i2c: E2 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 17 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 17 00 21 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 26 [18:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:09:24]wFMCommunicate OK [18:09:24]requested_item fd.num is exist - process it [18:09:24]SAM_PROTO_GetFieldsCounters [18:09:24]wFMCommunicate request_size=4 [18:09:24]MH_SAM_APDU [18:09:24]CAPDU: 80 13 00 00 [18:09:24]Write to MH i2c: E2 08 00 22 38 80 13 00 00 00 00 00 00 D6 [18:09:24]Write i2c OK [18:09:24]MH_I2C_Read... [18:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:24]Read from MH i2c: E2 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 62 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 62 00 22 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [18:09:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:24]wFMCommunicate OK [18:09:24]SAM_PROTO_GetFieldsCounters done [18:09:24]requested_item shift.num is exist - process it [18:09:24]requested_item shift.opened is exist - process it [18:09:24]req_shift_opened [18:09:24]FM_GetShiftState [18:09:24]SAM_PROTO_GetShiftState [18:09:24]wFMCommunicate request_size=4 [18:09:24]MH_SAM_APDU [18:09:24]CAPDU: 80 13 01 00 [18:09:24]Write to MH i2c: E2 08 00 23 38 80 13 01 00 00 00 00 00 D8 [18:09:24]Write i2c OK [18:09:24]MH_I2C_Read... [18:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:24]Read from MH i2c: E2 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 0E 00 [18:09:24]MH_I2C_Read... [18:09:24]Read from MH i2c: E2 0E 00 23 38 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 27 [18:09:24]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:09:24]wFMCommunicate OK [18:09:24]SAM_PROTO_GetShiftState done [18:09:24]FM_GetShiftState done [18:09:24]req_shift_opened done [18:09:24]requested_item shift.open_date is exist - process it [18:09:24]req_shift_open_date [18:09:24]req_shift_open_date done [18:09:24]produce_requested_data done [18:09:24]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103995,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:09:24]process_action_free close_receipt [18:09:24]json_value_free [18:09:24]json_value_free done [18:09:24]process_json_proto returns [18:09:24]Send response to host [18:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103995,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:09:24]free response buf [18:09:24]execute_script done [18:09:24]execute_script returns [18:09:24]free content buf [18:09:24]Sock 10.Close socket [18:09:24]Sock 10.Thread stoped [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:42]accept exits with 7 [18:10:42]New connection [18:10:42]New thread 3067063652 created [18:10:42]Thread 3067207012 joined [18:10:42]Waiting for new connection... [18:10:42] Sock 7.Parse request [18:10:42]Sock 7.Check first char [18:10:42]Sock 7.First char is OK [18:10:42]request: POST /json_proto HTTP/1.0 [18:10:42]Method: POST [18:10:42]URL: /json_proto [18:10:42]Method is POST - this is cgi request [18:10:42]url: /json_proto [18:10:42]query_string will be loaded in cgi processing [18:10:42]execute_cgi json_proto POST (null) [18:10:42]execute_cgi path=json_proto method=POST [18:10:42]POST find Content-Length [18:10:42]Host: 172.17.38.133:8080 [18:10:42]Content-Length: 682 [18:10:42]Content-Type: application/json [18:10:42] [18:10:42]POST finish read [18:10:42]Found Content-Length = 682 [18:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:42]execute_script... [18:10: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)673373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:42]POST & json_proto [18:10:42]process_json_proto [18:10:42]json parsed OK: [18:10:42]protocol is kg_v1.0 [18:10:42]action value=close_receipt [18:10:42]process_action close_receipt [18:10:42]cmd_close_receipt [18:10:42]MH_GetDate [18:10:42]Write to MH i2c: F0 00 00 24 38 4B [18:10:42]Write i2c OK [18:10:42]MH_I2C_Read... [18:10:42]Read from MH i2c: F0 [18:10:42]MH_I2C_Read... [18:10:42]Read from MH i2c: F0 09 00 [18:10:42]MH_I2C_Read... [18:10:42]Read from MH i2c: F0 09 00 24 38 00 A5 70 74 66 BD 8F 7C 64 6F [18:10:42]GetLastDocTimeStamp 1718906963 [18:10:42]current date 1718907045 [18:10:42]FM_GetShiftState [18:10:42]SAM_PROTO_GetShiftState [18:10:42]wFMCommunicate request_size=4 [18:10:42]MH_SAM_APDU [18:10:42]CAPDU: 80 13 01 00 [18:10:42]Write to MH i2c: E2 08 00 25 38 80 13 01 00 00 00 00 00 DA [18:10:42]Write i2c OK [18:10:42]MH_I2C_Read... [18:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:42]Read from MH i2c: E2 [18:10:42]MH_I2C_Read... [18:10:42]Read from MH i2c: E2 0E 00 [18:10:42]MH_I2C_Read... [18:10:42]Read from MH i2c: E2 0E 00 25 38 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 29 [18:10:42]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:10:42]wFMCommunicate OK [18:10:42]SAM_PROTO_GetShiftState done [18:10:42]FM_GetShiftState done [18:10:42]opened in 1718843124 [18:10:42]opened+sec_in_day 1718929524 [18:10:42]quantity*price = 140037 [18:10:42]sum+1 = 140039 [18:10:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 181 20.06.2024 18:10 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103996 ФПД: 77460005681393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181045&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103996&fm=77460005681393&tin=02508201610067®Number=0000000000092785&sum=140000 [18:10:43]StoreToDocumentArchive [18:10:43]shift 354 fd 103996 [18:10:43]save to /storage/0354/doc_00103996 [18:10:43]save last doc name /storage/0354/doc_00103996 to /storage/kkm_last_doc_name [18:10:43]save OK [18:10:43]Clear old archive folders... [18:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:43]tlvbuf is B6F18610 [18:10:43]SAM_PROTO_ClearQueue [18:10:43]wFMCommunicate request_size=4 [18:10:43]MH_SAM_APDU [18:10:43]CAPDU: 80 09 00 00 [18:10:43]Write to MH i2c: E2 08 00 32 38 80 09 00 00 00 00 00 00 DC [18:10:43]Write i2c OK [18:10:43]MH_I2C_Read... [18:10:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:43]Read from MH i2c: E2 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 03 00 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 03 00 32 38 00 90 00 DE [18:10:43]RAPDU: 90 00 [18:10:43]wFMCommunicate OK [18:10:43]SAM_PROTO_ClearQueue done [18:10:43]KKMCreateOFDPacket [18:10:43]OFDProtocolAddRootSTLVToBuf [18:10:43]FM_MakeSignedData [18:10:43]FM_MakeSignedData [18:10:43]SAM_PROTO_SignData [18:10:43]wFMCommunicate request_size=4 [18:10:43]MH_SAM_APDU [18:10:43]CAPDU: 80 0D 01 02 [18:10:43]Write to MH i2c: E2 08 00 33 38 80 0D 01 02 00 00 00 00 E4 [18:10:43]Write i2c OK [18:10:43]MH_I2C_Read... [18:10:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 33 38 00 90 00 DF [18:10:44]RAPDU: 90 00 [18:10:44]wFMCommunicate OK [18:10:44]wFMCommunicate request_size=255 [18:10:44]MH_SAM_APDU [18:10:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A5 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 96 01 00 35 04 06 00 46 [18:10:44]Write to MH i2c: E2 02 01 34 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A5 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 96 01 00 35 04 06 00 46 00 00 30 [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 34 38 00 90 00 E0 [18:10:44]RAPDU: 90 00 [18:10:44]wFMCommunicate OK [18:10:44]wFMCommunicate request_size=10 [18:10:44]MH_SAM_APDU [18:10:44]CAPDU: 80 0D 02 02 05 73 10 1F 78 F1 [18:10:44]Write to MH i2c: E2 0D 00 35 38 80 0D 02 02 05 00 73 10 1F 78 F1 00 00 FC [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 03 00 35 38 00 90 00 E1 [18:10:44]RAPDU: 90 00 [18:10:44]wFMCommunicate OK [18:10:44]wFMCommunicate request_size=4 [18:10:44]MH_SAM_APDU [18:10:44]CAPDU: 80 0D 03 02 [18:10:44]Write to MH i2c: E2 08 00 36 38 80 0D 03 02 00 00 00 00 E9 [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 0B 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 0B 00 36 38 00 2E F5 2D E3 82 DB 0A 9F 90 00 23 [18:10:44]RAPDU: 2E F5 2D E3 82 DB 0A 9F 90 00 [18:10:44]wFMCommunicate OK [18:10:44]SAM_PROTO_SignData done [18:10:44]FM_MakeSignedData done [18:10:44]CreateOFDProtocolMessage [18:10:44]wFMCommunicate request_size=4 [18:10:44]MH_SAM_APDU [18:10:44]CAPDU: 80 11 00 00 [18:10:44]Write to MH i2c: E2 08 00 37 38 80 11 00 00 00 00 00 00 E9 [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:44]Read from MH i2c: E2 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 17 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: E2 17 00 37 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3C [18:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:10:44]wFMCommunicate OK [18:10:44]CreateOFDProtocolMessage done [18:10:44]OFDSenderStorePacket 103996 [18:10:44]StoreOFDPacket docnum=103996 [18:10:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 38 0E 07 01 72 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A5 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 96 01 00 35 04 06 00 46 73 10 1F 78 F1 2E F5 2D E3 82 DB 0A 9F [18:10:44]CheckFolder [18:10:44]dirname=/storage/ofd_packets [18:10:44]CheckFolder done [18:10:44]ProducePacketName [18:10:44]name=ofd_packets/00103996 [18:10:44]NVStorageSaveData ofd_packets/00103996 [18:10:44]File name is /storage/ofd_packets/00103996 [18:10:44]Write 301 bytes [18:10:44]NVStorageSaveData done [18:10:44]OFDSenderStorePacket done [18:10:44]KKMCreateOFDPacket done [18:10:44]NVStorageSaveData kkm_last_timestamp [18:10:44]File name is /storage/kkm_last_timestamp [18:10:44]Write 4 bytes [18:10:44]NVStorageSaveData done [18:10:44]ExternCall_PrintAddStr [18:10:44]wPrintStart [18:10:44]Write to MH i2c: 01 00 00 38 38 70 [18:10:44]Write i2c OK [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: 01 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: 01 07 00 [18:10:44]MH_I2C_Read... [18:10:44]Read from MH i2c: 01 07 00 38 38 00 00 00 00 00 FF 0F 85 [18:10:44]RasterBufferAndPrint [18:10:44]line Счет N : (1)673373 [18:10:44]line ИНН: 02508201610067 [18:10:44]line Контрольно-Кассовый Чек [18:10:44]line ПРОДАЖА [18:10:44]line ТРК (МРК, ГНК) : 32 [18:10:44]line Товар: 2710124130 [18:10:44]line Аи-92-К-5 [18:10:44]line 21.090 * 66.40 [18:10:44]line = 1400.38 [18:10:44]line НДС 12% НСП 1% [18:10:44]line > о реализуемом товаре [18:10:44]line ОКРУГЛЕНИЕ: -0.38 [18:10:44]line ИТОГО: 1400.00 [18:10:44]line Внесено: 1400.00 [18:10:44]line СДАЧА: 0.00 [18:10:44]line НСП 1% : 12.39 [18:10:44]line НДС 12% : 148.71 [18:10:44]line Наличными: 1400.00 [18:10:44]line Безнал.: 0.00 [18:10:44]line Место: АЗС № 120 "Партнер Нефть" [18:10:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:10:44]line СНО: Общий режим [18:10:44]line Чек 181 20.06.2024 18:10 [18:10:44]line Смена: 354 ФФД: 1.0 [18:10:44]line ЗНМ: 0300000164 [18:10:44]line РНМ: 0000000000092785 [18:10:44]line Версия ККМ: 001 [18:10:44]line ФМ: 0000000000875093 [18:10:44]line ФД: 103996 [18:10:44]line ФПД: 77460005681393 [18:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181045&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103996&fm=77460005681393&tin=02508201610067®Number=0000000000092785&sum=140000 [18:10:44]OFD Sender: Processing packet 103996 [packets to send 17, broken 16] [18:10:44]ProducePacketName [18:10:44]name=ofd_packets/00103996 [18:10:44]OFD Sender: To server: pG, [18:10:44]CommunicateWithHost lk.salyk.kg:30040 [18:10:44]ConnectInit lk.salyk.kg [18:10:44]written 0, free lines is 4095 [18:10:44]Connected sock=10 [18:10:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 38 0E 07 01 72 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A5 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 96 01 00 35 04 06 00 46 73 10 1F 78 F1 2E F5 2D E3 82 DB 0A 9F [18:10:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A2 E9 47 00 22 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3C 96 01 00 F4 03 04 00 2A 17 74 66 B6 04 01 00 00 52 38 39 D0 5A E3 54 6D [18:10:45]CommunicateWithHost err = 0 [18:10:45]CheckOFDResponse [18:10:45]1017 (14) - 77093643461234 [18:10:45]1041 (16) - 0000000000875093 [18:10:45]1040 (4) - 103996 [18:10:45]1012 (4) - 20.06.2024 11:48 [18:10:45]1206 (1) - 0 [18:10:45]OFD Sender: Remove packet 103996 [18:10:45]ProducePacketName [18:10:45]name=ofd_packets/00103996 [18:10:45]NVStorageDeleteData [18:10:45]Write to MH i2c: 01 00 00 63 38 9B [18:10:45]Write i2c OK [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: 01 [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: 01 07 00 [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: 01 07 00 63 38 00 00 00 00 00 E1 0C 8F [18:10:45]RasterBufferAndPrint [18:10:45]line [18:10:45]line [18:10:45]line [18:10:45]line [18:10:45]line [18:10:45]written 0, free lines is 3306 [18:10:45]MH_Cut [18:10:45]Write to MH i2c: D1 01 00 6A 38 01 74 [18:10:45]Write i2c OK [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: D1 [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: D1 01 00 [18:10:45]MH_I2C_Read... [18:10:45]Read from MH i2c: D1 01 00 6A 38 00 73 [18:10:45]Write to MH i2c: 01 00 00 6B 38 A3 [18:10:45]Write i2c OK [18:10:45]MH_I2C_Read... [18:10:45]OFD Sender: No OFD packet to send [18:10:45]*** Cut start [18:10:45]*** Partial cut [18:10:45]*** CUTSNS_PIN = 1 [18:10:46]*** CUTSNS_PIN = 0 [18:10:46]*** Brake cut motor [18:10:46]Read from MH i2c: 01 [18:10:46]MH_I2C_Read... [18:10:46]*** Stop cut motor [18:10:46]*** Cut end [18:10:46]Read from MH i2c: 01 07 00 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: 01 07 00 6B 38 00 00 00 00 00 FF 0F B8 [18:10:46]process_action close_receipt done [18:10:46]requested_data is exist [18:10:46]produce_requested_data [18:10:46]requested_item fm.sn is exist - process it [18:10:46]wFMCommunicate request_size=4 [18:10:46]MH_SAM_APDU [18:10:46]CAPDU: 80 11 00 00 [18:10:46]Write to MH i2c: E2 08 00 6C 38 80 11 00 00 00 00 00 00 1E [18:10:46]Write i2c OK [18:10:46]MH_I2C_Read... [18:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:46]Read from MH i2c: E2 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: E2 17 00 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: E2 17 00 6C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 71 [18:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:10:46]wFMCommunicate OK [18:10:46]requested_item fd.num is exist - process it [18:10:46]SAM_PROTO_GetFieldsCounters [18:10:46]wFMCommunicate request_size=4 [18:10:46]MH_SAM_APDU [18:10:46]CAPDU: 80 13 00 00 [18:10:46]Write to MH i2c: E2 08 00 6D 38 80 13 00 00 00 00 00 00 21 [18:10:46]Write i2c OK [18:10:46]MH_I2C_Read... [18:10:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:46]Read from MH i2c: E2 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: E2 62 00 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: E2 62 00 6D 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [18:10:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:46]wFMCommunicate OK [18:10:46]SAM_PROTO_GetFieldsCounters done [18:10:46]requested_item shift.num is exist - process it [18:10:46]requested_item shift.opened is exist - process it [18:10:46]req_shift_opened [18:10:46]FM_GetShiftState [18:10:46]SAM_PROTO_GetShiftState [18:10:46]wFMCommunicate request_size=4 [18:10:46]MH_SAM_APDU [18:10:46]CAPDU: 80 13 01 00 [18:10:46]Write to MH i2c: E2 08 00 6E 38 80 13 01 00 00 00 00 00 23 [18:10:46]Write i2c OK [18:10:46]MH_I2C_Read... [18:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:46]Read from MH i2c: E2 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: E2 0E 00 [18:10:46]MH_I2C_Read... [18:10:46]Read from MH i2c: E2 0E 00 6E 38 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 72 [18:10:46]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:10:46]wFMCommunicate OK [18:10:46]SAM_PROTO_GetShiftState done [18:10:46]FM_GetShiftState done [18:10:46]req_shift_opened done [18:10:46]requested_item shift.open_date is exist - process it [18:10:46]req_shift_open_date [18:10:46]req_shift_open_date done [18:10:46]produce_requested_data done [18:10:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103996,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:10:46]process_action_free close_receipt [18:10:46]json_value_free [18:10:46]json_value_free done [18:10:46]process_json_proto returns [18:10:46]Send response to host [18:10:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103996,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:10:46]free response buf [18:10:46]execute_script done [18:10:46]execute_script returns [18:10:46]free content buf [18:10:46]Sock 7.Close socket [18:10:46]Sock 7.Thread stoped [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:06]accept exits with 9 [18:12:06]New connection [18:12:06]New thread 3067207012 created [18:12:06]Thread 3067063652 joined [18:12:06]Waiting for new connection... [18:12:06] Sock 9.Parse request [18:12:06]Sock 9.Check first char [18:12:06]Sock 9.First char is OK [18:12:06]request: POST /json_proto HTTP/1.0 [18:12:06]Method: POST [18:12:06]URL: /json_proto [18:12:06]Method is POST - this is cgi request [18:12:06]url: /json_proto [18:12:06]query_string will be loaded in cgi processing [18:12:06]execute_cgi json_proto POST (null) [18:12:06]execute_cgi path=json_proto method=POST [18:12:06]POST find Content-Length [18:12:06]Host: 172.17.38.133:8080 [18:12:06]Content-Length: 808 [18:12:06]Content-Type: application/json [18:12:06] [18:12:06]POST finish read [18:12:06]Found Content-Length = 808 [18:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 43.000, "sum" : 3134.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3134.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:06]execute_script... [18:12: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)673372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 43.000, "sum" : 3134.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3134.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:06]POST & json_proto [18:12:06]process_json_proto [18:12:06]json parsed OK: [18:12:06]protocol is kg_v1.0 [18:12:06]action value=close_receipt [18:12:06]process_action close_receipt [18:12:06]cmd_close_receipt [18:12:06]MH_GetDate [18:12:06]Write to MH i2c: F0 00 00 6F 38 96 [18:12:06]Write i2c OK [18:12:06]MH_I2C_Read... [18:12:06]Read from MH i2c: F0 [18:12:06]MH_I2C_Read... [18:12:06]Read from MH i2c: F0 09 00 [18:12:06]MH_I2C_Read... [18:12:06]Read from MH i2c: F0 09 00 6F 38 00 F9 70 74 66 BD 8F 7C 64 0E [18:12:06]GetLastDocTimeStamp 1718907045 [18:12:06]current date 1718907129 [18:12:06]FM_GetShiftState [18:12:06]SAM_PROTO_GetShiftState [18:12:06]wFMCommunicate request_size=4 [18:12:06]MH_SAM_APDU [18:12:06]CAPDU: 80 13 01 00 [18:12:06]Write to MH i2c: E2 08 00 70 38 80 13 01 00 00 00 00 00 25 [18:12:06]Write i2c OK [18:12:06]MH_I2C_Read... [18:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:06]Read from MH i2c: E2 [18:12:06]MH_I2C_Read... [18:12:06]Read from MH i2c: E2 0E 00 [18:12:06]MH_I2C_Read... [18:12:06]Read from MH i2c: E2 0E 00 70 38 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 74 [18:12:06]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:12:06]wFMCommunicate OK [18:12:06]SAM_PROTO_GetShiftState done [18:12:06]FM_GetShiftState done [18:12:06]opened in 1718843124 [18:12:06]opened+sec_in_day 1718929524 [18:12:06]quantity*price = 313470 [18:12:06]sum+1 = 313471 [18:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3134.70 НСП 1% : 27.74 НДС 12% : 332.89 Наличными: 0.00 Безнал.: 3134.70 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 182 20.06.2024 18:12 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103997 ФПД: 225526665963064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181209&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103997&fm=225526665963064&tin=02508201610067®Number=0000000000092785&sum=313470 [18:12:07]StoreToDocumentArchive [18:12:07]shift 354 fd 103997 [18:12:07]save to /storage/0354/doc_00103997 [18:12:07]save last doc name /storage/0354/doc_00103997 to /storage/kkm_last_doc_name [18:12:07]save OK [18:12:07]Clear old archive folders... [18:12:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:12:07]tlvbuf is 0085D120 [18:12:07]SAM_PROTO_ClearQueue [18:12:07]wFMCommunicate request_size=4 [18:12:07]MH_SAM_APDU [18:12:07]CAPDU: 80 09 00 00 [18:12:07]Write to MH i2c: E2 08 00 7D 38 80 09 00 00 00 00 00 00 27 [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:07]Read from MH i2c: E2 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 03 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 03 00 7D 38 00 90 00 29 [18:12:07]RAPDU: 90 00 [18:12:07]wFMCommunicate OK [18:12:07]SAM_PROTO_ClearQueue done [18:12:07]KKMCreateOFDPacket [18:12:07]OFDProtocolAddRootSTLVToBuf [18:12:07]FM_MakeSignedData [18:12:07]FM_MakeSignedData [18:12:07]SAM_PROTO_SignData [18:12:07]wFMCommunicate request_size=4 [18:12:07]MH_SAM_APDU [18:12:07]CAPDU: 80 0D 01 02 [18:12:07]Write to MH i2c: E2 08 00 7E 38 80 0D 01 02 00 00 00 00 2F [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:07]Read from MH i2c: E2 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 03 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 03 00 7E 38 00 90 00 2A [18:12:07]RAPDU: 90 00 [18:12:07]wFMCommunicate OK [18:12:07]wFMCommunicate request_size=255 [18:12:07]MH_SAM_APDU [18:12:07]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F8 A7 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7E C8 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E C8 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 82 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E C8 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F9 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 96 01 00 35 04 06 00 [18:12:07]Write to MH i2c: E2 02 01 7F 38 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F8 A7 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7E C8 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E C8 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 82 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E C8 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F9 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 96 01 00 35 04 06 00 00 00 28 [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:07]Read from MH i2c: E2 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 03 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 03 00 7F 38 00 90 00 2B [18:12:07]RAPDU: 90 00 [18:12:07]wFMCommunicate OK [18:12:07]wFMCommunicate request_size=11 [18:12:07]MH_SAM_APDU [18:12:07]CAPDU: 80 0D 02 02 06 CD 1D 84 CF E6 38 [18:12:07]Write to MH i2c: E2 0E 00 80 38 80 0D 02 02 06 00 CD 1D 84 CF E6 38 00 00 99 [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:07]Read from MH i2c: E2 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 03 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 03 00 80 38 00 90 00 2C [18:12:07]RAPDU: 90 00 [18:12:07]wFMCommunicate OK [18:12:07]wFMCommunicate request_size=4 [18:12:07]MH_SAM_APDU [18:12:07]CAPDU: 80 0D 03 02 [18:12:07]Write to MH i2c: E2 08 00 81 38 80 0D 03 02 00 00 00 00 34 [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:07]Read from MH i2c: E2 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 0B 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 0B 00 81 38 00 BE 2A F5 7D 5F AF 9F 8F 90 00 CB [18:12:07]RAPDU: BE 2A F5 7D 5F AF 9F 8F 90 00 [18:12:07]wFMCommunicate OK [18:12:07]SAM_PROTO_SignData done [18:12:07]FM_MakeSignedData done [18:12:07]CreateOFDProtocolMessage [18:12:07]wFMCommunicate request_size=4 [18:12:07]MH_SAM_APDU [18:12:07]CAPDU: 80 11 00 00 [18:12:07]Write to MH i2c: E2 08 00 82 38 80 11 00 00 00 00 00 00 34 [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:07]Read from MH i2c: E2 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 17 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: E2 17 00 82 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [18:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:12:07]wFMCommunicate OK [18:12:07]CreateOFDProtocolMessage done [18:12:07]OFDSenderStorePacket 103997 [18:12:07]StoreOFDPacket docnum=103997 [18:12:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FA 37 08 01 D5 83 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F8 A7 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7E C8 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E C8 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 82 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E C8 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F9 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 96 01 00 35 04 06 00 CD 1D 84 CF E6 38 BE 2A F5 7D 5F AF 9F 8F [18:12:07]CheckFolder [18:12:07]dirname=/storage/ofd_packets [18:12:07]CheckFolder done [18:12:07]ProducePacketName [18:12:07]name=ofd_packets/00103997 [18:12:07]NVStorageSaveData ofd_packets/00103997 [18:12:07]File name is /storage/ofd_packets/00103997 [18:12:07]Write 302 bytes [18:12:07]NVStorageSaveData done [18:12:07]OFDSenderStorePacket done [18:12:07]KKMCreateOFDPacket done [18:12:07]NVStorageSaveData kkm_last_timestamp [18:12:07]File name is /storage/kkm_last_timestamp [18:12:07]Write 4 bytes [18:12:07]NVStorageSaveData done [18:12:07]ExternCall_PrintAddStr [18:12:07]wPrintStart [18:12:07]Write to MH i2c: 01 00 00 83 38 BB [18:12:07]Write i2c OK [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: 01 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: 01 07 00 [18:12:07]MH_I2C_Read... [18:12:07]Read from MH i2c: 01 07 00 83 38 00 00 00 00 00 FF 0F D0 [18:12:07]RasterBufferAndPrint [18:12:07]line Счет N : (1)673372 [18:12:07]line ИНН: 02508201610067 [18:12:07]line Контрольно-Кассовый Чек [18:12:07]line ПРОДАЖА [18:12:07]line ТРК (МРК, ГНК) : 11 [18:12:07]line Товар: 2710194210 [18:12:07]line ДТ(л)-К-5 [18:12:07]line 43.000 * 72.90 [18:12:07]line = 3134.70 [18:12:07]line НДС 12% НСП 1% [18:12:07]line > о реализуемом товаре [18:12:07]line ИТОГО: 3134.70 [18:12:07]line НСП 1% : 27.74 [18:12:07]line НДС 12% : 332.89 [18:12:07]line Наличными: 0.00 [18:12:07]line Безнал.: 3134.70 [18:12:07]line Место: АЗС № 120 "Партнер Нефть" [18:12:07]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:12:07]line СНО: Общий режим [18:12:07]line Чек 182 20.06.2024 18:12 [18:12:07]line Смена: 354 ФФД: 1.0 [18:12:07]line ЗНМ: 0300000164 [18:12:07]line РНМ: 0000000000092785 [18:12:07]line Версия ККМ: 001 [18:12:07]line Платежная система: O! деньги [18:12:07]line ФМ: 0000000000875093 [18:12:07]line ФД: 103997 [18:12:07]line ФПД: 225526665963064 [18:12:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181209&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103997&fm=225526665963064&tin=02508201610067®Number=0000000000092785&sum=313470 [18:12:08]OFD Sender: Processing packet 103997 [packets to send 17, broken 16] [18:12:08]ProducePacketName [18:12:08]name=ofd_packets/00103997 [18:12:08]OFD Sender: To server: pG, [18:12:08]CommunicateWithHost lk.salyk.kg:30040 [18:12:08]ConnectInit lk.salyk.kg [18:12:08]written 0, free lines is 4095 [18:12:08]Connected sock=10 [18:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 FA 37 08 01 D5 83 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F8 A7 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 7E C8 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E C8 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 82 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E C8 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F9 70 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 96 01 00 35 04 06 00 CD 1D 84 CF E6 38 BE 2A F5 7D 5F AF 9F 8F [18:12:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A0 2D 47 00 7F B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3D 96 01 00 F4 03 04 00 7E 17 74 66 B6 04 01 00 00 E1 7C 8A 75 E5 07 B3 D4 [18:12:08]CommunicateWithHost err = 0 [18:12:08]CheckOFDResponse [18:12:08]1017 (14) - 77093643461234 [18:12:08]1041 (16) - 0000000000875093 [18:12:08]1040 (4) - 103997 [18:12:08]1012 (4) - 20.06.2024 11:50 [18:12:08]1206 (1) - 0 [18:12:08]OFD Sender: Remove packet 103997 [18:12:08]ProducePacketName [18:12:08]name=ofd_packets/00103997 [18:12:08]NVStorageDeleteData [18:12:08]Write to MH i2c: 01 00 00 AD 38 E5 [18:12:08]Write i2c OK [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: 01 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: 01 07 00 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: 01 07 00 AD 38 00 00 00 00 00 FA 0C F2 [18:12:08]RasterBufferAndPrint [18:12:08]line [18:12:08]line [18:12:08]line [18:12:08]line [18:12:08]line [18:12:08]written 0, free lines is 3329 [18:12:08]MH_Cut [18:12:08]Write to MH i2c: D1 01 00 B4 38 01 BE [18:12:08]Write i2c OK [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: D1 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: D1 01 00 [18:12:08]MH_I2C_Read... [18:12:08]Read from MH i2c: D1 01 00 B4 38 00 BD [18:12:08]Write to MH i2c: 01 00 00 B5 38 ED [18:12:08]Write i2c OK [18:12:08]MH_I2C_Read... [18:12:08]OFD Sender: No OFD packet to send [18:12:09]*** Cut start [18:12:09]*** Partial cut [18:12:09]*** CUTSNS_PIN = 1 [18:12:09]*** CUTSNS_PIN = 0 [18:12:09]*** Brake cut motor [18:12:09]Read from MH i2c: 01 [18:12:09]MH_I2C_Read... [18:12:09]*** Stop cut motor [18:12:09]*** Cut end [18:12:09]Read from MH i2c: 01 07 00 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: 01 07 00 B5 38 00 00 00 00 00 FF 0F 02 [18:12:09]process_action close_receipt done [18:12:09]requested_data is exist [18:12:09]produce_requested_data [18:12:09]requested_item fm.sn is exist - process it [18:12:09]wFMCommunicate request_size=4 [18:12:09]MH_SAM_APDU [18:12:09]CAPDU: 80 11 00 00 [18:12:09]Write to MH i2c: E2 08 00 B6 38 80 11 00 00 00 00 00 00 68 [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:09]Read from MH i2c: E2 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: E2 17 00 [18:12:09]MH_I2C_Read... [18:12:09]Read from MH i2c: E2 17 00 B6 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BB [18:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:12:09]wFMCommunicate OK [18:12:09]requested_item fd.num is exist - process it [18:12:09]SAM_PROTO_GetFieldsCounters [18:12:09]wFMCommunicate request_size=4 [18:12:09]MH_SAM_APDU [18:12:09]CAPDU: 80 13 00 00 [18:12:09]Write to MH i2c: E2 08 00 B7 38 80 13 00 00 00 00 00 00 6B [18:12:09]Write i2c OK [18:12:09]MH_I2C_Read... [18:12:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:10]Read from MH i2c: E2 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 62 00 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 62 00 B7 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [18:12:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:10]wFMCommunicate OK [18:12:10]SAM_PROTO_GetFieldsCounters done [18:12:10]requested_item shift.num is exist - process it [18:12:10]requested_item shift.opened is exist - process it [18:12:10]req_shift_opened [18:12:10]FM_GetShiftState [18:12:10]SAM_PROTO_GetShiftState [18:12:10]wFMCommunicate request_size=4 [18:12:10]MH_SAM_APDU [18:12:10]CAPDU: 80 13 01 00 [18:12:10]Write to MH i2c: E2 08 00 B8 38 80 13 01 00 00 00 00 00 6D [18:12:10]Write i2c OK [18:12:10]MH_I2C_Read... [18:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:10]Read from MH i2c: E2 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 0E 00 [18:12:10]MH_I2C_Read... [18:12:10]Read from MH i2c: E2 0E 00 B8 38 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BC [18:12:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:12:10]wFMCommunicate OK [18:12:10]SAM_PROTO_GetShiftState done [18:12:10]FM_GetShiftState done [18:12:10]req_shift_opened done [18:12:10]requested_item shift.open_date is exist - process it [18:12:10]req_shift_open_date [18:12:10]req_shift_open_date done [18:12:10]produce_requested_data done [18:12:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103997,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:12:10]process_action_free close_receipt [18:12:10]json_value_free [18:12:10]json_value_free done [18:12:10]process_json_proto returns [18:12:10]Send response to host [18:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103997,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:12:10]free response buf [18:12:10]execute_script done [18:12:10]execute_script returns [18:12:10]free content buf [18:12:10]Sock 9.Close socket [18:12:10]Sock 9.Thread stoped [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:23]accept exits with 7 [18:15:23]New connection [18:15:23]New thread 3067063652 created [18:15:23]Thread 3067207012 joined [18:15:23]Waiting for new connection... [18:15:23] Sock 7.Parse request [18:15:23]Sock 7.Check first char [18:15:23]Sock 7.First char is OK [18:15:23]request: POST /json_proto HTTP/1.0 [18:15:23]Method: POST [18:15:23]URL: /json_proto [18:15:23]Method is POST - this is cgi request [18:15:23]url: /json_proto [18:15:23]query_string will be loaded in cgi processing [18:15:23]execute_cgi json_proto POST (null) [18:15:23]execute_cgi path=json_proto method=POST [18:15:23]POST find Content-Length [18:15:23]Host: 172.17.38.133:8080 [18:15:23]Content-Length: 687 [18:15:23]Content-Type: application/json [18:15:23] [18:15:23]POST finish read [18:15:23]Found Content-Length = 687 [18:15:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.030, "sum" : 1460.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1460.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:23]execute_script... [18:15: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)673374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.030, "sum" : 1460.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1460.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:23]POST & json_proto [18:15:23]process_json_proto [18:15:23]json parsed OK: [18:15:23]protocol is kg_v1.0 [18:15:23]action value=close_receipt [18:15:23]process_action close_receipt [18:15:23]cmd_close_receipt [18:15:23]MH_GetDate [18:15:23]Write to MH i2c: F0 00 00 B9 38 E0 [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: F0 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: F0 09 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: F0 09 00 B9 38 00 BF 71 74 66 BD 8F 7C 64 1F [18:15:23]GetLastDocTimeStamp 1718907129 [18:15:23]current date 1718907327 [18:15:23]FM_GetShiftState [18:15:23]SAM_PROTO_GetShiftState [18:15:23]wFMCommunicate request_size=4 [18:15:23]MH_SAM_APDU [18:15:23]CAPDU: 80 13 01 00 [18:15:23]Write to MH i2c: E2 08 00 BA 38 80 13 01 00 00 00 00 00 6F [18:15:23]Write i2c OK [18:15:23]MH_I2C_Read... [18:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:23]Read from MH i2c: E2 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 0E 00 [18:15:23]MH_I2C_Read... [18:15:23]Read from MH i2c: E2 0E 00 BA 38 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BE [18:15:23]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:15:23]wFMCommunicate OK [18:15:23]SAM_PROTO_GetShiftState done [18:15:23]FM_GetShiftState done [18:15:23]opened in 1718843124 [18:15:23]opened+sec_in_day 1718929524 [18:15:23]quantity*price = 146018 [18:15:23]sum+1 = 146020 [18:15:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1460.00 Внесено: 1460.00 СДАЧА: 0.00 НСП 1% : 12.92 НДС 12% : 155.06 Наличными: 1460.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 183 20.06.2024 18:15 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 103998 ФПД: 55940956588621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181527&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103998&fm=55940956588621&tin=02508201610067®Number=0000000000092785&sum=146000 [18:15:25]StoreToDocumentArchive [18:15:25]shift 354 fd 103998 [18:15:25]save to /storage/0354/doc_00103998 [18:15:25]save last doc name /storage/0354/doc_00103998 to /storage/kkm_last_doc_name [18:15:25]save OK [18:15:25]Clear old archive folders... [18:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:15:25]tlvbuf is 0084B500 [18:15:25]SAM_PROTO_ClearQueue [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 09 00 00 [18:15:25]Write to MH i2c: E2 08 00 C7 38 80 09 00 00 00 00 00 00 71 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 C7 38 00 90 00 73 [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]SAM_PROTO_ClearQueue done [18:15:25]KKMCreateOFDPacket [18:15:25]OFDProtocolAddRootSTLVToBuf [18:15:25]FM_MakeSignedData [18:15:25]FM_MakeSignedData [18:15:25]SAM_PROTO_SignData [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 0D 01 02 [18:15:25]Write to MH i2c: E2 08 00 C8 38 80 0D 01 02 00 00 00 00 79 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 C8 38 00 90 00 74 [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]wFMCommunicate request_size=255 [18:15:25]MH_SAM_APDU [18:15:25]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BF 71 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 96 01 00 35 04 06 00 [18:15:25]Write to MH i2c: E2 02 01 C9 38 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BF 71 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 96 01 00 35 04 06 00 00 00 75 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 C9 38 00 90 00 75 [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]wFMCommunicate request_size=11 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 0D 02 02 06 32 E0 C4 D8 8A 4D [18:15:25]Write to MH i2c: E2 0E 00 CA 38 80 0D 02 02 06 00 32 E0 C4 D8 8A 4D 00 00 0D [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 CA 38 00 90 00 76 [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 0D 03 02 [18:15:25]Write to MH i2c: E2 08 00 CB 38 80 0D 03 02 00 00 00 00 7E [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 0B 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 0B 00 CB 38 00 61 86 5B E0 CF A3 7F F9 90 00 8B [18:15:25]RAPDU: 61 86 5B E0 CF A3 7F F9 90 00 [18:15:25]wFMCommunicate OK [18:15:25]SAM_PROTO_SignData done [18:15:25]FM_MakeSignedData done [18:15:25]CreateOFDProtocolMessage [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 11 00 00 [18:15:25]Write to MH i2c: E2 08 00 CC 38 80 11 00 00 00 00 00 00 7E [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 17 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 17 00 CC 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D1 [18:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:15:25]wFMCommunicate OK [18:15:25]CreateOFDProtocolMessage done [18:15:25]OFDSenderStorePacket 103998 [18:15:25]StoreOFDPacket docnum=103998 [18:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 68 FA 08 01 79 50 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BF 71 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 96 01 00 35 04 06 00 32 E0 C4 D8 8A 4D 61 86 5B E0 CF A3 7F F9 [18:15:25]CheckFolder [18:15:25]dirname=/storage/ofd_packets [18:15:25]CheckFolder done [18:15:25]ProducePacketName [18:15:25]name=ofd_packets/00103998 [18:15:25]NVStorageSaveData ofd_packets/00103998 [18:15:25]File name is /storage/ofd_packets/00103998 [18:15:25]Write 302 bytes [18:15:25]NVStorageSaveData done [18:15:25]OFDSenderStorePacket done [18:15:25]KKMCreateOFDPacket done [18:15:25]NVStorageSaveData kkm_last_timestamp [18:15:25]File name is /storage/kkm_last_timestamp [18:15:25]Write 4 bytes [18:15:25]NVStorageSaveData done [18:15:25]ExternCall_PrintAddStr [18:15:25]wPrintStart [18:15:25]Write to MH i2c: 01 00 00 CD 38 05 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: 01 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: 01 07 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: 01 07 00 CD 38 00 00 00 00 00 FF 0F 1A [18:15:25]RasterBufferAndPrint [18:15:25]line Счет N : (1)673374 [18:15:25]line ИНН: 02508201610067 [18:15:25]line Контрольно-Кассовый Чек [18:15:25]line ПРОДАЖА [18:15:25]line ТРК (МРК, ГНК) : 21 [18:15:25]line Товар: 2710194210 [18:15:25]line ДТ(л)-К-5 [18:15:25]line 20.030 * 72.90 [18:15:25]line = 1460.19 [18:15:25]line НДС 12% НСП 1% [18:15:25]line > о реализуемом товаре [18:15:25]line ОКРУГЛЕНИЕ: -0.19 [18:15:25]line ИТОГО: 1460.00 [18:15:25]line Внесено: 1460.00 [18:15:25]line СДАЧА: 0.00 [18:15:25]line НСП 1% : 12.92 [18:15:25]line НДС 12% : 155.06 [18:15:25]line Наличными: 1460.00 [18:15:25]line Безнал.: 0.00 [18:15:25]line Место: АЗС № 120 "Партнер Нефть" [18:15:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:15:25]line СНО: Общий режим [18:15:25]line Чек 183 20.06.2024 18:15 [18:15:25]line Смена: 354 ФФД: 1.0 [18:15:25]line ЗНМ: 0300000164 [18:15:25]line РНМ: 0000000000092785 [18:15:25]line Версия ККМ: 001 [18:15:25]line ФМ: 0000000000875093 [18:15:25]line ФД: 103998 [18:15:25]line ФПД: 55940956588621 [18:15:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181527&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103998&fm=55940956588621&tin=02508201610067®Number=0000000000092785&sum=146000 [18:15:25]OFD Sender: Processing packet 103998 [packets to send 17, broken 16] [18:15:25]ProducePacketName [18:15:25]name=ofd_packets/00103998 [18:15:25]OFD Sender: To server: pG, [18:15:25]CommunicateWithHost lk.salyk.kg:30040 [18:15:25]ConnectInit lk.salyk.kg [18:15:25]written 0, free lines is 4095 [18:15:26]Connected sock=10 [18:15:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 68 FA 08 01 79 50 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 BF 71 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3E 96 01 00 35 04 06 00 32 E0 C4 D8 8A 4D 61 86 5B E0 CF A3 7F F9 [18:15:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A4 6D 47 00 43 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 35 30 39 33 10 04 04 00 3E 96 01 00 F4 03 04 00 43 18 74 66 B6 04 01 00 00 12 24 84 1C 8D A7 9A 4C [18:15:26]CommunicateWithHost err = 0 [18:15:26]CheckOFDResponse [18:15:26]1017 (14) - 77093643461234 [18:15:26]1041 (16) - 0000000000875093 [18:15:26]1040 (4) - 103998 [18:15:26]1012 (4) - 20.06.2024 11:53 [18:15:26]1206 (1) - 0 [18:15:26]OFD Sender: Remove packet 103998 [18:15:26]ProducePacketName [18:15:26]name=ofd_packets/00103998 [18:15:26]NVStorageDeleteData [18:15:26]Write to MH i2c: 01 00 00 F8 38 30 [18:15:26]Write i2c OK [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: 01 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: 01 07 00 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: 01 07 00 F8 38 00 00 00 00 00 E6 0C 29 [18:15:26]RasterBufferAndPrint [18:15:26]line [18:15:26]line [18:15:26]line [18:15:26]line [18:15:26]line [18:15:26]written 0, free lines is 3308 [18:15:26]MH_Cut [18:15:26]Write to MH i2c: D1 01 00 FF 38 01 09 [18:15:26]Write i2c OK [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: D1 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: D1 01 00 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: D1 01 00 FF 38 00 08 [18:15:26]Write to MH i2c: 01 00 00 00 39 39 [18:15:26]Write i2c OK [18:15:26]MH_I2C_Read... [18:15:26]OFD Sender: No OFD packet to send [18:15:27]*** Cut start [18:15:27]*** Partial cut [18:15:27]*** CUTSNS_PIN = 1 [18:15:27]*** CUTSNS_PIN = 0 [18:15:27]*** Brake cut motor [18:15:27]Read from MH i2c: 01 [18:15:27]MH_I2C_Read... [18:15:27]*** Stop cut motor [18:15:27]*** Cut end [18:15:27]Read from MH i2c: 01 07 00 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: 01 07 00 00 39 00 00 00 00 00 FF 0F 4E [18:15:27]process_action close_receipt done [18:15:27]requested_data is exist [18:15:27]produce_requested_data [18:15:27]requested_item fm.sn is exist - process it [18:15:27]wFMCommunicate request_size=4 [18:15:27]MH_SAM_APDU [18:15:27]CAPDU: 80 11 00 00 [18:15:27]Write to MH i2c: E2 08 00 01 39 80 11 00 00 00 00 00 00 B4 [18:15:27]Write i2c OK [18:15:27]MH_I2C_Read... [18:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:27]Read from MH i2c: E2 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: E2 17 00 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: E2 17 00 01 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 07 [18:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:15:27]wFMCommunicate OK [18:15:27]requested_item fd.num is exist - process it [18:15:27]SAM_PROTO_GetFieldsCounters [18:15:27]wFMCommunicate request_size=4 [18:15:27]MH_SAM_APDU [18:15:27]CAPDU: 80 13 00 00 [18:15:27]Write to MH i2c: E2 08 00 02 39 80 13 00 00 00 00 00 00 B7 [18:15:27]Write i2c OK [18:15:27]MH_I2C_Read... [18:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:27]Read from MH i2c: E2 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: E2 62 00 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: E2 62 00 02 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [18: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:27]wFMCommunicate OK [18:15:27]SAM_PROTO_GetFieldsCounters done [18:15:27]requested_item shift.num is exist - process it [18:15:27]requested_item shift.opened is exist - process it [18:15:27]req_shift_opened [18:15:27]FM_GetShiftState [18:15:27]SAM_PROTO_GetShiftState [18:15:27]wFMCommunicate request_size=4 [18:15:27]MH_SAM_APDU [18:15:27]CAPDU: 80 13 01 00 [18:15:27]Write to MH i2c: E2 08 00 03 39 80 13 01 00 00 00 00 00 B9 [18:15:27]Write i2c OK [18:15:27]MH_I2C_Read... [18:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:27]Read from MH i2c: E2 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: E2 0E 00 [18:15:27]MH_I2C_Read... [18:15:27]Read from MH i2c: E2 0E 00 03 39 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 08 [18:15:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:15:27]wFMCommunicate OK [18:15:27]SAM_PROTO_GetShiftState done [18:15:27]FM_GetShiftState done [18:15:27]req_shift_opened done [18:15:27]requested_item shift.open_date is exist - process it [18:15:27]req_shift_open_date [18:15:27]req_shift_open_date done [18:15:27]produce_requested_data done [18:15:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103998,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:15:27]process_action_free close_receipt [18:15:27]json_value_free [18:15:27]json_value_free done [18:15:27]process_json_proto returns [18:15:27]Send response to host [18:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103998,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:15:27]free response buf [18:15:27]execute_script done [18:15:27]execute_script returns [18:15:27]free content buf [18:15:27]Sock 7.Close socket [18:15:27]Sock 7.Thread stoped [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:30]accept exits with 9 [18:19:30]New connection [18:19:30]New thread 3067207012 created [18:19:30]Thread 3067063652 joined [18:19:30]Waiting for new connection... [18:19:30] Sock 9.Parse request [18:19:30]Sock 9.Check first char [18:19:30]Sock 9.First char is OK [18:19:30]request: POST /json_proto HTTP/1.0 [18:19:30]Method: POST [18:19:30]URL: /json_proto [18:19:30]Method is POST - this is cgi request [18:19:30]url: /json_proto [18:19:30]query_string will be loaded in cgi processing [18:19:30]execute_cgi json_proto POST (null) [18:19:30]execute_cgi path=json_proto method=POST [18:19:30]POST find Content-Length [18:19:30]Host: 172.17.38.133:8080 [18:19:30]Content-Length: 801 [18:19:30]Content-Type: application/json [18:19:30] [18:19:30]POST finish read [18:19:30]Found Content-Length = 801 [18:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 0.130, "sum" : 9.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:30]execute_script... [18: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)673375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 0.130, "sum" : 9.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:30]POST & json_proto [18:19:30]process_json_proto [18:19:30]json parsed OK: [18:19:30]protocol is kg_v1.0 [18:19:30]action value=close_receipt [18:19:30]process_action close_receipt [18:19:30]cmd_close_receipt [18:19:30]MH_GetDate [18:19:30]Write to MH i2c: F0 00 00 04 39 2C [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: F0 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: F0 09 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: F0 09 00 04 39 00 B5 72 74 66 BD 8F 7C 64 62 [18:19:30]GetLastDocTimeStamp 1718907327 [18:19:30]current date 1718907573 [18:19:30]FM_GetShiftState [18:19:30]SAM_PROTO_GetShiftState [18:19:30]wFMCommunicate request_size=4 [18:19:30]MH_SAM_APDU [18:19:30]CAPDU: 80 13 01 00 [18:19:30]Write to MH i2c: E2 08 00 05 39 80 13 01 00 00 00 00 00 BB [18:19:30]Write i2c OK [18:19:30]MH_I2C_Read... [18:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:30]Read from MH i2c: E2 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 0E 00 [18:19:30]MH_I2C_Read... [18:19:30]Read from MH i2c: E2 0E 00 05 39 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 0A [18:19:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:19:30]wFMCommunicate OK [18:19:30]SAM_PROTO_GetShiftState done [18:19:30]FM_GetShiftState done [18:19:30]opened in 1718843124 [18:19:30]opened+sec_in_day 1718929524 [18:19:30]quantity*price = 947 [18:19:30]sum+1 = 949 [18:19:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9.48 НСП 1% : 0.08 НДС 12% : 1.01 Наличными: 0.00 Безнал.: 9.48 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 184 20.06.2024 18:19 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 103999 ФПД: 241113811357030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181933&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103999&fm=241113811357030&tin=02508201610067®Number=0000000000092785&sum=948 [18:19:31]StoreToDocumentArchive [18:19:31]shift 354 fd 103999 [18:19:31]save to /storage/0354/doc_00103999 [18:19:31]save last doc name /storage/0354/doc_00103999 to /storage/kkm_last_doc_name [18:19:31]save OK [18:19:31]Clear old archive folders... [18:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:19:31]tlvbuf is B6F18B10 [18:19:31]SAM_PROTO_ClearQueue [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 09 00 00 [18:19:31]Write to MH i2c: E2 08 00 12 39 80 09 00 00 00 00 00 00 BD [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:31]Read from MH i2c: E2 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 03 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 03 00 12 39 00 90 00 BF [18:19:31]RAPDU: 90 00 [18:19:31]wFMCommunicate OK [18:19:31]SAM_PROTO_ClearQueue done [18:19:31]KKMCreateOFDPacket [18:19:31]OFDProtocolAddRootSTLVToBuf [18:19:31]FM_MakeSignedData [18:19:31]FM_MakeSignedData [18:19:31]SAM_PROTO_SignData [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 0D 01 02 [18:19:31]Write to MH i2c: E2 08 00 13 39 80 0D 01 02 00 00 00 00 C5 [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:31]Read from MH i2c: E2 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 03 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 03 00 13 39 00 90 00 C0 [18:19:31]RAPDU: 90 00 [18:19:31]wFMCommunicate OK [18:19:31]wFMCommunicate request_size=255 [18:19:31]MH_SAM_APDU [18:19:31]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 00 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B4 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 03 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B5 72 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 96 01 00 35 04 06 00 [18:19:31]Write to MH i2c: E2 02 01 14 39 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 00 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B4 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 03 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B5 72 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 96 01 00 35 04 06 00 00 00 AC [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:31]Read from MH i2c: E2 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 03 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 03 00 14 39 00 90 00 C1 [18:19:31]RAPDU: 90 00 [18:19:31]wFMCommunicate OK [18:19:31]wFMCommunicate request_size=11 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 0D 02 02 06 DB 4A AF 13 8D 66 [18:19:31]Write to MH i2c: E2 0E 00 15 39 80 0D 02 02 06 00 DB 4A AF 13 8D 66 00 00 AE [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:31]Read from MH i2c: E2 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 03 00 [18:19:31]MH_I2C_Read... [18:19:31]Read from MH i2c: E2 03 00 15 39 00 90 00 C2 [18:19:31]RAPDU: 90 00 [18:19:31]wFMCommunicate OK [18:19:31]wFMCommunicate request_size=4 [18:19:31]MH_SAM_APDU [18:19:31]CAPDU: 80 0D 03 02 [18:19:31]Write to MH i2c: E2 08 00 16 39 80 0D 03 02 00 00 00 00 CA [18:19:31]Write i2c OK [18:19:31]MH_I2C_Read... [18:19:32]OFD Sender: No OFD packet to send [18:19:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 0B 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 0B 00 16 39 00 B7 CD ED 99 3B A6 21 E6 90 00 BD [18:19:32]RAPDU: B7 CD ED 99 3B A6 21 E6 90 00 [18:19:32]wFMCommunicate OK [18:19:32]SAM_PROTO_SignData done [18:19:32]FM_MakeSignedData done [18:19:32]CreateOFDProtocolMessage [18:19:32]wFMCommunicate request_size=4 [18:19:32]MH_SAM_APDU [18:19:32]CAPDU: 80 11 00 00 [18:19:32]Write to MH i2c: E2 08 00 17 39 80 11 00 00 00 00 00 00 CA [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 17 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 17 00 17 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [18:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:19:32]wFMCommunicate OK [18:19:32]CreateOFDProtocolMessage done [18:19:32]OFDSenderStorePacket 103999 [18:19:32]StoreOFDPacket docnum=103999 [18:19:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 2A BB 08 01 15 BC 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 00 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B4 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 03 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B5 72 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 96 01 00 35 04 06 00 DB 4A AF 13 8D 66 B7 CD ED 99 3B A6 21 E6 [18:19:32]CheckFolder [18:19:32]dirname=/storage/ofd_packets [18:19:32]CheckFolder done [18:19:32]ProducePacketName [18:19:32]name=ofd_packets/00103999 [18:19:32]NVStorageSaveData ofd_packets/00103999 [18:19:32]File name is /storage/ofd_packets/00103999 [18:19:32]Write 302 bytes [18:19:32]NVStorageSaveData done [18:19:32]OFDSenderStorePacket done [18:19:32]KKMCreateOFDPacket done [18:19:32]NVStorageSaveData kkm_last_timestamp [18:19:32]File name is /storage/kkm_last_timestamp [18:19:32]Write 4 bytes [18:19:32]NVStorageSaveData done [18:19:32]ExternCall_PrintAddStr [18:19:32]wPrintStart [18:19:32]Write to MH i2c: 01 00 00 18 39 51 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: 01 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: 01 07 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: 01 07 00 18 39 00 00 00 00 00 FF 0F 66 [18:19:32]RasterBufferAndPrint [18:19:32]line Счет N : (1)673375 [18:19:32]line ИНН: 02508201610067 [18:19:32]line Контрольно-Кассовый Чек [18:19:32]line ПРОДАЖА [18:19:32]line ТРК (МРК, ГНК) : 21 [18:19:32]line Товар: 2710194210 [18:19:32]line ДТ(л)-К-5 [18:19:32]line 0.130 * 72.90 [18:19:32]line = 9.48 [18:19:32]line НДС 12% НСП 1% [18:19:32]line > о реализуемом товаре [18:19:32]line ИТОГО: 9.48 [18:19:32]line НСП 1% : 0.08 [18:19:32]line НДС 12% : 1.01 [18:19:32]line Наличными: 0.00 [18:19:32]line Безнал.: 9.48 [18:19:32]line Место: АЗС № 120 "Партнер Нефть" [18:19:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:19:32]line СНО: Общий режим [18:19:32]line Чек 184 20.06.2024 18:19 [18:19:32]line Смена: 354 ФФД: 1.0 [18:19:32]line ЗНМ: 0300000164 [18:19:32]line РНМ: 0000000000092785 [18:19:32]line Версия ККМ: 001 [18:19:32]line Платежная система: O! деньги [18:19:32]line ФМ: 0000000000875093 [18:19:32]line ФД: 103999 [18:19:32]line ФПД: 241113811357030 [18:19:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T181933&type=1&operation_type=1&fn_number=0000000000875093&fd_number=103999&fm=241113811357030&tin=02508201610067®Number=0000000000092785&sum=948 [18:19:32]OFD Sender: Processing packet 103999 [packets to send 17, broken 16] [18:19:32]ProducePacketName [18:19:32]name=ofd_packets/00103999 [18:19:32]OFD Sender: To server: pG, [18:19:32]CommunicateWithHost lk.salyk.kg:30040 [18:19:32]ConnectInit lk.salyk.kg [18:19:32]written 0, free lines is 4095 [18:19:32]Connected sock=10 [18: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 35 30 39 33 10 01 00 00 2A BB 08 01 15 BC 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 82 00 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B4 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 03 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 B5 72 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 96 01 00 35 04 06 00 DB 4A AF 13 8D 66 B7 CD ED 99 3B A6 21 E6 [18:19:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 EB 7D 47 00 46 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 3F 96 01 00 F4 03 04 00 3A 19 74 66 B6 04 01 00 00 85 7B 8E B5 01 39 C9 5A [18:19:32]CommunicateWithHost err = 0 [18:19:32]CheckOFDResponse [18:19:32]1017 (14) - 77093643461234 [18:19:32]1041 (16) - 0000000000875093 [18:19:32]1040 (4) - 103999 [18:19:32]1012 (4) - 20.06.2024 11:57 [18:19:32]1206 (1) - 0 [18:19:32]OFD Sender: Remove packet 103999 [18:19:32]ProducePacketName [18:19:32]name=ofd_packets/00103999 [18:19:32]NVStorageDeleteData [18:19:32]Write to MH i2c: 01 00 00 42 39 7B [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: 01 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: 01 07 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: 01 07 00 42 39 00 00 00 00 00 DC 0C 6A [18:19:32]RasterBufferAndPrint [18:19:32]line [18:19:32]line [18:19:32]line [18:19:32]line [18:19:32]line [18:19:32]written 0, free lines is 3301 [18:19:32]MH_Cut [18:19:32]Write to MH i2c: D1 01 00 49 39 01 54 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: D1 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: D1 01 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: D1 01 00 49 39 00 53 [18:19:32]Write to MH i2c: 01 00 00 4A 39 83 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:33]OFD Sender: No OFD packet to send [18:19:33]*** Cut start [18:19:33]*** Partial cut [18:19:33]*** CUTSNS_PIN = 1 [18:19:33]*** CUTSNS_PIN = 0 [18:19:33]*** Brake cut motor [18:19:34]Read from MH i2c: 01 [18:19:34]MH_I2C_Read... [18:19:34]*** Stop cut motor [18:19:34]*** Cut end [18:19:34]Read from MH i2c: 01 07 00 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: 01 07 00 4A 39 00 00 00 00 00 FF 0F 98 [18:19:34]process_action close_receipt done [18:19:34]requested_data is exist [18:19:34]produce_requested_data [18:19:34]requested_item fm.sn is exist - process it [18:19:34]wFMCommunicate request_size=4 [18:19:34]MH_SAM_APDU [18:19:34]CAPDU: 80 11 00 00 [18:19:34]Write to MH i2c: E2 08 00 4B 39 80 11 00 00 00 00 00 00 FE [18:19:34]Write i2c OK [18:19:34]MH_I2C_Read... [18:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:34]Read from MH i2c: E2 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: E2 17 00 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: E2 17 00 4B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 51 [18:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:19:34]wFMCommunicate OK [18:19:34]requested_item fd.num is exist - process it [18:19:34]SAM_PROTO_GetFieldsCounters [18:19:34]wFMCommunicate request_size=4 [18:19:34]MH_SAM_APDU [18:19:34]CAPDU: 80 13 00 00 [18:19:34]Write to MH i2c: E2 08 00 4C 39 80 13 00 00 00 00 00 00 01 [18:19:34]Write i2c OK [18:19:34]MH_I2C_Read... [18:19:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:34]Read from MH i2c: E2 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: E2 62 00 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: E2 62 00 4C 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [18:19:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 3F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:34]wFMCommunicate OK [18:19:34]SAM_PROTO_GetFieldsCounters done [18:19:34]requested_item shift.num is exist - process it [18:19:34]requested_item shift.opened is exist - process it [18:19:34]req_shift_opened [18:19:34]FM_GetShiftState [18:19:34]SAM_PROTO_GetShiftState [18:19:34]wFMCommunicate request_size=4 [18:19:34]MH_SAM_APDU [18:19:34]CAPDU: 80 13 01 00 [18:19:34]Write to MH i2c: E2 08 00 4D 39 80 13 01 00 00 00 00 00 03 [18:19:34]Write i2c OK [18:19:34]MH_I2C_Read... [18:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:34]Read from MH i2c: E2 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: E2 0E 00 [18:19:34]MH_I2C_Read... [18:19:34]Read from MH i2c: E2 0E 00 4D 39 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 52 [18:19:34]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:19:34]wFMCommunicate OK [18:19:34]SAM_PROTO_GetShiftState done [18:19:34]FM_GetShiftState done [18:19:34]req_shift_opened done [18:19:34]requested_item shift.open_date is exist - process it [18:19:34]req_shift_open_date [18:19:34]req_shift_open_date done [18:19:34]produce_requested_data done [18:19:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":103999,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:19:34]process_action_free close_receipt [18:19:34]json_value_free [18:19:34]json_value_free done [18:19:34]process_json_proto returns [18:19:34]Send response to host [18:19:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":103999,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:19:34]free response buf [18:19:34]execute_script done [18:19:34]execute_script returns [18:19:34]free content buf [18:19:34]Sock 9.Close socket [18:19:34]Sock 9.Thread stoped [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]accept exits with 7 [18:23:23]New connection [18:23:23]New thread 3067063652 created [18:23:23]Thread 3067207012 joined [18:23:23]Waiting for new connection... [18:23:23] Sock 7.Parse request [18:23:23]Sock 7.Check first char [18:23:23]Sock 7.First char is OK [18:23:23]request: POST /json_proto HTTP/1.0 [18:23:23]Method: POST [18:23:23]URL: /json_proto [18:23:23]Method is POST - this is cgi request [18:23:23]url: /json_proto [18:23:23]query_string will be loaded in cgi processing [18:23:23]execute_cgi json_proto POST (null) [18:23:23]execute_cgi path=json_proto method=POST [18:23:23]POST find Content-Length [18:23:23]Host: 172.17.38.133:8080 [18:23:23]Content-Length: 677 [18:23:23]Content-Type: application/json [18:23:23] [18:23:23]POST finish read [18:23:23]Found Content-Length = 677 [18:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:23]execute_script... [18:23:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:23]POST & json_proto [18:23:23]process_json_proto [18:23:23]json parsed OK: [18:23:23]protocol is kg_v1.0 [18:23:23]action value=close_receipt [18:23:23]process_action close_receipt [18:23:23]cmd_close_receipt [18:23:23]MH_GetDate [18:23:23]Write to MH i2c: F0 00 00 4E 39 76 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: F0 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: F0 09 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: F0 09 00 4E 39 00 9E 73 74 66 BD 8F 7C 64 96 [18:23:23]GetLastDocTimeStamp 1718907573 [18:23:23]current date 1718907806 [18:23:23]FM_GetShiftState [18:23:23]SAM_PROTO_GetShiftState [18:23:23]wFMCommunicate request_size=4 [18:23:23]MH_SAM_APDU [18:23:23]CAPDU: 80 13 01 00 [18:23:23]Write to MH i2c: E2 08 00 4F 39 80 13 01 00 00 00 00 00 05 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:23]Read from MH i2c: E2 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 0E 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 0E 00 4F 39 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 54 [18:23:23]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:23:23]wFMCommunicate OK [18:23:23]SAM_PROTO_GetShiftState done [18:23:23]FM_GetShiftState done [18:23:23]opened in 1718843124 [18:23:23]opened+sec_in_day 1718929524 [18:23:23]quantity*price = 35059 [18:23:23]sum+1 = 35060 [18:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 185 20.06.2024 18:23 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104000 ФПД: 74505449339618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182326&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104000&fm=74505449339618&tin=02508201610067®Number=0000000000092785&sum=35000 [18:23:24]StoreToDocumentArchive [18:23:24]shift 354 fd 104000 [18:23:24]save to /storage/0354/doc_00104000 [18:23:24]save last doc name /storage/0354/doc_00104000 to /storage/kkm_last_doc_name [18:23:24]save OK [18:23:24]Clear old archive folders... [18:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:24]tlvbuf is 00897AB0 [18:23:24]SAM_PROTO_ClearQueue [18:23:24]wFMCommunicate request_size=4 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 09 00 00 [18:23:24]Write to MH i2c: E2 08 00 5C 39 80 09 00 00 00 00 00 00 07 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 5C 39 00 90 00 09 [18:23:24]RAPDU: 90 00 [18:23:24]wFMCommunicate OK [18:23:24]SAM_PROTO_ClearQueue done [18:23:24]KKMCreateOFDPacket [18:23:24]OFDProtocolAddRootSTLVToBuf [18:23:24]FM_MakeSignedData [18:23:24]FM_MakeSignedData [18:23:24]SAM_PROTO_SignData [18:23:24]wFMCommunicate request_size=4 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 0D 01 02 [18:23:24]Write to MH i2c: E2 08 00 5D 39 80 0D 01 02 00 00 00 00 0F [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 5D 39 00 90 00 0A [18:23:24]RAPDU: 90 00 [18:23:24]wFMCommunicate OK [18:23:24]wFMCommunicate request_size=255 [18:23:24]MH_SAM_APDU [18:23: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9E 73 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 96 01 00 35 04 06 00 43 [18:23:24]Write to MH i2c: E2 02 01 5E 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9E 73 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 96 01 00 35 04 06 00 43 00 00 C8 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 5E 39 00 90 00 0B [18:23:24]RAPDU: 90 00 [18:23:24]wFMCommunicate OK [18:23:24]wFMCommunicate request_size=10 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 0D 02 02 05 C3 26 D7 7A E2 [18:23:24]Write to MH i2c: E2 0D 00 5F 39 80 0D 02 02 05 00 C3 26 D7 7A E2 00 00 38 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 5F 39 00 90 00 0C [18:23:24]RAPDU: 90 00 [18:23:24]wFMCommunicate OK [18:23:24]wFMCommunicate request_size=4 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 0D 03 02 [18:23:24]Write to MH i2c: E2 08 00 60 39 80 0D 03 02 00 00 00 00 14 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 0B 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 0B 00 60 39 00 5C A5 FD 33 2D EF 18 22 90 00 9C [18:23:24]RAPDU: 5C A5 FD 33 2D EF 18 22 90 00 [18:23:24]wFMCommunicate OK [18:23:24]SAM_PROTO_SignData done [18:23:24]FM_MakeSignedData done [18:23:24]CreateOFDProtocolMessage [18:23:24]wFMCommunicate request_size=4 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 11 00 00 [18:23:24]Write to MH i2c: E2 08 00 61 39 80 11 00 00 00 00 00 00 14 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 17 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 17 00 61 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [18:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:23:24]wFMCommunicate OK [18:23:24]CreateOFDProtocolMessage done [18:23:24]OFDSenderStorePacket 104000 [18:23:24]StoreOFDPacket docnum=104000 [18:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 50 18 07 01 7E C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9E 73 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 96 01 00 35 04 06 00 43 C3 26 D7 7A E2 5C A5 FD 33 2D EF 18 22 [18:23:24]CheckFolder [18:23:24]dirname=/storage/ofd_packets [18:23:24]CheckFolder done [18:23:24]ProducePacketName [18:23:24]name=ofd_packets/00104000 [18:23:24]NVStorageSaveData ofd_packets/00104000 [18:23:24]File name is /storage/ofd_packets/00104000 [18:23:24]Write 301 bytes [18:23:24]NVStorageSaveData done [18:23:24]OFDSenderStorePacket done [18:23:24]KKMCreateOFDPacket done [18:23:24]NVStorageSaveData kkm_last_timestamp [18:23:24]File name is /storage/kkm_last_timestamp [18:23:24]Write 4 bytes [18:23:24]NVStorageSaveData done [18:23:24]ExternCall_PrintAddStr [18:23:24]wPrintStart [18:23:24]Write to MH i2c: 01 00 00 62 39 9B [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 07 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 07 00 62 39 00 00 00 00 00 FF 0F B0 [18:23:24]RasterBufferAndPrint [18:23:24]line Счет N : (1)673377 [18:23:24]line ИНН: 02508201610067 [18:23:24]line Контрольно-Кассовый Чек [18:23:24]line ПРОДАЖА [18:23:24]line ТРК (МРК, ГНК) : 42 [18:23:24]line Товар: 2710124130 [18:23:24]line Аи-92-К-5 [18:23:24]line 5.280 * 66.40 [18:23:24]line = 350.59 [18:23:24]line НДС 12% НСП 1% [18:23:24]line > о реализуемом товаре [18:23:24]line ОКРУГЛЕНИЕ: -0.59 [18:23:24]line ИТОГО: 350.00 [18:23:24]line Внесено: 350.00 [18:23:24]line СДАЧА: 0.00 [18:23:24]line НСП 1% : 3.10 [18:23:24]line НДС 12% : 37.23 [18:23:24]line Наличными: 350.00 [18:23:24]line Безнал.: 0.00 [18:23:24]line Место: АЗС № 120 "Партнер Нефть" [18:23:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:23:24]line СНО: Общий режим [18:23:24]line Чек 185 20.06.2024 18:23 [18:23:24]line Смена: 354 ФФД: 1.0 [18:23:24]line ЗНМ: 0300000164 [18:23:24]line РНМ: 0000000000092785 [18:23:24]line Версия ККМ: 001 [18:23:24]line ФМ: 0000000000875093 [18:23:24]line ФД: 104000 [18:23:24]line ФПД: 74505449339618 [18:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182326&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104000&fm=74505449339618&tin=02508201610067®Number=0000000000092785&sum=35000 [18:23:25]written 0, free lines is 4095 [18:23:25]OFD Sender: Processing packet 104000 [packets to send 17, broken 16] [18:23:25]ProducePacketName [18:23:25]name=ofd_packets/00104000 [18:23:25]OFD Sender: To server: pG, [18:23:25]CommunicateWithHost lk.salyk.kg:30040 [18:23:25]ConnectInit lk.salyk.kg [18:23:25]Connected sock=10 [18:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 50 18 07 01 7E C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 9E 73 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 96 01 00 35 04 06 00 43 C3 26 D7 7A E2 5C A5 FD 33 2D EF 18 22 [18:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 36 60 47 00 12 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 40 96 01 00 F4 03 04 00 23 1A 74 66 B6 04 01 00 00 2B 6A BF 3A 38 5D EC E9 [18:23:25]CommunicateWithHost err = 0 [18:23:25]CheckOFDResponse [18:23:25]1017 (14) - 77093643461234 [18:23:25]1041 (16) - 0000000000875093 [18:23:25]1040 (4) - 104000 [18:23:25]1012 (4) - 20.06.2024 12:01 [18:23:25]1206 (1) - 0 [18:23:25]OFD Sender: Remove packet 104000 [18:23:25]ProducePacketName [18:23:25]name=ofd_packets/00104000 [18:23:25]NVStorageDeleteData [18:23:25]Write to MH i2c: 01 00 00 8D 39 C6 [18:23:25]Write i2c OK [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: 01 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: 01 07 00 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: 01 07 00 8D 39 00 00 00 00 00 D7 0C B0 [18:23:25]RasterBufferAndPrint [18:23:25]line [18:23:25]line [18:23:25]line [18:23:25]line [18:23:25]line [18:23:25]written 0, free lines is 3294 [18:23:25]MH_Cut [18:23:25]Write to MH i2c: D1 01 00 94 39 01 9F [18:23:25]Write i2c OK [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: D1 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: D1 01 00 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: D1 01 00 94 39 00 9E [18:23:25]Write to MH i2c: 01 00 00 95 39 CE [18:23:25]Write i2c OK [18:23:25]MH_I2C_Read... [18:23:26]OFD Sender: No OFD packet to send [18:23:26]*** Cut start [18:23:26]*** Partial cut [18:23:26]*** CUTSNS_PIN = 1 [18:23:26]*** CUTSNS_PIN = 0 [18:23:26]*** Brake cut motor [18:23:27]Read from MH i2c: 01 [18:23:27]MH_I2C_Read... [18:23:27]*** Stop cut motor [18:23:27]*** Cut end [18:23:27]Read from MH i2c: 01 07 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: 01 07 00 95 39 00 00 00 00 00 FF 0F E3 [18:23:27]process_action close_receipt done [18:23:27]requested_data is exist [18:23:27]produce_requested_data [18:23:27]requested_item fm.sn is exist - process it [18:23:27]wFMCommunicate request_size=4 [18:23:27]MH_SAM_APDU [18:23:27]CAPDU: 80 11 00 00 [18:23:27]Write to MH i2c: E2 08 00 96 39 80 11 00 00 00 00 00 00 49 [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:27]Read from MH i2c: E2 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 17 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 17 00 96 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [18:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:23:27]wFMCommunicate OK [18:23:27]requested_item fd.num is exist - process it [18:23:27]SAM_PROTO_GetFieldsCounters [18:23:27]wFMCommunicate request_size=4 [18:23:27]MH_SAM_APDU [18:23:27]CAPDU: 80 13 00 00 [18:23:27]Write to MH i2c: E2 08 00 97 39 80 13 00 00 00 00 00 00 4C [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:27]Read from MH i2c: E2 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 62 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 62 00 97 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 40 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [18:23:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 40 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:27]wFMCommunicate OK [18:23:27]SAM_PROTO_GetFieldsCounters done [18:23:27]requested_item shift.num is exist - process it [18:23:27]requested_item shift.opened is exist - process it [18:23:27]req_shift_opened [18:23:27]FM_GetShiftState [18:23:27]SAM_PROTO_GetShiftState [18:23:27]wFMCommunicate request_size=4 [18:23:27]MH_SAM_APDU [18:23:27]CAPDU: 80 13 01 00 [18:23:27]Write to MH i2c: E2 08 00 98 39 80 13 01 00 00 00 00 00 4E [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:27]Read from MH i2c: E2 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 0E 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 0E 00 98 39 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9D [18:23:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:23:27]wFMCommunicate OK [18:23:27]SAM_PROTO_GetShiftState done [18:23:27]FM_GetShiftState done [18:23:27]req_shift_opened done [18:23:27]requested_item shift.open_date is exist - process it [18:23:27]req_shift_open_date [18:23:27]req_shift_open_date done [18:23:27]produce_requested_data done [18:23:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104000,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:23:27]process_action_free close_receipt [18:23:27]json_value_free [18:23:27]json_value_free done [18:23:27]process_json_proto returns [18:23:27]Send response to host [18:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104000,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:23:27]free response buf [18:23:27]execute_script done [18:23:27]execute_script returns [18:23:27]free content buf [18:23:27]Sock 7.Close socket [18:23:27]Sock 7.Thread stoped [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:24]accept exits with 9 [18:25:24]New connection [18:25:24]New thread 3067207012 created [18:25:24]Thread 3067063652 joined [18:25:24]Waiting for new connection... [18:25:24] Sock 9.Parse request [18:25:24]Sock 9.Check first char [18:25:24]Sock 9.First char is OK [18:25:24]request: POST /json_proto HTTP/1.0 [18:25:24]Method: POST [18:25:24]URL: /json_proto [18:25:24]Method is POST - this is cgi request [18:25:24]url: /json_proto [18:25:24]query_string will be loaded in cgi processing [18:25:24]execute_cgi json_proto POST (null) [18:25:24]execute_cgi path=json_proto method=POST [18:25:24]POST find Content-Length [18:25:24]Host: 172.17.38.133:8080 [18:25:24]Content-Length: 809 [18:25:24]Content-Type: application/json [18:25:24] [18:25:24]POST finish read [18:25:24]Found Content-Length = 809 [18:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 115.000, "sum" : 8383.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8383.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:24]execute_script... [18:25: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)673376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 115.000, "sum" : 8383.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8383.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:24]POST & json_proto [18:25:24]process_json_proto [18:25:24]json parsed OK: [18:25:24]protocol is kg_v1.0 [18:25:24]action value=close_receipt [18:25:24]process_action close_receipt [18:25:24]cmd_close_receipt [18:25:24]MH_GetDate [18:25:24]Write to MH i2c: F0 00 00 99 39 C1 [18:25:24]Write i2c OK [18:25:24]MH_I2C_Read... [18:25:24]Read from MH i2c: F0 [18:25:24]MH_I2C_Read... [18:25:24]Read from MH i2c: F0 09 00 [18:25:24]MH_I2C_Read... [18:25:24]Read from MH i2c: F0 09 00 99 39 00 18 74 74 66 BD 8F 7C 64 5C [18:25:24]GetLastDocTimeStamp 1718907806 [18:25:24]current date 1718907928 [18:25:24]FM_GetShiftState [18:25:24]SAM_PROTO_GetShiftState [18:25:24]wFMCommunicate request_size=4 [18:25:24]MH_SAM_APDU [18:25:24]CAPDU: 80 13 01 00 [18:25:24]Write to MH i2c: E2 08 00 9A 39 80 13 01 00 00 00 00 00 50 [18:25:24]Write i2c OK [18:25:24]MH_I2C_Read... [18:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:24]Read from MH i2c: E2 [18:25:24]MH_I2C_Read... [18:25:24]Read from MH i2c: E2 0E 00 [18:25:24]MH_I2C_Read... [18:25:24]Read from MH i2c: E2 0E 00 9A 39 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9F [18:25:24]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:25:24]wFMCommunicate OK [18:25:24]SAM_PROTO_GetShiftState done [18:25:24]FM_GetShiftState done [18:25:24]opened in 1718843124 [18:25:24]opened+sec_in_day 1718929524 [18:25:24]quantity*price = 838350 [18:25:24]sum+1 = 838351 [18:25:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8383.50 НСП 1% : 74.19 НДС 12% : 890.28 Наличными: 0.00 Безнал.: 8383.50 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 186 20.06.2024 18:25 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104001 ФПД: 190024497752167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182528&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104001&fm=190024497752167&tin=02508201610067®Number=0000000000092785&sum=838350 [18:25:26]StoreToDocumentArchive [18:25:26]shift 354 fd 104001 [18:25:26]save to /storage/0354/doc_00104001 [18:25:26]save last doc name /storage/0354/doc_00104001 to /storage/kkm_last_doc_name [18:25:26]save OK [18:25:26]Clear old archive folders... [18:25:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:25:26]tlvbuf is B6F18710 [18:25:26]SAM_PROTO_ClearQueue [18:25:26]wFMCommunicate request_size=4 [18:25:26]MH_SAM_APDU [18:25:26]CAPDU: 80 09 00 00 [18:25:26]Write to MH i2c: E2 08 00 A7 39 80 09 00 00 00 00 00 00 52 [18:25:26]Write i2c OK [18:25:26]MH_I2C_Read... [18:25:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:26]Read from MH i2c: E2 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 03 00 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 03 00 A7 39 00 90 00 54 [18:25:26]RAPDU: 90 00 [18:25:26]wFMCommunicate OK [18:25:26]SAM_PROTO_ClearQueue done [18:25:26]KKMCreateOFDPacket [18:25:26]OFDProtocolAddRootSTLVToBuf [18:25:26]FM_MakeSignedData [18:25:26]FM_MakeSignedData [18:25:26]SAM_PROTO_SignData [18:25:26]wFMCommunicate request_size=4 [18:25:26]MH_SAM_APDU [18:25:26]CAPDU: 80 0D 01 02 [18:25:26]Write to MH i2c: E2 08 00 A8 39 80 0D 01 02 00 00 00 00 5A [18:25:26]Write i2c OK [18:25:26]MH_I2C_Read... [18:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:26]Read from MH i2c: E2 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 03 00 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 03 00 A8 39 00 90 00 55 [18:25:26]RAPDU: 90 00 [18:25:26]wFMCommunicate OK [18:25:26]wFMCommunicate request_size=255 [18:25:26]MH_SAM_APDU [18:25:26]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 CE CA 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE CA 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 5B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE CA 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 18 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 96 01 00 35 04 06 00 [18:25:26]Write to MH i2c: E2 02 01 A9 39 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 CE CA 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE CA 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 5B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE CA 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 18 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 96 01 00 35 04 06 00 00 00 B3 [18:25:26]Write i2c OK [18:25:26]MH_I2C_Read... [18:25:26]OFD Sender: No OFD packet to send [18:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:26]Read from MH i2c: E2 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 03 00 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 03 00 A9 39 00 90 00 56 [18:25:26]RAPDU: 90 00 [18:25:26]wFMCommunicate OK [18:25:26]wFMCommunicate request_size=11 [18:25:26]MH_SAM_APDU [18:25:26]CAPDU: 80 0D 02 02 06 AC D3 86 AF E8 67 [18:25:26]Write to MH i2c: E2 0E 00 AA 39 80 0D 02 02 06 00 AC D3 86 AF E8 67 00 00 6C [18:25:26]Write i2c OK [18:25:26]MH_I2C_Read... [18:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:26]Read from MH i2c: E2 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 03 00 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 03 00 AA 39 00 90 00 57 [18:25:26]RAPDU: 90 00 [18:25:26]wFMCommunicate OK [18:25:26]wFMCommunicate request_size=4 [18:25:26]MH_SAM_APDU [18:25:26]CAPDU: 80 0D 03 02 [18:25:26]Write to MH i2c: E2 08 00 AB 39 80 0D 03 02 00 00 00 00 5F [18:25:26]Write i2c OK [18:25:26]MH_I2C_Read... [18:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:26]Read from MH i2c: E2 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 0B 00 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 0B 00 AB 39 00 A2 B8 39 35 4C 07 6D 2C 90 00 14 [18:25:26]RAPDU: A2 B8 39 35 4C 07 6D 2C 90 00 [18:25:26]wFMCommunicate OK [18:25:26]SAM_PROTO_SignData done [18:25:26]FM_MakeSignedData done [18:25:26]CreateOFDProtocolMessage [18:25:26]wFMCommunicate request_size=4 [18:25:26]MH_SAM_APDU [18:25:26]CAPDU: 80 11 00 00 [18:25:26]Write to MH i2c: E2 08 00 AC 39 80 11 00 00 00 00 00 00 5F [18:25:26]Write i2c OK [18:25:26]MH_I2C_Read... [18:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:26]Read from MH i2c: E2 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 17 00 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: E2 17 00 AC 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [18:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:25:26]wFMCommunicate OK [18:25:26]CreateOFDProtocolMessage done [18:25:26]OFDSenderStorePacket 104001 [18:25:26]StoreOFDPacket docnum=104001 [18:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 9F A8 08 01 92 78 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 CE CA 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE CA 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 5B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE CA 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 18 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 96 01 00 35 04 06 00 AC D3 86 AF E8 67 A2 B8 39 35 4C 07 6D 2C [18:25:26]CheckFolder [18:25:26]dirname=/storage/ofd_packets [18:25:26]CheckFolder done [18:25:26]ProducePacketName [18:25:26]name=ofd_packets/00104001 [18:25:26]NVStorageSaveData ofd_packets/00104001 [18:25:26]File name is /storage/ofd_packets/00104001 [18:25:26]Write 302 bytes [18:25:26]NVStorageSaveData done [18:25:26]OFDSenderStorePacket done [18:25:26]KKMCreateOFDPacket done [18:25:26]NVStorageSaveData kkm_last_timestamp [18:25:26]File name is /storage/kkm_last_timestamp [18:25:26]Write 4 bytes [18:25:26]NVStorageSaveData done [18:25:26]ExternCall_PrintAddStr [18:25:26]wPrintStart [18:25:26]Write to MH i2c: 01 00 00 AD 39 E6 [18:25:26]Write i2c OK [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: 01 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: 01 07 00 [18:25:26]MH_I2C_Read... [18:25:26]Read from MH i2c: 01 07 00 AD 39 00 00 00 00 00 FF 0F FB [18:25:26]RasterBufferAndPrint [18:25:26]line Счет N : (1)673376 [18:25:26]line ИНН: 02508201610067 [18:25:26]line Контрольно-Кассовый Чек [18:25:26]line ПРОДАЖА [18:25:26]line ТРК (МРК, ГНК) : 21 [18:25:26]line Товар: 2710194210 [18:25:26]line ДТ(л)-К-5 [18:25:26]line 115.000 * 72.90 [18:25:26]line = 8383.50 [18:25:26]line НДС 12% НСП 1% [18:25:26]line > о реализуемом товаре [18:25:26]line ИТОГО: 8383.50 [18:25:26]line НСП 1% : 74.19 [18:25:26]line НДС 12% : 890.28 [18:25:26]line Наличными: 0.00 [18:25:26]line Безнал.: 8383.50 [18:25:26]line Место: АЗС № 120 "Партнер Нефть" [18:25:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:25:26]line СНО: Общий режим [18:25:26]line Чек 186 20.06.2024 18:25 [18:25:26]line Смена: 354 ФФД: 1.0 [18:25:26]line ЗНМ: 0300000164 [18:25:26]line РНМ: 0000000000092785 [18:25:26]line Версия ККМ: 001 [18:25:26]line Платежная система: O! деньги [18:25:26]line ФМ: 0000000000875093 [18:25:26]line ФД: 104001 [18:25:26]line ФПД: 190024497752167 [18:25:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182528&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104001&fm=190024497752167&tin=02508201610067®Number=0000000000092785&sum=838350 [18:25:26]OFD Sender: Processing packet 104001 [packets to send 17, broken 16] [18:25:26]ProducePacketName [18:25:26]name=ofd_packets/00104001 [18:25:26]OFD Sender: To server: pG, [18:25:26]CommunicateWithHost lk.salyk.kg:30040 [18:25:26]ConnectInit lk.salyk.kg [18:25:26]written 0, free lines is 4095 [18:25:27]Connected sock=10 [18:25:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 9F A8 08 01 92 78 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 38 C1 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 CE CA 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE CA 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FB 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 5B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE CA 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 18 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 96 01 00 35 04 06 00 AC D3 86 AF E8 67 A2 B8 39 35 4C 07 6D 2C [18:25:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D0 C8 47 00 B4 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 41 96 01 00 F4 03 04 00 9C 1A 74 66 B6 04 01 00 00 A4 57 A3 99 A2 23 19 3F [18:25:27]CommunicateWithHost err = 0 [18:25:27]CheckOFDResponse [18:25:27]1017 (14) - 77093643461234 [18:25:27]1041 (16) - 0000000000875093 [18:25:27]1040 (4) - 104001 [18:25:27]1012 (4) - 20.06.2024 12:03 [18:25:27]1206 (1) - 0 [18:25:27]OFD Sender: Remove packet 104001 [18:25:27]ProducePacketName [18:25:27]name=ofd_packets/00104001 [18:25:27]NVStorageDeleteData [18:25:27]Write to MH i2c: 01 00 00 D7 39 10 [18:25:27]Write i2c OK [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: 01 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: 01 07 00 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: 01 07 00 D7 39 00 00 00 00 00 EF 0C 12 [18:25:27]RasterBufferAndPrint [18:25:27]line [18:25:27]line [18:25:27]line [18:25:27]line [18:25:27]line [18:25:27]written 0, free lines is 3318 [18:25:27]MH_Cut [18:25:27]Write to MH i2c: D1 01 00 DE 39 01 E9 [18:25:27]Write i2c OK [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: D1 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: D1 01 00 [18:25:27]MH_I2C_Read... [18:25:27]Read from MH i2c: D1 01 00 DE 39 00 E8 [18:25:27]Write to MH i2c: 01 00 00 DF 39 18 [18:25:27]Write i2c OK [18:25:27]MH_I2C_Read... [18:25:27]OFD Sender: No OFD packet to send [18:25:28]*** Cut start [18:25:28]*** Partial cut [18:25:28]*** CUTSNS_PIN = 1 [18:25:28]*** CUTSNS_PIN = 0 [18:25:28]*** Brake cut motor [18:25:28]Read from MH i2c: 01 [18:25:28]MH_I2C_Read... [18:25:28]*** Stop cut motor [18:25:28]*** Cut end [18:25:28]Read from MH i2c: 01 07 00 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: 01 07 00 DF 39 00 00 00 00 00 FF 0F 2D [18:25:28]process_action close_receipt done [18:25:28]requested_data is exist [18:25:28]produce_requested_data [18:25:28]requested_item fm.sn is exist - process it [18:25:28]wFMCommunicate request_size=4 [18:25:28]MH_SAM_APDU [18:25:28]CAPDU: 80 11 00 00 [18:25:28]Write to MH i2c: E2 08 00 E0 39 80 11 00 00 00 00 00 00 93 [18:25:28]Write i2c OK [18:25:28]MH_I2C_Read... [18:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:28]Read from MH i2c: E2 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 17 00 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 17 00 E0 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [18:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:25:28]wFMCommunicate OK [18:25:28]requested_item fd.num is exist - process it [18:25:28]SAM_PROTO_GetFieldsCounters [18:25:28]wFMCommunicate request_size=4 [18:25:28]MH_SAM_APDU [18:25:28]CAPDU: 80 13 00 00 [18:25:28]Write to MH i2c: E2 08 00 E1 39 80 13 00 00 00 00 00 00 96 [18:25:28]Write i2c OK [18:25:28]MH_I2C_Read... [18:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:28]Read from MH i2c: E2 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 62 00 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 62 00 E1 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 41 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [18:25:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 41 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:28]wFMCommunicate OK [18:25:28]SAM_PROTO_GetFieldsCounters done [18:25:28]requested_item shift.num is exist - process it [18:25:28]requested_item shift.opened is exist - process it [18:25:28]req_shift_opened [18:25:28]FM_GetShiftState [18:25:28]SAM_PROTO_GetShiftState [18:25:28]wFMCommunicate request_size=4 [18:25:28]MH_SAM_APDU [18:25:28]CAPDU: 80 13 01 00 [18:25:28]Write to MH i2c: E2 08 00 E2 39 80 13 01 00 00 00 00 00 98 [18:25:28]Write i2c OK [18:25:28]MH_I2C_Read... [18:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:28]Read from MH i2c: E2 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 0E 00 [18:25:28]MH_I2C_Read... [18:25:28]Read from MH i2c: E2 0E 00 E2 39 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E7 [18:25:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:25:28]wFMCommunicate OK [18:25:28]SAM_PROTO_GetShiftState done [18:25:28]FM_GetShiftState done [18:25:28]req_shift_opened done [18:25:28]requested_item shift.open_date is exist - process it [18:25:28]req_shift_open_date [18:25:28]req_shift_open_date done [18:25:28]produce_requested_data done [18:25:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104001,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:25:28]process_action_free close_receipt [18:25:28]json_value_free [18:25:28]json_value_free done [18:25:28]process_json_proto returns [18:25:28]Send response to host [18:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104001,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:25:28]free response buf [18:25:28]execute_script done [18:25:28]execute_script returns [18:25:28]free content buf [18:25:28]Sock 9.Close socket [18:25:28]Sock 9.Thread stoped [18:25:29]accept exits with 7 [18:25:29]New connection [18:25:29]New thread 3067063652 created [18:25:29]Thread 3067207012 joined [18:25:29]Waiting for new connection... [18:25:29] Sock 7.Parse request [18:25:29]Sock 7.Check first char [18:25:29]Sock 7.First char is OK [18:25:29]request: POST /json_proto HTTP/1.0 [18:25:29]Method: POST [18:25:29]URL: /json_proto [18:25:29]Method is POST - this is cgi request [18:25:29]url: /json_proto [18:25:29]query_string will be loaded in cgi processing [18:25:29]execute_cgi json_proto POST (null) [18:25:29]execute_cgi path=json_proto method=POST [18:25:29]POST find Content-Length [18:25:29]Host: 172.17.38.133:8080 [18:25:29]Content-Length: 687 [18:25:29]Content-Type: application/json [18:25:29] [18:25:29]POST finish read [18:25:29]Found Content-Length = 687 [18:25:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:29]execute_script... [18:25: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)673378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:29]POST & json_proto [18:25:29]process_json_proto [18:25:29]json parsed OK: [18:25:29]protocol is kg_v1.0 [18:25:29]action value=close_receipt [18:25:29]process_action close_receipt [18:25:29]cmd_close_receipt [18:25:29]MH_GetDate [18:25:29]Write to MH i2c: F0 00 00 E3 39 0B [18:25:29]Write i2c OK [18:25:29]MH_I2C_Read... [18:25:29]Read from MH i2c: F0 [18:25:29]MH_I2C_Read... [18:25:29]Read from MH i2c: F0 09 00 [18:25:29]MH_I2C_Read... [18:25:29]Read from MH i2c: F0 09 00 E3 39 00 1C 74 74 66 BD 8F 7C 64 AA [18:25:29]GetLastDocTimeStamp 1718907928 [18:25:29]current date 1718907932 [18:25:29]FM_GetShiftState [18:25:29]SAM_PROTO_GetShiftState [18:25:29]wFMCommunicate request_size=4 [18:25:29]MH_SAM_APDU [18:25:29]CAPDU: 80 13 01 00 [18:25:29]Write to MH i2c: E2 08 00 E4 39 80 13 01 00 00 00 00 00 9A [18:25:29]Write i2c OK [18:25:29]MH_I2C_Read... [18:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:29]Read from MH i2c: E2 [18:25:29]MH_I2C_Read... [18:25:29]Read from MH i2c: E2 0E 00 [18:25:29]MH_I2C_Read... [18:25:29]Read from MH i2c: E2 0E 00 E4 39 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E9 [18:25:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:25:29]wFMCommunicate OK [18:25:29]SAM_PROTO_GetShiftState done [18:25:29]FM_GetShiftState done [18:25:29]opened in 1718843124 [18:25:29]opened+sec_in_day 1718929524 [18:25:29]quantity*price = 100018 [18:25:29]sum+1 = 100020 [18:25:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 187 20.06.2024 18:25 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104002 ФПД: 275895939126163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182532&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104002&fm=275895939126163&tin=02508201610067®Number=0000000000092785&sum=100000 [18:25:30]StoreToDocumentArchive [18:25:30]shift 354 fd 104002 [18:25:30]save to /storage/0354/doc_00104002 [18:25:30]save last doc name /storage/0354/doc_00104002 to /storage/kkm_last_doc_name [18:25:30]save OK [18:25:30]Clear old archive folders... [18:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:25:30]tlvbuf is 00864F50 [18:25:30]SAM_PROTO_ClearQueue [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 09 00 00 [18:25:30]Write to MH i2c: E2 08 00 F1 39 80 09 00 00 00 00 00 00 9C [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 F1 39 00 90 00 9E [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]SAM_PROTO_ClearQueue done [18:25:30]KKMCreateOFDPacket [18:25:30]OFDProtocolAddRootSTLVToBuf [18:25:30]FM_MakeSignedData [18:25:30]FM_MakeSignedData [18:25:30]SAM_PROTO_SignData [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 0D 01 02 [18:25:30]Write to MH i2c: E2 08 00 F2 39 80 0D 01 02 00 00 00 00 A4 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 03 00 F2 39 00 90 00 9F [18:25:30]RAPDU: 90 00 [18:25:30]wFMCommunicate OK [18:25:30]wFMCommunicate request_size=255 [18:25:30]MH_SAM_APDU [18:25:30]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 1C 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 96 01 00 35 04 06 00 [18:25:30]Write to MH i2c: E2 02 01 F3 39 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 1C 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 96 01 00 35 04 06 00 00 00 59 [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:31]Read from MH i2c: E2 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 F3 39 00 90 00 A0 [18:25:31]RAPDU: 90 00 [18:25:31]wFMCommunicate OK [18:25:31]wFMCommunicate request_size=11 [18:25:31]MH_SAM_APDU [18:25:31]CAPDU: 80 0D 02 02 06 FA ED 07 72 53 93 [18:25:31]Write to MH i2c: E2 0E 00 F4 39 80 0D 02 02 06 00 FA ED 07 72 53 93 00 00 F9 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:31]Read from MH i2c: E2 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 F4 39 00 90 00 A1 [18:25:31]RAPDU: 90 00 [18:25:31]wFMCommunicate OK [18:25:31]wFMCommunicate request_size=4 [18:25:31]MH_SAM_APDU [18:25:31]CAPDU: 80 0D 03 02 [18:25:31]Write to MH i2c: E2 08 00 F5 39 80 0D 03 02 00 00 00 00 A9 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:31]Read from MH i2c: E2 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 0B 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 0B 00 F5 39 00 60 DD 02 66 3B 1E 4F 24 90 00 1B [18:25:31]RAPDU: 60 DD 02 66 3B 1E 4F 24 90 00 [18:25:31]wFMCommunicate OK [18:25:31]SAM_PROTO_SignData done [18:25:31]FM_MakeSignedData done [18:25:31]CreateOFDProtocolMessage [18:25:31]wFMCommunicate request_size=4 [18:25:31]MH_SAM_APDU [18:25:31]CAPDU: 80 11 00 00 [18:25:31]Write to MH i2c: E2 08 00 F6 39 80 11 00 00 00 00 00 00 A9 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:31]Read from MH i2c: E2 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 17 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 17 00 F6 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FC [18:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:25:31]wFMCommunicate OK [18:25:31]CreateOFDProtocolMessage done [18:25:31]OFDSenderStorePacket 104002 [18:25:31]StoreOFDPacket docnum=104002 [18:25:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7D F2 08 01 BF 7C 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 1C 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 96 01 00 35 04 06 00 FA ED 07 72 53 93 60 DD 02 66 3B 1E 4F 24 [18:25:31]CheckFolder [18:25:31]dirname=/storage/ofd_packets [18:25:31]CheckFolder done [18:25:31]ProducePacketName [18:25:31]name=ofd_packets/00104002 [18:25:31]NVStorageSaveData ofd_packets/00104002 [18:25:31]File name is /storage/ofd_packets/00104002 [18:25:31]Write 302 bytes [18:25:31]NVStorageSaveData done [18:25:31]OFDSenderStorePacket done [18:25:31]KKMCreateOFDPacket done [18:25:31]NVStorageSaveData kkm_last_timestamp [18:25:31]File name is /storage/kkm_last_timestamp [18:25:31]Write 4 bytes [18:25:31]NVStorageSaveData done [18:25:31]ExternCall_PrintAddStr [18:25:31]wPrintStart [18:25:31]Write to MH i2c: 01 00 00 F7 39 30 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 F7 39 00 00 00 00 00 FF 0F 45 [18:25:31]RasterBufferAndPrint [18:25:31]line Счет N : (1)673378 [18:25:31]line ИНН: 02508201610067 [18:25:31]line Контрольно-Кассовый Чек [18:25:31]line ПРОДАЖА [18:25:31]line ТРК (МРК, ГНК) : 11 [18:25:31]line Товар: 2710194210 [18:25:31]line ДТ(л)-К-5 [18:25:31]line 13.720 * 72.90 [18:25:31]line = 1000.19 [18:25:31]line НДС 12% НСП 1% [18:25:31]line > о реализуемом товаре [18:25:31]line ОКРУГЛЕНИЕ: -0.19 [18:25:31]line ИТОГО: 1000.00 [18:25:31]line Внесено: 1000.00 [18:25:31]line СДАЧА: 0.00 [18:25:31]line НСП 1% : 8.85 [18:25:31]line НДС 12% : 106.21 [18:25:31]line Наличными: 1000.00 [18:25:31]line Безнал.: 0.00 [18:25:31]line Место: АЗС № 120 "Партнер Нефть" [18:25:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:25:31]line СНО: Общий режим [18:25:31]line Чек 187 20.06.2024 18:25 [18:25:31]line Смена: 354 ФФД: 1.0 [18:25:31]line ЗНМ: 0300000164 [18:25:31]line РНМ: 0000000000092785 [18:25:31]line Версия ККМ: 001 [18:25:31]line ФМ: 0000000000875093 [18:25:31]line ФД: 104002 [18:25:31]line ФПД: 275895939126163 [18:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182532&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104002&fm=275895939126163&tin=02508201610067®Number=0000000000092785&sum=100000 [18:25:31]written 0, free lines is 4095 [18:25:31]OFD Sender: Processing packet 104002 [packets to send 17, broken 16] [18:25:31]ProducePacketName [18:25:31]name=ofd_packets/00104002 [18:25:31]OFD Sender: To server: pG, [18:25:31]CommunicateWithHost lk.salyk.kg:30040 [18:25:31]ConnectInit lk.salyk.kg [18:25:31]Connected sock=10 [18:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 7D F2 08 01 BF 7C 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BB 00 00 00 F4 03 04 00 1C 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 96 01 00 35 04 06 00 FA ED 07 72 53 93 60 DD 02 66 3B 1E 4F 24 [18:25:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 86 0B 47 00 78 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 42 96 01 00 F4 03 04 00 A1 1A 74 66 B6 04 01 00 00 62 14 B5 6D 3F 69 EA 9A [18:25:31]CommunicateWithHost err = 0 [18:25:31]CheckOFDResponse [18:25:31]1017 (14) - 77093643461234 [18:25:31]1041 (16) - 0000000000875093 [18:25:31]1040 (4) - 104002 [18:25:31]1012 (4) - 20.06.2024 12:03 [18:25:31]1206 (1) - 0 [18:25:31]OFD Sender: Remove packet 104002 [18:25:31]ProducePacketName [18:25:31]name=ofd_packets/00104002 [18:25:31]NVStorageDeleteData [18:25:31]Write to MH i2c: 01 00 00 22 3A 5C [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 22 3A 00 00 00 00 00 EB 0C 5A [18:25:31]RasterBufferAndPrint [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]line [18:25:31]written 0, free lines is 3319 [18:25:31]MH_Cut [18:25:31]Write to MH i2c: D1 01 00 29 3A 01 35 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 01 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: D1 01 00 29 3A 00 34 [18:25:31]Write to MH i2c: 01 00 00 2A 3A 64 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:32]OFD Sender: No OFD packet to send [18:25:32]*** Cut start [18:25:32]*** Partial cut [18:25:32]*** CUTSNS_PIN = 1 [18:25:32]*** CUTSNS_PIN = 0 [18:25:32]*** Brake cut motor [18:25:33]Read from MH i2c: 01 [18:25:33]MH_I2C_Read... [18:25:33]*** Stop cut motor [18:25:33]*** Cut end [18:25:33]Read from MH i2c: 01 07 00 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: 01 07 00 2A 3A 00 00 00 00 00 FF 0F 79 [18:25:33]process_action close_receipt done [18:25:33]requested_data is exist [18:25:33]produce_requested_data [18:25:33]requested_item fm.sn is exist - process it [18:25:33]wFMCommunicate request_size=4 [18:25:33]MH_SAM_APDU [18:25:33]CAPDU: 80 11 00 00 [18:25:33]Write to MH i2c: E2 08 00 2B 3A 80 11 00 00 00 00 00 00 DF [18:25:33]Write i2c OK [18:25:33]MH_I2C_Read... [18:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:33]Read from MH i2c: E2 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: E2 17 00 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: E2 17 00 2B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [18:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:25:33]wFMCommunicate OK [18:25:33]requested_item fd.num is exist - process it [18:25:33]SAM_PROTO_GetFieldsCounters [18:25:33]wFMCommunicate request_size=4 [18:25:33]MH_SAM_APDU [18:25:33]CAPDU: 80 13 00 00 [18:25:33]Write to MH i2c: E2 08 00 2C 3A 80 13 00 00 00 00 00 00 E2 [18:25:33]Write i2c OK [18:25:33]MH_I2C_Read... [18:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:33]Read from MH i2c: E2 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: E2 62 00 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: E2 62 00 2C 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 42 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [18:25:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 42 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:33]wFMCommunicate OK [18:25:33]SAM_PROTO_GetFieldsCounters done [18:25:33]requested_item shift.num is exist - process it [18:25:33]requested_item shift.opened is exist - process it [18:25:33]req_shift_opened [18:25:33]FM_GetShiftState [18:25:33]SAM_PROTO_GetShiftState [18:25:33]wFMCommunicate request_size=4 [18:25:33]MH_SAM_APDU [18:25:33]CAPDU: 80 13 01 00 [18:25:33]Write to MH i2c: E2 08 00 2D 3A 80 13 01 00 00 00 00 00 E4 [18:25:33]Write i2c OK [18:25:33]MH_I2C_Read... [18:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:33]Read from MH i2c: E2 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: E2 0E 00 [18:25:33]MH_I2C_Read... [18:25:33]Read from MH i2c: E2 0E 00 2D 3A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 33 [18:25:33]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:25:33]wFMCommunicate OK [18:25:33]SAM_PROTO_GetShiftState done [18:25:33]FM_GetShiftState done [18:25:33]req_shift_opened done [18:25:33]requested_item shift.open_date is exist - process it [18:25:33]req_shift_open_date [18:25:33]req_shift_open_date done [18:25:33]produce_requested_data done [18:25:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104002,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:25:33]process_action_free close_receipt [18:25:33]json_value_free [18:25:33]json_value_free done [18:25:33]process_json_proto returns [18:25:33]Send response to host [18:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104002,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:25:33]free response buf [18:25:33]execute_script done [18:25:33]execute_script returns [18:25:33]free content buf [18:25:33]Sock 7.Close socket [18:25:33]Sock 7.Thread stoped [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:25]accept exits with 9 [18:26:25]New connection [18:26:25]New thread 3067207012 created [18:26:25]Thread 3067063652 joined [18:26:25]Waiting for new connection... [18:26:25] Sock 9.Parse request [18:26:25]Sock 9.Check first char [18:26:25]Sock 9.First char is OK [18:26:25]request: POST /json_proto HTTP/1.0 [18:26:25]Method: POST [18:26:25]URL: /json_proto [18:26:25]Method is POST - this is cgi request [18:26:25]url: /json_proto [18:26:25]query_string will be loaded in cgi processing [18:26:25]execute_cgi json_proto POST (null) [18:26:25]execute_cgi path=json_proto method=POST [18:26:25]POST find Content-Length [18:26:25]Host: 172.17.38.133:8080 [18:26:25]Content-Length: 683 [18:26:25]Content-Type: application/json [18:26:25] [18:26:25]POST finish read [18:26:25]Found Content-Length = 683 [18:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 36.150, "sum" : 2400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:25]execute_script... [18:26:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 36.150, "sum" : 2400.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:25]POST & json_proto [18:26:25]process_json_proto [18:26:25]json parsed OK: [18:26:25]protocol is kg_v1.0 [18:26:25]action value=close_receipt [18:26:25]process_action close_receipt [18:26:25]cmd_close_receipt [18:26:25]MH_GetDate [18:26:25]Write to MH i2c: F0 00 00 2E 3A 57 [18:26:25]Write i2c OK [18:26:25]MH_I2C_Read... [18:26:25]Read from MH i2c: F0 [18:26:25]MH_I2C_Read... [18:26:25]Read from MH i2c: F0 09 00 [18:26:25]MH_I2C_Read... [18:26:25]Read from MH i2c: F0 09 00 2E 3A 00 54 74 74 66 BD 8F 7C 64 2E [18:26:25]GetLastDocTimeStamp 1718907932 [18:26:25]current date 1718907988 [18:26:25]FM_GetShiftState [18:26:25]SAM_PROTO_GetShiftState [18:26:25]wFMCommunicate request_size=4 [18:26:25]MH_SAM_APDU [18:26:25]CAPDU: 80 13 01 00 [18:26:25]Write to MH i2c: E2 08 00 2F 3A 80 13 01 00 00 00 00 00 E6 [18:26:25]Write i2c OK [18:26:25]MH_I2C_Read... [18:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:25]Read from MH i2c: E2 [18:26:25]MH_I2C_Read... [18:26:25]Read from MH i2c: E2 0E 00 [18:26:25]MH_I2C_Read... [18:26:25]Read from MH i2c: E2 0E 00 2F 3A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 35 [18:26:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:26:25]wFMCommunicate OK [18:26:25]SAM_PROTO_GetShiftState done [18:26:25]FM_GetShiftState done [18:26:25]opened in 1718843124 [18:26:25]opened+sec_in_day 1718929524 [18:26:25]quantity*price = 240036 [18:26:25]sum+1 = 240037 [18:26:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 2400.00 Внесено: 15000.00 СДАЧА: 12600.00 НСП 1% : 21.24 НДС 12% : 254.90 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 188 20.06.2024 18:26 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104003 ФПД: 242552033815997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182628&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104003&fm=242552033815997&tin=02508201610067®Number=0000000000092785&sum=240000 [18:26:26]StoreToDocumentArchive [18:26:26]shift 354 fd 104003 [18:26:26]save to /storage/0354/doc_00104003 [18:26:26]save last doc name /storage/0354/doc_00104003 to /storage/kkm_last_doc_name [18:26:26]save OK [18:26:26]Clear old archive folders... [18:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:26]tlvbuf is 00870130 [18:26:26]SAM_PROTO_ClearQueue [18:26:26]wFMCommunicate request_size=4 [18:26:26]MH_SAM_APDU [18:26:26]CAPDU: 80 09 00 00 [18:26:26]Write to MH i2c: E2 08 00 3C 3A 80 09 00 00 00 00 00 00 E8 [18:26:26]Write i2c OK [18:26:26]MH_I2C_Read... [18:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:26]Read from MH i2c: E2 [18:26:26]MH_I2C_Read... [18:26:26]Read from MH i2c: E2 03 00 [18:26:26]MH_I2C_Read... [18:26:26]Read from MH i2c: E2 03 00 3C 3A 00 90 00 EA [18:26:26]RAPDU: 90 00 [18:26:26]wFMCommunicate OK [18:26:26]SAM_PROTO_ClearQueue done [18:26:26]KKMCreateOFDPacket [18:26:26]OFDProtocolAddRootSTLVToBuf [18:26:26]FM_MakeSignedData [18:26:26]FM_MakeSignedData [18:26:26]SAM_PROTO_SignData [18:26:26]wFMCommunicate request_size=4 [18:26:26]MH_SAM_APDU [18:26:26]CAPDU: 80 0D 01 02 [18:26:26]Write to MH i2c: E2 08 00 3D 3A 80 0D 01 02 00 00 00 00 F0 [18:26:26]Write i2c OK [18:26:26]MH_I2C_Read... [18:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:26]Read from MH i2c: E2 [18:26:26]MH_I2C_Read... [18:26:26]Read from MH i2c: E2 03 00 [18:26:26]MH_I2C_Read... [18:26:26]Read from MH i2c: E2 03 00 3D 3A 00 90 00 EB [18:26:26]RAPDU: 90 00 [18:26:26]wFMCommunicate OK [18:26:26]wFMCommunicate request_size=255 [18:26:26]MH_SAM_APDU [18:26:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 8D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 54 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 96 01 00 35 04 06 00 DC [18:26:26]Write to MH i2c: E2 02 01 3E 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 8D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 54 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 96 01 00 35 04 06 00 DC 00 00 34 [18:26:26]Write i2c OK [18:26:26]MH_I2C_Read... [18:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:27]Read from MH i2c: E2 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 03 00 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 03 00 3E 3A 00 90 00 EC [18:26:27]RAPDU: 90 00 [18:26:27]wFMCommunicate OK [18:26:27]wFMCommunicate request_size=10 [18:26:27]MH_SAM_APDU [18:26:27]CAPDU: 80 0D 02 02 05 99 8B D0 AD BD [18:26:27]Write to MH i2c: E2 0D 00 3F 3A 80 0D 02 02 05 00 99 8B D0 AD BD 00 00 5B [18:26:27]Write i2c OK [18:26:27]MH_I2C_Read... [18:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:27]Read from MH i2c: E2 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 03 00 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 03 00 3F 3A 00 90 00 ED [18:26:27]RAPDU: 90 00 [18:26:27]wFMCommunicate OK [18:26:27]wFMCommunicate request_size=4 [18:26:27]MH_SAM_APDU [18:26:27]CAPDU: 80 0D 03 02 [18:26:27]Write to MH i2c: E2 08 00 40 3A 80 0D 03 02 00 00 00 00 F5 [18:26:27]Write i2c OK [18:26:27]MH_I2C_Read... [18:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:27]Read from MH i2c: E2 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 0B 00 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 0B 00 40 3A 00 F8 EC 27 49 46 44 9F BF 90 00 32 [18:26:27]RAPDU: F8 EC 27 49 46 44 9F BF 90 00 [18:26:27]wFMCommunicate OK [18:26:27]SAM_PROTO_SignData done [18:26:27]FM_MakeSignedData done [18:26:27]CreateOFDProtocolMessage [18:26:27]wFMCommunicate request_size=4 [18:26:27]MH_SAM_APDU [18:26:27]CAPDU: 80 11 00 00 [18:26:27]Write to MH i2c: E2 08 00 41 3A 80 11 00 00 00 00 00 00 F5 [18:26:27]Write i2c OK [18:26:27]MH_I2C_Read... [18:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:27]Read from MH i2c: E2 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 17 00 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 17 00 41 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 48 [18:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:26:27]wFMCommunicate OK [18:26:27]CreateOFDProtocolMessage done [18:26:27]OFDSenderStorePacket 104003 [18:26:27]StoreOFDPacket docnum=104003 [18:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F6 D4 07 01 9C F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 8D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 54 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 96 01 00 35 04 06 00 DC 99 8B D0 AD BD F8 EC 27 49 46 44 9F BF [18:26:27]CheckFolder [18:26:27]dirname=/storage/ofd_packets [18:26:27]CheckFolder done [18:26:27]ProducePacketName [18:26:27]name=ofd_packets/00104003 [18:26:27]NVStorageSaveData ofd_packets/00104003 [18:26:27]File name is /storage/ofd_packets/00104003 [18:26:27]Write 301 bytes [18:26:27]NVStorageSaveData done [18:26:27]OFDSenderStorePacket done [18:26:27]KKMCreateOFDPacket done [18:26:27]NVStorageSaveData kkm_last_timestamp [18:26:27]File name is /storage/kkm_last_timestamp [18:26:27]Write 4 bytes [18:26:27]NVStorageSaveData done [18:26:27]ExternCall_PrintAddStr [18:26:27]wPrintStart [18:26:27]Write to MH i2c: 01 00 00 42 3A 7C [18:26:27]Write i2c OK [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: 01 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: 01 07 00 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: 01 07 00 42 3A 00 00 00 00 00 FF 0F 91 [18:26:27]RasterBufferAndPrint [18:26:27]line Счет N : (1)673379 [18:26:27]line ИНН: 02508201610067 [18:26:27]line Контрольно-Кассовый Чек [18:26:27]line ПРОДАЖА [18:26:27]line ТРК (МРК, ГНК) : 42 [18:26:27]line Товар: 2710124130 [18:26:27]line Аи-92-К-5 [18:26:27]line 36.150 * 66.40 [18:26:27]line = 2400.36 [18:26:27]line НДС 12% НСП 1% [18:26:27]line > о реализуемом товаре [18:26:27]line ОКРУГЛЕНИЕ: -0.36 [18:26:27]line ИТОГО: 2400.00 [18:26:27]line Внесено: 15000.00 [18:26:27]line СДАЧА: 12600.00 [18:26:27]line НСП 1% : 21.24 [18:26:27]line НДС 12% : 254.90 [18:26:27]line Наличными: 2400.00 [18:26:27]line Безнал.: 0.00 [18:26:27]line Место: АЗС № 120 "Партнер Нефть" [18:26:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:26:27]line СНО: Общий режим [18:26:27]line Чек 188 20.06.2024 18:26 [18:26:27]line Смена: 354 ФФД: 1.0 [18:26:27]line ЗНМ: 0300000164 [18:26:27]line РНМ: 0000000000092785 [18:26:27]line Версия ККМ: 001 [18:26:27]line ФМ: 0000000000875093 [18:26:27]line ФД: 104003 [18:26:27]line ФПД: 242552033815997 [18:26:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182628&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104003&fm=242552033815997&tin=02508201610067®Number=0000000000092785&sum=240000 [18:26:27]OFD Sender: Processing packet 104003 [packets to send 17, broken 16] [18:26:27]ProducePacketName [18:26:27]name=ofd_packets/00104003 [18:26:27]OFD Sender: To server: pG, [18:26:27]CommunicateWithHost lk.salyk.kg:30040 [18:26:27]ConnectInit lk.salyk.kg [18:26:27]written 0, free lines is 4095 [18:26:27]Connected sock=10 [18:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F6 D4 07 01 9C F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 8D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 54 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 96 01 00 35 04 06 00 DC 99 8B D0 AD BD F8 EC 27 49 46 44 9F BF [18:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A4 F4 47 00 25 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 43 96 01 00 F4 03 04 00 D9 1A 74 66 B6 04 01 00 00 D1 31 13 72 13 05 33 34 [18:26:27]CommunicateWithHost err = 0 [18:26:27]CheckOFDResponse [18:26:27]1017 (14) - 77093643461234 [18:26:27]1041 (16) - 0000000000875093 [18:26:27]1040 (4) - 104003 [18:26:27]1012 (4) - 20.06.2024 12:04 [18:26:27]1206 (1) - 0 [18:26:27]OFD Sender: Remove packet 104003 [18:26:27]ProducePacketName [18:26:27]name=ofd_packets/00104003 [18:26:27]NVStorageDeleteData [18:26:27]Write to MH i2c: 01 00 00 6D 3A A7 [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: 01 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: 01 07 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: 01 07 00 6D 3A 00 00 00 00 00 EF 0C A9 [18:26:28]RasterBufferAndPrint [18:26:28]line [18:26:28]line [18:26:28]line [18:26:28]line [18:26:28]line [18:26:28]written 0, free lines is 3317 [18:26:28]MH_Cut [18:26:28]Write to MH i2c: D1 01 00 74 3A 01 80 [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: D1 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: D1 01 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: D1 01 00 74 3A 00 7F [18:26:28]Write to MH i2c: 01 00 00 75 3A AF [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]OFD Sender: No OFD packet to send [18:26:28]*** Cut start [18:26:28]*** Partial cut [18:26:28]*** CUTSNS_PIN = 1 [18:26:28]*** CUTSNS_PIN = 0 [18:26:28]*** Brake cut motor [18:26:29]Read from MH i2c: 01 [18:26:29]MH_I2C_Read... [18:26:29]*** Stop cut motor [18:26:29]*** Cut end [18:26:29]Read from MH i2c: 01 07 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: 01 07 00 75 3A 00 00 00 00 00 FF 0F C4 [18:26:29]process_action close_receipt done [18:26:29]requested_data is exist [18:26:29]produce_requested_data [18:26:29]requested_item fm.sn is exist - process it [18:26:29]wFMCommunicate request_size=4 [18:26:29]MH_SAM_APDU [18:26:29]CAPDU: 80 11 00 00 [18:26:29]Write to MH i2c: E2 08 00 76 3A 80 11 00 00 00 00 00 00 2A [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:29]Read from MH i2c: E2 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: E2 17 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: E2 17 00 76 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [18:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:26:29]wFMCommunicate OK [18:26:29]requested_item fd.num is exist - process it [18:26:29]SAM_PROTO_GetFieldsCounters [18:26:29]wFMCommunicate request_size=4 [18:26:29]MH_SAM_APDU [18:26:29]CAPDU: 80 13 00 00 [18:26:29]Write to MH i2c: E2 08 00 77 3A 80 13 00 00 00 00 00 00 2D [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:29]Read from MH i2c: E2 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: E2 62 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: E2 62 00 77 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 43 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [18:26:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 43 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:29]wFMCommunicate OK [18:26:29]SAM_PROTO_GetFieldsCounters done [18:26:29]requested_item shift.num is exist - process it [18:26:29]requested_item shift.opened is exist - process it [18:26:29]req_shift_opened [18:26:29]FM_GetShiftState [18:26:29]SAM_PROTO_GetShiftState [18:26:29]wFMCommunicate request_size=4 [18:26:29]MH_SAM_APDU [18:26:29]CAPDU: 80 13 01 00 [18:26:29]Write to MH i2c: E2 08 00 78 3A 80 13 01 00 00 00 00 00 2F [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:29]Read from MH i2c: E2 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: E2 0E 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: E2 0E 00 78 3A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 7E [18:26:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:26:29]wFMCommunicate OK [18:26:29]SAM_PROTO_GetShiftState done [18:26:29]FM_GetShiftState done [18:26:29]req_shift_opened done [18:26:29]requested_item shift.open_date is exist - process it [18:26:29]req_shift_open_date [18:26:29]req_shift_open_date done [18:26:29]produce_requested_data done [18:26:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104003,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:26:29]process_action_free close_receipt [18:26:29]json_value_free [18:26:29]json_value_free done [18:26:29]process_json_proto returns [18:26:29]Send response to host [18:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104003,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:26:29]free response buf [18:26:29]execute_script done [18:26:29]execute_script returns [18:26:29]free content buf [18:26:29]Sock 9.Close socket [18:26:29]Sock 9.Thread stoped [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]accept exits with 7 [18:26:48]New connection [18:26:48]New thread 3067063652 created [18:26:48]Thread 3067207012 joined [18:26:48]Waiting for new connection... [18:26:48] Sock 7.Parse request [18:26:48]Sock 7.Check first char [18:26:48]Sock 7.First char is OK [18:26:48]request: POST /json_proto HTTP/1.0 [18:26:48]Method: POST [18:26:48]URL: /json_proto [18:26:48]Method is POST - this is cgi request [18:26:48]url: /json_proto [18:26:48]query_string will be loaded in cgi processing [18:26:48]execute_cgi json_proto POST (null) [18:26:48]execute_cgi path=json_proto method=POST [18:26:48]POST find Content-Length [18:26:48]Host: 172.17.38.133:8080 [18:26:48]Content-Length: 677 [18:26:48]Content-Type: application/json [18:26:48] [18:26:48]POST finish read [18:26:48]Found Content-Length = 677 [18:26:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:48]execute_script... [18:26: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)673380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:26:48]POST & json_proto [18:26:48]process_json_proto [18:26:48]json parsed OK: [18:26:48]protocol is kg_v1.0 [18:26:48]action value=close_receipt [18:26:48]process_action close_receipt [18:26:48]cmd_close_receipt [18:26:48]MH_GetDate [18:26:48]Write to MH i2c: F0 00 00 79 3A A2 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: F0 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: F0 09 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: F0 09 00 79 3A 00 6B 74 74 66 BD 8F 7C 64 90 [18:26:48]GetLastDocTimeStamp 1718907988 [18:26:48]current date 1718908011 [18:26:48]FM_GetShiftState [18:26:48]SAM_PROTO_GetShiftState [18:26:48]wFMCommunicate request_size=4 [18:26:48]MH_SAM_APDU [18:26:48]CAPDU: 80 13 01 00 [18:26:48]Write to MH i2c: E2 08 00 7A 3A 80 13 01 00 00 00 00 00 31 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:48]Read from MH i2c: E2 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 0E 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 0E 00 7A 3A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 80 [18:26:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:26:48]wFMCommunicate OK [18:26:48]SAM_PROTO_GetShiftState done [18:26:48]FM_GetShiftState done [18:26:48]opened in 1718843124 [18:26:48]opened+sec_in_day 1718929524 [18:26:48]quantity*price = 30012 [18:26:48]sum+1 = 30014 [18:26:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 189 20.06.2024 18:26 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104004 ФПД: 259713545683516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182651&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104004&fm=259713545683516&tin=02508201610067®Number=0000000000092785&sum=30000 [18:26:49]StoreToDocumentArchive [18:26:49]shift 354 fd 104004 [18:26:49]save to /storage/0354/doc_00104004 [18:26:49]save last doc name /storage/0354/doc_00104004 to /storage/kkm_last_doc_name [18:26:49]save OK [18:26:49]Clear old archive folders... [18:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:49]tlvbuf is 00843660 [18:26:49]SAM_PROTO_ClearQueue [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 09 00 00 [18:26:49]Write to MH i2c: E2 08 00 87 3A 80 09 00 00 00 00 00 00 33 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:49]Read from MH i2c: E2 03 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 87 3A 00 90 00 35 [18:26:49]RAPDU: 90 00 [18:26:49]wFMCommunicate OK [18:26:49]SAM_PROTO_ClearQueue done [18:26:49]KKMCreateOFDPacket [18:26:49]OFDProtocolAddRootSTLVToBuf [18:26:49]FM_MakeSignedData [18:26:49]FM_MakeSignedData [18:26:49]SAM_PROTO_SignData [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 0D 01 02 [18:26:49]Write to MH i2c: E2 08 00 88 3A 80 0D 01 02 00 00 00 00 3B [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 88 3A 00 90 00 36 [18:26:49]RAPDU: 90 00 [18:26:49]wFMCommunicate OK [18:26:49]wFMCommunicate request_size=255 [18:26:49]MH_SAM_APDU [18:26: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6B 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 96 01 00 35 04 06 00 EC [18:26:49]Write to MH i2c: E2 02 01 89 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6B 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 96 01 00 35 04 06 00 EC 00 00 33 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 89 3A 00 90 00 37 [18:26:49]RAPDU: 90 00 [18:26:49]wFMCommunicate OK [18:26:49]wFMCommunicate request_size=10 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 0D 02 02 05 35 45 A2 42 3C [18:26:49]Write to MH i2c: E2 0D 00 8A 3A 80 0D 02 02 05 00 35 45 A2 42 3C 00 00 E2 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 8A 3A 00 90 00 38 [18:26:49]RAPDU: 90 00 [18:26:49]wFMCommunicate OK [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 0D 03 02 [18:26:49]Write to MH i2c: E2 08 00 8B 3A 80 0D 03 02 00 00 00 00 40 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 0B 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 0B 00 8B 3A 00 14 B8 1B 2E B6 F5 E7 A5 90 00 8D [18:26:49]RAPDU: 14 B8 1B 2E B6 F5 E7 A5 90 00 [18:26:49]wFMCommunicate OK [18:26:49]SAM_PROTO_SignData done [18:26:49]FM_MakeSignedData done [18:26:49]CreateOFDProtocolMessage [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 11 00 00 [18:26:49]Write to MH i2c: E2 08 00 8C 3A 80 11 00 00 00 00 00 00 40 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 17 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 17 00 8C 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 93 [18:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:26:49]wFMCommunicate OK [18:26:49]CreateOFDProtocolMessage done [18:26:49]OFDSenderStorePacket 104004 [18:26:49]StoreOFDPacket docnum=104004 [18:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 79 CB 07 01 02 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6B 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 96 01 00 35 04 06 00 EC 35 45 A2 42 3C 14 B8 1B 2E B6 F5 E7 A5 [18:26:49]CheckFolder [18:26:49]dirname=/storage/ofd_packets [18:26:49]CheckFolder done [18:26:49]ProducePacketName [18:26:49]name=ofd_packets/00104004 [18:26:49]NVStorageSaveData ofd_packets/00104004 [18:26:49]File name is /storage/ofd_packets/00104004 [18:26:49]Write 301 bytes [18:26:49]NVStorageSaveData done [18:26:49]OFDSenderStorePacket done [18:26:49]KKMCreateOFDPacket done [18:26:49]NVStorageSaveData kkm_last_timestamp [18:26:49]File name is /storage/kkm_last_timestamp [18:26:49]Write 4 bytes [18:26:49]NVStorageSaveData done [18:26:49]ExternCall_PrintAddStr [18:26:49]wPrintStart [18:26:49]Write to MH i2c: 01 00 00 8D 3A C7 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: 01 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: 01 07 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: 01 07 00 8D 3A 00 00 00 00 00 FF 0F DC [18:26:49]RasterBufferAndPrint [18:26:49]line Счет N : (1)673380 [18:26:49]line ИНН: 02508201610067 [18:26:49]line Контрольно-Кассовый Чек [18:26:49]line ПРОДАЖА [18:26:49]line ТРК (МРК, ГНК) : 32 [18:26:49]line Товар: 2710124130 [18:26:49]line Аи-92-К-5 [18:26:49]line 4.520 * 66.40 [18:26:49]line = 300.13 [18:26:49]line НДС 12% НСП 1% [18:26:49]line > о реализуемом товаре [18:26:49]line ОКРУГЛЕНИЕ: -0.13 [18:26:49]line ИТОГО: 300.00 [18:26:49]line Внесено: 300.00 [18:26:49]line СДАЧА: 0.00 [18:26:49]line НСП 1% : 2.66 [18:26:49]line НДС 12% : 31.87 [18:26:49]line Наличными: 300.00 [18:26:49]line Безнал.: 0.00 [18:26:49]line Место: АЗС № 120 "Партнер Нефть" [18:26:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:26:49]line СНО: Общий режим [18:26:49]line Чек 189 20.06.2024 18:26 [18:26:49]line Смена: 354 ФФД: 1.0 [18:26:49]line ЗНМ: 0300000164 [18:26:49]line РНМ: 0000000000092785 [18:26:49]line Версия ККМ: 001 [18:26:49]line ФМ: 0000000000875093 [18:26:49]line ФД: 104004 [18:26:49]line ФПД: 259713545683516 [18:26:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T182651&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104004&fm=259713545683516&tin=02508201610067®Number=0000000000092785&sum=30000 [18:26:50]OFD Sender: Processing packet 104004 [packets to send 17, broken 16] [18:26:50]ProducePacketName [18:26:50]name=ofd_packets/00104004 [18:26:50]OFD Sender: To server: pG, [18:26:50]CommunicateWithHost lk.salyk.kg:30040 [18:26:50]ConnectInit lk.salyk.kg [18:26:50]written 0, free lines is 4095 [18:26:50]Connected sock=10 [18:26:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 79 CB 07 01 02 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6B 74 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 96 01 00 35 04 06 00 EC 35 45 A2 42 3C 14 B8 1B 2E B6 F5 E7 A5 [18:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2A 4F 47 00 D3 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 44 96 01 00 F4 03 04 00 F0 1A 74 66 B6 04 01 00 00 DF D5 A5 85 B0 7B BC 46 [18:26:50]CommunicateWithHost err = 0 [18:26:50]CheckOFDResponse [18:26:50]1017 (14) - 77093643461234 [18:26:50]1041 (16) - 0000000000875093 [18:26:50]1040 (4) - 104004 [18:26:50]1012 (4) - 20.06.2024 12:05 [18:26:50]1206 (1) - 0 [18:26:50]OFD Sender: Remove packet 104004 [18:26:50]ProducePacketName [18:26:50]name=ofd_packets/00104004 [18:26:50]NVStorageDeleteData [18:26:50]Write to MH i2c: 01 00 00 B8 3A F2 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: 01 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: 01 07 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: 01 07 00 B8 3A 00 00 00 00 00 EB 0C F0 [18:26:50]RasterBufferAndPrint [18:26:50]line [18:26:50]line [18:26:50]line [18:26:50]line [18:26:50]line [18:26:50]written 0, free lines is 3313 [18:26:50]MH_Cut [18:26:50]Write to MH i2c: D1 01 00 BF 3A 01 CB [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: D1 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: D1 01 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: D1 01 00 BF 3A 00 CA [18:26:50]Write to MH i2c: 01 00 00 C0 3A FA [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:51]OFD Sender: No OFD packet to send [18:26:51]*** Cut start [18:26:51]*** Partial cut [18:26:51]*** CUTSNS_PIN = 1 [18:26:51]*** CUTSNS_PIN = 0 [18:26:51]*** Brake cut motor [18:26:52]Read from MH i2c: 01 [18:26:52]MH_I2C_Read... [18:26:52]*** Stop cut motor [18:26:52]*** Cut end [18:26:52]Read from MH i2c: 01 07 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: 01 07 00 C0 3A 00 00 00 00 00 FF 0F 0F [18:26:52]process_action close_receipt done [18:26:52]requested_data is exist [18:26:52]produce_requested_data [18:26:52]requested_item fm.sn is exist - process it [18:26:52]wFMCommunicate request_size=4 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 11 00 00 [18:26:52]Write to MH i2c: E2 08 00 C1 3A 80 11 00 00 00 00 00 00 75 [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 17 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 17 00 C1 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C8 [18:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:26:52]wFMCommunicate OK [18:26:52]requested_item fd.num is exist - process it [18:26:52]SAM_PROTO_GetFieldsCounters [18:26:52]wFMCommunicate request_size=4 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 13 00 00 [18:26:52]Write to MH i2c: E2 08 00 C2 3A 80 13 00 00 00 00 00 00 78 [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 62 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 62 00 C2 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 44 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [18:26:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 44 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:52]wFMCommunicate OK [18:26:52]SAM_PROTO_GetFieldsCounters done [18:26:52]requested_item shift.num is exist - process it [18:26:52]requested_item shift.opened is exist - process it [18:26:52]req_shift_opened [18:26:52]FM_GetShiftState [18:26:52]SAM_PROTO_GetShiftState [18:26:52]wFMCommunicate request_size=4 [18:26:52]MH_SAM_APDU [18:26:52]CAPDU: 80 13 01 00 [18:26:52]Write to MH i2c: E2 08 00 C3 3A 80 13 01 00 00 00 00 00 7A [18:26:52]Write i2c OK [18:26:52]MH_I2C_Read... [18:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:52]Read from MH i2c: E2 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 0E 00 [18:26:52]MH_I2C_Read... [18:26:52]Read from MH i2c: E2 0E 00 C3 3A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C9 [18:26:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:26:52]wFMCommunicate OK [18:26:52]SAM_PROTO_GetShiftState done [18:26:52]FM_GetShiftState done [18:26:52]req_shift_opened done [18:26:52]requested_item shift.open_date is exist - process it [18:26:52]req_shift_open_date [18:26:52]req_shift_open_date done [18:26:52]produce_requested_data done [18:26:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104004,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:26:52]process_action_free close_receipt [18:26:52]json_value_free [18:26:52]json_value_free done [18:26:52]process_json_proto returns [18:26:52]Send response to host [18:26:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104004,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:26:52]free response buf [18:26:52]execute_script done [18:26:52]execute_script returns [18:26:52]free content buf [18:26:52]Sock 7.Close socket [18:26:52]Sock 7.Thread stoped [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:50]accept exits with 9 [18:33:50]New connection [18:33:50]New thread 3067207012 created [18:33:50]Thread 3067063652 joined [18:33:50]Waiting for new connection... [18:33:50] Sock 9.Parse request [18:33:50]Sock 9.Check first char [18:33:50]Sock 9.First char is OK [18:33:50]request: POST /json_proto HTTP/1.0 [18:33:50]Method: POST [18:33:50]URL: /json_proto [18:33:50]Method is POST - this is cgi request [18:33:50]url: /json_proto [18:33:50]query_string will be loaded in cgi processing [18:33:50]execute_cgi json_proto POST (null) [18:33:50]execute_cgi path=json_proto method=POST [18:33:50]POST find Content-Length [18:33:50]Host: 172.17.38.133:8080 [18:33:50]Content-Length: 1169 [18:33:50]Content-Type: application/json [18:33:50] [18:33:50]POST finish read [18:33:50]Found Content-Length = 1169 [18:33: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673381\u000A20.06.2024 18:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 85.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 6281.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30080693\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:50]execute_script... [18:33: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673381\u000A20.06.2024 18:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 85.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 6281.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30080693\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:50]POST & json_proto [18:33:50]process_json_proto [18:33:50]json parsed OK: [18:33:50]protocol is kg_v1.0 [18:33:50]action value=print_text [18:33:50]process_action print_text [18:33:50]cmd_print_text [18:33:50]ExternCall_PrintAddStr [18:33:50]wPrintStart [18:33:50]Write to MH i2c: 01 00 00 C4 3A FE [18:33:50]Write i2c OK [18:33:50]MH_I2C_Read... [18:33:50]Read from MH i2c: 01 [18:33:50]MH_I2C_Read... [18:33:50]Read from MH i2c: 01 07 00 [18:33:50]MH_I2C_Read... [18:33:50]Read from MH i2c: 01 07 00 C4 3A 00 00 00 00 00 FF 0F 13 [18:33:50]RasterBufferAndPrint [18:33:50]line *****ТОВАРНЫЙ ЧЕК***** [18:33:50]line АЗС 120 [18:33:50]line Партнер нефть [18:33:50]line 02508201610067 [18:33:50]line Кассир : Дуйшенбиев А. [18:33:50]line Счет N : (1)673381 [18:33:50]line 20.06.2024 18:11 [18:33:50]line ПРОДАЖА [18:33:50]line ТРК (МРК, ГНК): 31 [18:33:50]line Вид ГСМ : 2710124500 [18:33:50]line Аи-95-К-5 [18:33:50]line 85.000 x 73.90 [18:33:50]line ИТОГ: 6281.50 [18:33:50]line Тип оплаты: Талоны: ТК ГПНА Online [18:33:50]line 30080693 [18:33:50]line ______________________ [18:33:50]line (подпись) [18:33:50]written 0, free lines is 4095 [18:33:51]Write to MH i2c: 01 00 00 D8 3A 12 [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: 01 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: 01 07 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: 01 07 00 D8 3A 00 00 00 00 00 11 0E 38 [18:33:51]RasterBufferAndPrint [18:33:51]line [18:33:51]line [18:33:51]line [18:33:51]line [18:33:51]line [18:33:51]written 0, free lines is 3603 [18:33:51]MH_Cut [18:33:51]Write to MH i2c: D1 01 00 DF 3A 01 EB [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: D1 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: D1 01 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: D1 01 00 DF 3A 00 EA [18:33:51]Write to MH i2c: 01 00 00 E0 3A 1A [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]OFD Sender: No OFD packet to send [18:33:51]*** Cut start [18:33:51]*** Partial cut [18:33:51]*** CUTSNS_PIN = 1 [18:33:51]*** CUTSNS_PIN = 0 [18:33:51]*** Brake cut motor [18:33:52]Read from MH i2c: 01 [18:33:52]MH_I2C_Read... [18:33:52]*** Stop cut motor [18:33:52]*** Cut end [18:33:52]Read from MH i2c: 01 07 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: 01 07 00 E0 3A 00 00 00 00 00 FF 0F 2F [18:33:52]process_action print_text done [18:33:52]requested_data is exist [18:33:52]produce_requested_data [18:33:52]requested_item fm.sn is exist - process it [18:33:52]wFMCommunicate request_size=4 [18:33:52]MH_SAM_APDU [18:33:52]CAPDU: 80 11 00 00 [18:33:52]Write to MH i2c: E2 08 00 E1 3A 80 11 00 00 00 00 00 00 95 [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:52]Read from MH i2c: E2 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 17 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 17 00 E1 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [18:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:33:52]wFMCommunicate OK [18:33:52]requested_item fd.num is exist - process it [18:33:52]SAM_PROTO_GetFieldsCounters [18:33:52]wFMCommunicate request_size=4 [18:33:52]MH_SAM_APDU [18:33:52]CAPDU: 80 13 00 00 [18:33:52]Write to MH i2c: E2 08 00 E2 3A 80 13 00 00 00 00 00 00 98 [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:52]Read from MH i2c: E2 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 62 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 62 00 E2 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 44 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [18:33:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 44 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:52]wFMCommunicate OK [18:33:52]SAM_PROTO_GetFieldsCounters done [18:33:52]requested_item shift.num is exist - process it [18:33:52]requested_item shift.opened is exist - process it [18:33:52]req_shift_opened [18:33:52]FM_GetShiftState [18:33:52]SAM_PROTO_GetShiftState [18:33:52]wFMCommunicate request_size=4 [18:33:52]MH_SAM_APDU [18:33:52]CAPDU: 80 13 01 00 [18:33:52]Write to MH i2c: E2 08 00 E3 3A 80 13 01 00 00 00 00 00 9A [18:33:52]Write i2c OK [18:33:52]MH_I2C_Read... [18:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:52]Read from MH i2c: E2 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 0E 00 [18:33:52]MH_I2C_Read... [18:33:52]Read from MH i2c: E2 0E 00 E3 3A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E9 [18:33:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:33:52]wFMCommunicate OK [18:33:52]SAM_PROTO_GetShiftState done [18:33:52]FM_GetShiftState done [18:33:52]req_shift_opened done [18:33:52]requested_item shift.open_date is exist - process it [18:33:52]req_shift_open_date [18:33:52]req_shift_open_date done [18:33:52]produce_requested_data done [18:33:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104004,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:33:52]process_action_free print_text [18:33:52]json_value_free [18:33:52]json_value_free done [18:33:52]process_json_proto returns [18:33:52]Send response to host [18:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104004,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:33:52]free response buf [18:33:52]execute_script done [18:33:52]execute_script returns [18:33:52]free content buf [18:33:52]Sock 9.Close socket [18:33:52]Sock 9.Thread stoped [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:28]accept exits with 7 [18:34:28]New connection [18:34:28]New thread 3067063652 created [18:34:28]Thread 3067207012 joined [18:34:28]Waiting for new connection... [18:34:28] Sock 7.Parse request [18:34:28]Sock 7.Check first char [18:34:28]Sock 7.First char is OK [18:34:28]request: POST /json_proto HTTP/1.0 [18:34:28]Method: POST [18:34:28]URL: /json_proto [18:34:28]Method is POST - this is cgi request [18:34:28]url: /json_proto [18:34:28]query_string will be loaded in cgi processing [18:34:28]execute_cgi json_proto POST (null) [18:34:28]execute_cgi path=json_proto method=POST [18:34:28]POST find Content-Length [18:34:28]Host: 172.17.38.133:8080 [18:34:28]Content-Length: 677 [18:34:28]Content-Type: application/json [18:34:28] [18:34:28]POST finish read [18:34:28]Found Content-Length = 677 [18:34:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:28]execute_script... [18:34: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)673382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:28]POST & json_proto [18:34:28]process_json_proto [18:34:28]json parsed OK: [18:34:28]protocol is kg_v1.0 [18:34:28]action value=close_receipt [18:34:28]process_action close_receipt [18:34:28]cmd_close_receipt [18:34:28]MH_GetDate [18:34:28]Write to MH i2c: F0 00 00 E4 3A 0D [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: F0 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: F0 09 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: F0 09 00 E4 3A 00 37 76 74 66 BD 8F 7C 64 C9 [18:34:28]GetLastDocTimeStamp 1718908011 [18:34:28]current date 1718908471 [18:34:28]FM_GetShiftState [18:34:28]SAM_PROTO_GetShiftState [18:34:28]wFMCommunicate request_size=4 [18:34:28]MH_SAM_APDU [18:34:28]CAPDU: 80 13 01 00 [18:34:28]Write to MH i2c: E2 08 00 E5 3A 80 13 01 00 00 00 00 00 9C [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:28]Read from MH i2c: E2 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 0E 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 0E 00 E5 3A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EB [18:34:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:34:28]wFMCommunicate OK [18:34:28]SAM_PROTO_GetShiftState done [18:34:28]FM_GetShiftState done [18:34:28]opened in 1718843124 [18:34:28]opened+sec_in_day 1718929524 [18:34:28]quantity*price = 50065 [18:34:28]sum+1 = 50067 [18:34:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 190 20.06.2024 18:34 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104005 ФПД: 68608576501559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T183431&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104005&fm=68608576501559&tin=02508201610067®Number=0000000000092785&sum=50000 [18:34:29]StoreToDocumentArchive [18:34:29]shift 354 fd 104005 [18:34:29]save to /storage/0354/doc_00104005 [18:34:29]save last doc name /storage/0354/doc_00104005 to /storage/kkm_last_doc_name [18:34:29]save OK [18:34:29]Clear old archive folders... [18:34:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:29]tlvbuf is B6DE6230 [18:34:29]SAM_PROTO_ClearQueue [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 09 00 00 [18:34:29]Write to MH i2c: E2 08 00 F2 3A 80 09 00 00 00 00 00 00 9E [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:29]Read from MH i2c: E2 03 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 F2 3A 00 90 00 A0 [18:34:29]RAPDU: 90 00 [18:34:29]wFMCommunicate OK [18:34:29]SAM_PROTO_ClearQueue done [18:34:29]KKMCreateOFDPacket [18:34:29]OFDProtocolAddRootSTLVToBuf [18:34:29]FM_MakeSignedData [18:34:29]FM_MakeSignedData [18:34:29]SAM_PROTO_SignData [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 0D 01 02 [18:34:29]Write to MH i2c: E2 08 00 F3 3A 80 0D 01 02 00 00 00 00 A6 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 F3 3A 00 90 00 A1 [18:34:29]RAPDU: 90 00 [18:34:29]wFMCommunicate OK [18:34:29]wFMCommunicate request_size=255 [18:34:29]MH_SAM_APDU [18:34: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 37 76 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 96 01 00 35 04 06 00 3E [18:34:29]Write to MH i2c: E2 02 01 F4 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 37 76 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 96 01 00 35 04 06 00 3E 00 00 22 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 F4 3A 00 90 00 A2 [18:34:29]RAPDU: 90 00 [18:34:29]wFMCommunicate OK [18:34:29]wFMCommunicate request_size=10 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 0D 02 02 05 66 2D D4 B7 37 [18:34:29]Write to MH i2c: E2 0D 00 F5 3A 80 0D 02 02 05 00 66 2D D4 B7 37 00 00 08 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 F5 3A 00 90 00 A3 [18:34:29]RAPDU: 90 00 [18:34:29]wFMCommunicate OK [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 0D 03 02 [18:34:29]Write to MH i2c: E2 08 00 F6 3A 80 0D 03 02 00 00 00 00 AB [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0B 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0B 00 F6 3A 00 72 FB C9 C9 F5 DC F2 FB 90 00 69 [18:34:29]RAPDU: 72 FB C9 C9 F5 DC F2 FB 90 00 [18:34:29]wFMCommunicate OK [18:34:29]SAM_PROTO_SignData done [18:34:29]FM_MakeSignedData done [18:34:29]CreateOFDProtocolMessage [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 11 00 00 [18:34:29]Write to MH i2c: E2 08 00 F7 3A 80 11 00 00 00 00 00 00 AB [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 17 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 17 00 F7 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FE [18:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:34:29]wFMCommunicate OK [18:34:29]CreateOFDProtocolMessage done [18:34:29]OFDSenderStorePacket 104005 [18:34:29]StoreOFDPacket docnum=104005 [18:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 42 B4 07 01 A4 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 37 76 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 96 01 00 35 04 06 00 3E 66 2D D4 B7 37 72 FB C9 C9 F5 DC F2 FB [18:34:29]CheckFolder [18:34:29]dirname=/storage/ofd_packets [18:34:29]CheckFolder done [18:34:29]ProducePacketName [18:34:29]name=ofd_packets/00104005 [18:34:29]NVStorageSaveData ofd_packets/00104005 [18:34:29]File name is /storage/ofd_packets/00104005 [18:34:29]Write 301 bytes [18:34:29]NVStorageSaveData done [18:34:29]OFDSenderStorePacket done [18:34:29]KKMCreateOFDPacket done [18:34:29]NVStorageSaveData kkm_last_timestamp [18:34:29]File name is /storage/kkm_last_timestamp [18:34:29]Write 4 bytes [18:34:29]NVStorageSaveData done [18:34:29]ExternCall_PrintAddStr [18:34:29]wPrintStart [18:34:29]Write to MH i2c: 01 00 00 F8 3A 32 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: 01 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: 01 07 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: 01 07 00 F8 3A 00 00 00 00 00 FF 0F 47 [18:34:29]RasterBufferAndPrint [18:34:29]line Счет N : (1)673382 [18:34:29]line ИНН: 02508201610067 [18:34:29]line Контрольно-Кассовый Чек [18:34:29]line ПРОДАЖА [18:34:29]line ТРК (МРК, ГНК) : 42 [18:34:29]line Товар: 2710124130 [18:34:29]line Аи-92-К-5 [18:34:29]line 7.540 * 66.40 [18:34:29]line = 500.66 [18:34:29]line НДС 12% НСП 1% [18:34:29]line > о реализуемом товаре [18:34:29]line ОКРУГЛЕНИЕ: -0.66 [18:34:29]line ИТОГО: 500.00 [18:34:29]line Внесено: 500.00 [18:34:29]line СДАЧА: 0.00 [18:34:29]line НСП 1% : 4.43 [18:34:29]line НДС 12% : 53.17 [18:34:29]line Наличными: 500.00 [18:34:29]line Безнал.: 0.00 [18:34:29]line Место: АЗС № 120 "Партнер Нефть" [18:34:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:34:29]line СНО: Общий режим [18:34:29]line Чек 190 20.06.2024 18:34 [18:34:29]line Смена: 354 ФФД: 1.0 [18:34:29]line ЗНМ: 0300000164 [18:34:29]line РНМ: 0000000000092785 [18:34:29]line Версия ККМ: 001 [18:34:29]line ФМ: 0000000000875093 [18:34:29]line ФД: 104005 [18:34:29]line ФПД: 68608576501559 [18:34:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T183431&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104005&fm=68608576501559&tin=02508201610067®Number=0000000000092785&sum=50000 [18:34:30]OFD Sender: Processing packet 104005 [packets to send 17, broken 16] [18:34:30]ProducePacketName [18:34:30]name=ofd_packets/00104005 [18:34:30]OFD Sender: To server: pG, [18:34:30]CommunicateWithHost lk.salyk.kg:30040 [18:34:30]ConnectInit lk.salyk.kg [18:34:30]written 0, free lines is 4095 [18:34:30]Connected sock=10 [18:34:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 42 B4 07 01 A4 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 37 76 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 96 01 00 35 04 06 00 3E 66 2D D4 B7 37 72 FB C9 C9 F5 DC F2 FB [18:34:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 70 38 47 00 8D 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 45 96 01 00 F4 03 04 00 BC 1C 74 66 B6 04 01 00 00 20 F4 BD A1 38 F8 D6 12 [18:34:30]CommunicateWithHost err = 0 [18:34:30]CheckOFDResponse [18:34:30]1017 (14) - 77093643461234 [18:34:30]1041 (16) - 0000000000875093 [18:34:30]1040 (4) - 104005 [18:34:30]1012 (4) - 20.06.2024 12:12 [18:34:30]1206 (1) - 0 [18:34:30]OFD Sender: Remove packet 104005 [18:34:30]ProducePacketName [18:34:30]name=ofd_packets/00104005 [18:34:30]NVStorageDeleteData [18:34:30]Write to MH i2c: 01 00 00 23 3B 5E [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 07 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 07 00 23 3B 00 00 00 00 00 EA 0C 5B [18:34:30]RasterBufferAndPrint [18:34:30]line [18:34:30]line [18:34:30]line [18:34:30]line [18:34:30]line [18:34:30]written 0, free lines is 3312 [18:34:30]MH_Cut [18:34:30]Write to MH i2c: D1 01 00 2A 3B 01 37 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: D1 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: D1 01 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: D1 01 00 2A 3B 00 36 [18:34:30]Write to MH i2c: 01 00 00 2B 3B 66 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]OFD Sender: No OFD packet to send [18:34:31]*** Cut start [18:34:31]*** Partial cut [18:34:31]*** CUTSNS_PIN = 1 [18:34:31]*** CUTSNS_PIN = 0 [18:34:31]*** Brake cut motor [18:34:31]Read from MH i2c: 01 [18:34:31]MH_I2C_Read... [18:34:31]*** Stop cut motor [18:34:31]*** Cut end [18:34:31]Read from MH i2c: 01 07 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: 01 07 00 2B 3B 00 00 00 00 00 FF 0F 7B [18:34:31]process_action close_receipt done [18:34:31]requested_data is exist [18:34:31]produce_requested_data [18:34:31]requested_item fm.sn is exist - process it [18:34:31]wFMCommunicate request_size=4 [18:34:31]MH_SAM_APDU [18:34:31]CAPDU: 80 11 00 00 [18:34:31]Write to MH i2c: E2 08 00 2C 3B 80 11 00 00 00 00 00 00 E1 [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:31]Read from MH i2c: E2 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 17 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: E2 17 00 2C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [18:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:34:31]wFMCommunicate OK [18:34:31]requested_item fd.num is exist - process it [18:34:31]SAM_PROTO_GetFieldsCounters [18:34:31]wFMCommunicate request_size=4 [18:34:31]MH_SAM_APDU [18:34:31]CAPDU: 80 13 00 00 [18:34:31]Write to MH i2c: E2 08 00 2D 3B 80 13 00 00 00 00 00 00 E4 [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:32]Read from MH i2c: E2 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 62 00 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 62 00 2D 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 45 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [18:34:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 45 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:32]wFMCommunicate OK [18:34:32]SAM_PROTO_GetFieldsCounters done [18:34:32]requested_item shift.num is exist - process it [18:34:32]requested_item shift.opened is exist - process it [18:34:32]req_shift_opened [18:34:32]FM_GetShiftState [18:34:32]SAM_PROTO_GetShiftState [18:34:32]wFMCommunicate request_size=4 [18:34:32]MH_SAM_APDU [18:34:32]CAPDU: 80 13 01 00 [18:34:32]Write to MH i2c: E2 08 00 2E 3B 80 13 01 00 00 00 00 00 E6 [18:34:32]Write i2c OK [18:34:32]MH_I2C_Read... [18:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:32]Read from MH i2c: E2 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 0E 00 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 0E 00 2E 3B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 35 [18:34:32]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:34:32]wFMCommunicate OK [18:34:32]SAM_PROTO_GetShiftState done [18:34:32]FM_GetShiftState done [18:34:32]req_shift_opened done [18:34:32]requested_item shift.open_date is exist - process it [18:34:32]req_shift_open_date [18:34:32]req_shift_open_date done [18:34:32]produce_requested_data done [18:34:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104005,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:34:32]process_action_free close_receipt [18:34:32]json_value_free [18:34:32]json_value_free done [18:34:32]process_json_proto returns [18:34:32]Send response to host [18:34:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104005,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:34:32]free response buf [18:34:32]execute_script done [18:34:32]execute_script returns [18:34:32]free content buf [18:34:32]Sock 7.Close socket [18:34:32]Sock 7.Thread stoped [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:12]accept exits with 9 [18:37:12]New connection [18:37:12]New thread 3067207012 created [18:37:12]Thread 3067063652 joined [18:37:12]Waiting for new connection... [18:37:12] Sock 9.Parse request [18:37:12]Sock 9.Check first char [18:37:12]Sock 9.First char is OK [18:37:12]request: POST /json_proto HTTP/1.0 [18:37:12]Method: POST [18:37:12]URL: /json_proto [18:37:12]Method is POST - this is cgi request [18:37:12]url: /json_proto [18:37:12]query_string will be loaded in cgi processing [18:37:12]execute_cgi json_proto POST (null) [18:37:12]execute_cgi path=json_proto method=POST [18:37:12]POST find Content-Length [18:37:12]Host: 172.17.38.133:8080 [18:37:12]Content-Length: 678 [18:37:12]Content-Type: application/json [18:37:12] [18:37:12]POST finish read [18:37:12]Found Content-Length = 678 [18:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:12]execute_script... [18:37: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)673383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.050, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:12]POST & json_proto [18:37:12]process_json_proto [18:37:12]json parsed OK: [18:37:12]protocol is kg_v1.0 [18:37:12]action value=close_receipt [18:37:12]process_action close_receipt [18:37:12]cmd_close_receipt [18:37:12]MH_GetDate [18:37:12]Write to MH i2c: F0 00 00 2F 3B 59 [18:37:12]Write i2c OK [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: F0 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: F0 09 00 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: F0 09 00 2F 3B 00 DB 76 74 66 BD 8F 7C 64 B9 [18:37:12]GetLastDocTimeStamp 1718908471 [18:37:12]current date 1718908635 [18:37:12]FM_GetShiftState [18:37:12]SAM_PROTO_GetShiftState [18:37:12]wFMCommunicate request_size=4 [18:37:12]MH_SAM_APDU [18:37:12]CAPDU: 80 13 01 00 [18:37:12]Write to MH i2c: E2 08 00 30 3B 80 13 01 00 00 00 00 00 E8 [18:37:12]Write i2c OK [18:37:12]MH_I2C_Read... [18:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:12]Read from MH i2c: E2 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: E2 0E 00 [18:37:12]MH_I2C_Read... [18:37:12]Read from MH i2c: E2 0E 00 30 3B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 37 [18:37:12]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:37:12]wFMCommunicate OK [18:37:12]SAM_PROTO_GetShiftState done [18:37:12]FM_GetShiftState done [18:37:12]opened in 1718843124 [18:37:12]opened+sec_in_day 1718929524 [18:37:12]quantity*price = 80012 [18:37:12]sum+1 = 80013 [18:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 191 20.06.2024 18:37 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104006 ФПД: 39512873848524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T183715&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104006&fm=39512873848524&tin=02508201610067®Number=0000000000092785&sum=80000 [18:37:13]StoreToDocumentArchive [18:37:13]shift 354 fd 104006 [18:37:13]save to /storage/0354/doc_00104006 [18:37:13]save last doc name /storage/0354/doc_00104006 to /storage/kkm_last_doc_name [18:37:13]save OK [18:37:13]Clear old archive folders... [18:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:13]tlvbuf is 00907390 [18:37:13]SAM_PROTO_ClearQueue [18:37:13]wFMCommunicate request_size=4 [18:37:13]MH_SAM_APDU [18:37:13]CAPDU: 80 09 00 00 [18:37:13]Write to MH i2c: E2 08 00 3D 3B 80 09 00 00 00 00 00 00 EA [18:37:13]Write i2c OK [18:37:13]MH_I2C_Read... [18:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:13]Read from MH i2c: E2 [18:37:13]MH_I2C_Read... [18:37:13]Read from MH i2c: E2 03 00 [18:37:13]MH_I2C_Read... [18:37:13]Read from MH i2c: E2 03 00 3D 3B 00 90 00 EC [18:37:13]RAPDU: 90 00 [18:37:13]wFMCommunicate OK [18:37:13]SAM_PROTO_ClearQueue done [18:37:13]KKMCreateOFDPacket [18:37:13]OFDProtocolAddRootSTLVToBuf [18:37:13]FM_MakeSignedData [18:37:13]FM_MakeSignedData [18:37:13]SAM_PROTO_SignData [18:37:13]wFMCommunicate request_size=4 [18:37:13]MH_SAM_APDU [18:37:13]CAPDU: 80 0D 01 02 [18:37:13]Write to MH i2c: E2 08 00 3E 3B 80 0D 01 02 00 00 00 00 F2 [18:37:13]Write i2c OK [18:37:13]MH_I2C_Read... [18:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:13]Read from MH i2c: E2 [18:37:13]MH_I2C_Read... [18:37:13]Read from MH i2c: E2 03 00 [18:37:13]MH_I2C_Read... [18:37:13]Read from MH i2c: E2 03 00 3E 3B 00 90 00 ED [18:37:13]RAPDU: 90 00 [18:37:13]wFMCommunicate OK [18:37:13]wFMCommunicate request_size=255 [18:37:13]MH_SAM_APDU [18:37: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 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DB 76 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 96 01 00 35 04 06 00 23 [18:37:13]Write to MH i2c: E2 02 01 3F 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DB 76 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 96 01 00 35 04 06 00 23 00 00 E8 [18:37:13]Write i2c OK [18:37:13]MH_I2C_Read... [18:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:14]Read from MH i2c: E2 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 03 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 03 00 3F 3B 00 90 00 EE [18:37:14]RAPDU: 90 00 [18:37:14]wFMCommunicate OK [18:37:14]wFMCommunicate request_size=10 [18:37:14]MH_SAM_APDU [18:37:14]CAPDU: 80 0D 02 02 05 EF CE CF 4E CC [18:37:14]Write to MH i2c: E2 0D 00 40 3B 80 0D 02 02 05 00 EF CE CF 4E CC 00 00 A5 [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:14]Read from MH i2c: E2 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 03 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 03 00 40 3B 00 90 00 EF [18:37:14]RAPDU: 90 00 [18:37:14]wFMCommunicate OK [18:37:14]wFMCommunicate request_size=4 [18:37:14]MH_SAM_APDU [18:37:14]CAPDU: 80 0D 03 02 [18:37:14]Write to MH i2c: E2 08 00 41 3B 80 0D 03 02 00 00 00 00 F7 [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:14]Read from MH i2c: E2 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 0B 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 0B 00 41 3B 00 02 D1 99 5F 73 0D 3F 77 90 00 F9 [18:37:14]RAPDU: 02 D1 99 5F 73 0D 3F 77 90 00 [18:37:14]wFMCommunicate OK [18:37:14]SAM_PROTO_SignData done [18:37:14]FM_MakeSignedData done [18:37:14]CreateOFDProtocolMessage [18:37:14]wFMCommunicate request_size=4 [18:37:14]MH_SAM_APDU [18:37:14]CAPDU: 80 11 00 00 [18:37:14]Write to MH i2c: E2 08 00 42 3B 80 11 00 00 00 00 00 00 F7 [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:14]Read from MH i2c: E2 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 17 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: E2 17 00 42 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [18:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:37:14]wFMCommunicate OK [18:37:14]CreateOFDProtocolMessage done [18:37:14]OFDSenderStorePacket 104006 [18:37:14]StoreOFDPacket docnum=104006 [18:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 36 A6 07 01 C6 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DB 76 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 96 01 00 35 04 06 00 23 EF CE CF 4E CC 02 D1 99 5F 73 0D 3F 77 [18:37:14]CheckFolder [18:37:14]dirname=/storage/ofd_packets [18:37:14]CheckFolder done [18:37:14]ProducePacketName [18:37:14]name=ofd_packets/00104006 [18:37:14]NVStorageSaveData ofd_packets/00104006 [18:37:14]File name is /storage/ofd_packets/00104006 [18:37:14]Write 301 bytes [18:37:14]NVStorageSaveData done [18:37:14]OFDSenderStorePacket done [18:37:14]KKMCreateOFDPacket done [18:37:14]NVStorageSaveData kkm_last_timestamp [18:37:14]File name is /storage/kkm_last_timestamp [18:37:14]Write 4 bytes [18:37:14]NVStorageSaveData done [18:37:14]ExternCall_PrintAddStr [18:37:14]wPrintStart [18:37:14]Write to MH i2c: 01 00 00 43 3B 7E [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: 01 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: 01 07 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: 01 07 00 43 3B 00 00 00 00 00 FF 0F 93 [18:37:14]RasterBufferAndPrint [18:37:14]line Счет N : (1)673383 [18:37:14]line ИНН: 02508201610067 [18:37:14]line Контрольно-Кассовый Чек [18:37:14]line ПРОДАЖА [18:37:14]line ТРК (МРК, ГНК) : 32 [18:37:14]line Товар: 2710124130 [18:37:14]line Аи-92-К-5 [18:37:14]line 12.050 * 66.40 [18:37:14]line = 800.12 [18:37:14]line НДС 12% НСП 1% [18:37:14]line > о реализуемом товаре [18:37:14]line ОКРУГЛЕНИЕ: -0.12 [18:37:14]line ИТОГО: 800.00 [18:37:14]line Внесено: 800.00 [18:37:14]line СДАЧА: 0.00 [18:37:14]line НСП 1% : 7.08 [18:37:14]line НДС 12% : 84.97 [18:37:14]line Наличными: 800.00 [18:37:14]line Безнал.: 0.00 [18:37:14]line Место: АЗС № 120 "Партнер Нефть" [18:37:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:37:14]line СНО: Общий режим [18:37:14]line Чек 191 20.06.2024 18:37 [18:37:14]line Смена: 354 ФФД: 1.0 [18:37:14]line ЗНМ: 0300000164 [18:37:14]line РНМ: 0000000000092785 [18:37:14]line Версия ККМ: 001 [18:37:14]line ФМ: 0000000000875093 [18:37:14]line ФД: 104006 [18:37:14]line ФПД: 39512873848524 [18:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T183715&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104006&fm=39512873848524&tin=02508201610067®Number=0000000000092785&sum=80000 [18:37:14]written 0, free lines is 4095 [18:37:14]OFD Sender: Processing packet 104006 [packets to send 17, broken 16] [18:37:14]ProducePacketName [18:37:14]name=ofd_packets/00104006 [18:37:14]OFD Sender: To server: pG, [18:37:14]CommunicateWithHost lk.salyk.kg:30040 [18:37:14]ConnectInit lk.salyk.kg [18:37:14]Connected sock=10 [18:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 36 A6 07 01 C6 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 DB 76 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 46 96 01 00 35 04 06 00 23 EF CE CF 4E CC 02 D1 99 5F 73 0D 3F 77 [18:37:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 74 8E 47 00 C3 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 35 30 39 33 10 04 04 00 46 96 01 00 F4 03 04 00 60 1D 74 66 B6 04 01 00 00 2E 80 61 09 9A BB 37 91 [18:37:14]CommunicateWithHost err = 0 [18:37:14]CheckOFDResponse [18:37:14]1017 (14) - 77093643461234 [18:37:14]1041 (16) - 0000000000875093 [18:37:14]1040 (4) - 104006 [18:37:14]1012 (4) - 20.06.2024 12:15 [18:37:14]1206 (1) - 0 [18:37:14]OFD Sender: Remove packet 104006 [18:37:14]ProducePacketName [18:37:14]name=ofd_packets/00104006 [18:37:14]NVStorageDeleteData [18:37:14]Write to MH i2c: 01 00 00 6E 3B A9 [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: 01 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: 01 07 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: 01 07 00 6E 3B 00 00 00 00 00 DC 0C 98 [18:37:14]RasterBufferAndPrint [18:37:14]line [18:37:14]line [18:37:14]line [18:37:14]line [18:37:14]line [18:37:14]written 0, free lines is 3302 [18:37:14]MH_Cut [18:37:14]Write to MH i2c: D1 01 00 75 3B 01 82 [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: D1 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: D1 01 00 [18:37:14]MH_I2C_Read... [18:37:14]Read from MH i2c: D1 01 00 75 3B 00 81 [18:37:14]Write to MH i2c: 01 00 00 76 3B B1 [18:37:14]Write i2c OK [18:37:14]MH_I2C_Read... [18:37:15]OFD Sender: No OFD packet to send [18:37:15]*** Cut start [18:37:15]*** Partial cut [18:37:15]*** CUTSNS_PIN = 1 [18:37:15]*** CUTSNS_PIN = 0 [18:37:15]*** Brake cut motor [18:37:16]Read from MH i2c: 01 [18:37:16]MH_I2C_Read... [18:37:16]*** Stop cut motor [18:37:16]*** Cut end [18:37:16]Read from MH i2c: 01 07 00 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: 01 07 00 76 3B 00 00 00 00 00 FF 0F C6 [18:37:16]process_action close_receipt done [18:37:16]requested_data is exist [18:37:16]produce_requested_data [18:37:16]requested_item fm.sn is exist - process it [18:37:16]wFMCommunicate request_size=4 [18:37:16]MH_SAM_APDU [18:37:16]CAPDU: 80 11 00 00 [18:37:16]Write to MH i2c: E2 08 00 77 3B 80 11 00 00 00 00 00 00 2C [18:37:16]Write i2c OK [18:37:16]MH_I2C_Read... [18:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:16]Read from MH i2c: E2 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: E2 17 00 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: E2 17 00 77 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [18:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:37:16]wFMCommunicate OK [18:37:16]requested_item fd.num is exist - process it [18:37:16]SAM_PROTO_GetFieldsCounters [18:37:16]wFMCommunicate request_size=4 [18:37:16]MH_SAM_APDU [18:37:16]CAPDU: 80 13 00 00 [18:37:16]Write to MH i2c: E2 08 00 78 3B 80 13 00 00 00 00 00 00 2F [18:37:16]Write i2c OK [18:37:16]MH_I2C_Read... [18:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:16]Read from MH i2c: E2 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: E2 62 00 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: E2 62 00 78 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 46 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [18:37:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 46 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:16]wFMCommunicate OK [18:37:16]SAM_PROTO_GetFieldsCounters done [18:37:16]requested_item shift.num is exist - process it [18:37:16]requested_item shift.opened is exist - process it [18:37:16]req_shift_opened [18:37:16]FM_GetShiftState [18:37:16]SAM_PROTO_GetShiftState [18:37:16]wFMCommunicate request_size=4 [18:37:16]MH_SAM_APDU [18:37:16]CAPDU: 80 13 01 00 [18:37:16]Write to MH i2c: E2 08 00 79 3B 80 13 01 00 00 00 00 00 31 [18:37:16]Write i2c OK [18:37:16]MH_I2C_Read... [18:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:16]Read from MH i2c: E2 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: E2 0E 00 [18:37:16]MH_I2C_Read... [18:37:16]Read from MH i2c: E2 0E 00 79 3B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 80 [18:37:16]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:37:16]wFMCommunicate OK [18:37:16]SAM_PROTO_GetShiftState done [18:37:16]FM_GetShiftState done [18:37:16]req_shift_opened done [18:37:16]requested_item shift.open_date is exist - process it [18:37:16]req_shift_open_date [18:37:16]req_shift_open_date done [18:37:16]produce_requested_data done [18:37:16]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104006,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:37:16]process_action_free close_receipt [18:37:16]json_value_free [18:37:16]json_value_free done [18:37:16]process_json_proto returns [18:37:16]Send response to host [18:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104006,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:37:16]free response buf [18:37:16]execute_script done [18:37:16]execute_script returns [18:37:16]free content buf [18:37:16]Sock 9.Close socket [18:37:16]Sock 9.Thread stoped [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]accept exits with 7 [18:40:25]New connection [18:40:25]New thread 3067063652 created [18:40:25]Thread 3067207012 joined [18:40:25]Waiting for new connection... [18:40:25] Sock 7.Parse request [18:40:25]Sock 7.Check first char [18:40:25]Sock 7.First char is OK [18:40:25]request: POST /json_proto HTTP/1.0 [18:40:25]Method: POST [18:40:25]URL: /json_proto [18:40:25]Method is POST - this is cgi request [18:40:25]url: /json_proto [18:40:25]query_string will be loaded in cgi processing [18:40:25]execute_cgi json_proto POST (null) [18:40:25]execute_cgi path=json_proto method=POST [18:40:25]POST find Content-Length [18:40:25]Host: 172.17.38.133:8080 [18:40:25]Content-Length: 1169 [18:40:25]Content-Type: application/json [18:40:25] [18:40:25]POST finish read [18:40:25]Found Content-Length = 1169 [18:40:25]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673384\u000A20.06.2024 18:17\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 25.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1660.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30090585\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:25]execute_script... [18:40:25]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673384\u000A20.06.2024 18:17\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 25.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1660.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30090585\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:25]POST & json_proto [18:40:25]process_json_proto [18:40:25]json parsed OK: [18:40:25]protocol is kg_v1.0 [18:40:25]action value=print_text [18:40:25]process_action print_text [18:40:25]cmd_print_text [18:40:25]ExternCall_PrintAddStr [18:40:25]wPrintStart [18:40:25]Write to MH i2c: 01 00 00 7A 3B B5 [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: 01 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: 01 07 00 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: 01 07 00 7A 3B 00 00 00 00 00 FF 0F CA [18:40:25]RasterBufferAndPrint [18:40:25]line *****ТОВАРНЫЙ ЧЕК***** [18:40:25]line АЗС 120 [18:40:25]line Партнер нефть [18:40:25]line 02508201610067 [18:40:25]line Кассир : Дуйшенбиев А. [18:40:25]line Счет N : (1)673384 [18:40:25]line 20.06.2024 18:17 [18:40:25]line ПРОДАЖА [18:40:25]line ТРК (МРК, ГНК): 42 [18:40:25]line Вид ГСМ : 2710124130 [18:40:25]line Аи-92-К-5 [18:40:25]line 25.000 x 66.40 [18:40:25]line ИТОГ: 1660.00 [18:40:25]line Тип оплаты: Талоны: ТК ГПНА Online [18:40:25]line 30090585 [18:40:25]line ______________________ [18:40:25]line (подпись) [18:40:25]written 0, free lines is 4095 [18:40:25]Write to MH i2c: 01 00 00 8E 3B C9 [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: 01 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: 01 07 00 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: 01 07 00 8E 3B 00 00 00 00 00 11 0E EF [18:40:25]RasterBufferAndPrint [18:40:25]line [18:40:25]line [18:40:25]line [18:40:25]line [18:40:25]line [18:40:25]written 0, free lines is 3603 [18:40:25]MH_Cut [18:40:25]Write to MH i2c: D1 01 00 95 3B 01 A2 [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: D1 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: D1 01 00 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: D1 01 00 95 3B 00 A1 [18:40:25]Write to MH i2c: 01 00 00 96 3B D1 [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:25]OFD Sender: No OFD packet to send [18:40:25]*** Cut start [18:40:25]*** Partial cut [18:40:25]*** CUTSNS_PIN = 1 [18:40:26]*** CUTSNS_PIN = 0 [18:40:26]*** Brake cut motor [18:40:26]Read from MH i2c: 01 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: 01 07 00 [18:40:26]MH_I2C_Read... [18:40:26]*** Stop cut motor [18:40:26]*** Cut end [18:40:26]Read from MH i2c: 01 07 00 96 3B 00 00 00 00 00 FF 0F E6 [18:40:26]process_action print_text done [18:40:26]requested_data is exist [18:40:26]produce_requested_data [18:40:26]requested_item fm.sn is exist - process it [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 11 00 00 [18:40:26]Write to MH i2c: E2 08 00 97 3B 80 11 00 00 00 00 00 00 4C [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 17 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 17 00 97 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9F [18:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:40:26]wFMCommunicate OK [18:40:26]requested_item fd.num is exist - process it [18:40:26]SAM_PROTO_GetFieldsCounters [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 13 00 00 [18:40:26]Write to MH i2c: E2 08 00 98 3B 80 13 00 00 00 00 00 00 4F [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 62 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 62 00 98 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 46 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:40:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 46 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:26]wFMCommunicate OK [18:40:26]SAM_PROTO_GetFieldsCounters done [18:40:26]requested_item shift.num is exist - process it [18:40:26]requested_item shift.opened is exist - process it [18:40:26]req_shift_opened [18:40:26]FM_GetShiftState [18:40:26]SAM_PROTO_GetShiftState [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 13 01 00 [18:40:26]Write to MH i2c: E2 08 00 99 3B 80 13 01 00 00 00 00 00 51 [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 0E 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 0E 00 99 3B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A0 [18:40:26]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:40:26]wFMCommunicate OK [18:40:26]SAM_PROTO_GetShiftState done [18:40:26]FM_GetShiftState done [18:40:26]req_shift_opened done [18:40:26]requested_item shift.open_date is exist - process it [18:40:26]req_shift_open_date [18:40:26]req_shift_open_date done [18:40:26]produce_requested_data done [18:40:26]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104006,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:40:26]process_action_free print_text [18:40:26]json_value_free [18:40:26]json_value_free done [18:40:26]process_json_proto returns [18:40:26]Send response to host [18:40:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104006,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:40:26]free response buf [18:40:26]execute_script done [18:40:26]execute_script returns [18:40:26]free content buf [18:40:26]Sock 7.Close socket [18:40:26]Sock 7.Thread stoped [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:43]accept exits with 9 [18:43:43]New connection [18:43:43]New thread 3067207012 created [18:43:43]Thread 3067063652 joined [18:43:43]Waiting for new connection... [18:43:43] Sock 9.Parse request [18:43:43]Sock 9.Check first char [18:43:43]Sock 9.First char is OK [18:43:43]request: POST /json_proto HTTP/1.0 [18:43:43]Method: POST [18:43:43]URL: /json_proto [18:43:43]Method is POST - this is cgi request [18:43:43]url: /json_proto [18:43:43]query_string will be loaded in cgi processing [18:43:43]execute_cgi json_proto POST (null) [18:43:43]execute_cgi path=json_proto method=POST [18:43:43]POST find Content-Length [18:43:43]Host: 172.17.38.133:8080 [18:43:43]Content-Length: 677 [18:43:43]Content-Type: application/json [18:43:43] [18:43:43]POST finish read [18:43:43]Found Content-Length = 677 [18:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:43]execute_script... [18:43: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)673385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:43]POST & json_proto [18:43:43]process_json_proto [18:43:43]json parsed OK: [18:43:43]protocol is kg_v1.0 [18:43:43]action value=close_receipt [18:43:43]process_action close_receipt [18:43:43]cmd_close_receipt [18:43:43]MH_GetDate [18:43:43]Write to MH i2c: F0 00 00 9A 3B C4 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: F0 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: F0 09 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: F0 09 00 9A 3B 00 62 78 74 66 BD 8F 7C 64 AD [18:43:43]GetLastDocTimeStamp 1718908635 [18:43:43]current date 1718909026 [18:43:43]FM_GetShiftState [18:43:43]SAM_PROTO_GetShiftState [18:43:43]wFMCommunicate request_size=4 [18:43:43]MH_SAM_APDU [18:43:43]CAPDU: 80 13 01 00 [18:43:43]Write to MH i2c: E2 08 00 9B 3B 80 13 01 00 00 00 00 00 53 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:43]Read from MH i2c: E2 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 0E 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: E2 0E 00 9B 3B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A2 [18:43:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:43:43]wFMCommunicate OK [18:43:43]SAM_PROTO_GetShiftState done [18:43:43]FM_GetShiftState done [18:43:43]opened in 1718843124 [18:43:43]opened+sec_in_day 1718929524 [18:43:43]quantity*price = 50065 [18:43:43]sum+1 = 50067 [18:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 192 20.06.2024 18:43 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104007 ФПД: 239805883194236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T184346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104007&fm=239805883194236&tin=02508201610067®Number=0000000000092785&sum=50000 [18:43:44]StoreToDocumentArchive [18:43:44]shift 354 fd 104007 [18:43:44]save to /storage/0354/doc_00104007 [18:43:44]save last doc name /storage/0354/doc_00104007 to /storage/kkm_last_doc_name [18:43:44]save OK [18:43:44]Clear old archive folders... [18:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:44]tlvbuf is 0087C620 [18:43:44]SAM_PROTO_ClearQueue [18:43:44]wFMCommunicate request_size=4 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 09 00 00 [18:43:44]Write to MH i2c: E2 08 00 A8 3B 80 09 00 00 00 00 00 00 55 [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 03 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 03 00 A8 3B 00 90 00 57 [18:43:44]RAPDU: 90 00 [18:43:44]wFMCommunicate OK [18:43:44]SAM_PROTO_ClearQueue done [18:43:44]KKMCreateOFDPacket [18:43:44]OFDProtocolAddRootSTLVToBuf [18:43:44]FM_MakeSignedData [18:43:44]FM_MakeSignedData [18:43:44]SAM_PROTO_SignData [18:43:44]wFMCommunicate request_size=4 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 0D 01 02 [18:43:44]Write to MH i2c: E2 08 00 A9 3B 80 0D 01 02 00 00 00 00 5D [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 03 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 03 00 A9 3B 00 90 00 58 [18:43:44]RAPDU: 90 00 [18:43:44]wFMCommunicate OK [18:43:44]wFMCommunicate request_size=255 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 62 78 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 96 01 00 35 04 06 00 DA [18:43:44]Write to MH i2c: E2 02 01 AA 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 62 78 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 96 01 00 35 04 06 00 DA 00 00 A6 [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 03 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 03 00 AA 3B 00 90 00 59 [18:43:44]RAPDU: 90 00 [18:43:44]wFMCommunicate OK [18:43:44]wFMCommunicate request_size=10 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 0D 02 02 05 1A 28 7B 9B 7C [18:43:44]Write to MH i2c: E2 0D 00 AB 3B 80 0D 02 02 05 00 1A 28 7B 9B 7C 00 00 3E [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 03 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 03 00 AB 3B 00 90 00 5A [18:43:44]RAPDU: 90 00 [18:43:44]wFMCommunicate OK [18:43:44]wFMCommunicate request_size=4 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 0D 03 02 [18:43:44]Write to MH i2c: E2 08 00 AC 3B 80 0D 03 02 00 00 00 00 62 [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 0B 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 0B 00 AC 3B 00 A0 5D 5A 5E 75 39 6B FE 90 00 2F [18:43:44]RAPDU: A0 5D 5A 5E 75 39 6B FE 90 00 [18:43:44]wFMCommunicate OK [18:43:44]SAM_PROTO_SignData done [18:43:44]FM_MakeSignedData done [18:43:44]CreateOFDProtocolMessage [18:43:44]wFMCommunicate request_size=4 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 11 00 00 [18:43:44]Write to MH i2c: E2 08 00 AD 3B 80 11 00 00 00 00 00 00 62 [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 17 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 17 00 AD 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B5 [18:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:43:44]wFMCommunicate OK [18:43:44]CreateOFDProtocolMessage done [18:43:44]OFDSenderStorePacket 104007 [18:43:44]StoreOFDPacket docnum=104007 [18:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F5 E4 07 01 92 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 62 78 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 96 01 00 35 04 06 00 DA 1A 28 7B 9B 7C A0 5D 5A 5E 75 39 6B FE [18:43:44]CheckFolder [18:43:44]dirname=/storage/ofd_packets [18:43:44]CheckFolder done [18:43:44]ProducePacketName [18:43:44]name=ofd_packets/00104007 [18:43:44]NVStorageSaveData ofd_packets/00104007 [18:43:44]File name is /storage/ofd_packets/00104007 [18:43:44]Write 301 bytes [18:43:44]NVStorageSaveData done [18:43:44]OFDSenderStorePacket done [18:43:44]KKMCreateOFDPacket done [18:43:44]NVStorageSaveData kkm_last_timestamp [18:43:44]File name is /storage/kkm_last_timestamp [18:43:44]Write 4 bytes [18:43:44]NVStorageSaveData done [18:43:44]ExternCall_PrintAddStr [18:43:44]wPrintStart [18:43:44]Write to MH i2c: 01 00 00 AE 3B E9 [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: 01 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: 01 07 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: 01 07 00 AE 3B 00 00 00 00 00 FF 0F FE [18:43:44]RasterBufferAndPrint [18:43:44]line Счет N : (1)673385 [18:43:44]line ИНН: 02508201610067 [18:43:44]line Контрольно-Кассовый Чек [18:43:44]line ПРОДАЖА [18:43:44]line ТРК (МРК, ГНК) : 42 [18:43:44]line Товар: 2710124130 [18:43:44]line Аи-92-К-5 [18:43:44]line 7.540 * 66.40 [18:43:44]line = 500.66 [18:43:44]line НДС 12% НСП 1% [18:43:44]line > о реализуемом товаре [18:43:44]line ОКРУГЛЕНИЕ: -0.66 [18:43:44]line ИТОГО: 500.00 [18:43:44]line Внесено: 500.00 [18:43:44]line СДАЧА: 0.00 [18:43:44]line НСП 1% : 4.43 [18:43:44]line НДС 12% : 53.17 [18:43:44]line Наличными: 500.00 [18:43:44]line Безнал.: 0.00 [18:43:44]line Место: АЗС № 120 "Партнер Нефть" [18:43:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:43:44]line СНО: Общий режим [18:43:44]line Чек 192 20.06.2024 18:43 [18:43:44]line Смена: 354 ФФД: 1.0 [18:43:44]line ЗНМ: 0300000164 [18:43:44]line РНМ: 0000000000092785 [18:43:44]line Версия ККМ: 001 [18:43:44]line ФМ: 0000000000875093 [18:43:44]line ФД: 104007 [18:43:44]line ФПД: 239805883194236 [18:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T184346&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104007&fm=239805883194236&tin=02508201610067®Number=0000000000092785&sum=50000 [18:43:45]OFD Sender: Processing packet 104007 [packets to send 17, broken 16] [18:43:45]ProducePacketName [18:43:45]name=ofd_packets/00104007 [18:43:45]OFD Sender: To server: pG, [18:43:45]CommunicateWithHost lk.salyk.kg:30040 [18:43:45]ConnectInit lk.salyk.kg [18:43:45]written 0, free lines is 4095 [18:43:45]Connected sock=10 [18:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F5 E4 07 01 92 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 62 78 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 96 01 00 35 04 06 00 DA 1A 28 7B 9B 7C A0 5D 5A 5E 75 39 6B FE [18:43:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A8 23 47 00 9B 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 47 96 01 00 F4 03 04 00 E7 1E 74 66 B6 04 01 00 00 FA 6C C5 3F 38 89 E6 BB [18:43:45]CommunicateWithHost err = 0 [18:43:45]CheckOFDResponse [18:43:45]1017 (14) - 77093643461234 [18:43:45]1041 (16) - 0000000000875093 [18:43:45]1040 (4) - 104007 [18:43:45]1012 (4) - 20.06.2024 12:21 [18:43:45]1206 (1) - 0 [18:43:45]OFD Sender: Remove packet 104007 [18:43:45]ProducePacketName [18:43:45]name=ofd_packets/00104007 [18:43:45]NVStorageDeleteData [18:43:45]Write to MH i2c: 01 00 00 D9 3B 14 [18:43:45]Write i2c OK [18:43:45]MH_I2C_Read... [18:43:45]Read from MH i2c: 01 [18:43:45]MH_I2C_Read... [18:43:45]Read from MH i2c: 01 07 00 [18:43:45]MH_I2C_Read... [18:43:45]Read from MH i2c: 01 07 00 D9 3B 00 00 00 00 00 DE 0C 05 [18:43:45]RasterBufferAndPrint [18:43:45]line [18:43:45]line [18:43:45]line [18:43:45]line [18:43:45]line [18:43:45]written 0, free lines is 3303 [18:43:45]MH_Cut [18:43:45]Write to MH i2c: D1 01 00 E0 3B 01 ED [18:43:45]Write i2c OK [18:43:45]MH_I2C_Read... [18:43:45]Read from MH i2c: D1 [18:43:45]MH_I2C_Read... [18:43:45]Read from MH i2c: D1 01 00 [18:43:45]MH_I2C_Read... [18:43:45]Read from MH i2c: D1 01 00 E0 3B 00 EC [18:43:45]Write to MH i2c: 01 00 00 E1 3B 1C [18:43:45]Write i2c OK [18:43:45]MH_I2C_Read... [18:43:45]OFD Sender: No OFD packet to send [18:43:46]*** Cut start [18:43:46]*** Partial cut [18:43:46]*** CUTSNS_PIN = 1 [18:43:46]*** CUTSNS_PIN = 0 [18:43:46]*** Brake cut motor [18:43:46]Read from MH i2c: 01 [18:43:46]MH_I2C_Read... [18:43:46]*** Stop cut motor [18:43:46]*** Cut end [18:43:46]Read from MH i2c: 01 07 00 [18:43:46]MH_I2C_Read... [18:43:46]Read from MH i2c: 01 07 00 E1 3B 00 00 00 00 00 FF 0F 31 [18:43:46]process_action close_receipt done [18:43:46]requested_data is exist [18:43:46]produce_requested_data [18:43:46]requested_item fm.sn is exist - process it [18:43:46]wFMCommunicate request_size=4 [18:43:46]MH_SAM_APDU [18:43:46]CAPDU: 80 11 00 00 [18:43:46]Write to MH i2c: E2 08 00 E2 3B 80 11 00 00 00 00 00 00 97 [18:43:46]Write i2c OK [18:43:46]MH_I2C_Read... [18:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:46]Read from MH i2c: E2 [18:43:46]MH_I2C_Read... [18:43:46]Read from MH i2c: E2 17 00 [18:43:46]MH_I2C_Read... [18:43:46]Read from MH i2c: E2 17 00 E2 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EA [18:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:43:46]wFMCommunicate OK [18:43:46]requested_item fd.num is exist - process it [18:43:46]SAM_PROTO_GetFieldsCounters [18:43:46]wFMCommunicate request_size=4 [18:43:46]MH_SAM_APDU [18:43:46]CAPDU: 80 13 00 00 [18:43:46]Write to MH i2c: E2 08 00 E3 3B 80 13 00 00 00 00 00 00 9A [18:43:46]Write i2c OK [18:43:46]MH_I2C_Read... [18:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:47]Read from MH i2c: E2 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: E2 62 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: E2 62 00 E3 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 47 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [18:43:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 47 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:47]wFMCommunicate OK [18:43:47]SAM_PROTO_GetFieldsCounters done [18:43:47]requested_item shift.num is exist - process it [18:43:47]requested_item shift.opened is exist - process it [18:43:47]req_shift_opened [18:43:47]FM_GetShiftState [18:43:47]SAM_PROTO_GetShiftState [18:43:47]wFMCommunicate request_size=4 [18:43:47]MH_SAM_APDU [18:43:47]CAPDU: 80 13 01 00 [18:43:47]Write to MH i2c: E2 08 00 E4 3B 80 13 01 00 00 00 00 00 9C [18:43:47]Write i2c OK [18:43:47]MH_I2C_Read... [18:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:47]Read from MH i2c: E2 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: E2 0E 00 [18:43:47]MH_I2C_Read... [18:43:47]Read from MH i2c: E2 0E 00 E4 3B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EB [18:43:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:43:47]wFMCommunicate OK [18:43:47]SAM_PROTO_GetShiftState done [18:43:47]FM_GetShiftState done [18:43:47]req_shift_opened done [18:43:47]requested_item shift.open_date is exist - process it [18:43:47]req_shift_open_date [18:43:47]req_shift_open_date done [18:43:47]produce_requested_data done [18:43:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104007,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:43:47]process_action_free close_receipt [18:43:47]json_value_free [18:43:47]json_value_free done [18:43:47]process_json_proto returns [18:43:47]Send response to host [18:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104007,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:43:47]free response buf [18:43:47]execute_script done [18:43:47]execute_script returns [18:43:47]free content buf [18:43:47]Sock 9.Close socket [18:43:47]Sock 9.Thread stoped [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:47:59]accept exits with 7 [18:47:59]New connection [18:47:59]New thread 3067063652 created [18:47:59]Thread 3067207012 joined [18:47:59]Waiting for new connection... [18:47:59] Sock 7.Parse request [18:47:59]Sock 7.Check first char [18:47:59]Sock 7.First char is OK [18:47:59]request: POST /json_proto HTTP/1.0 [18:47:59]Method: POST [18:47:59]URL: /json_proto [18:47:59]Method is POST - this is cgi request [18:47:59]url: /json_proto [18:47:59]query_string will be loaded in cgi processing [18:47:59]execute_cgi json_proto POST (null) [18:47:59]execute_cgi path=json_proto method=POST [18:47:59]POST find Content-Length [18:47:59]Host: 172.17.38.133:8080 [18:47:59]Content-Length: 682 [18:47:59]Content-Type: application/json [18:47:59] [18:47:59]POST finish read [18:47:59]Found Content-Length = 682 [18:47:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:59]execute_script... [18:47: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)673386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:59]POST & json_proto [18:47:59]process_json_proto [18:47:59]json parsed OK: [18:47:59]protocol is kg_v1.0 [18:47:59]action value=close_receipt [18:47:59]process_action close_receipt [18:47:59]cmd_close_receipt [18:47:59]MH_GetDate [18:47:59]Write to MH i2c: F0 00 00 E5 3B 0F [18:47:59]Write i2c OK [18:47:59]MH_I2C_Read... [18:47:59]Read from MH i2c: F0 [18:47:59]MH_I2C_Read... [18:47:59]Read from MH i2c: F0 09 00 [18:47:59]MH_I2C_Read... [18:47:59]Read from MH i2c: F0 09 00 E5 3B 00 62 79 74 66 BD 8F 7C 64 F9 [18:47:59]GetLastDocTimeStamp 1718909026 [18:47:59]current date 1718909282 [18:47:59]FM_GetShiftState [18:47:59]SAM_PROTO_GetShiftState [18:47:59]wFMCommunicate request_size=4 [18:47:59]MH_SAM_APDU [18:47:59]CAPDU: 80 13 01 00 [18:47:59]Write to MH i2c: E2 08 00 E6 3B 80 13 01 00 00 00 00 00 9E [18:47:59]Write i2c OK [18:47:59]MH_I2C_Read... [18:47:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:59]Read from MH i2c: E2 [18:47:59]MH_I2C_Read... [18:47:59]Read from MH i2c: E2 0E 00 [18:47:59]MH_I2C_Read... [18:47:59]Read from MH i2c: E2 0E 00 E6 3B 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 ED [18:47:59]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:47:59]wFMCommunicate OK [18:47:59]SAM_PROTO_GetShiftState done [18:47:59]FM_GetShiftState done [18:47:59]opened in 1718843124 [18:47:59]opened+sec_in_day 1718929524 [18:47:59]quantity*price = 100064 [18:47:59]sum+1 = 100066 [18:47:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 193 20.06.2024 18:48 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104008 ФПД: 216856958021531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T184802&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104008&fm=216856958021531&tin=02508201610067®Number=0000000000092785&sum=100000 [18:48:00]StoreToDocumentArchive [18:48:00]shift 354 fd 104008 [18:48:00]save to /storage/0354/doc_00104008 [18:48:00]save last doc name /storage/0354/doc_00104008 to /storage/kkm_last_doc_name [18:48:00]save OK [18:48:00]Clear old archive folders... [18:48:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:00]tlvbuf is 00878800 [18:48:00]SAM_PROTO_ClearQueue [18:48:00]wFMCommunicate request_size=4 [18:48:00]MH_SAM_APDU [18:48:00]CAPDU: 80 09 00 00 [18:48:00]Write to MH i2c: E2 08 00 F3 3B 80 09 00 00 00 00 00 00 A0 [18:48:00]Write i2c OK [18:48:00]MH_I2C_Read... [18:48:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:00]Read from MH i2c: E2 [18:48:00]MH_I2C_Read... [18:48:00]Read from MH i2c: E2 03 00 [18:48:00]MH_I2C_Read... [18:48:00]Read from MH i2c: E2 03 00 F3 3B 00 90 00 A2 [18:48:00]RAPDU: 90 00 [18:48:00]wFMCommunicate OK [18:48:00]SAM_PROTO_ClearQueue done [18:48:00]KKMCreateOFDPacket [18:48:00]OFDProtocolAddRootSTLVToBuf [18:48:00]FM_MakeSignedData [18:48:00]FM_MakeSignedData [18:48:00]SAM_PROTO_SignData [18:48:00]wFMCommunicate request_size=4 [18:48:00]MH_SAM_APDU [18:48:00]CAPDU: 80 0D 01 02 [18:48:00]Write to MH i2c: E2 08 00 F4 3B 80 0D 01 02 00 00 00 00 A8 [18:48:00]Write i2c OK [18:48:00]MH_I2C_Read... [18:48:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:00]Read from MH i2c: E2 [18:48:00]MH_I2C_Read... [18:48:00]Read from MH i2c: E2 03 00 [18:48:00]MH_I2C_Read... [18:48:00]Read from MH i2c: E2 03 00 F4 3B 00 90 00 A3 [18:48:00]RAPDU: 90 00 [18:48:00]wFMCommunicate OK [18:48:00]wFMCommunicate request_size=255 [18:48:00]MH_SAM_APDU [18:48:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 62 79 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 96 01 00 35 04 06 00 C5 [18:48:00]Write to MH i2c: E2 02 01 F5 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 62 79 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 96 01 00 35 04 06 00 C5 00 00 2F [18:48:00]Write i2c OK [18:48:00]MH_I2C_Read... [18:48:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:00]Read from MH i2c: E2 [18:48:00]MH_I2C_Read... [18:48:00]Read from MH i2c: E2 03 00 [18:48:00]MH_I2C_Read... [18:48:00]Read from MH i2c: E2 03 00 F5 3B 00 90 00 A4 [18:48:00]RAPDU: 90 00 [18:48:00]wFMCommunicate OK [18:48:00]wFMCommunicate request_size=10 [18:48:00]MH_SAM_APDU [18:48:00]CAPDU: 80 0D 02 02 05 3A F1 F3 2F 9B [18:48:00]Write to MH i2c: E2 0D 00 F6 3B 80 0D 02 02 05 00 3A F1 F3 2F 9B 00 00 9D [18:48:00]Write i2c OK [18:48:00]MH_I2C_Read... [18:48:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:01]Read from MH i2c: E2 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: E2 03 00 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: E2 03 00 F6 3B 00 90 00 A5 [18:48:01]RAPDU: 90 00 [18:48:01]wFMCommunicate OK [18:48:01]wFMCommunicate request_size=4 [18:48:01]MH_SAM_APDU [18:48:01]CAPDU: 80 0D 03 02 [18:48:01]Write to MH i2c: E2 08 00 F7 3B 80 0D 03 02 00 00 00 00 AD [18:48:01]Write i2c OK [18:48:01]MH_I2C_Read... [18:48:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:01]Read from MH i2c: E2 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: E2 0B 00 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: E2 0B 00 F7 3B 00 40 E8 DA DF 25 0B B2 89 90 00 FA [18:48:01]RAPDU: 40 E8 DA DF 25 0B B2 89 90 00 [18:48:01]wFMCommunicate OK [18:48:01]SAM_PROTO_SignData done [18:48:01]FM_MakeSignedData done [18:48:01]CreateOFDProtocolMessage [18:48:01]wFMCommunicate request_size=4 [18:48:01]MH_SAM_APDU [18:48:01]CAPDU: 80 11 00 00 [18:48:01]Write to MH i2c: E2 08 00 F8 3B 80 11 00 00 00 00 00 00 AD [18:48:01]Write i2c OK [18:48:01]MH_I2C_Read... [18:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:01]Read from MH i2c: E2 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: E2 17 00 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: E2 17 00 F8 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 00 [18:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:48:01]wFMCommunicate OK [18:48:01]CreateOFDProtocolMessage done [18:48:01]OFDSenderStorePacket 104008 [18:48:01]StoreOFDPacket docnum=104008 [18:48:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 20 92 07 01 DC E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 62 79 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 96 01 00 35 04 06 00 C5 3A F1 F3 2F 9B 40 E8 DA DF 25 0B B2 89 [18:48:01]CheckFolder [18:48:01]dirname=/storage/ofd_packets [18:48:01]CheckFolder done [18:48:01]ProducePacketName [18:48:01]name=ofd_packets/00104008 [18:48:01]NVStorageSaveData ofd_packets/00104008 [18:48:01]File name is /storage/ofd_packets/00104008 [18:48:01]Write 301 bytes [18:48:01]NVStorageSaveData done [18:48:01]OFDSenderStorePacket done [18:48:01]KKMCreateOFDPacket done [18:48:01]NVStorageSaveData kkm_last_timestamp [18:48:01]File name is /storage/kkm_last_timestamp [18:48:01]Write 4 bytes [18:48:01]NVStorageSaveData done [18:48:01]ExternCall_PrintAddStr [18:48:01]wPrintStart [18:48:01]Write to MH i2c: 01 00 00 F9 3B 34 [18:48:01]Write i2c OK [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: 01 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: 01 07 00 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: 01 07 00 F9 3B 00 00 00 00 00 FF 0F 49 [18:48:01]RasterBufferAndPrint [18:48:01]line Счет N : (1)673386 [18:48:01]line ИНН: 02508201610067 [18:48:01]line Контрольно-Кассовый Чек [18:48:01]line ПРОДАЖА [18:48:01]line ТРК (МРК, ГНК) : 32 [18:48:01]line Товар: 2710124130 [18:48:01]line Аи-92-К-5 [18:48:01]line 15.070 * 66.40 [18:48:01]line = 1000.65 [18:48:01]line НДС 12% НСП 1% [18:48:01]line > о реализуемом товаре [18:48:01]line ОКРУГЛЕНИЕ: -0.65 [18:48:01]line ИТОГО: 1000.00 [18:48:01]line Внесено: 1000.00 [18:48:01]line СДАЧА: 0.00 [18:48:01]line НСП 1% : 8.85 [18:48:01]line НДС 12% : 106.26 [18:48:01]line Наличными: 1000.00 [18:48:01]line Безнал.: 0.00 [18:48:01]line Место: АЗС № 120 "Партнер Нефть" [18:48:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:48:01]line СНО: Общий режим [18:48:01]line Чек 193 20.06.2024 18:48 [18:48:01]line Смена: 354 ФФД: 1.0 [18:48:01]line ЗНМ: 0300000164 [18:48:01]line РНМ: 0000000000092785 [18:48:01]line Версия ККМ: 001 [18:48:01]line ФМ: 0000000000875093 [18:48:01]line ФД: 104008 [18:48:01]line ФПД: 216856958021531 [18:48:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T184802&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104008&fm=216856958021531&tin=02508201610067®Number=0000000000092785&sum=100000 [18:48:01]OFD Sender: Processing packet 104008 [packets to send 17, broken 16] [18:48:01]ProducePacketName [18:48:01]name=ofd_packets/00104008 [18:48:01]OFD Sender: To server: pG, [18:48:01]CommunicateWithHost lk.salyk.kg:30040 [18:48:01]ConnectInit lk.salyk.kg [18:48:01]written 0, free lines is 4095 [18:48:01]Connected sock=10 [18:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 20 92 07 01 DC E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 62 79 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 96 01 00 35 04 06 00 C5 3A F1 F3 2F 9B 40 E8 DA DF 25 0B B2 89 [18:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E4 A9 47 00 EE 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 48 96 01 00 F4 03 04 00 E7 1F 74 66 B6 04 01 00 00 06 0B 41 D3 BC 98 3C D7 [18:48:01]CommunicateWithHost err = 0 [18:48:01]CheckOFDResponse [18:48:01]1017 (14) - 77093643461234 [18:48:01]1041 (16) - 0000000000875093 [18:48:01]1040 (4) - 104008 [18:48:01]1012 (4) - 20.06.2024 12:26 [18:48:01]1206 (1) - 0 [18:48:01]OFD Sender: Remove packet 104008 [18:48:01]ProducePacketName [18:48:01]name=ofd_packets/00104008 [18:48:01]NVStorageDeleteData [18:48:01]Write to MH i2c: 01 00 00 24 3C 60 [18:48:01]Write i2c OK [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: 01 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: 01 07 00 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: 01 07 00 24 3C 00 00 00 00 00 F3 0C 66 [18:48:01]RasterBufferAndPrint [18:48:01]line [18:48:01]line [18:48:01]line [18:48:01]line [18:48:01]line [18:48:01]written 0, free lines is 3321 [18:48:01]MH_Cut [18:48:01]Write to MH i2c: D1 01 00 2B 3C 01 39 [18:48:01]Write i2c OK [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: D1 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: D1 01 00 [18:48:01]MH_I2C_Read... [18:48:01]Read from MH i2c: D1 01 00 2B 3C 00 38 [18:48:01]Write to MH i2c: 01 00 00 2C 3C 68 [18:48:01]Write i2c OK [18:48:01]MH_I2C_Read... [18:48:02]OFD Sender: No OFD packet to send [18:48:02]*** Cut start [18:48:02]*** Partial cut [18:48:02]*** CUTSNS_PIN = 1 [18:48:02]*** CUTSNS_PIN = 0 [18:48:02]*** Brake cut motor [18:48:03]Read from MH i2c: 01 [18:48:03]MH_I2C_Read... [18:48:03]*** Stop cut motor [18:48:03]*** Cut end [18:48:03]Read from MH i2c: 01 07 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: 01 07 00 2C 3C 00 00 00 00 00 FF 0F 7D [18:48:03]process_action close_receipt done [18:48:03]requested_data is exist [18:48:03]produce_requested_data [18:48:03]requested_item fm.sn is exist - process it [18:48:03]wFMCommunicate request_size=4 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 11 00 00 [18:48:03]Write to MH i2c: E2 08 00 2D 3C 80 11 00 00 00 00 00 00 E3 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 17 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 17 00 2D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 36 [18:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:48:03]wFMCommunicate OK [18:48:03]requested_item fd.num is exist - process it [18:48:03]SAM_PROTO_GetFieldsCounters [18:48:03]wFMCommunicate request_size=4 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 13 00 00 [18:48:03]Write to MH i2c: E2 08 00 2E 3C 80 13 00 00 00 00 00 00 E6 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 62 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 62 00 2E 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 48 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:48:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 48 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:03]wFMCommunicate OK [18:48:03]SAM_PROTO_GetFieldsCounters done [18:48:03]requested_item shift.num is exist - process it [18:48:03]requested_item shift.opened is exist - process it [18:48:03]req_shift_opened [18:48:03]FM_GetShiftState [18:48:03]SAM_PROTO_GetShiftState [18:48:03]wFMCommunicate request_size=4 [18:48:03]MH_SAM_APDU [18:48:03]CAPDU: 80 13 01 00 [18:48:03]Write to MH i2c: E2 08 00 2F 3C 80 13 01 00 00 00 00 00 E8 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:03]Read from MH i2c: E2 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 0E 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: E2 0E 00 2F 3C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 37 [18:48:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:48:03]wFMCommunicate OK [18:48:03]SAM_PROTO_GetShiftState done [18:48:03]FM_GetShiftState done [18:48:03]req_shift_opened done [18:48:03]requested_item shift.open_date is exist - process it [18:48:03]req_shift_open_date [18:48:03]req_shift_open_date done [18:48:03]produce_requested_data done [18:48:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104008,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:48:03]process_action_free close_receipt [18:48:03]json_value_free [18:48:03]json_value_free done [18:48:03]process_json_proto returns [18:48:03]Send response to host [18:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104008,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:48:03]free response buf [18:48:03]execute_script done [18:48:03]execute_script returns [18:48:03]free content buf [18:48:03]Sock 7.Close socket [18:48:03]Sock 7.Thread stoped [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:31]accept exits with 9 [18:50:31]New connection [18:50:31]New thread 3067207012 created [18:50:31]Thread 3067063652 joined [18:50:31]Waiting for new connection... [18:50:31] Sock 9.Parse request [18:50:31]Sock 9.Check first char [18:50:31]Sock 9.First char is OK [18:50:31]request: POST /json_proto HTTP/1.0 [18:50:31]Method: POST [18:50:31]URL: /json_proto [18:50:31]Method is POST - this is cgi request [18:50:31]url: /json_proto [18:50:31]query_string will be loaded in cgi processing [18:50:31]execute_cgi json_proto POST (null) [18:50:31]execute_cgi path=json_proto method=POST [18:50:31]POST find Content-Length [18:50:31]Host: 172.17.38.133:8080 [18:50:31]Content-Length: 678 [18:50:31]Content-Type: application/json [18:50:31] [18:50:31]POST finish read [18:50:31]Found Content-Length = 678 [18:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:31]execute_script... [18:50: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)673387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:31]POST & json_proto [18:50:31]process_json_proto [18:50:31]json parsed OK: [18:50:31]protocol is kg_v1.0 [18:50:31]action value=close_receipt [18:50:31]process_action close_receipt [18:50:31]cmd_close_receipt [18:50:31]MH_GetDate [18:50:31]Write to MH i2c: F0 00 00 30 3C 5B [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: F0 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: F0 09 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: F0 09 00 30 3C 00 FA 79 74 66 BD 8F 7C 64 DD [18:50:31]GetLastDocTimeStamp 1718909282 [18:50:31]current date 1718909434 [18:50:31]FM_GetShiftState [18:50:31]SAM_PROTO_GetShiftState [18:50:31]wFMCommunicate request_size=4 [18:50:31]MH_SAM_APDU [18:50:31]CAPDU: 80 13 01 00 [18:50:31]Write to MH i2c: E2 08 00 31 3C 80 13 01 00 00 00 00 00 EA [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:31]Read from MH i2c: E2 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 0E 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 0E 00 31 3C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 39 [18:50:31]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:50:31]wFMCommunicate OK [18:50:31]SAM_PROTO_GetShiftState done [18:50:31]FM_GetShiftState done [18:50:31]opened in 1718843124 [18:50:31]opened+sec_in_day 1718929524 [18:50:31]quantity*price = 70052 [18:50:31]sum+1 = 70053 [18:50:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 194 20.06.2024 18:50 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104009 ФПД: 76895316042526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T185034&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104009&fm=76895316042526&tin=02508201610067®Number=0000000000092785&sum=70000 [18:50:32]StoreToDocumentArchive [18:50:32]shift 354 fd 104009 [18:50:32]save to /storage/0354/doc_00104009 [18:50:32]save last doc name /storage/0354/doc_00104009 to /storage/kkm_last_doc_name [18:50:32]save OK [18:50:32]Clear old archive folders... [18:50:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:32]tlvbuf is 008C9370 [18:50:32]SAM_PROTO_ClearQueue [18:50:32]wFMCommunicate request_size=4 [18:50:32]MH_SAM_APDU [18:50:32]CAPDU: 80 09 00 00 [18:50:32]Write to MH i2c: E2 08 00 3E 3C 80 09 00 00 00 00 00 00 EC [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 3E 3C 00 90 00 EE [18:50:32]RAPDU: 90 00 [18:50:32]wFMCommunicate OK [18:50:32]SAM_PROTO_ClearQueue done [18:50:32]KKMCreateOFDPacket [18:50:32]OFDProtocolAddRootSTLVToBuf [18:50:32]FM_MakeSignedData [18:50:32]FM_MakeSignedData [18:50:32]SAM_PROTO_SignData [18:50:32]wFMCommunicate request_size=4 [18:50:32]MH_SAM_APDU [18:50:32]CAPDU: 80 0D 01 02 [18:50:32]Write to MH i2c: E2 08 00 3F 3C 80 0D 01 02 00 00 00 00 F4 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 3F 3C 00 90 00 EF [18:50:32]RAPDU: 90 00 [18:50:32]wFMCommunicate OK [18:50:32]wFMCommunicate request_size=255 [18:50:32]MH_SAM_APDU [18:50: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 C2 00 00 00 F4 03 04 00 FA 79 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 96 01 00 35 04 06 00 45 [18:50:32]Write to MH i2c: E2 02 01 40 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 C2 00 00 00 F4 03 04 00 FA 79 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 96 01 00 35 04 06 00 45 00 00 57 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]OFD Sender: No OFD packet to send [18:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 40 3C 00 90 00 F0 [18:50:32]RAPDU: 90 00 [18:50:32]wFMCommunicate OK [18:50:32]wFMCommunicate request_size=10 [18:50:32]MH_SAM_APDU [18:50:32]CAPDU: 80 0D 02 02 05 EF 95 FF 63 1E [18:50:32]Write to MH i2c: E2 0D 00 41 3C 80 0D 02 02 05 00 EF 95 FF 63 1E 00 00 05 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 41 3C 00 90 00 F1 [18:50:32]RAPDU: 90 00 [18:50:32]wFMCommunicate OK [18:50:32]wFMCommunicate request_size=4 [18:50:32]MH_SAM_APDU [18:50:32]CAPDU: 80 0D 03 02 [18:50:32]Write to MH i2c: E2 08 00 42 3C 80 0D 03 02 00 00 00 00 F9 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 0B 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 0B 00 42 3C 00 08 8B DB 07 04 FD 4B 94 90 00 4F [18:50:32]RAPDU: 08 8B DB 07 04 FD 4B 94 90 00 [18:50:32]wFMCommunicate OK [18:50:32]SAM_PROTO_SignData done [18:50:32]FM_MakeSignedData done [18:50:32]CreateOFDProtocolMessage [18:50:32]wFMCommunicate request_size=4 [18:50:32]MH_SAM_APDU [18:50:32]CAPDU: 80 11 00 00 [18:50:32]Write to MH i2c: E2 08 00 43 3C 80 11 00 00 00 00 00 00 F9 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 17 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 17 00 43 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4C [18:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:50:32]wFMCommunicate OK [18:50:32]CreateOFDProtocolMessage done [18:50:32]OFDSenderStorePacket 104009 [18:50:32]StoreOFDPacket docnum=104009 [18:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2C 52 07 01 17 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 C2 00 00 00 F4 03 04 00 FA 79 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 96 01 00 35 04 06 00 45 EF 95 FF 63 1E 08 8B DB 07 04 FD 4B 94 [18:50:32]CheckFolder [18:50:32]dirname=/storage/ofd_packets [18:50:32]CheckFolder done [18:50:32]ProducePacketName [18:50:32]name=ofd_packets/00104009 [18:50:32]NVStorageSaveData ofd_packets/00104009 [18:50:32]File name is /storage/ofd_packets/00104009 [18:50:32]Write 301 bytes [18:50:32]NVStorageSaveData done [18:50:32]OFDSenderStorePacket done [18:50:32]KKMCreateOFDPacket done [18:50:32]NVStorageSaveData kkm_last_timestamp [18:50:32]File name is /storage/kkm_last_timestamp [18:50:32]Write 4 bytes [18:50:32]NVStorageSaveData done [18:50:32]ExternCall_PrintAddStr [18:50:32]wPrintStart [18:50:32]Write to MH i2c: 01 00 00 44 3C 80 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: 01 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: 01 07 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: 01 07 00 44 3C 00 00 00 00 00 FF 0F 95 [18:50:32]RasterBufferAndPrint [18:50:32]line Счет N : (1)673387 [18:50:32]line ИНН: 02508201610067 [18:50:32]line Контрольно-Кассовый Чек [18:50:32]line ПРОДАЖА [18:50:32]line ТРК (МРК, ГНК) : 32 [18:50:32]line Товар: 2710124130 [18:50:32]line Аи-92-К-5 [18:50:32]line 10.550 * 66.40 [18:50:32]line = 700.52 [18:50:32]line НДС 12% НСП 1% [18:50:32]line > о реализуемом товаре [18:50:32]line ОКРУГЛЕНИЕ: -0.52 [18:50:32]line ИТОГО: 700.00 [18:50:32]line Внесено: 700.00 [18:50:32]line СДАЧА: 0.00 [18:50:32]line НСП 1% : 6.20 [18:50:32]line НДС 12% : 74.39 [18:50:32]line Наличными: 700.00 [18:50:32]line Безнал.: 0.00 [18:50:32]line Место: АЗС № 120 "Партнер Нефть" [18:50:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:50:32]line СНО: Общий режим [18:50:32]line Чек 194 20.06.2024 18:50 [18:50:32]line Смена: 354 ФФД: 1.0 [18:50:32]line ЗНМ: 0300000164 [18:50:32]line РНМ: 0000000000092785 [18:50:32]line Версия ККМ: 001 [18:50:32]line ФМ: 0000000000875093 [18:50:32]line ФД: 104009 [18:50:32]line ФПД: 76895316042526 [18:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T185034&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104009&fm=76895316042526&tin=02508201610067®Number=0000000000092785&sum=70000 [18:50:33]OFD Sender: Processing packet 104009 [packets to send 17, broken 16] [18:50:33]ProducePacketName [18:50:33]name=ofd_packets/00104009 [18:50:33]OFD Sender: To server: pG, [18:50:33]CommunicateWithHost lk.salyk.kg:30040 [18:50:33]ConnectInit lk.salyk.kg [18:50:33]written 0, free lines is 4095 [18:50:33]Connected sock=10 [18:50:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2C 52 07 01 17 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 C2 00 00 00 F4 03 04 00 FA 79 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 96 01 00 35 04 06 00 45 EF 95 FF 63 1E 08 8B DB 07 04 FD 4B 94 [18:50:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 60 CF 47 00 78 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 49 96 01 00 F4 03 04 00 7F 20 74 66 B6 04 01 00 00 04 63 11 8A 94 2C 18 3D [18:50:33]CommunicateWithHost err = 0 [18:50:33]CheckOFDResponse [18:50:33]1017 (14) - 77093643461234 [18:50:33]1041 (16) - 0000000000875093 [18:50:33]1040 (4) - 104009 [18:50:33]1012 (4) - 20.06.2024 12:28 [18:50:33]1206 (1) - 0 [18:50:33]OFD Sender: Remove packet 104009 [18:50:33]ProducePacketName [18:50:33]name=ofd_packets/00104009 [18:50:33]NVStorageDeleteData [18:50:33]Write to MH i2c: 01 00 00 6F 3C AB [18:50:33]Write i2c OK [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: 01 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: 01 07 00 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: 01 07 00 6F 3C 00 00 00 00 00 E0 0C 9E [18:50:33]RasterBufferAndPrint [18:50:33]line [18:50:33]line [18:50:33]line [18:50:33]line [18:50:33]line [18:50:33]written 0, free lines is 3301 [18:50:33]MH_Cut [18:50:33]Write to MH i2c: D1 01 00 76 3C 01 84 [18:50:33]Write i2c OK [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: D1 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: D1 01 00 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: D1 01 00 76 3C 00 83 [18:50:33]Write to MH i2c: 01 00 00 77 3C B3 [18:50:33]Write i2c OK [18:50:33]MH_I2C_Read... [18:50:33]OFD Sender: No OFD packet to send [18:50:34]*** Cut start [18:50:34]*** Partial cut [18:50:34]*** CUTSNS_PIN = 1 [18:50:34]*** CUTSNS_PIN = 0 [18:50:34]*** Brake cut motor [18:50:34]Read from MH i2c: 01 [18:50:34]MH_I2C_Read... [18:50:34]*** Stop cut motor [18:50:34]*** Cut end [18:50:34]Read from MH i2c: 01 07 00 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: 01 07 00 77 3C 00 00 00 00 00 FF 0F C8 [18:50:34]process_action close_receipt done [18:50:34]requested_data is exist [18:50:34]produce_requested_data [18:50:34]requested_item fm.sn is exist - process it [18:50:34]wFMCommunicate request_size=4 [18:50:34]MH_SAM_APDU [18:50:34]CAPDU: 80 11 00 00 [18:50:34]Write to MH i2c: E2 08 00 78 3C 80 11 00 00 00 00 00 00 2E [18:50:34]Write i2c OK [18:50:34]MH_I2C_Read... [18:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:34]Read from MH i2c: E2 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: E2 17 00 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: E2 17 00 78 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 81 [18:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:50:34]wFMCommunicate OK [18:50:34]requested_item fd.num is exist - process it [18:50:34]SAM_PROTO_GetFieldsCounters [18:50:34]wFMCommunicate request_size=4 [18:50:34]MH_SAM_APDU [18:50:34]CAPDU: 80 13 00 00 [18:50:34]Write to MH i2c: E2 08 00 79 3C 80 13 00 00 00 00 00 00 31 [18:50:34]Write i2c OK [18:50:34]MH_I2C_Read... [18:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:35]Read from MH i2c: E2 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 62 00 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 62 00 79 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 49 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [18:50:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 49 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:35]wFMCommunicate OK [18:50:35]SAM_PROTO_GetFieldsCounters done [18:50:35]requested_item shift.num is exist - process it [18:50:35]requested_item shift.opened is exist - process it [18:50:35]req_shift_opened [18:50:35]FM_GetShiftState [18:50:35]SAM_PROTO_GetShiftState [18:50:35]wFMCommunicate request_size=4 [18:50:35]MH_SAM_APDU [18:50:35]CAPDU: 80 13 01 00 [18:50:35]Write to MH i2c: E2 08 00 7A 3C 80 13 01 00 00 00 00 00 33 [18:50:35]Write i2c OK [18:50:35]MH_I2C_Read... [18:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:35]Read from MH i2c: E2 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 0E 00 [18:50:35]MH_I2C_Read... [18:50:35]Read from MH i2c: E2 0E 00 7A 3C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 82 [18:50:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:50:35]wFMCommunicate OK [18:50:35]SAM_PROTO_GetShiftState done [18:50:35]FM_GetShiftState done [18:50:35]req_shift_opened done [18:50:35]requested_item shift.open_date is exist - process it [18:50:35]req_shift_open_date [18:50:35]req_shift_open_date done [18:50:35]produce_requested_data done [18:50:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104009,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:50:35]process_action_free close_receipt [18:50:35]json_value_free [18:50:35]json_value_free done [18:50:35]process_json_proto returns [18:50:35]Send response to host [18:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104009,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:50:35]free response buf [18:50:35]execute_script done [18:50:35]execute_script returns [18:50:35]free content buf [18:50:35]Sock 9.Close socket [18:50:35]Sock 9.Thread stoped [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:28]accept exits with 7 [18:58:28]New connection [18:58:28]New thread 3067063652 created [18:58:28]Thread 3067207012 joined [18:58:28]Waiting for new connection... [18:58:28] Sock 7.Parse request [18:58:28]Sock 7.Check first char [18:58:28]Sock 7.First char is OK [18:58:28]request: POST /json_proto HTTP/1.0 [18:58:28]Method: POST [18:58:28]URL: /json_proto [18:58:28]Method is POST - this is cgi request [18:58:28]url: /json_proto [18:58:28]query_string will be loaded in cgi processing [18:58:28]execute_cgi json_proto POST (null) [18:58:28]execute_cgi path=json_proto method=POST [18:58:28]POST find Content-Length [18:58:28]Host: 172.17.38.133:8080 [18:58:28]Content-Length: 682 [18:58:28]Content-Type: application/json [18:58:28] [18:58:28]POST finish read [18:58:28]Found Content-Length = 682 [18:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:28]execute_script... [18:58: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)673388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:28]POST & json_proto [18:58:28]process_json_proto [18:58:28]json parsed OK: [18:58:28]protocol is kg_v1.0 [18:58:28]action value=close_receipt [18:58:28]process_action close_receipt [18:58:28]cmd_close_receipt [18:58:28]MH_GetDate [18:58:28]Write to MH i2c: F0 00 00 7B 3C A6 [18:58:28]Write i2c OK [18:58:28]MH_I2C_Read... [18:58:28]Read from MH i2c: F0 [18:58:28]MH_I2C_Read... [18:58:28]Read from MH i2c: F0 09 00 [18:58:28]MH_I2C_Read... [18:58:28]Read from MH i2c: F0 09 00 7B 3C 00 D7 7B 74 66 BD 8F 7C 64 07 [18:58:28]GetLastDocTimeStamp 1718909434 [18:58:28]current date 1718909911 [18:58:28]FM_GetShiftState [18:58:28]SAM_PROTO_GetShiftState [18:58:28]wFMCommunicate request_size=4 [18:58:28]MH_SAM_APDU [18:58:28]CAPDU: 80 13 01 00 [18:58:28]Write to MH i2c: E2 08 00 7C 3C 80 13 01 00 00 00 00 00 35 [18:58:28]Write i2c OK [18:58:28]MH_I2C_Read... [18:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:28]Read from MH i2c: E2 [18:58:28]MH_I2C_Read... [18:58:28]Read from MH i2c: E2 0E 00 [18:58:28]MH_I2C_Read... [18:58:28]Read from MH i2c: E2 0E 00 7C 3C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 84 [18:58:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:58:28]wFMCommunicate OK [18:58:28]SAM_PROTO_GetShiftState done [18:58:28]FM_GetShiftState done [18:58:28]opened in 1718843124 [18:58:28]opened+sec_in_day 1718929524 [18:58:28]quantity*price = 100064 [18:58:28]sum+1 = 100066 [18:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 195 20.06.2024 18:58 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104010 ФПД: 48342628678273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T185831&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104010&fm=48342628678273&tin=02508201610067®Number=0000000000092785&sum=100000 [18:58:29]StoreToDocumentArchive [18:58:29]shift 354 fd 104010 [18:58:29]save to /storage/0354/doc_00104010 [18:58:29]save last doc name /storage/0354/doc_00104010 to /storage/kkm_last_doc_name [18:58:29]save OK [18:58:29]Clear old archive folders... [18:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:29]tlvbuf is B6DE62A0 [18:58:29]SAM_PROTO_ClearQueue [18:58:29]wFMCommunicate request_size=4 [18:58:29]MH_SAM_APDU [18:58:29]CAPDU: 80 09 00 00 [18:58:29]Write to MH i2c: E2 08 00 89 3C 80 09 00 00 00 00 00 00 37 [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:29]Read from MH i2c: E2 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 89 3C 00 90 00 39 [18:58:29]RAPDU: 90 00 [18:58:29]wFMCommunicate OK [18:58:29]SAM_PROTO_ClearQueue done [18:58:29]KKMCreateOFDPacket [18:58:29]OFDProtocolAddRootSTLVToBuf [18:58:29]FM_MakeSignedData [18:58:29]FM_MakeSignedData [18:58:29]SAM_PROTO_SignData [18:58:29]wFMCommunicate request_size=4 [18:58:29]MH_SAM_APDU [18:58:29]CAPDU: 80 0D 01 02 [18:58:29]Write to MH i2c: E2 08 00 8A 3C 80 0D 01 02 00 00 00 00 3F [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:29]Read from MH i2c: E2 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 8A 3C 00 90 00 3A [18:58:29]RAPDU: 90 00 [18:58:29]wFMCommunicate OK [18:58:29]wFMCommunicate request_size=255 [18:58:29]MH_SAM_APDU [18:58: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D7 7B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 96 01 00 35 04 06 00 2B [18:58:29]Write to MH i2c: E2 02 01 8B 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D7 7B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 96 01 00 35 04 06 00 2B 00 00 A7 [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]OFD Sender: No OFD packet to send [18:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:29]Read from MH i2c: E2 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 8B 3C 00 90 00 3B [18:58:29]RAPDU: 90 00 [18:58:29]wFMCommunicate OK [18:58:29]wFMCommunicate request_size=10 [18:58:29]MH_SAM_APDU [18:58:29]CAPDU: 80 0D 02 02 05 F7 A5 35 BA 81 [18:58:29]Write to MH i2c: E2 0D 00 8C 3C 80 0D 02 02 05 00 F7 A5 35 BA 81 00 00 58 [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:29]Read from MH i2c: E2 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 03 00 8C 3C 00 90 00 3C [18:58:29]RAPDU: 90 00 [18:58:29]wFMCommunicate OK [18:58:29]wFMCommunicate request_size=4 [18:58:29]MH_SAM_APDU [18:58:29]CAPDU: 80 0D 03 02 [18:58:29]Write to MH i2c: E2 08 00 8D 3C 80 0D 03 02 00 00 00 00 44 [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:29]Read from MH i2c: E2 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 0B 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 0B 00 8D 3C 00 74 50 5B 5E 6A 0C C9 6B 90 00 6C [18:58:29]RAPDU: 74 50 5B 5E 6A 0C C9 6B 90 00 [18:58:29]wFMCommunicate OK [18:58:29]SAM_PROTO_SignData done [18:58:29]FM_MakeSignedData done [18:58:29]CreateOFDProtocolMessage [18:58:29]wFMCommunicate request_size=4 [18:58:29]MH_SAM_APDU [18:58:29]CAPDU: 80 11 00 00 [18:58:29]Write to MH i2c: E2 08 00 8E 3C 80 11 00 00 00 00 00 00 44 [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:29]Read from MH i2c: E2 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 17 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 17 00 8E 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 97 [18:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:58:29]wFMCommunicate OK [18:58:29]CreateOFDProtocolMessage done [18:58:29]OFDSenderStorePacket 104010 [18:58:29]StoreOFDPacket docnum=104010 [18:58:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FE B5 07 01 93 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D7 7B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 96 01 00 35 04 06 00 2B F7 A5 35 BA 81 74 50 5B 5E 6A 0C C9 6B [18:58:29]CheckFolder [18:58:29]dirname=/storage/ofd_packets [18:58:29]CheckFolder done [18:58:29]ProducePacketName [18:58:29]name=ofd_packets/00104010 [18:58:29]NVStorageSaveData ofd_packets/00104010 [18:58:29]File name is /storage/ofd_packets/00104010 [18:58:29]Write 301 bytes [18:58:29]NVStorageSaveData done [18:58:29]OFDSenderStorePacket done [18:58:29]KKMCreateOFDPacket done [18:58:29]NVStorageSaveData kkm_last_timestamp [18:58:29]File name is /storage/kkm_last_timestamp [18:58:29]Write 4 bytes [18:58:29]NVStorageSaveData done [18:58:29]ExternCall_PrintAddStr [18:58:29]wPrintStart [18:58:29]Write to MH i2c: 01 00 00 8F 3C CB [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: 01 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: 01 07 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: 01 07 00 8F 3C 00 00 00 00 00 FF 0F E0 [18:58:29]RasterBufferAndPrint [18:58:29]line Счет N : (1)673388 [18:58:29]line ИНН: 02508201610067 [18:58:29]line Контрольно-Кассовый Чек [18:58:29]line ПРОДАЖА [18:58:29]line ТРК (МРК, ГНК) : 42 [18:58:29]line Товар: 2710124130 [18:58:29]line Аи-92-К-5 [18:58:29]line 15.070 * 66.40 [18:58:29]line = 1000.65 [18:58:29]line НДС 12% НСП 1% [18:58:29]line > о реализуемом товаре [18:58:29]line ОКРУГЛЕНИЕ: -0.65 [18:58:29]line ИТОГО: 1000.00 [18:58:29]line Внесено: 1000.00 [18:58:29]line СДАЧА: 0.00 [18:58:29]line НСП 1% : 8.85 [18:58:29]line НДС 12% : 106.26 [18:58:29]line Наличными: 1000.00 [18:58:29]line Безнал.: 0.00 [18:58:29]line Место: АЗС № 120 "Партнер Нефть" [18:58:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:58:29]line СНО: Общий режим [18:58:29]line Чек 195 20.06.2024 18:58 [18:58:29]line Смена: 354 ФФД: 1.0 [18:58:29]line ЗНМ: 0300000164 [18:58:29]line РНМ: 0000000000092785 [18:58:29]line Версия ККМ: 001 [18:58:29]line ФМ: 0000000000875093 [18:58:29]line ФД: 104010 [18:58:29]line ФПД: 48342628678273 [18:58:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T185831&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104010&fm=48342628678273&tin=02508201610067®Number=0000000000092785&sum=100000 [18:58:30]OFD Sender: Processing packet 104010 [packets to send 17, broken 16] [18:58:30]ProducePacketName [18:58:30]name=ofd_packets/00104010 [18:58:30]OFD Sender: To server: pG, [18:58:30]CommunicateWithHost lk.salyk.kg:30040 [18:58:30]ConnectInit lk.salyk.kg [18:58:30]written 0, free lines is 4095 [18:58:30]Connected sock=10 [18:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FE B5 07 01 93 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 D7 7B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 96 01 00 35 04 06 00 2B F7 A5 35 BA 81 74 50 5B 5E 6A 0C C9 6B [18:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 62 D9 47 00 50 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4A 96 01 00 F4 03 04 00 5C 22 74 66 B6 04 01 00 00 92 83 34 70 9D A3 10 D3 [18:58:30]CommunicateWithHost err = 0 [18:58:30]CheckOFDResponse [18:58:30]1017 (14) - 77093643461234 [18:58:30]1041 (16) - 0000000000875093 [18:58:30]1040 (4) - 104010 [18:58:30]1012 (4) - 20.06.2024 12:36 [18:58:30]1206 (1) - 0 [18:58:30]OFD Sender: Remove packet 104010 [18:58:30]ProducePacketName [18:58:30]name=ofd_packets/00104010 [18:58:30]NVStorageDeleteData [18:58:30]Write to MH i2c: 01 00 00 BA 3C F6 [18:58:30]Write i2c OK [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: 01 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: 01 07 00 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: 01 07 00 BA 3C 00 00 00 00 00 EC 0C F5 [18:58:30]RasterBufferAndPrint [18:58:30]line [18:58:30]line [18:58:30]line [18:58:30]line [18:58:30]line [18:58:30]written 0, free lines is 3317 [18:58:30]MH_Cut [18:58:30]Write to MH i2c: D1 01 00 C1 3C 01 CF [18:58:30]Write i2c OK [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: D1 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: D1 01 00 [18:58:30]MH_I2C_Read... [18:58:30]Read from MH i2c: D1 01 00 C1 3C 00 CE [18:58:30]Write to MH i2c: 01 00 00 C2 3C FE [18:58:30]Write i2c OK [18:58:30]MH_I2C_Read... [18:58:31]OFD Sender: No OFD packet to send [18:58:31]*** Cut start [18:58:31]*** Partial cut [18:58:31]*** CUTSNS_PIN = 1 [18:58:31]*** CUTSNS_PIN = 0 [18:58:31]*** Brake cut motor [18:58:31]Read from MH i2c: 01 [18:58:31]MH_I2C_Read... [18:58:31]*** Stop cut motor [18:58:31]*** Cut end [18:58:31]Read from MH i2c: 01 07 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: 01 07 00 C2 3C 00 00 00 00 00 FF 0F 13 [18:58:31]process_action close_receipt done [18:58:31]requested_data is exist [18:58:31]produce_requested_data [18:58:31]requested_item fm.sn is exist - process it [18:58:31]wFMCommunicate request_size=4 [18:58:31]MH_SAM_APDU [18:58:31]CAPDU: 80 11 00 00 [18:58:31]Write to MH i2c: E2 08 00 C3 3C 80 11 00 00 00 00 00 00 79 [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:31]Read from MH i2c: E2 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 17 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 17 00 C3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CC [18:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:58:31]wFMCommunicate OK [18:58:31]requested_item fd.num is exist - process it [18:58:31]SAM_PROTO_GetFieldsCounters [18:58:31]wFMCommunicate request_size=4 [18:58:31]MH_SAM_APDU [18:58:31]CAPDU: 80 13 00 00 [18:58:31]Write to MH i2c: E2 08 00 C4 3C 80 13 00 00 00 00 00 00 7C [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:32]Read from MH i2c: E2 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: E2 62 00 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: E2 62 00 C4 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [18:58:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:32]wFMCommunicate OK [18:58:32]SAM_PROTO_GetFieldsCounters done [18:58:32]requested_item shift.num is exist - process it [18:58:32]requested_item shift.opened is exist - process it [18:58:32]req_shift_opened [18:58:32]FM_GetShiftState [18:58:32]SAM_PROTO_GetShiftState [18:58:32]wFMCommunicate request_size=4 [18:58:32]MH_SAM_APDU [18:58:32]CAPDU: 80 13 01 00 [18:58:32]Write to MH i2c: E2 08 00 C5 3C 80 13 01 00 00 00 00 00 7E [18:58:32]Write i2c OK [18:58:32]MH_I2C_Read... [18:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:32]Read from MH i2c: E2 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: E2 0E 00 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: E2 0E 00 C5 3C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CD [18:58:32]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:58:32]wFMCommunicate OK [18:58:32]SAM_PROTO_GetShiftState done [18:58:32]FM_GetShiftState done [18:58:32]req_shift_opened done [18:58:32]requested_item shift.open_date is exist - process it [18:58:32]req_shift_open_date [18:58:32]req_shift_open_date done [18:58:32]produce_requested_data done [18:58:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104010,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:58:32]process_action_free close_receipt [18:58:32]json_value_free [18:58:32]json_value_free done [18:58:32]process_json_proto returns [18:58:32]Send response to host [18:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104010,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:58:32]free response buf [18:58:32]execute_script done [18:58:32]execute_script returns [18:58:32]free content buf [18:58:32]Sock 7.Close socket [18:58:32]Sock 7.Thread stoped [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:26]accept exits with 9 [18:59:26]New connection [18:59:26]New thread 3067207012 created [18:59:26]Thread 3067063652 joined [18:59:26]Waiting for new connection... [18:59:26] Sock 9.Parse request [18:59:26]Sock 9.Check first char [18:59:26]Sock 9.First char is OK [18:59:26]request: POST /json_proto HTTP/1.0 [18:59:26]Method: POST [18:59:26]URL: /json_proto [18:59:26]Method is POST - this is cgi request [18:59:26]url: /json_proto [18:59:26]query_string will be loaded in cgi processing [18:59:26]execute_cgi json_proto POST (null) [18:59:26]execute_cgi path=json_proto method=POST [18:59:26]POST find Content-Length [18:59:26]Host: 172.17.38.133:8080 [18:59:26]Content-Length: 678 [18:59:26]Content-Type: application/json [18:59:26] [18:59:26]POST finish read [18:59:26]Found Content-Length = 678 [18:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.250, "sum" : 680.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:26]execute_script... [18:59: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)673389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.250, "sum" : 680.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:26]POST & json_proto [18:59:26]process_json_proto [18:59:26]json parsed OK: [18:59:26]protocol is kg_v1.0 [18:59:26]action value=close_receipt [18:59:26]process_action close_receipt [18:59:26]cmd_close_receipt [18:59:26]MH_GetDate [18:59:26]Write to MH i2c: F0 00 00 C6 3C F1 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: F0 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: F0 09 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: F0 09 00 C6 3C 00 11 7C 74 66 BD 8F 7C 64 8D [18:59:26]GetLastDocTimeStamp 1718909911 [18:59:26]current date 1718909969 [18:59:26]FM_GetShiftState [18:59:26]SAM_PROTO_GetShiftState [18:59:26]wFMCommunicate request_size=4 [18:59:26]MH_SAM_APDU [18:59:26]CAPDU: 80 13 01 00 [18:59:26]Write to MH i2c: E2 08 00 C7 3C 80 13 01 00 00 00 00 00 80 [18:59:26]Write i2c OK [18:59:26]MH_I2C_Read... [18:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:26]Read from MH i2c: E2 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 0E 00 [18:59:26]MH_I2C_Read... [18:59:26]Read from MH i2c: E2 0E 00 C7 3C 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CF [18:59:26]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:59:26]wFMCommunicate OK [18:59:26]SAM_PROTO_GetShiftState done [18:59:26]FM_GetShiftState done [18:59:26]opened in 1718843124 [18:59:26]opened+sec_in_day 1718929524 [18:59:26]quantity*price = 68060 [18:59:26]sum+1 = 68061 [18:59:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.28 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 196 20.06.2024 18:59 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104011 ФПД: 50297344931706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T185930&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104011&fm=50297344931706&tin=02508201610067®Number=0000000000092785&sum=68000 [18:59:27]StoreToDocumentArchive [18:59:27]shift 354 fd 104011 [18:59:27]save to /storage/0354/doc_00104011 [18:59:27]save last doc name /storage/0354/doc_00104011 to /storage/kkm_last_doc_name [18:59:27]save OK [18:59:27]Clear old archive folders... [18:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:27]tlvbuf is 0088F180 [18:59:27]SAM_PROTO_ClearQueue [18:59:27]wFMCommunicate request_size=4 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 09 00 00 [18:59:27]Write to MH i2c: E2 08 00 D4 3C 80 09 00 00 00 00 00 00 82 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 D4 3C 00 90 00 84 [18:59:27]RAPDU: 90 00 [18:59:27]wFMCommunicate OK [18:59:27]SAM_PROTO_ClearQueue done [18:59:27]KKMCreateOFDPacket [18:59:27]OFDProtocolAddRootSTLVToBuf [18:59:27]FM_MakeSignedData [18:59:27]FM_MakeSignedData [18:59:27]SAM_PROTO_SignData [18:59:27]wFMCommunicate request_size=4 [18:59:27]MH_SAM_APDU [18:59:27]CAPDU: 80 0D 01 02 [18:59:27]Write to MH i2c: E2 08 00 D5 3C 80 0D 01 02 00 00 00 00 8A [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:27]Read from MH i2c: E2 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 [18:59:27]MH_I2C_Read... [18:59:27]Read from MH i2c: E2 03 00 D5 3C 00 90 00 85 [18:59:27]RAPDU: 90 00 [18:59:27]wFMCommunicate OK [18:59:27]wFMCommunicate request_size=255 [18:59:27]MH_SAM_APDU [18:59: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 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 12 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 96 01 00 35 04 06 00 2D [18:59:27]Write to MH i2c: E2 02 01 D6 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 12 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 96 01 00 35 04 06 00 2D 00 00 61 [18:59:27]Write i2c OK [18:59:27]MH_I2C_Read... [18:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:28]Read from MH i2c: E2 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 03 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 03 00 D6 3C 00 90 00 86 [18:59:28]RAPDU: 90 00 [18:59:28]wFMCommunicate OK [18:59:28]wFMCommunicate request_size=10 [18:59:28]MH_SAM_APDU [18:59:28]CAPDU: 80 0D 02 02 05 BE C3 60 B7 7A [18:59:28]Write to MH i2c: E2 0D 00 D7 3C 80 0D 02 02 05 00 BE C3 60 B7 7A 00 00 A9 [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:28]Read from MH i2c: E2 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 03 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 03 00 D7 3C 00 90 00 87 [18:59:28]RAPDU: 90 00 [18:59:28]wFMCommunicate OK [18:59:28]wFMCommunicate request_size=4 [18:59:28]MH_SAM_APDU [18:59:28]CAPDU: 80 0D 03 02 [18:59:28]Write to MH i2c: E2 08 00 D8 3C 80 0D 03 02 00 00 00 00 8F [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:28]Read from MH i2c: E2 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 0B 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 0B 00 D8 3C 00 87 94 5E 03 25 7F FF BB 90 00 6A [18:59:28]RAPDU: 87 94 5E 03 25 7F FF BB 90 00 [18:59:28]wFMCommunicate OK [18:59:28]SAM_PROTO_SignData done [18:59:28]FM_MakeSignedData done [18:59:28]CreateOFDProtocolMessage [18:59:28]wFMCommunicate request_size=4 [18:59:28]MH_SAM_APDU [18:59:28]CAPDU: 80 11 00 00 [18:59:28]Write to MH i2c: E2 08 00 D9 3C 80 11 00 00 00 00 00 00 8F [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:28]Read from MH i2c: E2 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 17 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: E2 17 00 D9 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E2 [18:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:59:28]wFMCommunicate OK [18:59:28]CreateOFDProtocolMessage done [18:59:28]OFDSenderStorePacket 104011 [18:59:28]StoreOFDPacket docnum=104011 [18:59:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 15 3D 07 01 AE 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 12 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 96 01 00 35 04 06 00 2D BE C3 60 B7 7A 87 94 5E 03 25 7F FF BB [18:59:28]CheckFolder [18:59:28]dirname=/storage/ofd_packets [18:59:28]CheckFolder done [18:59:28]ProducePacketName [18:59:28]name=ofd_packets/00104011 [18:59:28]NVStorageSaveData ofd_packets/00104011 [18:59:28]File name is /storage/ofd_packets/00104011 [18:59:28]Write 301 bytes [18:59:28]NVStorageSaveData done [18:59:28]OFDSenderStorePacket done [18:59:28]KKMCreateOFDPacket done [18:59:28]NVStorageSaveData kkm_last_timestamp [18:59:28]File name is /storage/kkm_last_timestamp [18:59:28]Write 4 bytes [18:59:28]NVStorageSaveData done [18:59:28]ExternCall_PrintAddStr [18:59:28]wPrintStart [18:59:28]Write to MH i2c: 01 00 00 DA 3C 16 [18:59:28]Write i2c OK [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: 01 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: 01 07 00 [18:59:28]MH_I2C_Read... [18:59:28]Read from MH i2c: 01 07 00 DA 3C 00 00 00 00 00 FF 0F 2B [18:59:28]RasterBufferAndPrint [18:59:28]line Счет N : (1)673389 [18:59:28]line ИНН: 02508201610067 [18:59:28]line Контрольно-Кассовый Чек [18:59:28]line ПРОДАЖА [18:59:28]line ТРК (МРК, ГНК) : 32 [18:59:28]line Товар: 2710124130 [18:59:28]line Аи-92-К-5 [18:59:28]line 10.250 * 66.40 [18:59:28]line = 680.60 [18:59:28]line НДС 12% НСП 1% [18:59:28]line > о реализуемом товаре [18:59:28]line ОКРУГЛЕНИЕ: -0.60 [18:59:28]line ИТОГО: 680.00 [18:59:28]line Внесено: 680.00 [18:59:28]line СДАЧА: 0.00 [18:59:28]line НСП 1% : 6.02 [18:59:28]line НДС 12% : 72.28 [18:59:28]line Наличными: 680.00 [18:59:28]line Безнал.: 0.00 [18:59:28]line Место: АЗС № 120 "Партнер Нефть" [18:59:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [18:59:28]line СНО: Общий режим [18:59:28]line Чек 196 20.06.2024 18:59 [18:59:28]line Смена: 354 ФФД: 1.0 [18:59:28]line ЗНМ: 0300000164 [18:59:28]line РНМ: 0000000000092785 [18:59:28]line Версия ККМ: 001 [18:59:28]line ФМ: 0000000000875093 [18:59:28]line ФД: 104011 [18:59:28]line ФПД: 50297344931706 [18:59:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T185930&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104011&fm=50297344931706&tin=02508201610067®Number=0000000000092785&sum=68000 [18:59:28]written 0, free lines is 4095 [18:59:28]OFD Sender: Processing packet 104011 [packets to send 17, broken 16] [18:59:28]ProducePacketName [18:59:28]name=ofd_packets/00104011 [18:59:28]OFD Sender: To server: pG, [18:59:28]CommunicateWithHost lk.salyk.kg:30040 [18:59:28]ConnectInit lk.salyk.kg [18:59:28]Connected sock=10 [18:59:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 15 3D 07 01 AE 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DC 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 12 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 96 01 00 35 04 06 00 2D BE C3 60 B7 7A 87 94 5E 03 25 7F FF BB [18:59:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 13 02 47 00 4D 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4B 96 01 00 F4 03 04 00 96 22 74 66 B6 04 01 00 00 98 42 B7 B4 C1 55 DB C0 [18:59:29]CommunicateWithHost err = 0 [18:59:29]CheckOFDResponse [18:59:29]1017 (14) - 77093643461234 [18:59:29]1041 (16) - 0000000000875093 [18:59:29]1040 (4) - 104011 [18:59:29]1012 (4) - 20.06.2024 12:37 [18:59:29]1206 (1) - 0 [18:59:29]OFD Sender: Remove packet 104011 [18:59:29]ProducePacketName [18:59:29]name=ofd_packets/00104011 [18:59:29]NVStorageDeleteData [18:59:29]Write to MH i2c: 01 00 00 05 3D 42 [18:59:29]Write i2c OK [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: 01 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: 01 07 00 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: 01 07 00 05 3D 00 00 00 00 00 E8 0C 3D [18:59:29]RasterBufferAndPrint [18:59:29]line [18:59:29]line [18:59:29]line [18:59:29]line [18:59:29]line [18:59:29]written 0, free lines is 3310 [18:59:29]MH_Cut [18:59:29]Write to MH i2c: D1 01 00 0C 3D 01 1B [18:59:29]Write i2c OK [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: D1 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: D1 01 00 [18:59:29]MH_I2C_Read... [18:59:29]Read from MH i2c: D1 01 00 0C 3D 00 1A [18:59:29]Write to MH i2c: 01 00 00 0D 3D 4A [18:59:29]Write i2c OK [18:59:29]MH_I2C_Read... [18:59:29]OFD Sender: No OFD packet to send [18:59:29]*** Cut start [18:59:29]*** Partial cut [18:59:29]*** CUTSNS_PIN = 1 [18:59:29]*** CUTSNS_PIN = 0 [18:59:30]*** Brake cut motor [18:59:30]Read from MH i2c: 01 [18:59:30]MH_I2C_Read... [18:59:30]*** Stop cut motor [18:59:30]*** Cut end [18:59:30]Read from MH i2c: 01 07 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: 01 07 00 0D 3D 00 00 00 00 00 FF 0F 5F [18:59:30]process_action close_receipt done [18:59:30]requested_data is exist [18:59:30]produce_requested_data [18:59:30]requested_item fm.sn is exist - process it [18:59:30]wFMCommunicate request_size=4 [18:59:30]MH_SAM_APDU [18:59:30]CAPDU: 80 11 00 00 [18:59:30]Write to MH i2c: E2 08 00 0E 3D 80 11 00 00 00 00 00 00 C5 [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:30]Read from MH i2c: E2 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 17 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 17 00 0E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 18 [18:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [18:59:30]wFMCommunicate OK [18:59:30]requested_item fd.num is exist - process it [18:59:30]SAM_PROTO_GetFieldsCounters [18:59:30]wFMCommunicate request_size=4 [18:59:30]MH_SAM_APDU [18:59:30]CAPDU: 80 13 00 00 [18:59:30]Write to MH i2c: E2 08 00 0F 3D 80 13 00 00 00 00 00 00 C8 [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:30]Read from MH i2c: E2 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 62 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 62 00 0F 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [18:59:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:59:30]wFMCommunicate OK [18:59:30]SAM_PROTO_GetFieldsCounters done [18:59:30]requested_item shift.num is exist - process it [18:59:30]requested_item shift.opened is exist - process it [18:59:30]req_shift_opened [18:59:30]FM_GetShiftState [18:59:30]SAM_PROTO_GetShiftState [18:59:30]wFMCommunicate request_size=4 [18:59:30]MH_SAM_APDU [18:59:30]CAPDU: 80 13 01 00 [18:59:30]Write to MH i2c: E2 08 00 10 3D 80 13 01 00 00 00 00 00 CA [18:59:30]Write i2c OK [18:59:30]MH_I2C_Read... [18:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:30]Read from MH i2c: E2 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 0E 00 [18:59:30]MH_I2C_Read... [18:59:30]Read from MH i2c: E2 0E 00 10 3D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 19 [18:59:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [18:59:30]wFMCommunicate OK [18:59:30]SAM_PROTO_GetShiftState done [18:59:30]FM_GetShiftState done [18:59:30]req_shift_opened done [18:59:30]requested_item shift.open_date is exist - process it [18:59:30]req_shift_open_date [18:59:30]req_shift_open_date done [18:59:30]produce_requested_data done [18:59:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104011,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [18:59:30]process_action_free close_receipt [18:59:30]json_value_free [18:59:30]json_value_free done [18:59:30]process_json_proto returns [18:59:30]Send response to host [18:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104011,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [18:59:30]free response buf [18:59:30]execute_script done [18:59:30]execute_script returns [18:59:30]free content buf [18:59:30]Sock 9.Close socket [18:59:30]Sock 9.Thread stoped [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:16]accept exits with 7 [19:01:16]New connection [19:01:16]New thread 3067063652 created [19:01:16]Thread 3067207012 joined [19:01:16]Waiting for new connection... [19:01:16] Sock 7.Parse request [19:01:16]Sock 7.Check first char [19:01:16]Sock 7.First char is OK [19:01:16]request: POST /json_proto HTTP/1.0 [19:01:16]Method: POST [19:01:16]URL: /json_proto [19:01:16]Method is POST - this is cgi request [19:01:16]url: /json_proto [19:01:16]query_string will be loaded in cgi processing [19:01:16]execute_cgi json_proto POST (null) [19:01:16]execute_cgi path=json_proto method=POST [19:01:16]POST find Content-Length [19:01:16]Host: 172.17.38.133:8080 [19:01:16]Content-Length: 678 [19:01:16]Content-Type: application/json [19:01:16] [19:01:16]POST finish read [19:01:16]Found Content-Length = 678 [19:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [19:01:16]execute_script... [19:01: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)673391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [19:01:16]POST & json_proto [19:01:16]process_json_proto [19:01:16]json parsed OK: [19:01:16]protocol is kg_v1.0 [19:01:16]action value=close_receipt [19:01:16]process_action close_receipt [19:01:16]cmd_close_receipt [19:01:16]MH_GetDate [19:01:16]Write to MH i2c: F0 00 00 11 3D 3D [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: F0 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: F0 09 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: F0 09 00 11 3D 00 80 7C 74 66 BD 8F 7C 64 48 [19:01:16]GetLastDocTimeStamp 1718909970 [19:01:16]current date 1718910080 [19:01:16]FM_GetShiftState [19:01:16]SAM_PROTO_GetShiftState [19:01:16]wFMCommunicate request_size=4 [19:01:16]MH_SAM_APDU [19:01:16]CAPDU: 80 13 01 00 [19:01:16]Write to MH i2c: E2 08 00 12 3D 80 13 01 00 00 00 00 00 CC [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:16]Read from MH i2c: E2 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 0E 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: E2 0E 00 12 3D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [19:01:16]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:01:16]wFMCommunicate OK [19:01:16]SAM_PROTO_GetShiftState done [19:01:16]FM_GetShiftState done [19:01:16]opened in 1718843124 [19:01:16]opened+sec_in_day 1718929524 [19:01:16]quantity*price = 70052 [19:01:16]sum+1 = 70053 [19:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 197 20.06.2024 19:01 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104012 ФПД: 7314241312888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190120&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104012&fm=7314241312888&tin=02508201610067®Number=0000000000092785&sum=70000 [19:01:18]StoreToDocumentArchive [19:01:18]shift 354 fd 104012 [19:01:18]save to /storage/0354/doc_00104012 [19:01:18]save last doc name /storage/0354/doc_00104012 to /storage/kkm_last_doc_name [19:01:18]save OK [19:01:18]Clear old archive folders... [19:01:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:18]tlvbuf is 0089B590 [19:01:18]SAM_PROTO_ClearQueue [19:01:18]wFMCommunicate request_size=4 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 09 00 00 [19:01:18]Write to MH i2c: E2 08 00 1F 3D 80 09 00 00 00 00 00 00 CE [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 03 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 03 00 1F 3D 00 90 00 D0 [19:01:18]RAPDU: 90 00 [19:01:18]wFMCommunicate OK [19:01:18]SAM_PROTO_ClearQueue done [19:01:18]KKMCreateOFDPacket [19:01:18]OFDProtocolAddRootSTLVToBuf [19:01:18]FM_MakeSignedData [19:01:18]FM_MakeSignedData [19:01:18]SAM_PROTO_SignData [19:01:18]wFMCommunicate request_size=4 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 0D 01 02 [19:01:18]Write to MH i2c: E2 08 00 20 3D 80 0D 01 02 00 00 00 00 D6 [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 03 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 03 00 20 3D 00 90 00 D1 [19:01:18]RAPDU: 90 00 [19:01:18]wFMCommunicate OK [19:01:18]wFMCommunicate request_size=255 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 C5 00 00 00 F4 03 04 00 80 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 96 01 00 35 04 06 00 06 [19:01:18]Write to MH i2c: E2 02 01 21 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 C5 00 00 00 F4 03 04 00 80 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 96 01 00 35 04 06 00 06 00 00 89 [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 03 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 03 00 21 3D 00 90 00 D2 [19:01:18]RAPDU: 90 00 [19:01:18]wFMCommunicate OK [19:01:18]wFMCommunicate request_size=10 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 0D 02 02 05 A6 FA C1 58 78 [19:01:18]Write to MH i2c: E2 0D 00 22 3D 80 0D 02 02 05 00 A6 FA C1 58 78 00 00 14 [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 03 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 03 00 22 3D 00 90 00 D3 [19:01:18]RAPDU: 90 00 [19:01:18]wFMCommunicate OK [19:01:18]wFMCommunicate request_size=4 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 0D 03 02 [19:01:18]Write to MH i2c: E2 08 00 23 3D 80 0D 03 02 00 00 00 00 DB [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 0B 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 0B 00 23 3D 00 E7 08 56 FF AD 4D AB 92 90 00 57 [19:01:18]RAPDU: E7 08 56 FF AD 4D AB 92 90 00 [19:01:18]wFMCommunicate OK [19:01:18]SAM_PROTO_SignData done [19:01:18]FM_MakeSignedData done [19:01:18]CreateOFDProtocolMessage [19:01:18]wFMCommunicate request_size=4 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 11 00 00 [19:01:18]Write to MH i2c: E2 08 00 24 3D 80 11 00 00 00 00 00 00 DB [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 17 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 17 00 24 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2E [19:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:01:18]wFMCommunicate OK [19:01:18]CreateOFDProtocolMessage done [19:01:18]OFDSenderStorePacket 104012 [19:01:18]StoreOFDPacket docnum=104012 [19:01:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 34 BA 07 01 8D 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 C5 00 00 00 F4 03 04 00 80 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 96 01 00 35 04 06 00 06 A6 FA C1 58 78 E7 08 56 FF AD 4D AB 92 [19:01:18]CheckFolder [19:01:18]dirname=/storage/ofd_packets [19:01:18]CheckFolder done [19:01:18]ProducePacketName [19:01:18]name=ofd_packets/00104012 [19:01:18]NVStorageSaveData ofd_packets/00104012 [19:01:18]File name is /storage/ofd_packets/00104012 [19:01:18]Write 301 bytes [19:01:18]NVStorageSaveData done [19:01:18]OFDSenderStorePacket done [19:01:18]KKMCreateOFDPacket done [19:01:18]NVStorageSaveData kkm_last_timestamp [19:01:18]File name is /storage/kkm_last_timestamp [19:01:18]Write 4 bytes [19:01:18]NVStorageSaveData done [19:01:18]ExternCall_PrintAddStr [19:01:18]wPrintStart [19:01:18]Write to MH i2c: 01 00 00 25 3D 62 [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: 01 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: 01 07 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: 01 07 00 25 3D 00 00 00 00 00 FF 0F 77 [19:01:18]RasterBufferAndPrint [19:01:18]line Счет N : (1)673391 [19:01:18]line ИНН: 02508201610067 [19:01:18]line Контрольно-Кассовый Чек [19:01:18]line ПРОДАЖА [19:01:18]line ТРК (МРК, ГНК) : 42 [19:01:18]line Товар: 2710124130 [19:01:18]line Аи-92-К-5 [19:01:18]line 10.550 * 66.40 [19:01:18]line = 700.52 [19:01:18]line НДС 12% НСП 1% [19:01:18]line > о реализуемом товаре [19:01:18]line ОКРУГЛЕНИЕ: -0.52 [19:01:18]line ИТОГО: 700.00 [19:01:18]line Внесено: 700.00 [19:01:18]line СДАЧА: 0.00 [19:01:18]line НСП 1% : 6.20 [19:01:18]line НДС 12% : 74.39 [19:01:18]line Наличными: 700.00 [19:01:18]line Безнал.: 0.00 [19:01:18]line Место: АЗС № 120 "Партнер Нефть" [19:01:18]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:01:18]line СНО: Общий режим [19:01:18]line Чек 197 20.06.2024 19:01 [19:01:18]line Смена: 354 ФФД: 1.0 [19:01:18]line ЗНМ: 0300000164 [19:01:18]line РНМ: 0000000000092785 [19:01:18]line Версия ККМ: 001 [19:01:18]line ФМ: 0000000000875093 [19:01:18]line ФД: 104012 [19:01:18]line ФПД: 7314241312888 [19:01:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190120&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104012&fm=7314241312888&tin=02508201610067®Number=0000000000092785&sum=70000 [19:01:18]written 0, free lines is 4095 [19:01:18]OFD Sender: Processing packet 104012 [packets to send 17, broken 16] [19:01:18]ProducePacketName [19:01:18]name=ofd_packets/00104012 [19:01:18]OFD Sender: To server: pG, [19:01:18]CommunicateWithHost lk.salyk.kg:30040 [19:01:18]ConnectInit lk.salyk.kg [19:01:19]Connected sock=9 [19:01:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 34 BA 07 01 8D 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 C5 00 00 00 F4 03 04 00 80 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 96 01 00 35 04 06 00 06 A6 FA C1 58 78 E7 08 56 FF AD 4D AB 92 [19:01:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 64 83 47 00 7C EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4C 96 01 00 F4 03 04 00 05 23 74 66 B6 04 01 00 00 D6 88 41 43 CE E8 0E 0C [19:01:19]CommunicateWithHost err = 0 [19:01:19]CheckOFDResponse [19:01:19]1017 (14) - 77093643461234 [19:01:19]1041 (16) - 0000000000875093 [19:01:19]1040 (4) - 104012 [19:01:19]1012 (4) - 20.06.2024 12:39 [19:01:19]1206 (1) - 0 [19:01:19]OFD Sender: Remove packet 104012 [19:01:19]ProducePacketName [19:01:19]name=ofd_packets/00104012 [19:01:19]NVStorageDeleteData [19:01:19]Write to MH i2c: 01 00 00 50 3D 8D [19:01:19]Write i2c OK [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: 01 [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: 01 07 00 [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: 01 07 00 50 3D 00 00 00 00 00 DC 0C 7C [19:01:19]RasterBufferAndPrint [19:01:19]line [19:01:19]line [19:01:19]line [19:01:19]line [19:01:19]line [19:01:19]written 0, free lines is 3299 [19:01:19]MH_Cut [19:01:19]Write to MH i2c: D1 01 00 57 3D 01 66 [19:01:19]Write i2c OK [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: D1 [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: D1 01 00 [19:01:19]MH_I2C_Read... [19:01:19]Read from MH i2c: D1 01 00 57 3D 00 65 [19:01:19]Write to MH i2c: 01 00 00 58 3D 95 [19:01:19]Write i2c OK [19:01:19]MH_I2C_Read... [19:01:19]OFD Sender: No OFD packet to send [19:01:20]*** Cut start [19:01:20]*** Partial cut [19:01:20]*** CUTSNS_PIN = 1 [19:01:20]*** CUTSNS_PIN = 0 [19:01:20]*** Brake cut motor [19:01:20]Read from MH i2c: 01 [19:01:20]MH_I2C_Read... [19:01:20]*** Stop cut motor [19:01:20]*** Cut end [19:01:20]Read from MH i2c: 01 07 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: 01 07 00 58 3D 00 00 00 00 00 FF 0F AA [19:01:20]process_action close_receipt done [19:01:20]requested_data is exist [19:01:20]produce_requested_data [19:01:20]requested_item fm.sn is exist - process it [19:01:20]wFMCommunicate request_size=4 [19:01:20]MH_SAM_APDU [19:01:20]CAPDU: 80 11 00 00 [19:01:20]Write to MH i2c: E2 08 00 59 3D 80 11 00 00 00 00 00 00 10 [19:01:20]Write i2c OK [19:01:20]MH_I2C_Read... [19:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:20]Read from MH i2c: E2 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 17 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 17 00 59 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 63 [19:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:01:20]wFMCommunicate OK [19:01:20]requested_item fd.num is exist - process it [19:01:20]SAM_PROTO_GetFieldsCounters [19:01:20]wFMCommunicate request_size=4 [19:01:20]MH_SAM_APDU [19:01:20]CAPDU: 80 13 00 00 [19:01:20]Write to MH i2c: E2 08 00 5A 3D 80 13 00 00 00 00 00 00 13 [19:01:20]Write i2c OK [19:01:20]MH_I2C_Read... [19:01:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:20]Read from MH i2c: E2 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 62 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 62 00 5A 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [19:01:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:20]wFMCommunicate OK [19:01:20]SAM_PROTO_GetFieldsCounters done [19:01:20]requested_item shift.num is exist - process it [19:01:20]requested_item shift.opened is exist - process it [19:01:20]req_shift_opened [19:01:20]FM_GetShiftState [19:01:20]SAM_PROTO_GetShiftState [19:01:20]wFMCommunicate request_size=4 [19:01:20]MH_SAM_APDU [19:01:20]CAPDU: 80 13 01 00 [19:01:20]Write to MH i2c: E2 08 00 5B 3D 80 13 01 00 00 00 00 00 15 [19:01:20]Write i2c OK [19:01:20]MH_I2C_Read... [19:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:20]Read from MH i2c: E2 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 0E 00 [19:01:20]MH_I2C_Read... [19:01:20]Read from MH i2c: E2 0E 00 5B 3D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 64 [19:01:20]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:01:20]wFMCommunicate OK [19:01:20]SAM_PROTO_GetShiftState done [19:01:20]FM_GetShiftState done [19:01:20]req_shift_opened done [19:01:20]requested_item shift.open_date is exist - process it [19:01:20]req_shift_open_date [19:01:20]req_shift_open_date done [19:01:20]produce_requested_data done [19:01:20]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104012,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:01:20]process_action_free close_receipt [19:01:20]json_value_free [19:01:20]json_value_free done [19:01:20]process_json_proto returns [19:01:20]Send response to host [19:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104012,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:01:20]free response buf [19:01:20]execute_script done [19:01:20]execute_script returns [19:01:20]free content buf [19:01:20]Sock 7.Close socket [19:01:20]Sock 7.Thread stoped [19:01:24]OFD Sender: No OFD packet to send [19:01:25]accept exits with 10 [19:01:25]New connection [19:01:25]New thread 3067207012 created [19:01:25]Thread 3067063652 joined [19:01:25]Waiting for new connection... [19:01:25] Sock 10.Parse request [19:01:25]Sock 10.Check first char [19:01:25]Sock 10.First char is OK [19:01:25]request: POST /json_proto HTTP/1.0 [19:01:25]Method: POST [19:01:25]URL: /json_proto [19:01:25]Method is POST - this is cgi request [19:01:25]url: /json_proto [19:01:25]query_string will be loaded in cgi processing [19:01:25]execute_cgi json_proto POST (null) [19:01:25]execute_cgi path=json_proto method=POST [19:01:25]POST find Content-Length [19:01:25]Host: 172.17.38.133:8080 [19:01:25]Content-Length: 687 [19:01:25]Content-Type: application/json [19:01:25] [19:01:25]POST finish read [19:01:25]Found Content-Length = 687 [19:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.030, "sum" : 1460.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1460.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:25]execute_script... [19:01: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)673390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 20.030, "sum" : 1460.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1460.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:25]POST & json_proto [19:01:25]process_json_proto [19:01:25]json parsed OK: [19:01:25]protocol is kg_v1.0 [19:01:25]action value=close_receipt [19:01:25]process_action close_receipt [19:01:25]cmd_close_receipt [19:01:25]MH_GetDate [19:01:25]Write to MH i2c: F0 00 00 5C 3D 88 [19:01:25]Write i2c OK [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: F0 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: F0 09 00 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: F0 09 00 5C 3D 00 89 7C 74 66 BD 8F 7C 64 9C [19:01:25]GetLastDocTimeStamp 1718910080 [19:01:25]current date 1718910089 [19:01:25]FM_GetShiftState [19:01:25]SAM_PROTO_GetShiftState [19:01:25]wFMCommunicate request_size=4 [19:01:25]MH_SAM_APDU [19:01:25]CAPDU: 80 13 01 00 [19:01:25]Write to MH i2c: E2 08 00 5D 3D 80 13 01 00 00 00 00 00 17 [19:01:25]Write i2c OK [19:01:25]MH_I2C_Read... [19:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:25]Read from MH i2c: E2 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: E2 0E 00 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: E2 0E 00 5D 3D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 66 [19:01:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:01:25]wFMCommunicate OK [19:01:25]SAM_PROTO_GetShiftState done [19:01:25]FM_GetShiftState done [19:01:25]opened in 1718843124 [19:01:25]opened+sec_in_day 1718929524 [19:01:25]quantity*price = 146018 [19:01:25]sum+1 = 146020 [19:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1460.00 Внесено: 1460.00 СДАЧА: 0.00 НСП 1% : 12.92 НДС 12% : 155.06 Наличными: 1460.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 198 20.06.2024 19:01 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104013 ФПД: 16254393684508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190129&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104013&fm=16254393684508&tin=02508201610067®Number=0000000000092785&sum=146000 [19:01:26]StoreToDocumentArchive [19:01:26]shift 354 fd 104013 [19:01:26]save to /storage/0354/doc_00104013 [19:01:26]save last doc name /storage/0354/doc_00104013 to /storage/kkm_last_doc_name [19:01:26]save OK [19:01:26]Clear old archive folders... [19:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:01:26]tlvbuf is 008953E0 [19:01:26]SAM_PROTO_ClearQueue [19:01:26]wFMCommunicate request_size=4 [19:01:26]MH_SAM_APDU [19:01:26]CAPDU: 80 09 00 00 [19:01:26]Write to MH i2c: E2 08 00 6A 3D 80 09 00 00 00 00 00 00 19 [19:01:26]Write i2c OK [19:01:26]MH_I2C_Read... [19:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 6A 3D 00 90 00 1B [19:01:27]RAPDU: 90 00 [19:01:27]wFMCommunicate OK [19:01:27]SAM_PROTO_ClearQueue done [19:01:27]KKMCreateOFDPacket [19:01:27]OFDProtocolAddRootSTLVToBuf [19:01:27]FM_MakeSignedData [19:01:27]FM_MakeSignedData [19:01:27]SAM_PROTO_SignData [19:01:27]wFMCommunicate request_size=4 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 0D 01 02 [19:01:27]Write to MH i2c: E2 08 00 6B 3D 80 0D 01 02 00 00 00 00 21 [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 6B 3D 00 90 00 1C [19:01:27]RAPDU: 90 00 [19:01:27]wFMCommunicate OK [19:01:27]wFMCommunicate request_size=255 [19:01:27]MH_SAM_APDU [19:01:27]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 89 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 96 01 00 35 04 06 00 [19:01:27]Write to MH i2c: E2 02 01 6C 3D 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 89 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 96 01 00 35 04 06 00 00 00 10 [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 6C 3D 00 90 00 1D [19:01:27]RAPDU: 90 00 [19:01:27]wFMCommunicate OK [19:01:27]wFMCommunicate request_size=11 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 0D 02 02 06 0E C8 85 5C 92 1C [19:01:27]Write to MH i2c: E2 0E 00 6D 3D 80 0D 02 02 06 00 0E C8 85 5C 92 1C 00 00 95 [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 03 00 6D 3D 00 90 00 1E [19:01:27]RAPDU: 90 00 [19:01:27]wFMCommunicate OK [19:01:27]wFMCommunicate request_size=4 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 0D 03 02 [19:01:27]Write to MH i2c: E2 08 00 6E 3D 80 0D 03 02 00 00 00 00 26 [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 0B 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 0B 00 6E 3D 00 96 24 A7 CD BB F0 AB B8 90 00 63 [19:01:27]RAPDU: 96 24 A7 CD BB F0 AB B8 90 00 [19:01:27]wFMCommunicate OK [19:01:27]SAM_PROTO_SignData done [19:01:27]FM_MakeSignedData done [19:01:27]CreateOFDProtocolMessage [19:01:27]wFMCommunicate request_size=4 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 11 00 00 [19:01:27]Write to MH i2c: E2 08 00 6F 3D 80 11 00 00 00 00 00 00 26 [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 17 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 17 00 6F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 79 [19:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:01:27]wFMCommunicate OK [19:01:27]CreateOFDProtocolMessage done [19:01:27]OFDSenderStorePacket 104013 [19:01:27]StoreOFDPacket docnum=104013 [19:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 CE 72 08 01 A2 67 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 89 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 96 01 00 35 04 06 00 0E C8 85 5C 92 1C 96 24 A7 CD BB F0 AB B8 [19:01:27]CheckFolder [19:01:27]dirname=/storage/ofd_packets [19:01:27]CheckFolder done [19:01:27]ProducePacketName [19:01:27]name=ofd_packets/00104013 [19:01:27]NVStorageSaveData ofd_packets/00104013 [19:01:27]File name is /storage/ofd_packets/00104013 [19:01:27]Write 302 bytes [19:01:27]NVStorageSaveData done [19:01:27]OFDSenderStorePacket done [19:01:27]KKMCreateOFDPacket done [19:01:27]NVStorageSaveData kkm_last_timestamp [19:01:27]File name is /storage/kkm_last_timestamp [19:01:27]Write 4 bytes [19:01:27]NVStorageSaveData done [19:01:27]ExternCall_PrintAddStr [19:01:27]wPrintStart [19:01:27]Write to MH i2c: 01 00 00 70 3D AD [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: 01 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: 01 07 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: 01 07 00 70 3D 00 00 00 00 00 FF 0F C2 [19:01:27]RasterBufferAndPrint [19:01:27]line Счет N : (1)673390 [19:01:27]line ИНН: 02508201610067 [19:01:27]line Контрольно-Кассовый Чек [19:01:27]line ПРОДАЖА [19:01:27]line ТРК (МРК, ГНК) : 11 [19:01:27]line Товар: 2710194210 [19:01:27]line ДТ(л)-К-5 [19:01:27]line 20.030 * 72.90 [19:01:27]line = 1460.19 [19:01:27]line НДС 12% НСП 1% [19:01:27]line > о реализуемом товаре [19:01:27]line ОКРУГЛЕНИЕ: -0.19 [19:01:27]line ИТОГО: 1460.00 [19:01:27]line Внесено: 1460.00 [19:01:27]line СДАЧА: 0.00 [19:01:27]line НСП 1% : 12.92 [19:01:27]line НДС 12% : 155.06 [19:01:27]line Наличными: 1460.00 [19:01:27]line Безнал.: 0.00 [19:01:27]line Место: АЗС № 120 "Партнер Нефть" [19:01:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:01:27]line СНО: Общий режим [19:01:27]line Чек 198 20.06.2024 19:01 [19:01:27]line Смена: 354 ФФД: 1.0 [19:01:27]line ЗНМ: 0300000164 [19:01:27]line РНМ: 0000000000092785 [19:01:27]line Версия ККМ: 001 [19:01:27]line ФМ: 0000000000875093 [19:01:27]line ФД: 104013 [19:01:27]line ФПД: 16254393684508 [19:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190129&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104013&fm=16254393684508&tin=02508201610067®Number=0000000000092785&sum=146000 [19:01:27]OFD Sender: Processing packet 104013 [packets to send 17, broken 16] [19:01:27]ProducePacketName [19:01:27]name=ofd_packets/00104013 [19:01:27]OFD Sender: To server: pG, [19:01:27]CommunicateWithHost lk.salyk.kg:30040 [19:01:27]ConnectInit lk.salyk.kg [19:01:27]written 0, free lines is 4095 [19:01:27]Connected sock=11 [19:01:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 CE 72 08 01 A2 67 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 63 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 89 7C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 96 01 00 35 04 06 00 0E C8 85 5C 92 1C 96 24 A7 CD BB F0 AB B8 [19:01:28]Write to MH i2c: 01 00 00 9B 3D D8 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 07 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: 01 07 00 9B 3D 00 00 00 00 00 E1 0C CC [19:01:28]RasterBufferAndPrint [19:01:28]line [19:01:28]line [19:01:28]line [19:01:28]line [19:01:28]line [19:01:28]written 0, free lines is 3308 [19:01:28]MH_Cut [19:01:28]Write to MH i2c: D1 01 00 A2 3D 01 B1 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: D1 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: D1 01 00 [19:01:28]MH_I2C_Read... [19:01:28]Read from MH i2c: D1 01 00 A2 3D 00 B0 [19:01:28]Write to MH i2c: 01 00 00 A3 3D E0 [19:01:28]Write i2c OK [19:01:28]MH_I2C_Read... [19:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 69 FF 47 00 69 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4D 96 01 00 F4 03 04 00 0D 23 74 66 B6 04 01 00 00 D6 71 C0 1F 70 F4 D4 36 [19:01:28]CommunicateWithHost err = 0 [19:01:28]CheckOFDResponse [19:01:28]1017 (14) - 77093643461234 [19:01:28]1041 (16) - 0000000000875093 [19:01:28]1040 (4) - 104013 [19:01:28]1012 (4) - 20.06.2024 12:39 [19:01:28]1206 (1) - 0 [19:01:28]OFD Sender: Remove packet 104013 [19:01:28]ProducePacketName [19:01:28]name=ofd_packets/00104013 [19:01:28]NVStorageDeleteData [19:01:28]OFD Sender: No OFD packet to send [19:01:28]*** Cut start [19:01:28]*** Partial cut [19:01:28]*** CUTSNS_PIN = 1 [19:01:28]*** CUTSNS_PIN = 0 [19:01:29]*** Brake cut motor [19:01:29]Read from MH i2c: 01 [19:01:29]MH_I2C_Read... [19:01:29]*** Stop cut motor [19:01:29]*** Cut end [19:01:29]Read from MH i2c: 01 07 00 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: 01 07 00 A3 3D 00 00 00 00 00 FF 0F F5 [19:01:29]process_action close_receipt done [19:01:29]requested_data is exist [19:01:29]produce_requested_data [19:01:29]requested_item fm.sn is exist - process it [19:01:29]wFMCommunicate request_size=4 [19:01:29]MH_SAM_APDU [19:01:29]CAPDU: 80 11 00 00 [19:01:29]Write to MH i2c: E2 08 00 A4 3D 80 11 00 00 00 00 00 00 5B [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:29]Read from MH i2c: E2 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 17 00 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 17 00 A4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AE [19:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:01:29]wFMCommunicate OK [19:01:29]requested_item fd.num is exist - process it [19:01:29]SAM_PROTO_GetFieldsCounters [19:01:29]wFMCommunicate request_size=4 [19:01:29]MH_SAM_APDU [19:01:29]CAPDU: 80 13 00 00 [19:01:29]Write to MH i2c: E2 08 00 A5 3D 80 13 00 00 00 00 00 00 5E [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:29]Read from MH i2c: E2 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 62 00 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 62 00 A5 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [19:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:29]wFMCommunicate OK [19:01:29]SAM_PROTO_GetFieldsCounters done [19:01:29]requested_item shift.num is exist - process it [19:01:29]requested_item shift.opened is exist - process it [19:01:29]req_shift_opened [19:01:29]FM_GetShiftState [19:01:29]SAM_PROTO_GetShiftState [19:01:29]wFMCommunicate request_size=4 [19:01:29]MH_SAM_APDU [19:01:29]CAPDU: 80 13 01 00 [19:01:29]Write to MH i2c: E2 08 00 A6 3D 80 13 01 00 00 00 00 00 60 [19:01:29]Write i2c OK [19:01:29]MH_I2C_Read... [19:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:29]Read from MH i2c: E2 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 0E 00 [19:01:29]MH_I2C_Read... [19:01:29]Read from MH i2c: E2 0E 00 A6 3D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AF [19:01:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:01:29]wFMCommunicate OK [19:01:29]SAM_PROTO_GetShiftState done [19:01:29]FM_GetShiftState done [19:01:29]req_shift_opened done [19:01:29]requested_item shift.open_date is exist - process it [19:01:29]req_shift_open_date [19:01:29]req_shift_open_date done [19:01:29]produce_requested_data done [19:01:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104013,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:01:29]process_action_free close_receipt [19:01:29]json_value_free [19:01:29]json_value_free done [19:01:29]process_json_proto returns [19:01:29]Send response to host [19:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104013,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:01:29]free response buf [19:01:29]execute_script done [19:01:29]execute_script returns [19:01:29]free content buf [19:01:29]Sock 10.Close socket [19:01:29]Sock 10.Thread stoped [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]accept exits with 7 [19:02:58]New connection [19:02:58]New thread 3067063652 created [19:02:58]Thread 3067207012 joined [19:02:58]Waiting for new connection... [19:02:58] Sock 7.Parse request [19:02:58]Sock 7.Check first char [19:02:58]Sock 7.First char is OK [19:02:58]request: POST /json_proto HTTP/1.0 [19:02:58]Method: POST [19:02:58]URL: /json_proto [19:02:58]Method is POST - this is cgi request [19:02:58]url: /json_proto [19:02:58]query_string will be loaded in cgi processing [19:02:58]execute_cgi json_proto POST (null) [19:02:58]execute_cgi path=json_proto method=POST [19:02:58]POST find Content-Length [19:02:58]Host: 172.17.38.133:8080 [19:02:58]Content-Length: 1169 [19:02:58]Content-Type: application/json [19:02:58] [19:02:58]POST finish read [19:02:58]Found Content-Length = 1169 [19:02: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673392\u000A20.06.2024 18:40\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 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30064879\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:58]execute_script... [19:02: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673392\u000A20.06.2024 18:40\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 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30064879\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:58]POST & json_proto [19:02:58]process_json_proto [19:02:58]json parsed OK: [19:02:58]protocol is kg_v1.0 [19:02:58]action value=print_text [19:02:58]process_action print_text [19:02:58]cmd_print_text [19:02:58]ExternCall_PrintAddStr [19:02:58]wPrintStart [19:02:58]Write to MH i2c: 01 00 00 A7 3D E4 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 A7 3D 00 00 00 00 00 FF 0F F9 [19:02:58]RasterBufferAndPrint [19:02:58]line *****ТОВАРНЫЙ ЧЕК***** [19:02:58]line АЗС 120 [19:02:58]line Партнер нефть [19:02:58]line 02508201610067 [19:02:58]line Кассир : Дуйшенбиев А. [19:02:58]line Счет N : (1)673392 [19:02:58]line 20.06.2024 18:40 [19:02:58]line ПРОДАЖА [19:02:58]line ТРК (МРК, ГНК): 32 [19:02:58]line Вид ГСМ : 2710124130 [19:02:58]line Аи-92-К-5 [19:02:58]line 20.000 x 66.40 [19:02:58]line ИТОГ: 1328.00 [19:02:58]line Тип оплаты: Талоны: ТК ГПНА Online [19:02:58]line 30064879 [19:02:58]line ______________________ [19:02:58]line (подпись) [19:02:58]written 0, free lines is 4095 [19:02:58]Write to MH i2c: 01 00 00 BB 3D F8 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 BB 3D 00 00 00 00 00 13 0E 20 [19:02:58]RasterBufferAndPrint [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]line [19:02:58]written 0, free lines is 3605 [19:02:58]MH_Cut [19:02:58]Write to MH i2c: D1 01 00 C2 3D 01 D1 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: D1 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: D1 01 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: D1 01 00 C2 3D 00 D0 [19:02:58]Write to MH i2c: 01 00 00 C3 3D 00 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]OFD Sender: No OFD packet to send [19:02:59]*** Cut start [19:02:59]*** Partial cut [19:02:59]*** CUTSNS_PIN = 1 [19:02:59]*** CUTSNS_PIN = 0 [19:02:59]*** Brake cut motor [19:02:59]Read from MH i2c: 01 [19:02:59]MH_I2C_Read... [19:02:59]*** Stop cut motor [19:02:59]*** Cut end [19:02:59]Read from MH i2c: 01 07 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: 01 07 00 C3 3D 00 00 00 00 00 FF 0F 15 [19:02:59]process_action print_text done [19:02:59]requested_data is exist [19:02:59]produce_requested_data [19:02:59]requested_item fm.sn is exist - process it [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 11 00 00 [19:02:59]Write to MH i2c: E2 08 00 C4 3D 80 11 00 00 00 00 00 00 7B [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 17 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 17 00 C4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [19:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:02:59]wFMCommunicate OK [19:02:59]requested_item fd.num is exist - process it [19:02:59]SAM_PROTO_GetFieldsCounters [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 13 00 00 [19:02:59]Write to MH i2c: E2 08 00 C5 3D 80 13 00 00 00 00 00 00 7E [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 62 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 62 00 C5 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [19:02:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:59]wFMCommunicate OK [19:02:59]SAM_PROTO_GetFieldsCounters done [19:02:59]requested_item shift.num is exist - process it [19:02:59]requested_item shift.opened is exist - process it [19:02:59]req_shift_opened [19:02:59]FM_GetShiftState [19:02:59]SAM_PROTO_GetShiftState [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 13 01 00 [19:02:59]Write to MH i2c: E2 08 00 C6 3D 80 13 01 00 00 00 00 00 80 [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 0E 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 0E 00 C6 3D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CF [19:02:59]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:02:59]wFMCommunicate OK [19:02:59]SAM_PROTO_GetShiftState done [19:02:59]FM_GetShiftState done [19:02:59]req_shift_opened done [19:02:59]requested_item shift.open_date is exist - process it [19:02:59]req_shift_open_date [19:02:59]req_shift_open_date done [19:02:59]produce_requested_data done [19:02:59]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104013,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:02:59]process_action_free print_text [19:02:59]json_value_free [19:02:59]json_value_free done [19:02:59]process_json_proto returns [19:02:59]Send response to host [19:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104013,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:02:59]free response buf [19:02:59]execute_script done [19:02:59]execute_script returns [19:02:59]free content buf [19:02:59]Sock 7.Close socket [19:02:59]Sock 7.Thread stoped [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:48]accept exits with 10 [19:03:48]New connection [19:03:48]New thread 3067207012 created [19:03:48]Thread 3067063652 joined [19:03:48]Waiting for new connection... [19:03:48] Sock 10.Parse request [19:03:48]Sock 10.Check first char [19:03:48]Sock 10.First char is OK [19:03:48]request: POST /json_proto HTTP/1.0 [19:03:48]Method: POST [19:03:48]URL: /json_proto [19:03:48]Method is POST - this is cgi request [19:03:48]url: /json_proto [19:03:48]query_string will be loaded in cgi processing [19:03:48]execute_cgi json_proto POST (null) [19:03:48]execute_cgi path=json_proto method=POST [19:03:48]POST find Content-Length [19:03:48]Host: 172.17.38.133:8080 [19:03:48]Content-Length: 682 [19:03:48]Content-Type: application/json [19:03:48] [19:03:48]POST finish read [19:03:48]Found Content-Length = 682 [19:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:48]execute_script... [19:03: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)673393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:48]POST & json_proto [19:03:48]process_json_proto [19:03:48]json parsed OK: [19:03:48]protocol is kg_v1.0 [19:03:48]action value=close_receipt [19:03:48]process_action close_receipt [19:03:48]cmd_close_receipt [19:03:48]MH_GetDate [19:03:48]Write to MH i2c: F0 00 00 C7 3D F3 [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: F0 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: F0 09 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: F0 09 00 C7 3D 00 18 7D 74 66 BD 8F 7C 64 97 [19:03:48]GetLastDocTimeStamp 1718910089 [19:03:48]current date 1718910232 [19:03:48]FM_GetShiftState [19:03:48]SAM_PROTO_GetShiftState [19:03:48]wFMCommunicate request_size=4 [19:03:48]MH_SAM_APDU [19:03:48]CAPDU: 80 13 01 00 [19:03:48]Write to MH i2c: E2 08 00 C8 3D 80 13 01 00 00 00 00 00 82 [19:03:48]Write i2c OK [19:03:48]MH_I2C_Read... [19:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:48]Read from MH i2c: E2 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 0E 00 [19:03:48]MH_I2C_Read... [19:03:48]Read from MH i2c: E2 0E 00 C8 3D 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D1 [19:03:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:03:48]wFMCommunicate OK [19:03:48]SAM_PROTO_GetShiftState done [19:03:48]FM_GetShiftState done [19:03:48]opened in 1718843124 [19:03:48]opened+sec_in_day 1718929524 [19:03:48]quantity*price = 50009 [19:03:48]sum+1 = 50010 [19:03:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 199 20.06.2024 19:03 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104014 ФПД: 66928349062843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190352&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104014&fm=66928349062843&tin=02508201610067®Number=0000000000092785&sum=50000 [19:03:50]StoreToDocumentArchive [19:03:50]shift 354 fd 104014 [19:03:50]save to /storage/0354/doc_00104014 [19:03:50]save last doc name /storage/0354/doc_00104014 to /storage/kkm_last_doc_name [19:03:50]save OK [19:03:50]Clear old archive folders... [19:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:03:50]tlvbuf is 00864750 [19:03:50]SAM_PROTO_ClearQueue [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 09 00 00 [19:03:50]Write to MH i2c: E2 08 00 D5 3D 80 09 00 00 00 00 00 00 84 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 03 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 03 00 D5 3D 00 90 00 86 [19:03:50]RAPDU: 90 00 [19:03:50]wFMCommunicate OK [19:03:50]SAM_PROTO_ClearQueue done [19:03:50]KKMCreateOFDPacket [19:03:50]OFDProtocolAddRootSTLVToBuf [19:03:50]FM_MakeSignedData [19:03:50]FM_MakeSignedData [19:03:50]SAM_PROTO_SignData [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 0D 01 02 [19:03:50]Write to MH i2c: E2 08 00 D6 3D 80 0D 01 02 00 00 00 00 8C [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 03 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 03 00 D6 3D 00 90 00 87 [19:03:50]RAPDU: 90 00 [19:03:50]wFMCommunicate OK [19:03:50]wFMCommunicate request_size=255 [19:03:50]MH_SAM_APDU [19:03: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 18 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 96 01 00 35 04 06 00 [19:03:50]Write to MH i2c: E2 02 01 D7 3D 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 18 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 96 01 00 35 04 06 00 00 00 A2 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 03 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 03 00 D7 3D 00 90 00 88 [19:03:50]RAPDU: 90 00 [19:03:50]wFMCommunicate OK [19:03:50]wFMCommunicate request_size=11 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 0D 02 02 06 3C DE F8 78 A6 BB [19:03:50]Write to MH i2c: E2 0E 00 D8 3D 80 0D 02 02 06 00 3C DE F8 78 A6 BB 00 00 86 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 03 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 03 00 D8 3D 00 90 00 89 [19:03:50]RAPDU: 90 00 [19:03:50]wFMCommunicate OK [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 0D 03 02 [19:03:50]Write to MH i2c: E2 08 00 D9 3D 80 0D 03 02 00 00 00 00 91 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 0B 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 0B 00 D9 3D 00 B2 CE 9E CC A7 B8 C5 9F 90 00 3F [19:03:50]RAPDU: B2 CE 9E CC A7 B8 C5 9F 90 00 [19:03:50]wFMCommunicate OK [19:03:50]SAM_PROTO_SignData done [19:03:50]FM_MakeSignedData done [19:03:50]CreateOFDProtocolMessage [19:03:50]wFMCommunicate request_size=4 [19:03:50]MH_SAM_APDU [19:03:50]CAPDU: 80 11 00 00 [19:03:50]Write to MH i2c: E2 08 00 DA 3D 80 11 00 00 00 00 00 00 91 [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:50]Read from MH i2c: E2 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 17 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: E2 17 00 DA 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E4 [19:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:03:50]wFMCommunicate OK [19:03:50]CreateOFDProtocolMessage done [19:03:50]OFDSenderStorePacket 104014 [19:03:50]StoreOFDPacket docnum=104014 [19:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 CA 6B 08 01 8F 78 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 18 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 96 01 00 35 04 06 00 3C DE F8 78 A6 BB B2 CE 9E CC A7 B8 C5 9F [19:03:50]CheckFolder [19:03:50]dirname=/storage/ofd_packets [19:03:50]CheckFolder done [19:03:50]ProducePacketName [19:03:50]name=ofd_packets/00104014 [19:03:50]NVStorageSaveData ofd_packets/00104014 [19:03:50]File name is /storage/ofd_packets/00104014 [19:03:50]Write 302 bytes [19:03:50]NVStorageSaveData done [19:03:50]OFDSenderStorePacket done [19:03:50]KKMCreateOFDPacket done [19:03:50]NVStorageSaveData kkm_last_timestamp [19:03:50]File name is /storage/kkm_last_timestamp [19:03:50]Write 4 bytes [19:03:50]NVStorageSaveData done [19:03:50]ExternCall_PrintAddStr [19:03:50]wPrintStart [19:03:50]Write to MH i2c: 01 00 00 DB 3D 18 [19:03:50]OFD Sender: Processing packet 104014 [packets to send 17, broken 16] [19:03:50]ProducePacketName [19:03:50]name=ofd_packets/00104014 [19:03:50]OFD Sender: To server: pG, [19:03:50]CommunicateWithHost lk.salyk.kg:30040 [19:03:50]ConnectInit lk.salyk.kg [19:03:50]Write i2c OK [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: 01 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: 01 07 00 [19:03:50]MH_I2C_Read... [19:03:50]Read from MH i2c: 01 07 00 DB 3D 00 00 00 00 00 FF 0F 2D [19:03:50]RasterBufferAndPrint [19:03:50]line Счет N : (1)673393 [19:03:50]line ИНН: 02508201610067 [19:03:50]line Контрольно-Кассовый Чек [19:03:50]line ПРОДАЖА [19:03:50]line ТРК (МРК, ГНК) : 11 [19:03:50]line Товар: 2710194210 [19:03:50]line ДТ(л)-К-5 [19:03:50]line 6.860 * 72.90 [19:03:50]line = 500.09 [19:03:50]line НДС 12% НСП 1% [19:03:50]line > о реализуемом товаре [19:03:50]line ОКРУГЛЕНИЕ: -0.09 [19:03:50]line ИТОГО: 500.00 [19:03:50]line Внесено: 500.00 [19:03:50]line СДАЧА: 0.00 [19:03:50]line НСП 1% : 4.43 [19:03:50]line НДС 12% : 53.11 [19:03:50]line Наличными: 500.00 [19:03:50]line Безнал.: 0.00 [19:03:50]line Место: АЗС № 120 "Партнер Нефть" [19:03:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:03:50]line СНО: Общий режим [19:03:50]line Чек 199 20.06.2024 19:03 [19:03:50]line Смена: 354 ФФД: 1.0 [19:03:50]line ЗНМ: 0300000164 [19:03:50]line РНМ: 0000000000092785 [19:03:50]line Версия ККМ: 001 [19:03:50]line ФМ: 0000000000875093 [19:03:50]line ФД: 104014 [19:03:50]line ФПД: 66928349062843 [19:03:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190352&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104014&fm=66928349062843&tin=02508201610067®Number=0000000000092785&sum=50000 [19:03:51]Connected sock=9 [19:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 CA 6B 08 01 8F 78 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 18 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 96 01 00 35 04 06 00 3C DE F8 78 A6 BB B2 CE 9E CC A7 B8 C5 9F [19:03:51]written 0, free lines is 4095 [19:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 32 AE 47 00 F4 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4E 96 01 00 F4 03 04 00 9C 23 74 66 B6 04 01 00 00 79 64 B2 29 D1 83 4E AF [19:03:51]CommunicateWithHost err = 0 [19:03:51]CheckOFDResponse [19:03:51]1017 (14) - 77093643461234 [19:03:51]1041 (16) - 0000000000875093 [19:03:51]1040 (4) - 104014 [19:03:51]1012 (4) - 20.06.2024 12:42 [19:03:51]1206 (1) - 0 [19:03:51]OFD Sender: Remove packet 104014 [19:03:51]ProducePacketName [19:03:51]name=ofd_packets/00104014 [19:03:51]NVStorageDeleteData [19:03:51]Write to MH i2c: 01 00 00 06 3E 44 [19:03:51]Write i2c OK [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: 01 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: 01 07 00 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: 01 07 00 06 3E 00 00 00 00 00 E3 0C 3A [19:03:51]RasterBufferAndPrint [19:03:51]line [19:03:51]line [19:03:51]line [19:03:51]line [19:03:51]line [19:03:51]written 0, free lines is 3305 [19:03:51]MH_Cut [19:03:51]Write to MH i2c: D1 01 00 0D 3E 01 1D [19:03:51]Write i2c OK [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: D1 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: D1 01 00 [19:03:51]MH_I2C_Read... [19:03:51]Read from MH i2c: D1 01 00 0D 3E 00 1C [19:03:51]Write to MH i2c: 01 00 00 0E 3E 4C [19:03:51]Write i2c OK [19:03:51]MH_I2C_Read... [19:03:51]OFD Sender: No OFD packet to send [19:03:52]*** Cut start [19:03:52]*** Partial cut [19:03:52]*** CUTSNS_PIN = 1 [19:03:52]*** CUTSNS_PIN = 0 [19:03:52]*** Brake cut motor [19:03:52]Read from MH i2c: 01 [19:03:52]MH_I2C_Read... [19:03:52]*** Stop cut motor [19:03:52]*** Cut end [19:03:52]Read from MH i2c: 01 07 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: 01 07 00 0E 3E 00 00 00 00 00 FF 0F 61 [19:03:52]process_action close_receipt done [19:03:52]requested_data is exist [19:03:52]produce_requested_data [19:03:52]requested_item fm.sn is exist - process it [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 11 00 00 [19:03:52]Write to MH i2c: E2 08 00 0F 3E 80 11 00 00 00 00 00 00 C7 [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:52]Read from MH i2c: E2 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 17 00 [19:03:52]MH_I2C_Read... [19:03:52]Read from MH i2c: E2 17 00 0F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [19:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:03:52]wFMCommunicate OK [19:03:52]requested_item fd.num is exist - process it [19:03:52]SAM_PROTO_GetFieldsCounters [19:03:52]wFMCommunicate request_size=4 [19:03:52]MH_SAM_APDU [19:03:52]CAPDU: 80 13 00 00 [19:03:52]Write to MH i2c: E2 08 00 10 3E 80 13 00 00 00 00 00 00 CA [19:03:52]Write i2c OK [19:03:52]MH_I2C_Read... [19:03:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 62 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 62 00 10 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [19:03:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:53]wFMCommunicate OK [19:03:53]SAM_PROTO_GetFieldsCounters done [19:03:53]requested_item shift.num is exist - process it [19:03:53]requested_item shift.opened is exist - process it [19:03:53]req_shift_opened [19:03:53]FM_GetShiftState [19:03:53]SAM_PROTO_GetShiftState [19:03:53]wFMCommunicate request_size=4 [19:03:53]MH_SAM_APDU [19:03:53]CAPDU: 80 13 01 00 [19:03:53]Write to MH i2c: E2 08 00 11 3E 80 13 01 00 00 00 00 00 CC [19:03:53]Write i2c OK [19:03:53]MH_I2C_Read... [19:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:53]Read from MH i2c: E2 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 0E 00 [19:03:53]MH_I2C_Read... [19:03:53]Read from MH i2c: E2 0E 00 11 3E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [19:03:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:03:53]wFMCommunicate OK [19:03:53]SAM_PROTO_GetShiftState done [19:03:53]FM_GetShiftState done [19:03:53]req_shift_opened done [19:03:53]requested_item shift.open_date is exist - process it [19:03:53]req_shift_open_date [19:03:53]req_shift_open_date done [19:03:53]produce_requested_data done [19:03:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104014,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:03:53]process_action_free close_receipt [19:03:53]json_value_free [19:03:53]json_value_free done [19:03:53]process_json_proto returns [19:03:53]Send response to host [19:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104014,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:03:53]free response buf [19:03:53]execute_script done [19:03:53]execute_script returns [19:03:53]free content buf [19:03:53]Sock 10.Close socket [19:03:53]Sock 10.Thread stoped [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:34]accept exits with 7 [19:05:34]New connection [19:05:34]New thread 3067063652 created [19:05:34]Thread 3067207012 joined [19:05:34]Waiting for new connection... [19:05:34] Sock 7.Parse request [19:05:34]Sock 7.Check first char [19:05:34]Sock 7.First char is OK [19:05:34]request: POST /json_proto HTTP/1.0 [19:05:34]Method: POST [19:05:34]URL: /json_proto [19:05:34]Method is POST - this is cgi request [19:05:34]url: /json_proto [19:05:34]query_string will be loaded in cgi processing [19:05:34]execute_cgi json_proto POST (null) [19:05:34]execute_cgi path=json_proto method=POST [19:05:34]POST find Content-Length [19:05:34]Host: 172.17.38.133:8080 [19:05:34]Content-Length: 816 [19:05:34]Content-Type: application/json [19:05:34] [19:05:34]POST finish read [19:05:34]Found Content-Length = 816 [19:05:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.740, "sum" : 580.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 580.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:34]execute_script... [19:05: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)673394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.740, "sum" : 580.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 580.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:34]POST & json_proto [19:05:34]process_json_proto [19:05:34]json parsed OK: [19:05:34]protocol is kg_v1.0 [19:05:34]action value=close_receipt [19:05:34]process_action close_receipt [19:05:34]cmd_close_receipt [19:05:34]MH_GetDate [19:05:34]Write to MH i2c: F0 00 00 12 3E 3F [19:05:34]Write i2c OK [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: F0 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: F0 09 00 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: F0 09 00 12 3E 00 81 7D 74 66 BD 8F 7C 64 4C [19:05:34]GetLastDocTimeStamp 1718910232 [19:05:34]current date 1718910337 [19:05:34]FM_GetShiftState [19:05:34]SAM_PROTO_GetShiftState [19:05:34]wFMCommunicate request_size=4 [19:05:34]MH_SAM_APDU [19:05:34]CAPDU: 80 13 01 00 [19:05:34]Write to MH i2c: E2 08 00 13 3E 80 13 01 00 00 00 00 00 CE [19:05:34]Write i2c OK [19:05:34]MH_I2C_Read... [19:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:34]Read from MH i2c: E2 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: E2 0E 00 [19:05:34]MH_I2C_Read... [19:05:34]Read from MH i2c: E2 0E 00 13 3E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1D [19:05:34]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:05:34]wFMCommunicate OK [19:05:34]SAM_PROTO_GetShiftState done [19:05:34]FM_GetShiftState done [19:05:34]opened in 1718843124 [19:05:34]opened+sec_in_day 1718929524 [19:05:34]quantity*price = 58033 [19:05:34]sum+1 = 58035 [19:05:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 580.34 НСП 1% : 5.14 НДС 12% : 61.63 Наличными: 0.00 Безнал.: 580.34 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 200 20.06.2024 19:05 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104015 ФПД: 110517581242649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190537&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104015&fm=110517581242649&tin=02508201610067®Number=0000000000092785&sum=58034 [19:05:35]StoreToDocumentArchive [19:05:35]shift 354 fd 104015 [19:05:35]save to /storage/0354/doc_00104015 [19:05:35]save last doc name /storage/0354/doc_00104015 to /storage/kkm_last_doc_name [19:05:35]save OK [19:05:35]Clear old archive folders... [19:05:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:35]tlvbuf is B6F93010 [19:05:35]SAM_PROTO_ClearQueue [19:05:35]wFMCommunicate request_size=4 [19:05:35]MH_SAM_APDU [19:05:35]CAPDU: 80 09 00 00 [19:05:35]Write to MH i2c: E2 08 00 20 3E 80 09 00 00 00 00 00 00 D0 [19:05:35]Write i2c OK [19:05:35]MH_I2C_Read... [19:05:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:35]Read from MH i2c: E2 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 03 00 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 03 00 20 3E 00 90 00 D2 [19:05:35]RAPDU: 90 00 [19:05:35]wFMCommunicate OK [19:05:35]SAM_PROTO_ClearQueue done [19:05:35]KKMCreateOFDPacket [19:05:35]OFDProtocolAddRootSTLVToBuf [19:05:35]FM_MakeSignedData [19:05:35]FM_MakeSignedData [19:05:35]SAM_PROTO_SignData [19:05:35]wFMCommunicate request_size=4 [19:05:35]MH_SAM_APDU [19:05:35]CAPDU: 80 0D 01 02 [19:05:35]Write to MH i2c: E2 08 00 21 3E 80 0D 01 02 00 00 00 00 D8 [19:05:35]Write i2c OK [19:05:35]MH_I2C_Read... [19:05:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:35]Read from MH i2c: E2 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 03 00 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 03 00 21 3E 00 90 00 D3 [19:05:35]RAPDU: 90 00 [19:05:35]wFMCommunicate OK [19:05:35]wFMCommunicate request_size=255 [19:05:35]MH_SAM_APDU [19:05: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 24 22 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 81 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 96 01 00 35 04 06 00 64 [19:05:35]Write to MH i2c: E2 02 01 22 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 22 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 81 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 96 01 00 35 04 06 00 64 00 00 6F [19:05:35]Write i2c OK [19:05:35]MH_I2C_Read... [19:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:35]Read from MH i2c: E2 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 03 00 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 03 00 22 3E 00 90 00 D4 [19:05:35]RAPDU: 90 00 [19:05:35]wFMCommunicate OK [19:05:35]wFMCommunicate request_size=10 [19:05:35]MH_SAM_APDU [19:05:35]CAPDU: 80 0D 02 02 05 83 E1 2B E1 19 [19:05:35]Write to MH i2c: E2 0D 00 23 3E 80 0D 02 02 05 00 83 E1 2B E1 19 00 00 6E [19:05:35]Write i2c OK [19:05:35]MH_I2C_Read... [19:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:35]Read from MH i2c: E2 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 03 00 [19:05:35]MH_I2C_Read... [19:05:35]Read from MH i2c: E2 03 00 23 3E 00 90 00 D5 [19:05:35]RAPDU: 90 00 [19:05:35]wFMCommunicate OK [19:05:35]wFMCommunicate request_size=4 [19:05:35]MH_SAM_APDU [19:05:35]CAPDU: 80 0D 03 02 [19:05:35]Write to MH i2c: E2 08 00 24 3E 80 0D 03 02 00 00 00 00 DD [19:05:35]Write i2c OK [19:05:35]MH_I2C_Read... [19:05:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:36]Read from MH i2c: E2 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 0B 00 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 0B 00 24 3E 00 18 0A 38 72 1B DE BD B2 90 00 12 [19:05:36]RAPDU: 18 0A 38 72 1B DE BD B2 90 00 [19:05:36]wFMCommunicate OK [19:05:36]SAM_PROTO_SignData done [19:05:36]FM_MakeSignedData done [19:05:36]CreateOFDProtocolMessage [19:05:36]wFMCommunicate request_size=4 [19:05:36]MH_SAM_APDU [19:05:36]CAPDU: 80 11 00 00 [19:05:36]Write to MH i2c: E2 08 00 25 3E 80 11 00 00 00 00 00 00 DD [19:05:36]Write i2c OK [19:05:36]MH_I2C_Read... [19:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:36]Read from MH i2c: E2 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 17 00 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: E2 17 00 25 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 30 [19:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:05:36]wFMCommunicate OK [19:05:36]CreateOFDProtocolMessage done [19:05:36]OFDSenderStorePacket 104015 [19:05:36]StoreOFDPacket docnum=104015 [19:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D2 1E 07 01 8C DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 22 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 81 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 96 01 00 35 04 06 00 64 83 E1 2B E1 19 18 0A 38 72 1B DE BD B2 [19:05:36]CheckFolder [19:05:36]dirname=/storage/ofd_packets [19:05:36]CheckFolder done [19:05:36]ProducePacketName [19:05:36]name=ofd_packets/00104015 [19:05:36]NVStorageSaveData ofd_packets/00104015 [19:05:36]File name is /storage/ofd_packets/00104015 [19:05:36]Write 301 bytes [19:05:36]NVStorageSaveData done [19:05:36]OFDSenderStorePacket done [19:05:36]KKMCreateOFDPacket done [19:05:36]NVStorageSaveData kkm_last_timestamp [19:05:36]File name is /storage/kkm_last_timestamp [19:05:36]Write 4 bytes [19:05:36]NVStorageSaveData done [19:05:36]ExternCall_PrintAddStr [19:05:36]wPrintStart [19:05:36]Write to MH i2c: 01 00 00 26 3E 64 [19:05:36]Write i2c OK [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: 01 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: 01 07 00 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: 01 07 00 26 3E 00 00 00 00 00 FF 0F 79 [19:05:36]RasterBufferAndPrint [19:05:36]line Счет N : (1)673394 [19:05:36]line ИНН: 02508201610067 [19:05:36]line Контрольно-Кассовый Чек [19:05:36]line ПРОДАЖА [19:05:36]line ТРК (МРК, ГНК) : 32 [19:05:36]line Товар: 2710124130 [19:05:36]line Аи-92-К-5 [19:05:36]line 8.740 * 66.40 [19:05:36]line = 580.34 [19:05:36]line НДС 12% НСП 1% [19:05:36]line > о реализуемом товаре [19:05:36]line ИТОГО: 580.34 [19:05:36]line НСП 1% : 5.14 [19:05:36]line НДС 12% : 61.63 [19:05:36]line Наличными: 0.00 [19:05:36]line Безнал.: 580.34 [19:05:36]line Место: АЗС № 120 "Партнер Нефть" [19:05:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:05:36]line СНО: Общий режим [19:05:36]line Чек 200 20.06.2024 19:05 [19:05:36]line Смена: 354 ФФД: 1.0 [19:05:36]line ЗНМ: 0300000164 [19:05:36]line РНМ: 0000000000092785 [19:05:36]line Версия ККМ: 001 [19:05:36]line Платежная система: Бакай Банк [19:05:36]line ФМ: 0000000000875093 [19:05:36]line ФД: 104015 [19:05:36]line ФПД: 110517581242649 [19:05:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190537&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104015&fm=110517581242649&tin=02508201610067®Number=0000000000092785&sum=58034 [19:05:36]written 0, free lines is 4095 [19:05:36]OFD Sender: Processing packet 104015 [packets to send 17, broken 16] [19:05:36]ProducePacketName [19:05:36]name=ofd_packets/00104015 [19:05:36]OFD Sender: To server: pG, [19:05:36]CommunicateWithHost lk.salyk.kg:30040 [19:05:36]ConnectInit lk.salyk.kg [19:05:36]Connected sock=10 [19:05:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 D2 1E 07 01 8C DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 22 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B2 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 E2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 81 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 96 01 00 35 04 06 00 64 83 E1 2B E1 19 18 0A 38 72 1B DE BD B2 [19:05:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DA 26 47 00 0A 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 4F 96 01 00 F4 03 04 00 06 24 74 66 B6 04 01 00 00 CD FB 34 68 B6 1A D9 27 [19:05:36]CommunicateWithHost err = 0 [19:05:36]CheckOFDResponse [19:05:36]1017 (14) - 77093643461234 [19:05:36]1041 (16) - 0000000000875093 [19:05:36]1040 (4) - 104015 [19:05:36]1012 (4) - 20.06.2024 12:43 [19:05:36]1206 (1) - 0 [19:05:36]OFD Sender: Remove packet 104015 [19:05:36]ProducePacketName [19:05:36]name=ofd_packets/00104015 [19:05:36]NVStorageDeleteData [19:05:36]Write to MH i2c: 01 00 00 50 3E 8E [19:05:36]Write i2c OK [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: 01 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: 01 07 00 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: 01 07 00 50 3E 00 00 00 00 00 F5 0C 96 [19:05:36]RasterBufferAndPrint [19:05:36]line [19:05:36]line [19:05:36]line [19:05:36]line [19:05:36]line [19:05:36]written 0, free lines is 3324 [19:05:36]MH_Cut [19:05:36]Write to MH i2c: D1 01 00 57 3E 01 67 [19:05:36]Write i2c OK [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: D1 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: D1 01 00 [19:05:36]MH_I2C_Read... [19:05:36]Read from MH i2c: D1 01 00 57 3E 00 66 [19:05:36]Write to MH i2c: 01 00 00 58 3E 96 [19:05:36]Write i2c OK [19:05:36]MH_I2C_Read... [19:05:37]OFD Sender: No OFD packet to send [19:05:37]*** Cut start [19:05:37]*** Partial cut [19:05:37]*** CUTSNS_PIN = 1 [19:05:37]*** CUTSNS_PIN = 0 [19:05:37]*** Brake cut motor [19:05:38]Read from MH i2c: 01 [19:05:38]MH_I2C_Read... [19:05:38]*** Stop cut motor [19:05:38]*** Cut end [19:05:38]Read from MH i2c: 01 07 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: 01 07 00 58 3E 00 00 00 00 00 FF 0F AB [19:05:38]process_action close_receipt done [19:05:38]requested_data is exist [19:05:38]produce_requested_data [19:05:38]requested_item fm.sn is exist - process it [19:05:38]wFMCommunicate request_size=4 [19:05:38]MH_SAM_APDU [19:05:38]CAPDU: 80 11 00 00 [19:05:38]Write to MH i2c: E2 08 00 59 3E 80 11 00 00 00 00 00 00 11 [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:38]Read from MH i2c: E2 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 17 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 17 00 59 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 64 [19:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:05:38]wFMCommunicate OK [19:05:38]requested_item fd.num is exist - process it [19:05:38]SAM_PROTO_GetFieldsCounters [19:05:38]wFMCommunicate request_size=4 [19:05:38]MH_SAM_APDU [19:05:38]CAPDU: 80 13 00 00 [19:05:38]Write to MH i2c: E2 08 00 5A 3E 80 13 00 00 00 00 00 00 14 [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:38]Read from MH i2c: E2 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 62 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 62 00 5A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [19:05:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 4F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:38]wFMCommunicate OK [19:05:38]SAM_PROTO_GetFieldsCounters done [19:05:38]requested_item shift.num is exist - process it [19:05:38]requested_item shift.opened is exist - process it [19:05:38]req_shift_opened [19:05:38]FM_GetShiftState [19:05:38]SAM_PROTO_GetShiftState [19:05:38]wFMCommunicate request_size=4 [19:05:38]MH_SAM_APDU [19:05:38]CAPDU: 80 13 01 00 [19:05:38]Write to MH i2c: E2 08 00 5B 3E 80 13 01 00 00 00 00 00 16 [19:05:38]Write i2c OK [19:05:38]MH_I2C_Read... [19:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:38]Read from MH i2c: E2 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 0E 00 [19:05:38]MH_I2C_Read... [19:05:38]Read from MH i2c: E2 0E 00 5B 3E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 65 [19:05:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:05:38]wFMCommunicate OK [19:05:38]SAM_PROTO_GetShiftState done [19:05:38]FM_GetShiftState done [19:05:38]req_shift_opened done [19:05:38]requested_item shift.open_date is exist - process it [19:05:38]req_shift_open_date [19:05:38]req_shift_open_date done [19:05:38]produce_requested_data done [19:05:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104015,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:05:38]process_action_free close_receipt [19:05:38]json_value_free [19:05:38]json_value_free done [19:05:38]process_json_proto returns [19:05:38]Send response to host [19:05:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104015,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:05:38]free response buf [19:05:38]execute_script done [19:05:38]execute_script returns [19:05:38]free content buf [19:05:38]Sock 7.Close socket [19:05:38]Sock 7.Thread stoped [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:28]accept exits with 9 [19:06:28]New connection [19:06:28]New thread 3067207012 created [19:06:28]Thread 3067063652 joined [19:06:28]Waiting for new connection... [19:06:28] Sock 9.Parse request [19:06:28]Sock 9.Check first char [19:06:28]Sock 9.First char is OK [19:06:28]request: POST /json_proto HTTP/1.0 [19:06:28]Method: POST [19:06:28]URL: /json_proto [19:06:28]Method is POST - this is cgi request [19:06:28]url: /json_proto [19:06:28]query_string will be loaded in cgi processing [19:06:28]execute_cgi json_proto POST (null) [19:06:28]execute_cgi path=json_proto method=POST [19:06:28]POST find Content-Length [19:06:28]Host: 172.17.38.133:8080 [19:06:28]Content-Length: 682 [19:06:28]Content-Type: application/json [19:06:28] [19:06:28]POST finish read [19:06:28]Found Content-Length = 682 [19:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:28]execute_script... [19:06: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)673395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:28]POST & json_proto [19:06:28]process_json_proto [19:06:28]json parsed OK: [19:06:28]protocol is kg_v1.0 [19:06:28]action value=close_receipt [19:06:28]process_action close_receipt [19:06:28]cmd_close_receipt [19:06:28]MH_GetDate [19:06:28]Write to MH i2c: F0 00 00 5C 3E 89 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: F0 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: F0 09 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: F0 09 00 5C 3E 00 B7 7D 74 66 BD 8F 7C 64 CC [19:06:28]GetLastDocTimeStamp 1718910337 [19:06:28]current date 1718910391 [19:06:28]FM_GetShiftState [19:06:28]SAM_PROTO_GetShiftState [19:06:28]wFMCommunicate request_size=4 [19:06:28]MH_SAM_APDU [19:06:28]CAPDU: 80 13 01 00 [19:06:28]Write to MH i2c: E2 08 00 5D 3E 80 13 01 00 00 00 00 00 18 [19:06:28]Write i2c OK [19:06:28]MH_I2C_Read... [19:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:28]Read from MH i2c: E2 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 0E 00 [19:06:28]MH_I2C_Read... [19:06:28]Read from MH i2c: E2 0E 00 5D 3E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 67 [19:06:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:06:28]wFMCommunicate OK [19:06:28]SAM_PROTO_GetShiftState done [19:06:28]FM_GetShiftState done [19:06:28]opened in 1718843124 [19:06:28]opened+sec_in_day 1718929524 [19:06:28]quantity*price = 60069 [19:06:28]sum+1 = 60071 [19:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 201 20.06.2024 19:06 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104016 ФПД: 996997620504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190631&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104016&fm=996997620504&tin=02508201610067®Number=0000000000092785&sum=60000 [19:06:29]StoreToDocumentArchive [19:06:29]shift 354 fd 104016 [19:06:29]save to /storage/0354/doc_00104016 [19:06:29]save last doc name /storage/0354/doc_00104016 to /storage/kkm_last_doc_name [19:06:29]save OK [19:06:29]Clear old archive folders... [19:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:06:29]tlvbuf is B6F93980 [19:06:29]SAM_PROTO_ClearQueue [19:06:29]wFMCommunicate request_size=4 [19:06:29]MH_SAM_APDU [19:06:29]CAPDU: 80 09 00 00 [19:06:29]Write to MH i2c: E2 08 00 6A 3E 80 09 00 00 00 00 00 00 1A [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:29]Read from MH i2c: E2 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 03 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 03 00 6A 3E 00 90 00 1C [19:06:29]RAPDU: 90 00 [19:06:29]wFMCommunicate OK [19:06:29]SAM_PROTO_ClearQueue done [19:06:29]KKMCreateOFDPacket [19:06:29]OFDProtocolAddRootSTLVToBuf [19:06:29]FM_MakeSignedData [19:06:29]FM_MakeSignedData [19:06:29]SAM_PROTO_SignData [19:06:29]wFMCommunicate request_size=4 [19:06:29]MH_SAM_APDU [19:06:29]CAPDU: 80 0D 01 02 [19:06:29]Write to MH i2c: E2 08 00 6B 3E 80 0D 01 02 00 00 00 00 22 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:29]Read from MH i2c: E2 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 03 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 03 00 6B 3E 00 90 00 1D [19:06:29]RAPDU: 90 00 [19:06:29]wFMCommunicate OK [19:06:29]wFMCommunicate request_size=255 [19:06:29]MH_SAM_APDU [19:06: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 C9 00 00 00 F4 03 04 00 B7 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 96 01 00 35 04 06 00 [19:06:29]Write to MH i2c: E2 02 01 6C 3E 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 C9 00 00 00 F4 03 04 00 B7 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 96 01 00 35 04 06 00 00 00 B1 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:29]Read from MH i2c: E2 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 03 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 03 00 6C 3E 00 90 00 1E [19:06:29]RAPDU: 90 00 [19:06:29]wFMCommunicate OK [19:06:29]wFMCommunicate request_size=11 [19:06:29]MH_SAM_APDU [19:06:29]CAPDU: 80 0D 02 02 06 00 E8 21 B0 63 18 [19:06:29]Write to MH i2c: E2 0E 00 6D 3E 80 0D 02 02 06 00 00 E8 21 B0 63 18 00 00 65 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:29]Read from MH i2c: E2 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 03 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 03 00 6D 3E 00 90 00 1F [19:06:29]RAPDU: 90 00 [19:06:29]wFMCommunicate OK [19:06:29]wFMCommunicate request_size=4 [19:06:29]MH_SAM_APDU [19:06:29]CAPDU: 80 0D 03 02 [19:06:29]Write to MH i2c: E2 08 00 6E 3E 80 0D 03 02 00 00 00 00 27 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:29]Read from MH i2c: E2 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 0B 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 0B 00 6E 3E 00 8C 2B 67 FC F0 59 5F FB 90 00 E5 [19:06:29]RAPDU: 8C 2B 67 FC F0 59 5F FB 90 00 [19:06:29]wFMCommunicate OK [19:06:29]SAM_PROTO_SignData done [19:06:29]FM_MakeSignedData done [19:06:29]CreateOFDProtocolMessage [19:06:29]wFMCommunicate request_size=4 [19:06:29]MH_SAM_APDU [19:06:29]CAPDU: 80 11 00 00 [19:06:29]Write to MH i2c: E2 08 00 6F 3E 80 11 00 00 00 00 00 00 27 [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:29]Read from MH i2c: E2 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 17 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: E2 17 00 6F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7A [19:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:06:29]wFMCommunicate OK [19:06:29]CreateOFDProtocolMessage done [19:06:29]OFDSenderStorePacket 104016 [19:06:29]StoreOFDPacket docnum=104016 [19:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 0D 5C 08 01 DC 67 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 C9 00 00 00 F4 03 04 00 B7 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 96 01 00 35 04 06 00 00 E8 21 B0 63 18 8C 2B 67 FC F0 59 5F FB [19:06:29]CheckFolder [19:06:29]dirname=/storage/ofd_packets [19:06:29]CheckFolder done [19:06:29]ProducePacketName [19:06:29]name=ofd_packets/00104016 [19:06:29]NVStorageSaveData ofd_packets/00104016 [19:06:29]File name is /storage/ofd_packets/00104016 [19:06:29]Write 302 bytes [19:06:29]NVStorageSaveData done [19:06:29]OFDSenderStorePacket done [19:06:29]KKMCreateOFDPacket done [19:06:29]NVStorageSaveData kkm_last_timestamp [19:06:29]File name is /storage/kkm_last_timestamp [19:06:29]Write 4 bytes [19:06:29]NVStorageSaveData done [19:06:29]ExternCall_PrintAddStr [19:06:29]wPrintStart [19:06:29]Write to MH i2c: 01 00 00 70 3E AE [19:06:29]Write i2c OK [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 07 00 [19:06:29]MH_I2C_Read... [19:06:29]Read from MH i2c: 01 07 00 70 3E 00 00 00 00 00 FF 0F C3 [19:06:29]RasterBufferAndPrint [19:06:29]line Счет N : (1)673395 [19:06:29]line ИНН: 02508201610067 [19:06:29]line Контрольно-Кассовый Чек [19:06:29]line ПРОДАЖА [19:06:29]line ТРК (МРК, ГНК) : 21 [19:06:29]line Товар: 2710194210 [19:06:29]line ДТ(л)-К-5 [19:06:29]line 8.240 * 72.90 [19:06:29]line = 600.70 [19:06:29]line НДС 12% НСП 1% [19:06:29]line > о реализуемом товаре [19:06:29]line ОКРУГЛЕНИЕ: -0.70 [19:06:29]line ИТОГО: 600.00 [19:06:29]line Внесено: 600.00 [19:06:29]line СДАЧА: 0.00 [19:06:29]line НСП 1% : 5.32 [19:06:29]line НДС 12% : 63.79 [19:06:29]line Наличными: 600.00 [19:06:29]line Безнал.: 0.00 [19:06:29]line Место: АЗС № 120 "Партнер Нефть" [19:06:29]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:06:29]line СНО: Общий режим [19:06:29]line Чек 201 20.06.2024 19:06 [19:06:29]line Смена: 354 ФФД: 1.0 [19:06:29]line ЗНМ: 0300000164 [19:06:29]line РНМ: 0000000000092785 [19:06:29]line Версия ККМ: 001 [19:06:29]line ФМ: 0000000000875093 [19:06:29]line ФД: 104016 [19:06:29]line ФПД: 996997620504 [19:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T190631&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104016&fm=996997620504&tin=02508201610067®Number=0000000000092785&sum=60000 [19:06:30]OFD Sender: Processing packet 104016 [packets to send 17, broken 16] [19:06:30]ProducePacketName [19:06:30]name=ofd_packets/00104016 [19:06:30]OFD Sender: To server: pG, [19:06:30]CommunicateWithHost lk.salyk.kg:30040 [19:06:30]ConnectInit lk.salyk.kg [19:06:30]written 0, free lines is 4095 [19:06:30]Connected sock=10 [19:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 0D 5C 08 01 DC 67 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 18 00 00 00 00 07 04 06 00 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 C9 00 00 00 F4 03 04 00 B7 7D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 50 96 01 00 35 04 06 00 00 E8 21 B0 63 18 8C 2B 67 FC F0 59 5F FB [19:06:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AE 3D 47 00 2E 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 35 30 39 33 10 04 04 00 50 96 01 00 F4 03 04 00 3C 24 74 66 B6 04 01 00 00 2A 74 E0 46 88 6E AB AF [19:06:30]CommunicateWithHost err = 0 [19:06:30]CheckOFDResponse [19:06:30]1017 (14) - 77093643461234 [19:06:30]1041 (16) - 0000000000875093 [19:06:30]1040 (4) - 104016 [19:06:30]1012 (4) - 20.06.2024 12:44 [19:06:30]1206 (1) - 0 [19:06:30]OFD Sender: Remove packet 104016 [19:06:30]ProducePacketName [19:06:30]name=ofd_packets/00104016 [19:06:30]NVStorageDeleteData [19:06:30]Write to MH i2c: 01 00 00 9B 3E D9 [19:06:30]Write i2c OK [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: 01 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: 01 07 00 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: 01 07 00 9B 3E 00 00 00 00 00 EE 0C DA [19:06:30]RasterBufferAndPrint [19:06:30]line [19:06:30]line [19:06:30]line [19:06:30]line [19:06:30]line [19:06:30]written 0, free lines is 3316 [19:06:30]MH_Cut [19:06:30]Write to MH i2c: D1 01 00 A2 3E 01 B2 [19:06:30]Write i2c OK [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: D1 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: D1 01 00 [19:06:30]MH_I2C_Read... [19:06:30]Read from MH i2c: D1 01 00 A2 3E 00 B1 [19:06:30]Write to MH i2c: 01 00 00 A3 3E E1 [19:06:30]Write i2c OK [19:06:30]MH_I2C_Read... [19:06:31]OFD Sender: No OFD packet to send [19:06:31]*** Cut start [19:06:31]*** Partial cut [19:06:31]*** CUTSNS_PIN = 1 [19:06:31]*** CUTSNS_PIN = 0 [19:06:31]*** Brake cut motor [19:06:31]Read from MH i2c: 01 [19:06:31]MH_I2C_Read... [19:06:31]*** Stop cut motor [19:06:31]*** Cut end [19:06:31]Read from MH i2c: 01 07 00 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: 01 07 00 A3 3E 00 00 00 00 00 FF 0F F6 [19:06:31]process_action close_receipt done [19:06:31]requested_data is exist [19:06:31]produce_requested_data [19:06:31]requested_item fm.sn is exist - process it [19:06:31]wFMCommunicate request_size=4 [19:06:31]MH_SAM_APDU [19:06:31]CAPDU: 80 11 00 00 [19:06:31]Write to MH i2c: E2 08 00 A4 3E 80 11 00 00 00 00 00 00 5C [19:06:31]Write i2c OK [19:06:31]MH_I2C_Read... [19:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:31]Read from MH i2c: E2 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 17 00 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 17 00 A4 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AF [19:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:06:31]wFMCommunicate OK [19:06:31]requested_item fd.num is exist - process it [19:06:31]SAM_PROTO_GetFieldsCounters [19:06:31]wFMCommunicate request_size=4 [19:06:31]MH_SAM_APDU [19:06:31]CAPDU: 80 13 00 00 [19:06:31]Write to MH i2c: E2 08 00 A5 3E 80 13 00 00 00 00 00 00 5F [19:06:31]Write i2c OK [19:06:31]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 62 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 62 00 A5 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 50 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [19:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 50 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:32]wFMCommunicate OK [19:06:32]SAM_PROTO_GetFieldsCounters done [19:06:32]requested_item shift.num is exist - process it [19:06:32]requested_item shift.opened is exist - process it [19:06:32]req_shift_opened [19:06:32]FM_GetShiftState [19:06:32]SAM_PROTO_GetShiftState [19:06:32]wFMCommunicate request_size=4 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 13 01 00 [19:06:32]Write to MH i2c: E2 08 00 A6 3E 80 13 01 00 00 00 00 00 61 [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 0E 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 0E 00 A6 3E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 B0 [19:06:32]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:06:32]wFMCommunicate OK [19:06:32]SAM_PROTO_GetShiftState done [19:06:32]FM_GetShiftState done [19:06:32]req_shift_opened done [19:06:32]requested_item shift.open_date is exist - process it [19:06:32]req_shift_open_date [19:06:32]req_shift_open_date done [19:06:32]produce_requested_data done [19:06:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104016,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:06:32]process_action_free close_receipt [19:06:32]json_value_free [19:06:32]json_value_free done [19:06:32]process_json_proto returns [19:06:32]Send response to host [19:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104016,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:06:32]free response buf [19:06:32]execute_script done [19:06:32]execute_script returns [19:06:32]free content buf [19:06:32]Sock 9.Close socket [19:06:32]Sock 9.Thread stoped [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:02]accept exits with 7 [19:10:02]New connection [19:10:02]New thread 3067063652 created [19:10:02]Thread 3067207012 joined [19:10:02]Waiting for new connection... [19:10:02] Sock 7.Parse request [19:10:02]Sock 7.Check first char [19:10:02]Sock 7.First char is OK [19:10:02]request: POST /json_proto HTTP/1.0 [19:10:02]Method: POST [19:10:02]URL: /json_proto [19:10:02]Method is POST - this is cgi request [19:10:02]url: /json_proto [19:10:02]query_string will be loaded in cgi processing [19:10:02]execute_cgi json_proto POST (null) [19:10:02]execute_cgi path=json_proto method=POST [19:10:02]POST find Content-Length [19:10:02]Host: 172.17.38.133:8080 [19:10:02]Content-Length: 1197 [19:10:02]Content-Type: application/json [19:10:02] [19:10:02]POST finish read [19:10:02]Found Content-Length = 1197 [19:10:02]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673396\u000A20.06.2024 18:47\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 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3592850\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:02]execute_script... [19:10:02]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673396\u000A20.06.2024 18:47\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 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3592850\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:02]POST & json_proto [19:10:02]process_json_proto [19:10:02]json parsed OK: [19:10:02]protocol is kg_v1.0 [19:10:02]action value=print_text [19:10:02]process_action print_text [19:10:02]cmd_print_text [19:10:02]ExternCall_PrintAddStr [19:10:02]wPrintStart [19:10:02]Write to MH i2c: 01 00 00 A7 3E E5 [19:10:02]Write i2c OK [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: 01 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: 01 07 00 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: 01 07 00 A7 3E 00 00 00 00 00 FF 0F FA [19:10:02]RasterBufferAndPrint [19:10:02]line *****ТОВАРНЫЙ ЧЕК***** [19:10:02]line АЗС 120 [19:10:02]line Партнер нефть [19:10:02]line 02508201610067 [19:10:02]line Кассир : Дуйшенбиев А. [19:10:02]line Счет N : (1)673396 [19:10:02]line 20.06.2024 18:47 [19:10:02]line ПРОДАЖА [19:10:02]line ТРК (МРК, ГНК): 42 [19:10:02]line Вид ГСМ : 2710124130 [19:10:02]line Аи-92-К-5 [19:10:02]line 20.000 x 66.40 [19:10:02]line ИТОГ: 1328.00 [19:10:02]line Тип оплаты: Талоны: Партнер нефть [19:10:02]line 3592850 [19:10:02]line ______________________ [19:10:02]line (подпись) [19:10:02]written 0, free lines is 4095 [19:10:02]Write to MH i2c: 01 00 00 BB 3E F9 [19:10:02]Write i2c OK [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: 01 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: 01 07 00 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: 01 07 00 BB 3E 00 00 00 00 00 13 0E 21 [19:10:02]RasterBufferAndPrint [19:10:02]line [19:10:02]line [19:10:02]line [19:10:02]line [19:10:02]line [19:10:02]written 0, free lines is 3605 [19:10:02]MH_Cut [19:10:02]Write to MH i2c: D1 01 00 C2 3E 01 D2 [19:10:02]Write i2c OK [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: D1 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: D1 01 00 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: D1 01 00 C2 3E 00 D1 [19:10:02]Write to MH i2c: 01 00 00 C3 3E 01 [19:10:02]Write i2c OK [19:10:02]MH_I2C_Read... [19:10:03]*** Cut start [19:10:03]*** Partial cut [19:10:03]*** CUTSNS_PIN = 1 [19:10:03]*** CUTSNS_PIN = 0 [19:10:03]*** Brake cut motor [19:10:03]Read from MH i2c: 01 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: 01 07 00 [19:10:03]MH_I2C_Read... [19:10:03]*** Stop cut motor [19:10:03]*** Cut end [19:10:03]Read from MH i2c: 01 07 00 C3 3E 00 00 00 00 00 FF 0F 16 [19:10:03]process_action print_text done [19:10:03]requested_data is exist [19:10:03]produce_requested_data [19:10:03]requested_item fm.sn is exist - process it [19:10:03]wFMCommunicate request_size=4 [19:10:03]MH_SAM_APDU [19:10:03]CAPDU: 80 11 00 00 [19:10:03]Write to MH i2c: E2 08 00 C4 3E 80 11 00 00 00 00 00 00 7C [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 17 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 17 00 C4 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CF [19:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:10:03]wFMCommunicate OK [19:10:03]requested_item fd.num is exist - process it [19:10:03]SAM_PROTO_GetFieldsCounters [19:10:03]wFMCommunicate request_size=4 [19:10:03]MH_SAM_APDU [19:10:03]CAPDU: 80 13 00 00 [19:10:03]Write to MH i2c: E2 08 00 C5 3E 80 13 00 00 00 00 00 00 7F [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 62 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 62 00 C5 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 50 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [19:10:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 50 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:03]wFMCommunicate OK [19:10:03]SAM_PROTO_GetFieldsCounters done [19:10:03]requested_item shift.num is exist - process it [19:10:03]requested_item shift.opened is exist - process it [19:10:03]req_shift_opened [19:10:03]FM_GetShiftState [19:10:03]SAM_PROTO_GetShiftState [19:10:03]wFMCommunicate request_size=4 [19:10:03]MH_SAM_APDU [19:10:03]CAPDU: 80 13 01 00 [19:10:03]Write to MH i2c: E2 08 00 C6 3E 80 13 01 00 00 00 00 00 81 [19:10:03]Write i2c OK [19:10:03]MH_I2C_Read... [19:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:03]Read from MH i2c: E2 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 0E 00 [19:10:03]MH_I2C_Read... [19:10:03]Read from MH i2c: E2 0E 00 C6 3E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D0 [19:10:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:10:03]wFMCommunicate OK [19:10:03]SAM_PROTO_GetShiftState done [19:10:03]FM_GetShiftState done [19:10:03]req_shift_opened done [19:10:03]requested_item shift.open_date is exist - process it [19:10:03]req_shift_open_date [19:10:03]req_shift_open_date done [19:10:03]produce_requested_data done [19:10:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104016,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:10:03]process_action_free print_text [19:10:03]json_value_free [19:10:03]json_value_free done [19:10:03]process_json_proto returns [19:10:03]Send response to host [19:10:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104016,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:10:03]free response buf [19:10:03]execute_script done [19:10:03]execute_script returns [19:10:03]free content buf [19:10:03]Sock 7.Close socket [19:10:03]Sock 7.Thread stoped [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:23]accept exits with 9 [19:15:23]New connection [19:15:23]New thread 3067207012 created [19:15:23]Thread 3067063652 joined [19:15:23]Waiting for new connection... [19:15:23] Sock 9.Parse request [19:15:23]Sock 9.Check first char [19:15:23]Sock 9.First char is OK [19:15:23]request: POST /json_proto HTTP/1.0 [19:15:23]Method: POST [19:15:23]URL: /json_proto [19:15:23]Method is POST - this is cgi request [19:15:23]url: /json_proto [19:15:23]query_string will be loaded in cgi processing [19:15:23]execute_cgi json_proto POST (null) [19:15:23]execute_cgi path=json_proto method=POST [19:15:23]POST find Content-Length [19:15:23]Host: 172.17.38.133:8080 [19:15:23]Content-Length: 817 [19:15:23]Content-Type: application/json [19:15:23] [19:15:23]POST finish read [19:15:23]Found Content-Length = 817 [19:15:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673397", "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" : 73.90, "quantity" : 10.000, "sum" : 739.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" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:23]execute_script... [19:15: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)673397", "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" : 73.90, "quantity" : 10.000, "sum" : 739.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" : 739.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:23]POST & json_proto [19:15:23]process_json_proto [19:15:23]json parsed OK: [19:15:23]protocol is kg_v1.0 [19:15:23]action value=close_receipt [19:15:23]process_action close_receipt [19:15:23]cmd_close_receipt [19:15:23]MH_GetDate [19:15:23]Write to MH i2c: F0 00 00 C7 3E F4 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: F0 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: F0 09 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: F0 09 00 C7 3E 00 CE 7F 74 66 BD 8F 7C 64 50 [19:15:23]GetLastDocTimeStamp 1718910391 [19:15:23]current date 1718910926 [19:15:23]FM_GetShiftState [19:15:23]SAM_PROTO_GetShiftState [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 13 01 00 [19:15:23]Write to MH i2c: E2 08 00 C8 3E 80 13 01 00 00 00 00 00 83 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 0E 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 0E 00 C8 3E 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D2 [19:15:23]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:15:23]wFMCommunicate OK [19:15:23]SAM_PROTO_GetShiftState done [19:15:23]FM_GetShiftState done [19:15:23]opened in 1718843124 [19:15:23]opened+sec_in_day 1718929524 [19:15:23]quantity*price = 73900 [19:15:23]sum+1 = 73901 [19:15:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 739.00 НСП 1% : 6.54 НДС 12% : 78.48 Наличными: 0.00 Безнал.: 739.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 202 20.06.2024 19:15 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104017 ФПД: 73627189963815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191526&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104017&fm=73627189963815&tin=02508201610067®Number=0000000000092785&sum=73900 [19:15:24]StoreToDocumentArchive [19:15:24]shift 354 fd 104017 [19:15:24]save to /storage/0354/doc_00104017 [19:15:24]save last doc name /storage/0354/doc_00104017 to /storage/kkm_last_doc_name [19:15:24]save OK [19:15:24]Clear old archive folders... [19:15:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:24]tlvbuf is 0089B9F0 [19:15:24]SAM_PROTO_ClearQueue [19:15:24]wFMCommunicate request_size=4 [19:15:24]MH_SAM_APDU [19:15:24]CAPDU: 80 09 00 00 [19:15:24]Write to MH i2c: E2 08 00 D5 3E 80 09 00 00 00 00 00 00 85 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 D5 3E 00 90 00 87 [19:15:24]RAPDU: 90 00 [19:15:24]wFMCommunicate OK [19:15:24]SAM_PROTO_ClearQueue done [19:15:24]KKMCreateOFDPacket [19:15:24]OFDProtocolAddRootSTLVToBuf [19:15:24]FM_MakeSignedData [19:15:24]FM_MakeSignedData [19:15:24]SAM_PROTO_SignData [19:15:24]wFMCommunicate request_size=4 [19:15:24]MH_SAM_APDU [19:15:24]CAPDU: 80 0D 01 02 [19:15:24]Write to MH i2c: E2 08 00 D6 3E 80 0D 01 02 00 00 00 00 8D [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 D6 3E 00 90 00 88 [19:15:24]RAPDU: 90 00 [19:15:24]wFMCommunicate OK [19:15:24]wFMCommunicate request_size=255 [19:15:24]MH_SAM_APDU [19:15:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CE 7F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 96 01 00 35 04 06 00 42 [19:15:24]Write to MH i2c: E2 02 01 D7 3E 80 0D 02 02 FA 00 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 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CE 7F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 96 01 00 35 04 06 00 42 00 00 0D [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 D7 3E 00 90 00 89 [19:15:24]RAPDU: 90 00 [19:15:24]wFMCommunicate OK [19:15:24]wFMCommunicate request_size=10 [19:15:24]MH_SAM_APDU [19:15:24]CAPDU: 80 0D 02 02 05 F6 AA 80 EC 27 [19:15:24]Write to MH i2c: E2 0D 00 D8 3E 80 0D 02 02 05 00 F6 AA 80 EC 27 00 00 CD [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 D8 3E 00 90 00 8A [19:15:24]RAPDU: 90 00 [19:15:24]wFMCommunicate OK [19:15:24]wFMCommunicate request_size=4 [19:15:24]MH_SAM_APDU [19:15:24]CAPDU: 80 0D 03 02 [19:15:24]Write to MH i2c: E2 08 00 D9 3E 80 0D 03 02 00 00 00 00 92 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 0B 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 0B 00 D9 3E 00 A8 3E 44 CF 8B 2A 82 1D 90 00 E0 [19:15:24]RAPDU: A8 3E 44 CF 8B 2A 82 1D 90 00 [19:15:24]wFMCommunicate OK [19:15:24]SAM_PROTO_SignData done [19:15:24]FM_MakeSignedData done [19:15:24]CreateOFDProtocolMessage [19:15:24]wFMCommunicate request_size=4 [19:15:24]MH_SAM_APDU [19:15:24]CAPDU: 80 11 00 00 [19:15:24]Write to MH i2c: E2 08 00 DA 3E 80 11 00 00 00 00 00 00 92 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 17 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 17 00 DA 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [19:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:15:24]wFMCommunicate OK [19:15:24]CreateOFDProtocolMessage done [19:15:24]OFDSenderStorePacket 104017 [19:15:24]StoreOFDPacket docnum=104017 [19:15:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 21 39 07 01 F4 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 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CE 7F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 96 01 00 35 04 06 00 42 F6 AA 80 EC 27 A8 3E 44 CF 8B 2A 82 1D [19:15:24]CheckFolder [19:15:24]dirname=/storage/ofd_packets [19:15:24]CheckFolder done [19:15:24]ProducePacketName [19:15:24]name=ofd_packets/00104017 [19:15:24]NVStorageSaveData ofd_packets/00104017 [19:15:24]File name is /storage/ofd_packets/00104017 [19:15:24]Write 301 bytes [19:15:24]NVStorageSaveData done [19:15:24]OFDSenderStorePacket done [19:15:24]KKMCreateOFDPacket done [19:15:24]NVStorageSaveData kkm_last_timestamp [19:15:24]File name is /storage/kkm_last_timestamp [19:15:24]Write 4 bytes [19:15:24]NVStorageSaveData done [19:15:24]ExternCall_PrintAddStr [19:15:24]wPrintStart [19:15:24]Write to MH i2c: 01 00 00 DB 3E 19 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 07 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 07 00 DB 3E 00 00 00 00 00 FF 0F 2E [19:15:24]RasterBufferAndPrint [19:15:24]line Счет N : (1)673397 [19:15:24]line ИНН: 02508201610067 [19:15:24]line Контрольно-Кассовый Чек [19:15:24]line ПРОДАЖА [19:15:24]line ТРК (МРК, ГНК) : 31 [19:15:24]line Товар: 2710124500 [19:15:24]line Аи-95-К-5 [19:15:24]line 10.000 * 73.90 [19:15:24]line = 739.00 [19:15:24]line НДС 12% НСП 1% [19:15:24]line > о реализуемом товаре [19:15:24]line ИТОГО: 739.00 [19:15:24]line НСП 1% : 6.54 [19:15:24]line НДС 12% : 78.48 [19:15:24]line Наличными: 0.00 [19:15:24]line Безнал.: 739.00 [19:15:24]line Место: АЗС № 120 "Партнер Нефть" [19:15:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:15:24]line СНО: Общий режим [19:15:24]line Чек 202 20.06.2024 19:15 [19:15:24]line Смена: 354 ФФД: 1.0 [19:15:24]line ЗНМ: 0300000164 [19:15:24]line РНМ: 0000000000092785 [19:15:24]line Версия ККМ: 001 [19:15:24]line Платежная система: Бакай Банк [19:15:24]line ФМ: 0000000000875093 [19:15:24]line ФД: 104017 [19:15:24]line ФПД: 73627189963815 [19:15:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191526&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104017&fm=73627189963815&tin=02508201610067®Number=0000000000092785&sum=73900 [19:15:25]OFD Sender: Processing packet 104017 [packets to send 17, broken 16] [19:15:25]ProducePacketName [19:15:25]name=ofd_packets/00104017 [19:15:25]OFD Sender: To server: pG, [19:15:25]CommunicateWithHost lk.salyk.kg:30040 [19:15:25]ConnectInit lk.salyk.kg [19:15:25]written 0, free lines is 4095 [19:15:25]Connected sock=10 [19:15:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 21 39 07 01 F4 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 10 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 AC 20 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 20 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC 20 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CE 7F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 96 01 00 35 04 06 00 42 F6 AA 80 EC 27 A8 3E 44 CF 8B 2A 82 1D [19:15:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 A5 0F 47 00 7C B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 51 96 01 00 F4 03 04 00 53 26 74 66 B6 04 01 00 00 FC A2 DA FB 6B C3 27 FC [19:15:25]CommunicateWithHost err = 0 [19:15:25]CheckOFDResponse [19:15:25]1017 (14) - 77093643461234 [19:15:25]1041 (16) - 0000000000875093 [19:15:25]1040 (4) - 104017 [19:15:25]1012 (4) - 20.06.2024 12:53 [19:15:25]1206 (1) - 0 [19:15:25]OFD Sender: Remove packet 104017 [19:15:25]ProducePacketName [19:15:25]name=ofd_packets/00104017 [19:15:25]NVStorageDeleteData [19:15:25]Write to MH i2c: 01 00 00 05 3F 44 [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: 01 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: 01 07 00 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: 01 07 00 05 3F 00 00 00 00 00 F8 0C 4F [19:15:25]RasterBufferAndPrint [19:15:25]line [19:15:25]line [19:15:25]line [19:15:25]line [19:15:25]line [19:15:25]written 0, free lines is 3327 [19:15:25]MH_Cut [19:15:25]Write to MH i2c: D1 01 00 0C 3F 01 1D [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: D1 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: D1 01 00 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: D1 01 00 0C 3F 00 1C [19:15:25]Write to MH i2c: 01 00 00 0D 3F 4C [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:26]OFD Sender: No OFD packet to send [19:15:26]*** Cut start [19:15:26]*** Partial cut [19:15:26]*** CUTSNS_PIN = 1 [19:15:26]*** CUTSNS_PIN = 0 [19:15:26]*** Brake cut motor [19:15:26]Read from MH i2c: 01 [19:15:26]MH_I2C_Read... [19:15:26]*** Stop cut motor [19:15:26]*** Cut end [19:15:26]Read from MH i2c: 01 07 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: 01 07 00 0D 3F 00 00 00 00 00 FF 0F 61 [19:15:26]process_action close_receipt done [19:15:26]requested_data is exist [19:15:26]produce_requested_data [19:15:26]requested_item fm.sn is exist - process it [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 11 00 00 [19:15:26]Write to MH i2c: E2 08 00 0E 3F 80 11 00 00 00 00 00 00 C7 [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 17 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 17 00 0E 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [19:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:15:26]wFMCommunicate OK [19:15:26]requested_item fd.num is exist - process it [19:15:26]SAM_PROTO_GetFieldsCounters [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 13 00 00 [19:15:26]Write to MH i2c: E2 08 00 0F 3F 80 13 00 00 00 00 00 00 CA [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:27]Read from MH i2c: E2 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 62 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 62 00 0F 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 51 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [19: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 51 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:27]wFMCommunicate OK [19:15:27]SAM_PROTO_GetFieldsCounters done [19:15:27]requested_item shift.num is exist - process it [19:15:27]requested_item shift.opened is exist - process it [19:15:27]req_shift_opened [19:15:27]FM_GetShiftState [19:15:27]SAM_PROTO_GetShiftState [19:15:27]wFMCommunicate request_size=4 [19:15:27]MH_SAM_APDU [19:15:27]CAPDU: 80 13 01 00 [19:15:27]Write to MH i2c: E2 08 00 10 3F 80 13 01 00 00 00 00 00 CC [19:15:27]Write i2c OK [19:15:27]MH_I2C_Read... [19:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:27]Read from MH i2c: E2 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 0E 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 0E 00 10 3F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1B [19:15:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:15:27]wFMCommunicate OK [19:15:27]SAM_PROTO_GetShiftState done [19:15:27]FM_GetShiftState done [19:15:27]req_shift_opened done [19:15:27]requested_item shift.open_date is exist - process it [19:15:27]req_shift_open_date [19:15:27]req_shift_open_date done [19:15:27]produce_requested_data done [19:15:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104017,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:15:27]process_action_free close_receipt [19:15:27]json_value_free [19:15:27]json_value_free done [19:15:27]process_json_proto returns [19:15:27]Send response to host [19:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104017,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:15:27]free response buf [19:15:27]execute_script done [19:15:27]execute_script returns [19:15:27]free content buf [19:15:27]Sock 9.Close socket [19:15:27]Sock 9.Thread stoped [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:44]accept exits with 7 [19:16:44]New connection [19:16:44]New thread 3067063652 created [19:16:44]Thread 3067207012 joined [19:16:44]Waiting for new connection... [19:16:44] Sock 7.Parse request [19:16:44]Sock 7.Check first char [19:16:44]Sock 7.First char is OK [19:16:44]request: POST /json_proto HTTP/1.0 [19:16:44]Method: POST [19:16:44]URL: /json_proto [19:16:44]Method is POST - this is cgi request [19:16:44]url: /json_proto [19:16:44]query_string will be loaded in cgi processing [19:16:44]execute_cgi json_proto POST (null) [19:16:44]execute_cgi path=json_proto method=POST [19:16:44]POST find Content-Length [19:16:44]Host: 172.17.38.133:8080 [19:16:44]Content-Length: 660 [19:16:44]Content-Type: application/json [19:16:44] [19:16:44]POST finish read [19:16:44]Found Content-Length = 660 [19:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:44]execute_script... [19:16: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)673398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:44]POST & json_proto [19:16:44]process_json_proto [19:16:44]json parsed OK: [19:16:44]protocol is kg_v1.0 [19:16:44]action value=close_receipt [19:16:44]process_action close_receipt [19:16:44]cmd_close_receipt [19:16:44]MH_GetDate [19:16:44]Write to MH i2c: F0 00 00 11 3F 3F [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: F0 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: F0 09 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: F0 09 00 11 3F 00 1F 80 74 66 BD 8F 7C 64 ED [19:16:44]GetLastDocTimeStamp 1718910926 [19:16:44]current date 1718911007 [19:16:44]FM_GetShiftState [19:16:44]SAM_PROTO_GetShiftState [19:16:44]wFMCommunicate request_size=4 [19:16:44]MH_SAM_APDU [19:16:44]CAPDU: 80 13 01 00 [19:16:44]Write to MH i2c: E2 08 00 12 3F 80 13 01 00 00 00 00 00 CE [19:16:44]Write i2c OK [19:16:44]MH_I2C_Read... [19:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:44]Read from MH i2c: E2 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 0E 00 [19:16:44]MH_I2C_Read... [19:16:44]Read from MH i2c: E2 0E 00 12 3F 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1D [19:16:44]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:16:44]wFMCommunicate OK [19:16:44]SAM_PROTO_GetShiftState done [19:16:44]FM_GetShiftState done [19:16:44]opened in 1718843124 [19:16:44]opened+sec_in_day 1718929524 [19:16:44]quantity*price = 66400 [19:16:44]sum+1 = 66401 [19:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 Внесено: 700.00 СДАЧА: 36.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 203 20.06.2024 19:16 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104018 ФПД: 32217777449550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191647&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104018&fm=32217777449550&tin=02508201610067®Number=0000000000092785&sum=66400 [19:16:45]StoreToDocumentArchive [19:16:45]shift 354 fd 104018 [19:16:45]save to /storage/0354/doc_00104018 [19:16:45]save last doc name /storage/0354/doc_00104018 to /storage/kkm_last_doc_name [19:16:45]save OK [19:16:45]Clear old archive folders... [19:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:45]tlvbuf is 0088E870 [19:16:45]SAM_PROTO_ClearQueue [19:16:45]wFMCommunicate request_size=4 [19:16:45]MH_SAM_APDU [19:16:45]CAPDU: 80 09 00 00 [19:16:45]Write to MH i2c: E2 08 00 1F 3F 80 09 00 00 00 00 00 00 D0 [19:16:45]Write i2c OK [19:16:45]MH_I2C_Read... [19:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:45]Read from MH i2c: E2 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: E2 03 00 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: E2 03 00 1F 3F 00 90 00 D2 [19:16:45]RAPDU: 90 00 [19:16:45]wFMCommunicate OK [19:16:45]SAM_PROTO_ClearQueue done [19:16:45]KKMCreateOFDPacket [19:16:45]OFDProtocolAddRootSTLVToBuf [19:16:45]FM_MakeSignedData [19:16:45]FM_MakeSignedData [19:16:45]SAM_PROTO_SignData [19:16:45]wFMCommunicate request_size=4 [19:16:45]MH_SAM_APDU [19:16:45]CAPDU: 80 0D 01 02 [19:16:45]Write to MH i2c: E2 08 00 20 3F 80 0D 01 02 00 00 00 00 D8 [19:16:45]Write i2c OK [19:16:45]MH_I2C_Read... [19:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:45]Read from MH i2c: E2 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: E2 03 00 [19:16:45]MH_I2C_Read... [19:16:45]Read from MH i2c: E2 03 00 20 3F 00 90 00 D3 [19:16:45]RAPDU: 90 00 [19:16:45]wFMCommunicate OK [19:16:45]wFMCommunicate request_size=255 [19:16:45]MH_SAM_APDU [19:16: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 [19:19:07]ConnectInit Can't connect to host [19:19:09]ConnectInit Can't take IP for lk.salyk.kg [19:19:09]CommunicateWithHost connect error [19:19:09]CommunicateWithHost err = -1 [19:19:09]OFD Sender: Server communicate error [19:19:14]OFD Sender: Processing packet 104019 [packets to send 18, broken 16] [19:19:14]ProducePacketName [19:19:14]name=ofd_packets/00104019 [19:19:14]OFD Sender: To server: pG, [19:19:14]CommunicateWithHost lk.salyk.kg:30040 [19:19:14]ConnectInit lk.salyk.kg [19:19:14]Connected sock=7 [19:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2B 01 00 00 9A 18 23 01 4D 09 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 83 80 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 52 96 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 53 96 01 00 35 04 06 00 B0 35 44 A1 C7 BB 3C 61 9E 4E 4B 03 A8 E9 [19:19:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 96 AF 47 00 A8 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 35 30 39 33 10 04 04 00 53 96 01 00 F4 03 04 00 35 27 74 66 B6 04 01 00 00 78 6F F1 A9 72 19 8D B2 [19:19:15]CommunicateWithHost err = 0 [19:19:15]CheckOFDResponse [19:19:15]1017 (14) - 77093643461234 [19:19:15]1041 (16) - 0000000000875093 [19:19:15]1040 (4) - 104019 [19:19:15]1012 (4) - 20.06.2024 12:57 [19:19:15]1206 (1) - 0 [19:19:15]OFD Sender: Remove packet 104019 [19:19:15]ProducePacketName [19:19:15]name=ofd_packets/00104019 [19:19:15]NVStorageDeleteData [19:19:15]OFD Sender: Processing packet 104020 [packets to send 17, broken 16] [19:19:15]ProducePacketName [19:19:15]name=ofd_packets/00104020 [19:19:15]OFD Sender: To server: pG, [19:19:15]CommunicateWithHost lk.salyk.kg:30040 [19:19:15]ConnectInit lk.salyk.kg [19:19:15]Connected sock=7 [19:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 59 00 07 01 2B 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 78 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 00 00 00 00 00 07 04 06 00 BC 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 88 80 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 54 96 01 00 35 04 06 00 E1 E5 D8 0F EE 6B 9E B9 6A B7 8C 7D AA 42 [19:19:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DF 2F 47 00 E1 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 35 30 39 33 10 04 04 00 54 96 01 00 F4 03 04 00 36 27 74 66 B6 04 01 00 00 18 C1 EC 23 21 66 4E 04 [19:19:15]CommunicateWithHost err = 0 [19:19:15]CheckOFDResponse [19:19:15]1017 (14) - 77093643461234 [19:19:15]1041 (16) - 0000000000875093 [19:19:15]1040 (4) - 104020 [19:19:15]1012 (4) - 20.06.2024 12:57 [19:19:15]1206 (1) - 0 [19:19:15]OFD Sender: Remove packet 104020 [19:19:15]ProducePacketName [19:19:15]name=ofd_packets/00104020 [19:19:15]NVStorageDeleteData [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:19:56]accept exits with 9 [19:19:56]New connection [19:19:56]New thread 3066707300 created [19:19:56]Thread 3066563940 joined [19:19:56]Waiting for new connection... [19:19:56] Sock 9.Parse request [19:19:56]Sock 9.Check first char [19:19:56]Sock 9.First char is OK [19:19:56]request: POST /json_proto HTTP/1.0 [19:19:56]Method: POST [19:19:56]URL: /json_proto [19:19:56]Method is POST - this is cgi request [19:19:56]url: /json_proto [19:19:56]query_string will be loaded in cgi processing [19:19:56]execute_cgi json_proto POST (null) [19:19:56]execute_cgi path=json_proto method=POST [19:19:56]POST find Content-Length [19:19:56]Host: 172.17.38.133:8080 [19:19:56]Content-Length: 640 [19:19:56]Content-Type: application/json [19:19:56] [19:19:56]POST finish read [19:19:56]Found Content-Length = 640 [19:19:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:56]execute_script... [19:19: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)673399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.000, "sum" : 664.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 664.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:56]POST & json_proto [19:19:56]process_json_proto [19:19:56]json parsed OK: [19:19:56]protocol is kg_v1.0 [19:19:56]action value=close_receipt [19:19:56]process_action close_receipt [19:19:56]cmd_close_receipt [19:19:56]MH_GetDate [19:19:56]Write to MH i2c: F0 00 00 A7 00 96 [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: F0 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: F0 09 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: F0 09 00 A7 00 00 DC 80 74 66 BD 8F 7C 64 01 [19:19:56]GetLastDocTimeStamp 1718911112 [19:19:56]current date 1718911196 [19:19:56]FM_GetShiftState [19:19:56]SAM_PROTO_GetShiftState [19:19:56]wFMCommunicate request_size=4 [19:19:56]MH_SAM_APDU [19:19:56]CAPDU: 80 13 01 00 [19:19:56]Write to MH i2c: E2 08 00 A8 00 80 13 01 00 00 00 00 00 25 [19:19:56]Write i2c OK [19:19:56]MH_I2C_Read... [19:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:56]Read from MH i2c: E2 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 0E 00 [19:19:56]MH_I2C_Read... [19:19:56]Read from MH i2c: E2 0E 00 A8 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 74 [19:19:56]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:19:56]wFMCommunicate OK [19:19:56]SAM_PROTO_GetShiftState done [19:19:56]FM_GetShiftState done [19:19:56]opened in 1718843124 [19:19:56]opened+sec_in_day 1718929524 [19:19:56]quantity*price = 66400 [19:19:56]sum+1 = 66401 [19:19:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 664.00 НСП 1% : 5.88 НДС 12% : 70.51 Наличными: 664.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 206 20.06.2024 19:19 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104021 ФПД: 232359271742913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191956&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104021&fm=232359271742913&tin=02508201610067®Number=0000000000092785&sum=66400 [19:19:57]StoreToDocumentArchive [19:19:57]shift 354 fd 104021 [19:19:57]save to /storage/0354/doc_00104021 [19:19:57]save last doc name /storage/0354/doc_00104021 to /storage/kkm_last_doc_name [19:19:57]save OK [19:19:57]Clear old archive folders... [19:19:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:57]tlvbuf is 014F30A0 [19:19:57]SAM_PROTO_ClearQueue [19:19:57]wFMCommunicate request_size=4 [19:19:57]MH_SAM_APDU [19:19:57]CAPDU: 80 09 00 00 [19:19:57]Write to MH i2c: E2 08 00 B5 00 80 09 00 00 00 00 00 00 27 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [19:19:57]RAPDU: 90 00 [19:19:57]wFMCommunicate OK [19:19:57]SAM_PROTO_ClearQueue done [19:19:57]KKMCreateOFDPacket [19:19:57]OFDProtocolAddRootSTLVToBuf [19:19:57]FM_MakeSignedData [19:19:57]FM_MakeSignedData [19:19:57]SAM_PROTO_SignData [19:19:57]wFMCommunicate request_size=4 [19:19:57]MH_SAM_APDU [19:19:57]CAPDU: 80 0D 01 02 [19:19:57]Write to MH i2c: E2 08 00 B6 00 80 0D 01 02 00 00 00 00 2F [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:57]Read from MH i2c: E2 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 [19:19:57]MH_I2C_Read... [19:19:57]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [19:19:57]RAPDU: 90 00 [19:19:57]wFMCommunicate OK [19:19:57]wFMCommunicate request_size=255 [19:19:57]MH_SAM_APDU [19:19: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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DC 80 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 96 01 00 35 04 06 00 D3 [19:19:57]Write to MH i2c: E2 02 01 B7 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 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DC 80 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 96 01 00 35 04 06 00 D3 00 00 C5 [19:19:57]Write i2c OK [19:19:57]MH_I2C_Read... [19:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:58]Read from MH i2c: E2 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 03 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [19:19:58]RAPDU: 90 00 [19:19:58]wFMCommunicate OK [19:19:58]wFMCommunicate request_size=10 [19:19:58]MH_SAM_APDU [19:19:58]CAPDU: 80 0D 02 02 05 54 5B DA 3D C1 [19:19:58]Write to MH i2c: E2 0D 00 B8 00 80 0D 02 02 05 00 54 5B DA 3D C1 00 00 C3 [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:58]Read from MH i2c: E2 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 03 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 03 00 B8 00 00 90 00 2C [19:19:58]RAPDU: 90 00 [19:19:58]wFMCommunicate OK [19:19:58]wFMCommunicate request_size=4 [19:19:58]MH_SAM_APDU [19:19:58]CAPDU: 80 0D 03 02 [19:19:58]Write to MH i2c: E2 08 00 B9 00 80 0D 03 02 00 00 00 00 34 [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:58]Read from MH i2c: E2 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 0B 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 0B 00 B9 00 00 6D 2C B2 01 42 48 29 A2 90 00 D6 [19:19:58]RAPDU: 6D 2C B2 01 42 48 29 A2 90 00 [19:19:58]wFMCommunicate OK [19:19:58]SAM_PROTO_SignData done [19:19:58]FM_MakeSignedData done [19:19:58]CreateOFDProtocolMessage [19:19:58]wFMCommunicate request_size=4 [19:19:58]MH_SAM_APDU [19:19:58]CAPDU: 80 11 00 00 [19:19:58]Write to MH i2c: E2 08 00 BA 00 80 11 00 00 00 00 00 00 34 [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:58]Read from MH i2c: E2 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 17 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: E2 17 00 BA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [19:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:19:58]wFMCommunicate OK [19:19:58]CreateOFDProtocolMessage done [19:19:58]OFDSenderStorePacket 104021 [19:19:58]StoreOFDPacket docnum=104021 [19:19:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AB 98 07 01 87 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DC 80 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 96 01 00 35 04 06 00 D3 54 5B DA 3D C1 6D 2C B2 01 42 48 29 A2 [19:19:58]CheckFolder [19:19:58]dirname=/storage/ofd_packets [19:19:58]CheckFolder done [19:19:58]ProducePacketName [19:19:58]name=ofd_packets/00104021 [19:19:58]NVStorageSaveData ofd_packets/00104021 [19:19:58]File name is /storage/ofd_packets/00104021 [19:19:58]Write 301 bytes [19:19:58]NVStorageSaveData done [19:19:58]OFDSenderStorePacket done [19:19:58]KKMCreateOFDPacket done [19:19:58]NVStorageSaveData kkm_last_timestamp [19:19:58]File name is /storage/kkm_last_timestamp [19:19:58]Write 4 bytes [19:19:58]NVStorageSaveData done [19:19:58]ExternCall_PrintAddStr [19:19:58]wPrintStart [19:19:58]Write to MH i2c: 01 00 00 BB 00 BB [19:19:58]OFD Sender: Processing packet 104021 [packets to send 17, broken 16] [19:19:58]ProducePacketName [19:19:58]name=ofd_packets/00104021 [19:19:58]OFD Sender: To server: pG, [19:19:58]CommunicateWithHost lk.salyk.kg:30040 [19:19:58]ConnectInit lk.salyk.kg [19:19:58]Write i2c OK [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: 01 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: 01 07 00 [19:19:58]MH_I2C_Read... [19:19:58]Read from MH i2c: 01 07 00 BB 00 00 00 00 00 00 FF 0F D0 [19:19:58]RasterBufferAndPrint [19:19:58]line Счет N : (1)673399 [19:19:58]line ИНН: 02508201610067 [19:19:58]line Контрольно-Кассовый Чек [19:19:58]line ПРОДАЖА [19:19:58]line ТРК (МРК, ГНК) : 32 [19:19:58]line Товар: 2710124130 [19:19:58]line Аи-92-К-5 [19:19:58]line 10.000 * 66.40 [19:19:58]line = 664.00 [19:19:58]line НДС 12% НСП 1% [19:19:58]line > о реализуемом товаре [19:19:58]line ИТОГО: 664.00 [19:19:58]line НСП 1% : 5.88 [19:19:58]line НДС 12% : 70.51 [19:19:58]line Наличными: 664.00 [19:19:58]line Безнал.: 0.00 [19:19:58]line Место: АЗС № 120 "Партнер Нефть" [19:19:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:19:58]line СНО: Общий режим [19:19:58]line Чек 206 20.06.2024 19:19 [19:19:58]line Смена: 354 ФФД: 1.0 [19:19:58]line ЗНМ: 0300000164 [19:19:58]line РНМ: 0000000000092785 [19:19:58]line Версия ККМ: 001 [19:19:58]line ФМ: 0000000000875093 [19:19:58]line ФД: 104021 [19:19:58]line ФПД: 232359271742913 [19:19:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T191956&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104021&fm=232359271742913&tin=02508201610067®Number=0000000000092785&sum=66400 [19:19:58]Connected sock=10 [19:19:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AB 98 07 01 87 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 60 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 1B 00 00 00 00 07 04 06 00 60 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 DC 80 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 96 01 00 35 04 06 00 D3 54 5B DA 3D C1 6D 2C B2 01 42 48 29 A2 [19:19:58]written 0, free lines is 4095 [19:19:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C4 40 47 00 DD 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 55 96 01 00 F4 03 04 00 61 27 74 66 B6 04 01 00 00 AE F3 17 3D 66 46 FB B7 [19:19:58]CommunicateWithHost err = 0 [19:19:58]CheckOFDResponse [19:19:58]1017 (14) - 77093643461234 [19:19:58]1041 (16) - 0000000000875093 [19:19:58]1040 (4) - 104021 [19:19:58]1012 (4) - 20.06.2024 12:58 [19:19:58]1206 (1) - 0 [19:19:58]OFD Sender: Remove packet 104021 [19:19:58]ProducePacketName [19:19:58]name=ofd_packets/00104021 [19:19:58]NVStorageDeleteData [19:19:59]Write to MH i2c: 01 00 00 E3 00 E3 [19:19:59]Write i2c OK [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: 01 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: 01 07 00 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 0F 0D 06 [19:19:59]RasterBufferAndPrint [19:19:59]line [19:19:59]line [19:19:59]line [19:19:59]line [19:19:59]line [19:19:59]written 0, free lines is 3349 [19:19:59]MH_Cut [19:19:59]Write to MH i2c: D1 01 00 EA 00 01 BC [19:19:59]Write i2c OK [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: D1 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: D1 01 00 [19:19:59]MH_I2C_Read... [19:19:59]Read from MH i2c: D1 01 00 EA 00 00 BB [19:19:59]Write to MH i2c: 01 00 00 EB 00 EB [19:19:59]Write i2c OK [19:19:59]MH_I2C_Read... [19:19:59]OFD Sender: No OFD packet to send [19:19:59]*** Cut start [19:19:59]*** Partial cut [19:19:59]*** CUTSNS_PIN = 1 [19:19:59]*** CUTSNS_PIN = 0 [19:20:00]*** Brake cut motor [19:20:00]Read from MH i2c: 01 [19:20:00]MH_I2C_Read... [19:20:00]*** Stop cut motor [19:20:00]*** Cut end [19:20:00]Read from MH i2c: 01 07 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 FF 0F 00 [19:20:00]process_action close_receipt done [19:20:00]requested_data is exist [19:20:00]produce_requested_data [19:20:00]requested_item fm.sn is exist - process it [19:20:00]wFMCommunicate request_size=4 [19:20:00]MH_SAM_APDU [19:20:00]CAPDU: 80 11 00 00 [19:20:00]Write to MH i2c: E2 08 00 EC 00 80 11 00 00 00 00 00 00 66 [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:00]Read from MH i2c: E2 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 17 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 17 00 EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B9 [19:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:20:00]wFMCommunicate OK [19:20:00]requested_item fd.num is exist - process it [19:20:00]SAM_PROTO_GetFieldsCounters [19:20:00]wFMCommunicate request_size=4 [19:20:00]MH_SAM_APDU [19:20:00]CAPDU: 80 13 00 00 [19:20:00]Write to MH i2c: E2 08 00 ED 00 80 13 00 00 00 00 00 00 69 [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:00]Read from MH i2c: E2 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 62 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 62 00 ED 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 55 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [19:20:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 55 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:00]wFMCommunicate OK [19:20:00]SAM_PROTO_GetFieldsCounters done [19:20:00]requested_item shift.num is exist - process it [19:20:00]requested_item shift.opened is exist - process it [19:20:00]req_shift_opened [19:20:00]FM_GetShiftState [19:20:00]SAM_PROTO_GetShiftState [19:20:00]wFMCommunicate request_size=4 [19:20:00]MH_SAM_APDU [19:20:00]CAPDU: 80 13 01 00 [19:20:00]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [19:20:00]Write i2c OK [19:20:00]MH_I2C_Read... [19:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:00]Read from MH i2c: E2 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 0E 00 [19:20:00]MH_I2C_Read... [19:20:00]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BA [19:20:00]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:20:00]wFMCommunicate OK [19:20:00]SAM_PROTO_GetShiftState done [19:20:00]FM_GetShiftState done [19:20:00]req_shift_opened done [19:20:00]requested_item shift.open_date is exist - process it [19:20:00]req_shift_open_date [19:20:00]req_shift_open_date done [19:20:00]produce_requested_data done [19:20:00]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104021,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:20:00]process_action_free close_receipt [19:20:00]json_value_free [19:20:00]json_value_free done [19:20:00]process_json_proto returns [19:20:00]Send response to host [19:20:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104021,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:20:00]free response buf [19:20:00]execute_script done [19:20:00]execute_script returns [19:20:00]free content buf [19:20:00]Sock 9.Close socket [19:20:00]Sock 9.Thread stoped [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:03]accept exits with 7 [19:27:03]New connection [19:27:03]New thread 3066563940 created [19:27:03]Thread 3066707300 joined [19:27:03]Waiting for new connection... [19:27:03] Sock 7.Parse request [19:27:03]Sock 7.Check first char [19:27:03]Sock 7.First char is OK [19:27:03]request: POST /json_proto HTTP/1.0 [19:27:03]Method: POST [19:27:03]URL: /json_proto [19:27:03]Method is POST - this is cgi request [19:27:03]url: /json_proto [19:27:03]query_string will be loaded in cgi processing [19:27:03]execute_cgi json_proto POST (null) [19:27:03]execute_cgi path=json_proto method=POST [19:27:03]POST find Content-Length [19:27:03]Host: 172.17.38.133:8080 [19:27:03]Content-Length: 677 [19:27:03]Content-Type: application/json [19:27:03] [19:27:03]POST finish read [19:27:03]Found Content-Length = 677 [19:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:03]execute_script... [19:27: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)673400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:03]POST & json_proto [19:27:03]process_json_proto [19:27:03]json parsed OK: [19:27:03]protocol is kg_v1.0 [19:27:03]action value=close_receipt [19:27:03]process_action close_receipt [19:27:03]cmd_close_receipt [19:27:03]MH_GetDate [19:27:03]Write to MH i2c: F0 00 00 EF 00 DE [19:27:03]Write i2c OK [19:27:03]MH_I2C_Read... [19:27:03]Read from MH i2c: F0 [19:27:03]MH_I2C_Read... [19:27:03]Read from MH i2c: F0 09 00 [19:27:03]MH_I2C_Read... [19:27:03]Read from MH i2c: F0 09 00 EF 00 00 87 82 74 66 BD 8F 7C 64 F6 [19:27:03]GetLastDocTimeStamp 1718911196 [19:27:03]current date 1718911623 [19:27:03]FM_GetShiftState [19:27:03]SAM_PROTO_GetShiftState [19:27:03]wFMCommunicate request_size=4 [19:27:03]MH_SAM_APDU [19:27:03]CAPDU: 80 13 01 00 [19:27:03]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [19:27:03]Write i2c OK [19:27:03]MH_I2C_Read... [19:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:03]Read from MH i2c: E2 [19:27:03]MH_I2C_Read... [19:27:03]Read from MH i2c: E2 0E 00 [19:27:03]MH_I2C_Read... [19:27:03]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BC [19:27:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:27:03]wFMCommunicate OK [19:27:03]SAM_PROTO_GetShiftState done [19:27:03]FM_GetShiftState done [19:27:03]opened in 1718843124 [19:27:03]opened+sec_in_day 1718929524 [19:27:03]quantity*price = 50065 [19:27:03]sum+1 = 50067 [19:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 207 20.06.2024 19:27 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104022 ФПД: 170404647085758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T192703&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104022&fm=170404647085758&tin=02508201610067®Number=0000000000092785&sum=50000 [19:27:04]StoreToDocumentArchive [19:27:04]shift 354 fd 104022 [19:27:04]save to /storage/0354/doc_00104022 [19:27:04]save last doc name /storage/0354/doc_00104022 to /storage/kkm_last_doc_name [19:27:04]save OK [19:27:04]Clear old archive folders... [19:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:04]tlvbuf is B6E85120 [19:27:04]SAM_PROTO_ClearQueue [19:27:04]wFMCommunicate request_size=4 [19:27:04]MH_SAM_APDU [19:27:04]CAPDU: 80 09 00 00 [19:27:04]Write to MH i2c: E2 08 00 FD 00 80 09 00 00 00 00 00 00 6F [19:27:04]Write i2c OK [19:27:04]MH_I2C_Read... [19:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:04]Read from MH i2c: E2 [19:27:04]MH_I2C_Read... [19:27:04]Read from MH i2c: E2 03 00 [19:27:04]MH_I2C_Read... [19:27:04]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [19:27:04]RAPDU: 90 00 [19:27:04]wFMCommunicate OK [19:27:04]SAM_PROTO_ClearQueue done [19:27:04]KKMCreateOFDPacket [19:27:04]OFDProtocolAddRootSTLVToBuf [19:27:04]FM_MakeSignedData [19:27:04]FM_MakeSignedData [19:27:04]SAM_PROTO_SignData [19:27:04]wFMCommunicate request_size=4 [19:27:04]MH_SAM_APDU [19:27:04]CAPDU: 80 0D 01 02 [19:27:04]Write to MH i2c: E2 08 00 FE 00 80 0D 01 02 00 00 00 00 77 [19:27:04]Write i2c OK [19:27:04]MH_I2C_Read... [19:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:04]OFD Sender: No OFD packet to send [19:27:04]Read from MH i2c: E2 [19:27:04]MH_I2C_Read... [19:27:04]Read from MH i2c: E2 03 00 [19:27:04]MH_I2C_Read... [19:27:04]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [19:27:04]RAPDU: 90 00 [19:27:04]wFMCommunicate OK [19:27:04]wFMCommunicate request_size=255 [19:27:04]MH_SAM_APDU [19:27:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 87 82 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 96 01 00 35 04 06 00 9A [19:27:04]Write to MH i2c: E2 02 01 FF 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 87 82 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 96 01 00 35 04 06 00 9A 00 00 CD [19:27:04]Write i2c OK [19:27:04]MH_I2C_Read... [19:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:05]Read from MH i2c: E2 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: E2 03 00 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [19:27:05]RAPDU: 90 00 [19:27:05]wFMCommunicate OK [19:27:05]wFMCommunicate request_size=10 [19:27:05]MH_SAM_APDU [19:27:05]CAPDU: 80 0D 02 02 05 FB 6C 75 26 BE [19:27:05]Write to MH i2c: E2 0D 00 00 01 80 0D 02 02 05 00 FB 6C 75 26 BE 00 00 45 [19:27:05]Write i2c OK [19:27:05]MH_I2C_Read... [19:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:05]Read from MH i2c: E2 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: E2 03 00 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [19:27:05]RAPDU: 90 00 [19:27:05]wFMCommunicate OK [19:27:05]wFMCommunicate request_size=4 [19:27:05]MH_SAM_APDU [19:27:05]CAPDU: 80 0D 03 02 [19:27:05]Write to MH i2c: E2 08 00 01 01 80 0D 03 02 00 00 00 00 7D [19:27:05]Write i2c OK [19:27:05]MH_I2C_Read... [19:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:05]Read from MH i2c: E2 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: E2 0B 00 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: E2 0B 00 01 01 00 E5 34 B2 81 5B 00 68 65 90 00 F2 [19:27:05]RAPDU: E5 34 B2 81 5B 00 68 65 90 00 [19:27:05]wFMCommunicate OK [19:27:05]SAM_PROTO_SignData done [19:27:05]FM_MakeSignedData done [19:27:05]CreateOFDProtocolMessage [19:27:05]wFMCommunicate request_size=4 [19:27:05]MH_SAM_APDU [19:27:05]CAPDU: 80 11 00 00 [19:27:05]Write to MH i2c: E2 08 00 02 01 80 11 00 00 00 00 00 00 7D [19:27:05]Write i2c OK [19:27:05]MH_I2C_Read... [19:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:05]Read from MH i2c: E2 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: E2 17 00 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: E2 17 00 02 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [19:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:27:05]wFMCommunicate OK [19:27:05]CreateOFDProtocolMessage done [19:27:05]OFDSenderStorePacket 104022 [19:27:05]StoreOFDPacket docnum=104022 [19:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 83 16 07 01 A8 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 87 82 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 96 01 00 35 04 06 00 9A FB 6C 75 26 BE E5 34 B2 81 5B 00 68 65 [19:27:05]CheckFolder [19:27:05]dirname=/storage/ofd_packets [19:27:05]CheckFolder done [19:27:05]ProducePacketName [19:27:05]name=ofd_packets/00104022 [19:27:05]NVStorageSaveData ofd_packets/00104022 [19:27:05]File name is /storage/ofd_packets/00104022 [19:27:05]Write 301 bytes [19:27:05]NVStorageSaveData done [19:27:05]OFDSenderStorePacket done [19:27:05]KKMCreateOFDPacket done [19:27:05]NVStorageSaveData kkm_last_timestamp [19:27:05]File name is /storage/kkm_last_timestamp [19:27:05]Write 4 bytes [19:27:05]NVStorageSaveData done [19:27:05]ExternCall_PrintAddStr [19:27:05]wPrintStart [19:27:05]Write to MH i2c: 01 00 00 03 01 04 [19:27:05]Write i2c OK [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: 01 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: 01 07 00 [19:27:05]MH_I2C_Read... [19:27:05]Read from MH i2c: 01 07 00 03 01 00 00 00 00 00 FF 0F 19 [19:27:05]RasterBufferAndPrint [19:27:05]line Счет N : (1)673400 [19:27:05]line ИНН: 02508201610067 [19:27:05]line Контрольно-Кассовый Чек [19:27:05]line ПРОДАЖА [19:27:05]line ТРК (МРК, ГНК) : 42 [19:27:05]line Товар: 2710124130 [19:27:05]line Аи-92-К-5 [19:27:05]line 7.540 * 66.40 [19:27:05]line = 500.66 [19:27:05]line НДС 12% НСП 1% [19:27:05]line > о реализуемом товаре [19:27:05]line ОКРУГЛЕНИЕ: -0.66 [19:27:05]line ИТОГО: 500.00 [19:27:05]line Внесено: 500.00 [19:27:05]line СДАЧА: 0.00 [19:27:05]line НСП 1% : 4.43 [19:27:05]line НДС 12% : 53.17 [19:27:05]line Наличными: 500.00 [19:27:05]line Безнал.: 0.00 [19:27:05]line Место: АЗС № 120 "Партнер Нефть" [19:27:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:27:05]line СНО: Общий режим [19:27:05]line Чек 207 20.06.2024 19:27 [19:27:05]line Смена: 354 ФФД: 1.0 [19:27:05]line ЗНМ: 0300000164 [19:27:05]line РНМ: 0000000000092785 [19:27:05]line Версия ККМ: 001 [19:27:05]line ФМ: 0000000000875093 [19:27:05]line ФД: 104022 [19:27:05]line ФПД: 170404647085758 [19:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T192703&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104022&fm=170404647085758&tin=02508201610067®Number=0000000000092785&sum=50000 [19:27:05]OFD Sender: Processing packet 104022 [packets to send 17, broken 16] [19:27:05]ProducePacketName [19:27:05]name=ofd_packets/00104022 [19:27:05]OFD Sender: To server: pG, [19:27:05]CommunicateWithHost lk.salyk.kg:30040 [19:27:05]ConnectInit lk.salyk.kg [19:27:05]written 0, free lines is 4095 [19:27:05]Connected sock=10 [19:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 83 16 07 01 A8 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 87 82 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 96 01 00 35 04 06 00 9A FB 6C 75 26 BE E5 34 B2 81 5B 00 68 65 [19:27:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 56 71 47 00 9E A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 56 96 01 00 F4 03 04 00 0C 29 74 66 B6 04 01 00 00 0B B2 53 F9 58 12 D2 16 [19:27:05]CommunicateWithHost err = 0 [19:27:05]CheckOFDResponse [19:27:05]1017 (14) - 77093643461234 [19:27:05]1041 (16) - 0000000000875093 [19:27:05]1040 (4) - 104022 [19:27:05]1012 (4) - 20.06.2024 13:05 [19:27:05]1206 (1) - 0 [19:27:05]OFD Sender: Remove packet 104022 [19:27:05]ProducePacketName [19:27:05]name=ofd_packets/00104022 [19:27:05]NVStorageDeleteData [19:27:06]Write to MH i2c: 01 00 00 2E 01 2F [19:27:06]Write i2c OK [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: 01 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: 01 07 00 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 EE 0C 30 [19:27:06]RasterBufferAndPrint [19:27:06]line [19:27:06]line [19:27:06]line [19:27:06]line [19:27:06]line [19:27:06]written 0, free lines is 3316 [19:27:06]MH_Cut [19:27:06]Write to MH i2c: D1 01 00 35 01 01 08 [19:27:06]Write i2c OK [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: D1 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: D1 01 00 [19:27:06]MH_I2C_Read... [19:27:06]Read from MH i2c: D1 01 00 35 01 00 07 [19:27:06]Write to MH i2c: 01 00 00 36 01 37 [19:27:06]Write i2c OK [19:27:06]MH_I2C_Read... [19:27:06]OFD Sender: No OFD packet to send [19:27:06]*** Cut start [19:27:06]*** Partial cut [19:27:06]*** CUTSNS_PIN = 1 [19:27:06]*** CUTSNS_PIN = 0 [19:27:06]*** Brake cut motor [19:27:07]Read from MH i2c: 01 [19:27:07]MH_I2C_Read... [19:27:07]*** Stop cut motor [19:27:07]*** Cut end [19:27:07]Read from MH i2c: 01 07 00 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: 01 07 00 36 01 00 00 00 00 00 FF 0F 4C [19:27:07]process_action close_receipt done [19:27:07]requested_data is exist [19:27:07]produce_requested_data [19:27:07]requested_item fm.sn is exist - process it [19:27:07]wFMCommunicate request_size=4 [19:27:07]MH_SAM_APDU [19:27:07]CAPDU: 80 11 00 00 [19:27:07]Write to MH i2c: E2 08 00 37 01 80 11 00 00 00 00 00 00 B2 [19:27:07]Write i2c OK [19:27:07]MH_I2C_Read... [19:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:07]Read from MH i2c: E2 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: E2 17 00 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: E2 17 00 37 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [19:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:27:07]wFMCommunicate OK [19:27:07]requested_item fd.num is exist - process it [19:27:07]SAM_PROTO_GetFieldsCounters [19:27:07]wFMCommunicate request_size=4 [19:27:07]MH_SAM_APDU [19:27:07]CAPDU: 80 13 00 00 [19:27:07]Write to MH i2c: E2 08 00 38 01 80 13 00 00 00 00 00 00 B5 [19:27:07]Write i2c OK [19:27:07]MH_I2C_Read... [19:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:07]Read from MH i2c: E2 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: E2 62 00 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: E2 62 00 38 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 56 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [19:27:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 56 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:07]wFMCommunicate OK [19:27:07]SAM_PROTO_GetFieldsCounters done [19:27:07]requested_item shift.num is exist - process it [19:27:07]requested_item shift.opened is exist - process it [19:27:07]req_shift_opened [19:27:07]FM_GetShiftState [19:27:07]SAM_PROTO_GetShiftState [19:27:07]wFMCommunicate request_size=4 [19:27:07]MH_SAM_APDU [19:27:07]CAPDU: 80 13 01 00 [19:27:07]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [19:27:07]Write i2c OK [19:27:07]MH_I2C_Read... [19:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:07]Read from MH i2c: E2 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: E2 0E 00 [19:27:07]MH_I2C_Read... [19:27:07]Read from MH i2c: E2 0E 00 39 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 06 [19:27:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:27:07]wFMCommunicate OK [19:27:07]SAM_PROTO_GetShiftState done [19:27:07]FM_GetShiftState done [19:27:07]req_shift_opened done [19:27:07]requested_item shift.open_date is exist - process it [19:27:07]req_shift_open_date [19:27:07]req_shift_open_date done [19:27:07]produce_requested_data done [19:27:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104022,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:27:07]process_action_free close_receipt [19:27:07]json_value_free [19:27:07]json_value_free done [19:27:07]process_json_proto returns [19:27:07]Send response to host [19:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104022,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:27:07]free response buf [19:27:07]execute_script done [19:27:07]execute_script returns [19:27:07]free content buf [19:27:07]Sock 7.Close socket [19:27:07]Sock 7.Thread stoped [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:26]OFD Sender: No OFD packet to send [19:27:31]OFD Sender: No OFD packet to send [19:27:36]OFD Sender: No OFD packet to send [19:27:41]OFD Sender: No OFD packet to send [19:27:46]OFD Sender: No OFD packet to send [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]accept exits with 9 [19:33:31]New connection [19:33:31]New thread 3066707300 created [19:33:31]Thread 3066563940 joined [19:33:31]Waiting for new connection... [19:33:31] Sock 9.Parse request [19:33:31]Sock 9.Check first char [19:33:31]Sock 9.First char is OK [19:33:31]request: POST /json_proto HTTP/1.0 [19:33:31]Method: POST [19:33:31]URL: /json_proto [19:33:31]Method is POST - this is cgi request [19:33:31]url: /json_proto [19:33:31]query_string will be loaded in cgi processing [19:33:31]execute_cgi json_proto POST (null) [19:33:31]execute_cgi path=json_proto method=POST [19:33:31]POST find Content-Length [19:33:31]Host: 172.17.38.133:8080 [19:33:31]Content-Length: 677 [19:33:31]Content-Type: application/json [19:33:31] [19:33:31]POST finish read [19:33:31]Found Content-Length = 677 [19:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:31]execute_script... [19:33: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)673401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:31]POST & json_proto [19:33:31]process_json_proto [19:33:31]json parsed OK: [19:33:31]protocol is kg_v1.0 [19:33:31]action value=close_receipt [19:33:31]process_action close_receipt [19:33:31]cmd_close_receipt [19:33:31]MH_GetDate [19:33:31]Write to MH i2c: F0 00 00 3A 01 2A [19:33:31]Write i2c OK [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: F0 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: F0 09 00 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: F0 09 00 3A 01 00 0B 84 74 66 BD 8F 7C 64 C8 [19:33:31]GetLastDocTimeStamp 1718911623 [19:33:31]current date 1718912011 [19:33:31]FM_GetShiftState [19:33:31]SAM_PROTO_GetShiftState [19:33:31]wFMCommunicate request_size=4 [19:33:31]MH_SAM_APDU [19:33:31]CAPDU: 80 13 01 00 [19:33:31]Write to MH i2c: E2 08 00 3B 01 80 13 01 00 00 00 00 00 B9 [19:33:31]Write i2c OK [19:33:31]MH_I2C_Read... [19:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:31]Read from MH i2c: E2 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: E2 0E 00 [19:33:31]MH_I2C_Read... [19:33:31]Read from MH i2c: E2 0E 00 3B 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 08 [19:33:31]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:33:31]wFMCommunicate OK [19:33:31]SAM_PROTO_GetShiftState done [19:33:31]FM_GetShiftState done [19:33:31]opened in 1718843124 [19:33:31]opened+sec_in_day 1718929524 [19:33:31]quantity*price = 50065 [19:33:31]sum+1 = 50067 [19:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 208 20.06.2024 19:33 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104023 ФПД: 201739660857141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T193331&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104023&fm=201739660857141&tin=02508201610067®Number=0000000000092785&sum=50000 [19:33:32]StoreToDocumentArchive [19:33:32]shift 354 fd 104023 [19:33:32]save to /storage/0354/doc_00104023 [19:33:32]save last doc name /storage/0354/doc_00104023 to /storage/kkm_last_doc_name [19:33:32]save OK [19:33:32]Clear old archive folders... [19:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:32]tlvbuf is 014A1870 [19:33:32]SAM_PROTO_ClearQueue [19:33:32]wFMCommunicate request_size=4 [19:33:32]MH_SAM_APDU [19:33:32]CAPDU: 80 09 00 00 [19:33:32]Write to MH i2c: E2 08 00 48 01 80 09 00 00 00 00 00 00 BB [19:33:32]Write i2c OK [19:33:32]MH_I2C_Read... [19:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:32]Read from MH i2c: E2 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 03 00 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [19:33:32]RAPDU: 90 00 [19:33:32]wFMCommunicate OK [19:33:32]SAM_PROTO_ClearQueue done [19:33:32]KKMCreateOFDPacket [19:33:32]OFDProtocolAddRootSTLVToBuf [19:33:32]FM_MakeSignedData [19:33:32]FM_MakeSignedData [19:33:32]SAM_PROTO_SignData [19:33:32]wFMCommunicate request_size=4 [19:33:32]MH_SAM_APDU [19:33:32]CAPDU: 80 0D 01 02 [19:33:32]Write to MH i2c: E2 08 00 49 01 80 0D 01 02 00 00 00 00 C3 [19:33:32]Write i2c OK [19:33:32]MH_I2C_Read... [19:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:32]Read from MH i2c: E2 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 03 00 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [19:33:32]RAPDU: 90 00 [19:33:32]wFMCommunicate OK [19:33:32]wFMCommunicate request_size=255 [19:33:32]MH_SAM_APDU [19:33:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 0B 84 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 96 01 00 35 04 06 00 B7 [19:33:32]Write to MH i2c: E2 02 01 4A 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 0B 84 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 96 01 00 35 04 06 00 B7 00 00 BE [19:33:32]Write i2c OK [19:33:32]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [19:33:33]RAPDU: 90 00 [19:33:33]wFMCommunicate OK [19:33:33]wFMCommunicate request_size=10 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 0D 02 02 05 7B 2C D2 8F 35 [19:33:33]Write to MH i2c: E2 0D 00 4B 01 80 0D 02 02 05 00 7B 2C D2 8F 35 00 00 0D [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [19:33:33]RAPDU: 90 00 [19:33:33]wFMCommunicate OK [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 0D 03 02 [19:33:33]Write to MH i2c: E2 08 00 4C 01 80 0D 03 02 00 00 00 00 C8 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 0B 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 0B 00 4C 01 00 A6 0D 96 08 CD 80 85 62 90 00 4E [19:33:33]RAPDU: A6 0D 96 08 CD 80 85 62 90 00 [19:33:33]wFMCommunicate OK [19:33:33]SAM_PROTO_SignData done [19:33:33]FM_MakeSignedData done [19:33:33]CreateOFDProtocolMessage [19:33:33]wFMCommunicate request_size=4 [19:33:33]MH_SAM_APDU [19:33:33]CAPDU: 80 11 00 00 [19:33:33]Write to MH i2c: E2 08 00 4D 01 80 11 00 00 00 00 00 00 C8 [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:33]Read from MH i2c: E2 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 17 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: E2 17 00 4D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [19:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:33:33]wFMCommunicate OK [19:33:33]CreateOFDProtocolMessage done [19:33:33]OFDSenderStorePacket 104023 [19:33:33]StoreOFDPacket docnum=104023 [19:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6F F0 07 01 D5 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 0B 84 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 96 01 00 35 04 06 00 B7 7B 2C D2 8F 35 A6 0D 96 08 CD 80 85 62 [19:33:33]CheckFolder [19:33:33]dirname=/storage/ofd_packets [19:33:33]CheckFolder done [19:33:33]ProducePacketName [19:33:33]name=ofd_packets/00104023 [19:33:33]NVStorageSaveData ofd_packets/00104023 [19:33:33]File name is /storage/ofd_packets/00104023 [19:33:33]Write 301 bytes [19:33:33]NVStorageSaveData done [19:33:33]OFDSenderStorePacket done [19:33:33]KKMCreateOFDPacket done [19:33:33]NVStorageSaveData kkm_last_timestamp [19:33:33]File name is /storage/kkm_last_timestamp [19:33:33]Write 4 bytes [19:33:33]NVStorageSaveData done [19:33:33]ExternCall_PrintAddStr [19:33:33]wPrintStart [19:33:33]Write to MH i2c: 01 00 00 4E 01 4F [19:33:33]Write i2c OK [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: 01 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: 01 07 00 [19:33:33]MH_I2C_Read... [19:33:33]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 FF 0F 64 [19:33:33]RasterBufferAndPrint [19:33:33]line Счет N : (1)673401 [19:33:33]line ИНН: 02508201610067 [19:33:33]line Контрольно-Кассовый Чек [19:33:33]line ПРОДАЖА [19:33:33]line ТРК (МРК, ГНК) : 32 [19:33:33]line Товар: 2710124130 [19:33:33]line Аи-92-К-5 [19:33:33]line 7.540 * 66.40 [19:33:33]line = 500.66 [19:33:33]line НДС 12% НСП 1% [19:33:33]line > о реализуемом товаре [19:33:33]line ОКРУГЛЕНИЕ: -0.66 [19:33:33]line ИТОГО: 500.00 [19:33:33]line Внесено: 500.00 [19:33:33]line СДАЧА: 0.00 [19:33:33]line НСП 1% : 4.43 [19:33:33]line НДС 12% : 53.17 [19:33:33]line Наличными: 500.00 [19:33:33]line Безнал.: 0.00 [19:33:33]line Место: АЗС № 120 "Партнер Нефть" [19:33:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:33:33]line СНО: Общий режим [19:33:33]line Чек 208 20.06.2024 19:33 [19:33:33]line Смена: 354 ФФД: 1.0 [19:33:33]line ЗНМ: 0300000164 [19:33:33]line РНМ: 0000000000092785 [19:33:33]line Версия ККМ: 001 [19:33:33]line ФМ: 0000000000875093 [19:33:33]line ФД: 104023 [19:33:33]line ФПД: 201739660857141 [19:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T193331&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104023&fm=201739660857141&tin=02508201610067®Number=0000000000092785&sum=50000 [19:33:33]OFD Sender: Processing packet 104023 [packets to send 17, broken 16] [19:33:33]ProducePacketName [19:33:33]name=ofd_packets/00104023 [19:33:33]OFD Sender: To server: pG, [19:33:33]CommunicateWithHost lk.salyk.kg:30040 [19:33:33]ConnectInit lk.salyk.kg [19:33:33]written 0, free lines is 4095 [19:33:33]Connected sock=10 [19:33:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6F F0 07 01 D5 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 0B 84 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 96 01 00 35 04 06 00 B7 7B 2C D2 8F 35 A6 0D 96 08 CD 80 85 62 [19:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9C CC 47 00 38 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 57 96 01 00 F4 03 04 00 90 2A 74 66 B6 04 01 00 00 B4 A3 D3 38 B1 F3 87 CF [19:33:33]CommunicateWithHost err = 0 [19:33:33]CheckOFDResponse [19:33:33]1017 (14) - 77093643461234 [19:33:33]1041 (16) - 0000000000875093 [19:33:33]1040 (4) - 104023 [19:33:33]1012 (4) - 20.06.2024 13:11 [19:33:33]1206 (1) - 0 [19:33:33]OFD Sender: Remove packet 104023 [19:33:33]ProducePacketName [19:33:33]name=ofd_packets/00104023 [19:33:33]NVStorageDeleteData [19:33:34]Write to MH i2c: 01 00 00 79 01 7A [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: 01 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: 01 07 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: 01 07 00 79 01 00 00 00 00 00 DE 0C 6B [19:33:34]RasterBufferAndPrint [19:33:34]line [19:33:34]line [19:33:34]line [19:33:34]line [19:33:34]line [19:33:34]written 0, free lines is 3300 [19:33:34]MH_Cut [19:33:34]Write to MH i2c: D1 01 00 80 01 01 53 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: D1 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: D1 01 00 [19:33:34]MH_I2C_Read... [19:33:34]Read from MH i2c: D1 01 00 80 01 00 52 [19:33:34]Write to MH i2c: 01 00 00 81 01 82 [19:33:34]Write i2c OK [19:33:34]MH_I2C_Read... [19:33:34]OFD Sender: No OFD packet to send [19:33:34]*** Cut start [19:33:34]*** Partial cut [19:33:34]*** CUTSNS_PIN = 1 [19:33:34]*** CUTSNS_PIN = 0 [19:33:35]*** Brake cut motor [19:33:35]Read from MH i2c: 01 [19:33:35]MH_I2C_Read... [19:33:35]*** Stop cut motor [19:33:35]*** Cut end [19:33:35]Read from MH i2c: 01 07 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 FF 0F 97 [19:33:35]process_action close_receipt done [19:33:35]requested_data is exist [19:33:35]produce_requested_data [19:33:35]requested_item fm.sn is exist - process it [19:33:35]wFMCommunicate request_size=4 [19:33:35]MH_SAM_APDU [19:33:35]CAPDU: 80 11 00 00 [19:33:35]Write to MH i2c: E2 08 00 82 01 80 11 00 00 00 00 00 00 FD [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:35]Read from MH i2c: E2 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 17 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 17 00 82 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 50 [19:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:33:35]wFMCommunicate OK [19:33:35]requested_item fd.num is exist - process it [19:33:35]SAM_PROTO_GetFieldsCounters [19:33:35]wFMCommunicate request_size=4 [19:33:35]MH_SAM_APDU [19:33:35]CAPDU: 80 13 00 00 [19:33:35]Write to MH i2c: E2 08 00 83 01 80 13 00 00 00 00 00 00 00 [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:35]Read from MH i2c: E2 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 62 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 62 00 83 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 57 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [19:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 57 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:35]wFMCommunicate OK [19:33:35]SAM_PROTO_GetFieldsCounters done [19:33:35]requested_item shift.num is exist - process it [19:33:35]requested_item shift.opened is exist - process it [19:33:35]req_shift_opened [19:33:35]FM_GetShiftState [19:33:35]SAM_PROTO_GetShiftState [19:33:35]wFMCommunicate request_size=4 [19:33:35]MH_SAM_APDU [19:33:35]CAPDU: 80 13 01 00 [19:33:35]Write to MH i2c: E2 08 00 84 01 80 13 01 00 00 00 00 00 02 [19:33:35]Write i2c OK [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 [19:33:35]MH_I2C_Read... [19:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:35]Read from MH i2c: E2 0E 00 [19:33:35]MH_I2C_Read... [19:33:35]Read from MH i2c: E2 0E 00 84 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 51 [19:33:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:33:35]wFMCommunicate OK [19:33:35]SAM_PROTO_GetShiftState done [19:33:35]FM_GetShiftState done [19:33:35]req_shift_opened done [19:33:35]requested_item shift.open_date is exist - process it [19:33:35]req_shift_open_date [19:33:35]req_shift_open_date done [19:33:35]produce_requested_data done [19:33:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104023,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:33:35]process_action_free close_receipt [19:33:35]json_value_free [19:33:35]json_value_free done [19:33:35]process_json_proto returns [19:33:35]Send response to host [19:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104023,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:33:35]free response buf [19:33:35]execute_script done [19:33:35]execute_script returns [19:33:35]free content buf [19:33:35]Sock 9.Close socket [19:33:35]Sock 9.Thread stoped [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:31]accept exits with 7 [19:34:31]New connection [19:34:31]New thread 3066563940 created [19:34:31]Thread 3066707300 joined [19:34:31]Waiting for new connection... [19:34:31] Sock 7.Parse request [19:34:31]Sock 7.Check first char [19:34:31]Sock 7.First char is OK [19:34:31]request: POST /json_proto HTTP/1.0 [19:34:31]Method: POST [19:34:31]URL: /json_proto [19:34:31]Method is POST - this is cgi request [19:34:31]url: /json_proto [19:34:31]query_string will be loaded in cgi processing [19:34:31]execute_cgi json_proto POST (null) [19:34:31]execute_cgi path=json_proto method=POST [19:34:31]POST find Content-Length [19:34:31]Host: 172.17.38.133:8080 [19:34:31]Content-Length: 677 [19:34:31]Content-Type: application/json [19:34:31] [19:34:31]POST finish read [19:34:31]Found Content-Length = 677 [19:34:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:31]execute_script... [19:34: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)673402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:31]POST & json_proto [19:34:31]process_json_proto [19:34:31]json parsed OK: [19:34:31]protocol is kg_v1.0 [19:34:31]action value=close_receipt [19:34:31]process_action close_receipt [19:34:31]cmd_close_receipt [19:34:31]MH_GetDate [19:34:31]Write to MH i2c: F0 00 00 85 01 75 [19:34:31]Write i2c OK [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: F0 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: F0 09 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: F0 09 00 85 01 00 47 84 74 66 BD 8F 7C 64 4F [19:34:31]GetLastDocTimeStamp 1718912011 [19:34:31]current date 1718912071 [19:34:31]FM_GetShiftState [19:34:31]SAM_PROTO_GetShiftState [19:34:31]wFMCommunicate request_size=4 [19:34:31]MH_SAM_APDU [19:34:31]CAPDU: 80 13 01 00 [19:34:31]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [19:34:31]Write i2c OK [19:34:31]MH_I2C_Read... [19:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:31]Read from MH i2c: E2 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 0E 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 53 [19:34:31]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:34:31]wFMCommunicate OK [19:34:31]SAM_PROTO_GetShiftState done [19:34:31]FM_GetShiftState done [19:34:31]opened in 1718843124 [19:34:31]opened+sec_in_day 1718929524 [19:34:31]quantity*price = 50065 [19:34:31]sum+1 = 50067 [19:34:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 209 20.06.2024 19:34 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104024 ФПД: 42924546690289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T193431&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104024&fm=42924546690289&tin=02508201610067®Number=0000000000092785&sum=50000 [19:34:32]StoreToDocumentArchive [19:34:32]shift 354 fd 104024 [19:34:32]save to /storage/0354/doc_00104024 [19:34:32]save last doc name /storage/0354/doc_00104024 to /storage/kkm_last_doc_name [19:34:32]save OK [19:34:32]Clear old archive folders... [19:34:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:32]tlvbuf is 014F61B0 [19:34:32]SAM_PROTO_ClearQueue [19:34:32]wFMCommunicate request_size=4 [19:34:32]MH_SAM_APDU [19:34:32]CAPDU: 80 09 00 00 [19:34:32]Write to MH i2c: E2 08 00 93 01 80 09 00 00 00 00 00 00 06 [19:34:32]Write i2c OK [19:34:32]MH_I2C_Read... [19:34:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:32]Read from MH i2c: E2 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: E2 03 00 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [19:34:32]RAPDU: 90 00 [19:34:32]wFMCommunicate OK [19:34:32]SAM_PROTO_ClearQueue done [19:34:32]KKMCreateOFDPacket [19:34:32]OFDProtocolAddRootSTLVToBuf [19:34:32]FM_MakeSignedData [19:34:32]FM_MakeSignedData [19:34:32]SAM_PROTO_SignData [19:34:32]wFMCommunicate request_size=4 [19:34:32]MH_SAM_APDU [19:34:32]CAPDU: 80 0D 01 02 [19:34:32]Write to MH i2c: E2 08 00 94 01 80 0D 01 02 00 00 00 00 0E [19:34:32]Write i2c OK [19:34:32]MH_I2C_Read... [19:34:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:32]Read from MH i2c: E2 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: E2 03 00 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [19:34:32]RAPDU: 90 00 [19:34:32]wFMCommunicate OK [19:34:32]wFMCommunicate request_size=255 [19:34:32]MH_SAM_APDU [19:34:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 47 84 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 96 01 00 35 04 06 00 27 [19:34:32]Write to MH i2c: E2 02 01 95 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 47 84 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 96 01 00 35 04 06 00 27 00 00 B7 [19:34:32]Write i2c OK [19:34:32]MH_I2C_Read... [19:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:32]Read from MH i2c: E2 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: E2 03 00 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [19:34:32]RAPDU: 90 00 [19:34:32]wFMCommunicate OK [19:34:32]wFMCommunicate request_size=10 [19:34:32]MH_SAM_APDU [19:34:32]CAPDU: 80 0D 02 02 05 0A 26 5B 8C F1 [19:34:32]Write to MH i2c: E2 0D 00 96 01 80 0D 02 02 05 00 0A 26 5B 8C F1 00 00 23 [19:34:32]Write i2c OK [19:34:32]MH_I2C_Read... [19:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:32]Read from MH i2c: E2 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: E2 03 00 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [19:34:32]RAPDU: 90 00 [19:34:32]wFMCommunicate OK [19:34:32]wFMCommunicate request_size=4 [19:34:32]MH_SAM_APDU [19:34:32]CAPDU: 80 0D 03 02 [19:34:32]Write to MH i2c: E2 08 00 97 01 80 0D 03 02 00 00 00 00 13 [19:34:32]Write i2c OK [19:34:32]MH_I2C_Read... [19:34:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:33]Read from MH i2c: E2 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: E2 0B 00 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: E2 0B 00 97 01 00 EF B7 3E CE 6B B9 3A 9A 90 00 BE [19:34:33]RAPDU: EF B7 3E CE 6B B9 3A 9A 90 00 [19:34:33]wFMCommunicate OK [19:34:33]SAM_PROTO_SignData done [19:34:33]FM_MakeSignedData done [19:34:33]CreateOFDProtocolMessage [19:34:33]wFMCommunicate request_size=4 [19:34:33]MH_SAM_APDU [19:34:33]CAPDU: 80 11 00 00 [19:34:33]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [19:34:33]Write i2c OK [19:34:33]MH_I2C_Read... [19:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:33]Read from MH i2c: E2 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: E2 17 00 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: E2 17 00 98 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 66 [19:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:34:33]wFMCommunicate OK [19:34:33]CreateOFDProtocolMessage done [19:34:33]OFDSenderStorePacket 104024 [19:34:33]StoreOFDPacket docnum=104024 [19:34:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 56 F5 07 01 CC AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 47 84 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 96 01 00 35 04 06 00 27 0A 26 5B 8C F1 EF B7 3E CE 6B B9 3A 9A [19:34:33]CheckFolder [19:34:33]dirname=/storage/ofd_packets [19:34:33]CheckFolder done [19:34:33]ProducePacketName [19:34:33]name=ofd_packets/00104024 [19:34:33]NVStorageSaveData ofd_packets/00104024 [19:34:33]File name is /storage/ofd_packets/00104024 [19:34:33]Write 301 bytes [19:34:33]NVStorageSaveData done [19:34:33]OFDSenderStorePacket done [19:34:33]KKMCreateOFDPacket done [19:34:33]NVStorageSaveData kkm_last_timestamp [19:34:33]File name is /storage/kkm_last_timestamp [19:34:33]Write 4 bytes [19:34:33]NVStorageSaveData done [19:34:33]ExternCall_PrintAddStr [19:34:33]wPrintStart [19:34:33]Write to MH i2c: 01 00 00 99 01 9A [19:34:33]Write i2c OK [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: 01 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: 01 07 00 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FF 0F AF [19:34:33]RasterBufferAndPrint [19:34:33]line Счет N : (1)673402 [19:34:33]line ИНН: 02508201610067 [19:34:33]line Контрольно-Кассовый Чек [19:34:33]line ПРОДАЖА [19:34:33]line ТРК (МРК, ГНК) : 42 [19:34:33]line Товар: 2710124130 [19:34:33]line Аи-92-К-5 [19:34:33]line 7.540 * 66.40 [19:34:33]line = 500.66 [19:34:33]line НДС 12% НСП 1% [19:34:33]line > о реализуемом товаре [19:34:33]line ОКРУГЛЕНИЕ: -0.66 [19:34:33]line ИТОГО: 500.00 [19:34:33]line Внесено: 500.00 [19:34:33]line СДАЧА: 0.00 [19:34:33]line НСП 1% : 4.43 [19:34:33]line НДС 12% : 53.17 [19:34:33]line Наличными: 500.00 [19:34:33]line Безнал.: 0.00 [19:34:33]line Место: АЗС № 120 "Партнер Нефть" [19:34:33]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:34:33]line СНО: Общий режим [19:34:33]line Чек 209 20.06.2024 19:34 [19:34:33]line Смена: 354 ФФД: 1.0 [19:34:33]line ЗНМ: 0300000164 [19:34:33]line РНМ: 0000000000092785 [19:34:33]line Версия ККМ: 001 [19:34:33]line ФМ: 0000000000875093 [19:34:33]line ФД: 104024 [19:34:33]line ФПД: 42924546690289 [19:34:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T193431&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104024&fm=42924546690289&tin=02508201610067®Number=0000000000092785&sum=50000 [19:34:33]OFD Sender: Processing packet 104024 [packets to send 17, broken 16] [19:34:33]ProducePacketName [19:34:33]name=ofd_packets/00104024 [19:34:33]OFD Sender: To server: pG, [19:34:33]CommunicateWithHost lk.salyk.kg:30040 [19:34:33]ConnectInit lk.salyk.kg [19:34:33]written 0, free lines is 4095 [19:34:33]Connected sock=10 [19:34:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 56 F5 07 01 CC AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 47 84 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 96 01 00 35 04 06 00 27 0A 26 5B 8C F1 EF B7 3E CE 6B B9 3A 9A [19:34:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B7 78 47 00 4D D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 58 96 01 00 F4 03 04 00 CC 2A 74 66 B6 04 01 00 00 07 63 4A E1 7C F4 6D E4 [19:34:33]CommunicateWithHost err = 0 [19:34:33]CheckOFDResponse [19:34:33]1017 (14) - 77093643461234 [19:34:33]1041 (16) - 0000000000875093 [19:34:33]1040 (4) - 104024 [19:34:33]1012 (4) - 20.06.2024 13:12 [19:34:33]1206 (1) - 0 [19:34:33]OFD Sender: Remove packet 104024 [19:34:33]ProducePacketName [19:34:33]name=ofd_packets/00104024 [19:34:33]NVStorageDeleteData [19:34:33]Write to MH i2c: 01 00 00 C4 01 C5 [19:34:33]Write i2c OK [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: 01 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: 01 07 00 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: 01 07 00 C4 01 00 00 00 00 00 DF 0C B7 [19:34:33]RasterBufferAndPrint [19:34:33]line [19:34:33]line [19:34:33]line [19:34:33]line [19:34:33]line [19:34:33]written 0, free lines is 3301 [19:34:33]MH_Cut [19:34:33]Write to MH i2c: D1 01 00 CB 01 01 9E [19:34:33]Write i2c OK [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: D1 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: D1 01 00 [19:34:33]MH_I2C_Read... [19:34:33]Read from MH i2c: D1 01 00 CB 01 00 9D [19:34:33]Write to MH i2c: 01 00 00 CC 01 CD [19:34:33]Write i2c OK [19:34:33]MH_I2C_Read... [19:34:34]OFD Sender: No OFD packet to send [19:34:34]*** Cut start [19:34:34]*** Partial cut [19:34:34]*** CUTSNS_PIN = 1 [19:34:34]*** CUTSNS_PIN = 0 [19:34:34]*** Brake cut motor [19:34:35]Read from MH i2c: 01 [19:34:35]MH_I2C_Read... [19:34:35]*** Stop cut motor [19:34:35]*** Cut end [19:34:35]Read from MH i2c: 01 07 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 FF 0F E2 [19:34:35]process_action close_receipt done [19:34:35]requested_data is exist [19:34:35]produce_requested_data [19:34:35]requested_item fm.sn is exist - process it [19:34:35]wFMCommunicate request_size=4 [19:34:35]MH_SAM_APDU [19:34:35]CAPDU: 80 11 00 00 [19:34:35]Write to MH i2c: E2 08 00 CD 01 80 11 00 00 00 00 00 00 48 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:35]Read from MH i2c: E2 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 17 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 17 00 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9B [19:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:34:35]wFMCommunicate OK [19:34:35]requested_item fd.num is exist - process it [19:34:35]SAM_PROTO_GetFieldsCounters [19:34:35]wFMCommunicate request_size=4 [19:34:35]MH_SAM_APDU [19:34:35]CAPDU: 80 13 00 00 [19:34:35]Write to MH i2c: E2 08 00 CE 01 80 13 00 00 00 00 00 00 4B [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:35]Read from MH i2c: E2 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 62 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 62 00 CE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 58 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [19:34:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 58 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:35]wFMCommunicate OK [19:34:35]SAM_PROTO_GetFieldsCounters done [19:34:35]requested_item shift.num is exist - process it [19:34:35]requested_item shift.opened is exist - process it [19:34:35]req_shift_opened [19:34:35]FM_GetShiftState [19:34:35]SAM_PROTO_GetShiftState [19:34:35]wFMCommunicate request_size=4 [19:34:35]MH_SAM_APDU [19:34:35]CAPDU: 80 13 01 00 [19:34:35]Write to MH i2c: E2 08 00 CF 01 80 13 01 00 00 00 00 00 4D [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:35]Read from MH i2c: E2 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 0E 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: E2 0E 00 CF 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9C [19:34:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:34:35]wFMCommunicate OK [19:34:35]SAM_PROTO_GetShiftState done [19:34:35]FM_GetShiftState done [19:34:35]req_shift_opened done [19:34:35]requested_item shift.open_date is exist - process it [19:34:35]req_shift_open_date [19:34:35]req_shift_open_date done [19:34:35]produce_requested_data done [19:34:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104024,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:34:35]process_action_free close_receipt [19:34:35]json_value_free [19:34:35]json_value_free done [19:34:35]process_json_proto returns [19:34:35]Send response to host [19:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104024,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:34:35]free response buf [19:34:35]execute_script done [19:34:35]execute_script returns [19:34:35]free content buf [19:34:35]Sock 7.Close socket [19:34:35]Sock 7.Thread stoped [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:35]accept exits with 9 [19:41:35]New connection [19:41:35]New thread 3066707300 created [19:41:35]Thread 3066563940 joined [19:41:35]Waiting for new connection... [19:41:35] Sock 9.Parse request [19:41:35]Sock 9.Check first char [19:41:35]Sock 9.First char is OK [19:41:35]request: POST /json_proto HTTP/1.0 [19:41:35]Method: POST [19:41:35]URL: /json_proto [19:41:35]Method is POST - this is cgi request [19:41:35]url: /json_proto [19:41:35]query_string will be loaded in cgi processing [19:41:35]execute_cgi json_proto POST (null) [19:41:35]execute_cgi path=json_proto method=POST [19:41:35]POST find Content-Length [19:41:35]Host: 172.17.38.133:8080 [19:41:35]Content-Length: 682 [19:41:35]Content-Type: application/json [19:41:35] [19:41:35]POST finish read [19:41:35]Found Content-Length = 682 [19:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [19:41:35]execute_script... [19:41:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [19:41:35]POST & json_proto [19:41:35]process_json_proto [19:41:35]json parsed OK: [19:41:35]protocol is kg_v1.0 [19:41:35]action value=close_receipt [19:41:35]process_action close_receipt [19:41:35]cmd_close_receipt [19:41:35]MH_GetDate [19:41:35]Write to MH i2c: F0 00 00 D0 01 C0 [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: F0 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: F0 09 00 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: F0 09 00 D0 01 00 EF 85 74 66 BD 8F 7C 64 43 [19:41:35]GetLastDocTimeStamp 1718912071 [19:41:35]current date 1718912495 [19:41:35]FM_GetShiftState [19:41:35]SAM_PROTO_GetShiftState [19:41:35]wFMCommunicate request_size=4 [19:41:35]MH_SAM_APDU [19:41:35]CAPDU: 80 13 01 00 [19:41:35]Write to MH i2c: E2 08 00 D1 01 80 13 01 00 00 00 00 00 4F [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:35]Read from MH i2c: E2 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: E2 0E 00 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: E2 0E 00 D1 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9E [19:41:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:41:35]wFMCommunicate OK [19:41:35]SAM_PROTO_GetShiftState done [19:41:35]FM_GetShiftState done [19:41:35]opened in 1718843124 [19:41:35]opened+sec_in_day 1718929524 [19:41:35]quantity*price = 150064 [19:41:35]sum+1 = 150065 [19:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 210 20.06.2024 19:41 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104025 ФПД: 132434879818340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T194135&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104025&fm=132434879818340&tin=02508201610067®Number=0000000000092785&sum=150000 [19:41:36]StoreToDocumentArchive [19:41:36]shift 354 fd 104025 [19:41:36]save to /storage/0354/doc_00104025 [19:41:36]save last doc name /storage/0354/doc_00104025 to /storage/kkm_last_doc_name [19:41:36]save OK [19:41:36]Clear old archive folders... [19:41:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:36]tlvbuf is 014BAAB0 [19:41:36]SAM_PROTO_ClearQueue [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 09 00 00 [19:41:36]Write to MH i2c: E2 08 00 DE 01 80 09 00 00 00 00 00 00 51 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [19:41:36]RAPDU: 90 00 [19:41:36]wFMCommunicate OK [19:41:36]SAM_PROTO_ClearQueue done [19:41:36]KKMCreateOFDPacket [19:41:36]OFDProtocolAddRootSTLVToBuf [19:41:36]FM_MakeSignedData [19:41:36]FM_MakeSignedData [19:41:36]SAM_PROTO_SignData [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 0D 01 02 [19:41:36]Write to MH i2c: E2 08 00 DF 01 80 0D 01 02 00 00 00 00 59 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [19:41:36]RAPDU: 90 00 [19:41:36]wFMCommunicate OK [19:41:36]wFMCommunicate request_size=255 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 D2 00 00 00 F4 03 04 00 EF 85 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 96 01 00 35 04 06 00 78 [19:41:36]Write to MH i2c: E2 02 01 E0 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 D2 00 00 00 F4 03 04 00 EF 85 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 96 01 00 35 04 06 00 78 00 00 A2 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [19:41:36]RAPDU: 90 00 [19:41:36]wFMCommunicate OK [19:41:36]wFMCommunicate request_size=10 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 0D 02 02 05 72 E5 F7 AA 64 [19:41:36]Write to MH i2c: E2 0D 00 E1 01 80 0D 02 02 05 00 72 E5 F7 AA 64 00 00 C2 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [19:41:36]RAPDU: 90 00 [19:41:36]wFMCommunicate OK [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 0D 03 02 [19:41:36]Write to MH i2c: E2 08 00 E2 01 80 0D 03 02 00 00 00 00 5E [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 0B 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 0B 00 E2 01 00 D6 59 A3 B0 6E ED A4 A5 90 00 85 [19:41:36]RAPDU: D6 59 A3 B0 6E ED A4 A5 90 00 [19:41:36]wFMCommunicate OK [19:41:36]SAM_PROTO_SignData done [19:41:36]FM_MakeSignedData done [19:41:36]CreateOFDProtocolMessage [19:41:36]wFMCommunicate request_size=4 [19:41:36]MH_SAM_APDU [19:41:36]CAPDU: 80 11 00 00 [19:41:36]Write to MH i2c: E2 08 00 E3 01 80 11 00 00 00 00 00 00 5E [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:36]Read from MH i2c: E2 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 17 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: E2 17 00 E3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B1 [19:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:41:36]wFMCommunicate OK [19:41:36]CreateOFDProtocolMessage done [19:41:36]OFDSenderStorePacket 104025 [19:41:36]StoreOFDPacket docnum=104025 [19:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 49 45 07 01 DF 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 D2 00 00 00 F4 03 04 00 EF 85 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 96 01 00 35 04 06 00 78 72 E5 F7 AA 64 D6 59 A3 B0 6E ED A4 A5 [19:41:36]CheckFolder [19:41:36]dirname=/storage/ofd_packets [19:41:36]CheckFolder done [19:41:36]ProducePacketName [19:41:36]name=ofd_packets/00104025 [19:41:36]NVStorageSaveData ofd_packets/00104025 [19:41:36]File name is /storage/ofd_packets/00104025 [19:41:36]Write 301 bytes [19:41:36]NVStorageSaveData done [19:41:36]OFDSenderStorePacket done [19:41:36]KKMCreateOFDPacket done [19:41:36]NVStorageSaveData kkm_last_timestamp [19:41:36]File name is /storage/kkm_last_timestamp [19:41:36]Write 4 bytes [19:41:36]NVStorageSaveData done [19:41:36]ExternCall_PrintAddStr [19:41:36]wPrintStart [19:41:36]Write to MH i2c: 01 00 00 E4 01 E5 [19:41:36]Write i2c OK [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 07 00 [19:41:36]MH_I2C_Read... [19:41:36]Read from MH i2c: 01 07 00 E4 01 00 00 00 00 00 FF 0F FA [19:41:36]RasterBufferAndPrint [19:41:36]line Счет N : (1)673403 [19:41:36]line ИНН: 02508201610067 [19:41:36]line Контрольно-Кассовый Чек [19:41:36]line ПРОДАЖА [19:41:36]line ТРК (МРК, ГНК) : 32 [19:41:36]line Товар: 2710124130 [19:41:36]line Аи-92-К-5 [19:41:36]line 22.600 * 66.40 [19:41:36]line = 1500.64 [19:41:36]line НДС 12% НСП 1% [19:41:36]line > о реализуемом товаре [19:41:36]line ОКРУГЛЕНИЕ: -0.64 [19:41:36]line ИТОГО: 1500.00 [19:41:36]line Внесено: 1500.00 [19:41:36]line СДАЧА: 0.00 [19:41:36]line НСП 1% : 13.28 [19:41:36]line НДС 12% : 159.36 [19:41:36]line Наличными: 1500.00 [19:41:36]line Безнал.: 0.00 [19:41:36]line Место: АЗС № 120 "Партнер Нефть" [19:41:36]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:41:36]line СНО: Общий режим [19:41:36]line Чек 210 20.06.2024 19:41 [19:41:36]line Смена: 354 ФФД: 1.0 [19:41:37]line ЗНМ: 0300000164 [19:41:37]line РНМ: 0000000000092785 [19:41:37]line Версия ККМ: 001 [19:41:37]line ФМ: 0000000000875093 [19:41:37]line ФД: 104025 [19:41:37]line ФПД: 132434879818340 [19:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T194135&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104025&fm=132434879818340&tin=02508201610067®Number=0000000000092785&sum=150000 [19:41:37]OFD Sender: Processing packet 104025 [packets to send 17, broken 16] [19:41:37]ProducePacketName [19:41:37]name=ofd_packets/00104025 [19:41:37]OFD Sender: To server: pG, [19:41:37]CommunicateWithHost lk.salyk.kg:30040 [19:41:37]ConnectInit lk.salyk.kg [19:41:37]written 0, free lines is 4095 [19:41:37]Connected sock=10 [19:41:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 49 45 07 01 DF 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 D2 00 00 00 F4 03 04 00 EF 85 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 96 01 00 35 04 06 00 78 72 E5 F7 AA 64 D6 59 A3 B0 6E ED A4 A5 [19:41:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2D 03 47 00 16 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 59 96 01 00 F4 03 04 00 74 2C 74 66 B6 04 01 00 00 70 EA ED 70 05 A5 18 E8 [19:41:37]CommunicateWithHost err = 0 [19:41:37]CheckOFDResponse [19:41:37]1017 (14) - 77093643461234 [19:41:37]1041 (16) - 0000000000875093 [19:41:37]1040 (4) - 104025 [19:41:37]1012 (4) - 20.06.2024 13:19 [19:41:37]1206 (1) - 0 [19:41:37]OFD Sender: Remove packet 104025 [19:41:37]ProducePacketName [19:41:37]name=ofd_packets/00104025 [19:41:37]NVStorageDeleteData [19:41:37]Write to MH i2c: 01 00 00 0F 02 11 [19:41:37]Write i2c OK [19:41:37]MH_I2C_Read... [19:41:37]Read from MH i2c: 01 [19:41:37]MH_I2C_Read... [19:41:37]Read from MH i2c: 01 07 00 [19:41:37]MH_I2C_Read... [19:41:37]Read from MH i2c: 01 07 00 0F 02 00 00 00 00 00 EF 0C 13 [19:41:37]RasterBufferAndPrint [19:41:37]line [19:41:37]line [19:41:37]line [19:41:37]line [19:41:37]line [19:41:37]written 0, free lines is 3317 [19:41:37]MH_Cut [19:41:37]Write to MH i2c: D1 01 00 16 02 01 EA [19:41:37]Write i2c OK [19:41:37]MH_I2C_Read... [19:41:37]Read from MH i2c: D1 [19:41:37]MH_I2C_Read... [19:41:37]Read from MH i2c: D1 01 00 [19:41:37]MH_I2C_Read... [19:41:37]Read from MH i2c: D1 01 00 16 02 00 E9 [19:41:37]Write to MH i2c: 01 00 00 17 02 19 [19:41:37]Write i2c OK [19:41:37]MH_I2C_Read... [19:41:38]OFD Sender: No OFD packet to send [19:41:38]*** Cut start [19:41:38]*** Partial cut [19:41:38]*** CUTSNS_PIN = 1 [19:41:38]*** CUTSNS_PIN = 0 [19:41:38]*** Brake cut motor [19:41:38]Read from MH i2c: 01 [19:41:38]MH_I2C_Read... [19:41:38]*** Stop cut motor [19:41:38]*** Cut end [19:41:38]Read from MH i2c: 01 07 00 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: 01 07 00 17 02 00 00 00 00 00 FF 0F 2E [19:41:38]process_action close_receipt done [19:41:38]requested_data is exist [19:41:38]produce_requested_data [19:41:38]requested_item fm.sn is exist - process it [19:41:38]wFMCommunicate request_size=4 [19:41:38]MH_SAM_APDU [19:41:38]CAPDU: 80 11 00 00 [19:41:38]Write to MH i2c: E2 08 00 18 02 80 11 00 00 00 00 00 00 94 [19:41:38]Write i2c OK [19:41:38]MH_I2C_Read... [19:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:38]Read from MH i2c: E2 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: E2 17 00 [19:41:38]MH_I2C_Read... [19:41:38]Read from MH i2c: E2 17 00 18 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E7 [19:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:41:38]wFMCommunicate OK [19:41:38]requested_item fd.num is exist - process it [19:41:38]SAM_PROTO_GetFieldsCounters [19:41:38]wFMCommunicate request_size=4 [19:41:38]MH_SAM_APDU [19:41:38]CAPDU: 80 13 00 00 [19:41:38]Write to MH i2c: E2 08 00 19 02 80 13 00 00 00 00 00 00 97 [19:41:38]Write i2c OK [19:41:38]MH_I2C_Read... [19:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:39]Read from MH i2c: E2 [19:41:39]MH_I2C_Read... [19:41:39]Read from MH i2c: E2 62 00 [19:41:39]MH_I2C_Read... [19:41:39]Read from MH i2c: E2 62 00 19 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 59 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [19:41:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 59 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:39]wFMCommunicate OK [19:41:39]SAM_PROTO_GetFieldsCounters done [19:41:39]requested_item shift.num is exist - process it [19:41:39]requested_item shift.opened is exist - process it [19:41:39]req_shift_opened [19:41:39]FM_GetShiftState [19:41:39]SAM_PROTO_GetShiftState [19:41:39]wFMCommunicate request_size=4 [19:41:39]MH_SAM_APDU [19:41:39]CAPDU: 80 13 01 00 [19:41:39]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [19:41:39]Write i2c OK [19:41:39]MH_I2C_Read... [19:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:39]Read from MH i2c: E2 [19:41:39]MH_I2C_Read... [19:41:39]Read from MH i2c: E2 0E 00 [19:41:39]MH_I2C_Read... [19:41:39]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E8 [19:41:39]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:41:39]wFMCommunicate OK [19:41:39]SAM_PROTO_GetShiftState done [19:41:39]FM_GetShiftState done [19:41:39]req_shift_opened done [19:41:39]requested_item shift.open_date is exist - process it [19:41:39]req_shift_open_date [19:41:39]req_shift_open_date done [19:41:39]produce_requested_data done [19:41:39]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104025,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:41:39]process_action_free close_receipt [19:41:39]json_value_free [19:41:39]json_value_free done [19:41:39]process_json_proto returns [19:41:39]Send response to host [19:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104025,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:41:39]free response buf [19:41:39]execute_script done [19:41:39]execute_script returns [19:41:39]free content buf [19:41:39]Sock 9.Close socket [19:41:39]Sock 9.Thread stoped [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:04]accept exits with 7 [19:46:04]New connection [19:46:04]New thread 3066563940 created [19:46:04]Thread 3066707300 joined [19:46:04]Waiting for new connection... [19:46:04] Sock 7.Parse request [19:46:04]Sock 7.Check first char [19:46:04]Sock 7.First char is OK [19:46:04]request: POST /json_proto HTTP/1.0 [19:46:04]Method: POST [19:46:04]URL: /json_proto [19:46:04]Method is POST - this is cgi request [19:46:04]url: /json_proto [19:46:04]query_string will be loaded in cgi processing [19:46:04]execute_cgi json_proto POST (null) [19:46:04]execute_cgi path=json_proto method=POST [19:46:04]POST find Content-Length [19:46:04]Host: 172.17.38.133:8080 [19:46:04]Content-Length: 682 [19:46:04]Content-Type: application/json [19:46:04] [19:46:04]POST finish read [19:46:04]Found Content-Length = 682 [19:46:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:04]execute_script... [19:46: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)673404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:04]POST & json_proto [19:46:04]process_json_proto [19:46:04]json parsed OK: [19:46:04]protocol is kg_v1.0 [19:46:04]action value=close_receipt [19:46:04]process_action close_receipt [19:46:04]cmd_close_receipt [19:46:04]MH_GetDate [19:46:04]Write to MH i2c: F0 00 00 1B 02 0C [19:46:04]Write i2c OK [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: F0 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: F0 09 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: F0 09 00 1B 02 00 FC 86 74 66 BD 8F 7C 64 9D [19:46:04]GetLastDocTimeStamp 1718912495 [19:46:04]current date 1718912764 [19:46:04]FM_GetShiftState [19:46:04]SAM_PROTO_GetShiftState [19:46:04]wFMCommunicate request_size=4 [19:46:04]MH_SAM_APDU [19:46:04]CAPDU: 80 13 01 00 [19:46:04]Write to MH i2c: E2 08 00 1C 02 80 13 01 00 00 00 00 00 9B [19:46:04]Write i2c OK [19:46:04]MH_I2C_Read... [19:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:04]Read from MH i2c: E2 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 0E 00 [19:46:04]MH_I2C_Read... [19:46:04]Read from MH i2c: E2 0E 00 1C 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EA [19:46:04]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:46:04]wFMCommunicate OK [19:46:04]SAM_PROTO_GetShiftState done [19:46:04]FM_GetShiftState done [19:46:04]opened in 1718843124 [19:46:04]opened+sec_in_day 1718929524 [19:46:04]quantity*price = 100064 [19:46:04]sum+1 = 100066 [19:46:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 211 20.06.2024 19:46 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104026 ФПД: 174092455003730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T194604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104026&fm=174092455003730&tin=02508201610067®Number=0000000000092785&sum=100000 [19:46:05]StoreToDocumentArchive [19:46:05]shift 354 fd 104026 [19:46:05]save to /storage/0354/doc_00104026 [19:46:05]save last doc name /storage/0354/doc_00104026 to /storage/kkm_last_doc_name [19:46:05]save OK [19:46:05]Clear old archive folders... [19:46:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:46:05]tlvbuf is 014F3680 [19:46:05]SAM_PROTO_ClearQueue [19:46:05]wFMCommunicate request_size=4 [19:46:05]MH_SAM_APDU [19:46:05]CAPDU: 80 09 00 00 [19:46:05]Write to MH i2c: E2 08 00 29 02 80 09 00 00 00 00 00 00 9D [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:05]Read from MH i2c: E2 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [19:46:05]RAPDU: 90 00 [19:46:05]wFMCommunicate OK [19:46:05]SAM_PROTO_ClearQueue done [19:46:05]KKMCreateOFDPacket [19:46:05]OFDProtocolAddRootSTLVToBuf [19:46:05]FM_MakeSignedData [19:46:05]FM_MakeSignedData [19:46:05]SAM_PROTO_SignData [19:46:05]wFMCommunicate request_size=4 [19:46:05]MH_SAM_APDU [19:46:05]CAPDU: 80 0D 01 02 [19:46:05]Write to MH i2c: E2 08 00 2A 02 80 0D 01 02 00 00 00 00 A5 [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:05]Read from MH i2c: E2 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [19:46:05]RAPDU: 90 00 [19:46:05]wFMCommunicate OK [19:46:05]wFMCommunicate request_size=255 [19:46:05]MH_SAM_APDU [19:46: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 FC 86 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 96 01 00 35 04 06 00 9E [19:46:05]Write to MH i2c: E2 02 01 2B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 FC 86 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 96 01 00 35 04 06 00 9E 00 00 D0 [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:05]Read from MH i2c: E2 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 2B 02 00 90 00 A1 [19:46:05]RAPDU: 90 00 [19:46:05]wFMCommunicate OK [19:46:05]wFMCommunicate request_size=10 [19:46:05]MH_SAM_APDU [19:46:05]CAPDU: 80 0D 02 02 05 56 0E F0 46 52 [19:46:05]Write to MH i2c: E2 0D 00 2C 02 80 0D 02 02 05 00 56 0E F0 46 52 00 00 9E [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:05]Read from MH i2c: E2 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 03 00 2C 02 00 90 00 A2 [19:46:05]RAPDU: 90 00 [19:46:05]wFMCommunicate OK [19:46:05]wFMCommunicate request_size=4 [19:46:05]MH_SAM_APDU [19:46:05]CAPDU: 80 0D 03 02 [19:46:05]Write to MH i2c: E2 08 00 2D 02 80 0D 03 02 00 00 00 00 AA [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:05]Read from MH i2c: E2 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 0B 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 0B 00 2D 02 00 0D 3E 2B 4D 72 AF 7C D1 90 00 DC [19:46:05]RAPDU: 0D 3E 2B 4D 72 AF 7C D1 90 00 [19:46:05]wFMCommunicate OK [19:46:05]SAM_PROTO_SignData done [19:46:05]FM_MakeSignedData done [19:46:05]CreateOFDProtocolMessage [19:46:05]wFMCommunicate request_size=4 [19:46:05]MH_SAM_APDU [19:46:05]CAPDU: 80 11 00 00 [19:46:05]Write to MH i2c: E2 08 00 2E 02 80 11 00 00 00 00 00 00 AA [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:05]Read from MH i2c: E2 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 17 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: E2 17 00 2E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FD [19:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:46:05]wFMCommunicate OK [19:46:05]CreateOFDProtocolMessage done [19:46:05]OFDSenderStorePacket 104026 [19:46:05]StoreOFDPacket docnum=104026 [19:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FA D2 07 01 D9 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 FC 86 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 96 01 00 35 04 06 00 9E 56 0E F0 46 52 0D 3E 2B 4D 72 AF 7C D1 [19:46:05]CheckFolder [19:46:05]dirname=/storage/ofd_packets [19:46:05]CheckFolder done [19:46:05]ProducePacketName [19:46:05]name=ofd_packets/00104026 [19:46:05]NVStorageSaveData ofd_packets/00104026 [19:46:05]File name is /storage/ofd_packets/00104026 [19:46:05]Write 301 bytes [19:46:05]NVStorageSaveData done [19:46:05]OFDSenderStorePacket done [19:46:05]KKMCreateOFDPacket done [19:46:05]NVStorageSaveData kkm_last_timestamp [19:46:05]File name is /storage/kkm_last_timestamp [19:46:05]Write 4 bytes [19:46:05]NVStorageSaveData done [19:46:05]ExternCall_PrintAddStr [19:46:05]wPrintStart [19:46:05]Write to MH i2c: 01 00 00 2F 02 31 [19:46:05]OFD Sender: Processing packet 104026 [packets to send 17, broken 16] [19:46:05]ProducePacketName [19:46:05]name=ofd_packets/00104026 [19:46:05]OFD Sender: To server: pG, [19:46:05]CommunicateWithHost lk.salyk.kg:30040 [19:46:05]ConnectInit lk.salyk.kg [19:46:05]Write i2c OK [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: 01 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: 01 07 00 [19:46:05]MH_I2C_Read... [19:46:05]Read from MH i2c: 01 07 00 2F 02 00 00 00 00 00 FF 0F 46 [19:46:05]RasterBufferAndPrint [19:46:05]line Счет N : (1)673404 [19:46:05]line ИНН: 02508201610067 [19:46:05]line Контрольно-Кассовый Чек [19:46:05]line ПРОДАЖА [19:46:05]line ТРК (МРК, ГНК) : 32 [19:46:05]line Товар: 2710124130 [19:46:05]line Аи-92-К-5 [19:46:05]line 15.070 * 66.40 [19:46:05]line = 1000.65 [19:46:05]line НДС 12% НСП 1% [19:46:05]line > о реализуемом товаре [19:46:05]line ОКРУГЛЕНИЕ: -0.65 [19:46:05]line ИТОГО: 1000.00 [19:46:05]line Внесено: 1000.00 [19:46:05]line СДАЧА: 0.00 [19:46:05]line НСП 1% : 8.85 [19:46:05]line НДС 12% : 106.26 [19:46:05]line Наличными: 1000.00 [19:46:05]line Безнал.: 0.00 [19:46:05]line Место: АЗС № 120 "Партнер Нефть" [19:46:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:46:05]line СНО: Общий режим [19:46:05]line Чек 211 20.06.2024 19:46 [19:46:05]line Смена: 354 ФФД: 1.0 [19:46:05]line ЗНМ: 0300000164 [19:46:05]line РНМ: 0000000000092785 [19:46:05]line Версия ККМ: 001 [19:46:05]line ФМ: 0000000000875093 [19:46:05]line ФД: 104026 [19:46:05]line ФПД: 174092455003730 [19:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T194604&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104026&fm=174092455003730&tin=02508201610067®Number=0000000000092785&sum=100000 [19:46:06]Connected sock=10 [19:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FA D2 07 01 D9 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 FC 86 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 96 01 00 35 04 06 00 9E 56 0E F0 46 52 0D 3E 2B 4D 72 AF 7C D1 [19:46:06]written 0, free lines is 4095 [19:46:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BA 4C 47 00 9C 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5A 96 01 00 F4 03 04 00 80 2D 74 66 B6 04 01 00 00 24 67 37 8F CE 53 07 BF [19:46:06]CommunicateWithHost err = 0 [19:46:06]CheckOFDResponse [19:46:06]1017 (14) - 77093643461234 [19:46:06]1041 (16) - 0000000000875093 [19:46:06]1040 (4) - 104026 [19:46:06]1012 (4) - 20.06.2024 13:24 [19:46:06]1206 (1) - 0 [19:46:06]OFD Sender: Remove packet 104026 [19:46:06]ProducePacketName [19:46:06]name=ofd_packets/00104026 [19:46:06]NVStorageDeleteData [19:46:06]Write to MH i2c: 01 00 00 5A 02 5C [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: 01 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: 01 07 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 D9 0C 48 [19:46:06]RasterBufferAndPrint [19:46:06]line [19:46:06]line [19:46:06]line [19:46:06]line [19:46:06]line [19:46:06]written 0, free lines is 3296 [19:46:06]MH_Cut [19:46:06]Write to MH i2c: D1 01 00 61 02 01 35 [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: D1 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: D1 01 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: D1 01 00 61 02 00 34 [19:46:06]Write to MH i2c: 01 00 00 62 02 64 [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]OFD Sender: No OFD packet to send [19:46:07]*** Cut start [19:46:07]*** Partial cut [19:46:07]*** CUTSNS_PIN = 1 [19:46:07]*** CUTSNS_PIN = 0 [19:46:07]*** Brake cut motor [19:46:07]Read from MH i2c: 01 [19:46:07]MH_I2C_Read... [19:46:07]*** Stop cut motor [19:46:07]*** Cut end [19:46:07]Read from MH i2c: 01 07 00 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [19:46:07]process_action close_receipt done [19:46:07]requested_data is exist [19:46:07]produce_requested_data [19:46:07]requested_item fm.sn is exist - process it [19:46:07]wFMCommunicate request_size=4 [19:46:07]MH_SAM_APDU [19:46:07]CAPDU: 80 11 00 00 [19:46:07]Write to MH i2c: E2 08 00 63 02 80 11 00 00 00 00 00 00 DF [19:46:07]Write i2c OK [19:46:07]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 17 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 17 00 63 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [19:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:46:08]wFMCommunicate OK [19:46:08]requested_item fd.num is exist - process it [19:46:08]SAM_PROTO_GetFieldsCounters [19:46:08]wFMCommunicate request_size=4 [19:46:08]MH_SAM_APDU [19:46:08]CAPDU: 80 13 00 00 [19:46:08]Write to MH i2c: E2 08 00 64 02 80 13 00 00 00 00 00 00 E2 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 62 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 62 00 64 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [19:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:08]wFMCommunicate OK [19:46:08]SAM_PROTO_GetFieldsCounters done [19:46:08]requested_item shift.num is exist - process it [19:46:08]requested_item shift.opened is exist - process it [19:46:08]req_shift_opened [19:46:08]FM_GetShiftState [19:46:08]SAM_PROTO_GetShiftState [19:46:08]wFMCommunicate request_size=4 [19:46:08]MH_SAM_APDU [19:46:08]CAPDU: 80 13 01 00 [19:46:08]Write to MH i2c: E2 08 00 65 02 80 13 01 00 00 00 00 00 E4 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 0E 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 0E 00 65 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 33 [19:46:08]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:46:08]wFMCommunicate OK [19:46:08]SAM_PROTO_GetShiftState done [19:46:08]FM_GetShiftState done [19:46:08]req_shift_opened done [19:46:08]requested_item shift.open_date is exist - process it [19:46:08]req_shift_open_date [19:46:08]req_shift_open_date done [19:46:08]produce_requested_data done [19:46:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104026,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:46:08]process_action_free close_receipt [19:46:08]json_value_free [19:46:08]json_value_free done [19:46:08]process_json_proto returns [19:46:08]Send response to host [19:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104026,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:46:08]free response buf [19:46:08]execute_script done [19:46:08]execute_script returns [19:46:08]free content buf [19:46:08]Sock 7.Close socket [19:46:08]Sock 7.Thread stoped [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:38]accept exits with 9 [19:50:38]New connection [19:50:38]New thread 3066707300 created [19:50:38]Thread 3066563940 joined [19:50:38]Waiting for new connection... [19:50:38] Sock 9.Parse request [19:50:38]Sock 9.Check first char [19:50:38]Sock 9.First char is OK [19:50:38]request: POST /json_proto HTTP/1.0 [19:50:38]Method: POST [19:50:38]URL: /json_proto [19:50:38]Method is POST - this is cgi request [19:50:38]url: /json_proto [19:50:38]query_string will be loaded in cgi processing [19:50:38]execute_cgi json_proto POST (null) [19:50:38]execute_cgi path=json_proto method=POST [19:50:38]POST find Content-Length [19:50:38]Host: 172.17.38.133:8080 [19:50:38]Content-Length: 687 [19:50:38]Content-Type: application/json [19:50:38] [19:50:38]POST finish read [19:50:38]Found Content-Length = 687 [19:50:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 52.150, "sum" : 3801.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3801.00, "payments": [ { "type": 0, "sum" : 3801.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:38]execute_script... [19:50: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)673405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 52.150, "sum" : 3801.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3801.00, "payments": [ { "type": 0, "sum" : 3801.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:38]POST & json_proto [19:50:38]process_json_proto [19:50:38]json parsed OK: [19:50:38]protocol is kg_v1.0 [19:50:38]action value=close_receipt [19:50:38]process_action close_receipt [19:50:38]cmd_close_receipt [19:50:38]MH_GetDate [19:50:38]Write to MH i2c: F0 00 00 66 02 57 [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: F0 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: F0 09 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: F0 09 00 66 02 00 0E 88 74 66 BD 8F 7C 64 FC [19:50:38]GetLastDocTimeStamp 1718912764 [19:50:38]current date 1718913038 [19:50:38]FM_GetShiftState [19:50:38]SAM_PROTO_GetShiftState [19:50:38]wFMCommunicate request_size=4 [19:50:38]MH_SAM_APDU [19:50:38]CAPDU: 80 13 01 00 [19:50:38]Write to MH i2c: E2 08 00 67 02 80 13 01 00 00 00 00 00 E6 [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:38]Read from MH i2c: E2 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 0E 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 0E 00 67 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 35 [19:50:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:50:38]wFMCommunicate OK [19:50:38]SAM_PROTO_GetShiftState done [19:50:38]FM_GetShiftState done [19:50:38]opened in 1718843124 [19:50:38]opened+sec_in_day 1718929524 [19:50:38]quantity*price = 380173 [19:50:38]sum+1 = 380175 [19:50:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 3801.00 Внесено: 5000.00 СДАЧА: 1199.00 НСП 1% : 33.64 НДС 12% : 403.72 Наличными: 3801.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 212 20.06.2024 19:50 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104027 ФПД: 216007654293460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T195038&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104027&fm=216007654293460&tin=02508201610067®Number=0000000000092785&sum=380100 [19:50:39]StoreToDocumentArchive [19:50:39]shift 354 fd 104027 [19:50:39]save to /storage/0354/doc_00104027 [19:50:39]save last doc name /storage/0354/doc_00104027 to /storage/kkm_last_doc_name [19:50:39]save OK [19:50:39]Clear old archive folders... [19:50:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:50:39]tlvbuf is 014F78E0 [19:50:39]SAM_PROTO_ClearQueue [19:50:39]wFMCommunicate request_size=4 [19:50:39]MH_SAM_APDU [19:50:39]CAPDU: 80 09 00 00 [19:50:39]Write to MH i2c: E2 08 00 74 02 80 09 00 00 00 00 00 00 E8 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:39]Read from MH i2c: E2 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 74 02 00 90 00 EA [19:50:39]RAPDU: 90 00 [19:50:39]wFMCommunicate OK [19:50:39]SAM_PROTO_ClearQueue done [19:50:39]KKMCreateOFDPacket [19:50:39]OFDProtocolAddRootSTLVToBuf [19:50:39]FM_MakeSignedData [19:50:39]FM_MakeSignedData [19:50:39]SAM_PROTO_SignData [19:50:39]wFMCommunicate request_size=4 [19:50:39]MH_SAM_APDU [19:50:39]CAPDU: 80 0D 01 02 [19:50:39]Write to MH i2c: E2 08 00 75 02 80 0D 01 02 00 00 00 00 F0 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:39]Read from MH i2c: E2 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: E2 03 00 75 02 00 90 00 EB [19:50:39]RAPDU: 90 00 [19:50:39]wFMCommunicate OK [19:50:39]wFMCommunicate request_size=255 [19:50:39]MH_SAM_APDU [19:50: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 CB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0E CD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9D 00 00 00 00 07 04 06 00 C4 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 0E 88 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 96 01 00 35 04 06 00 [19:50:39]Write to MH i2c: E2 02 01 76 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 CB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0E CD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9D 00 00 00 00 07 04 06 00 C4 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 0E 88 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 96 01 00 35 04 06 00 00 00 77 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:40]Read from MH i2c: E2 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 03 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 03 00 76 02 00 90 00 EC [19:50:40]RAPDU: 90 00 [19:50:40]wFMCommunicate OK [19:50:40]wFMCommunicate request_size=11 [19:50:40]MH_SAM_APDU [19:50:40]CAPDU: 80 0D 02 02 06 C4 75 33 80 BF D4 [19:50:40]Write to MH i2c: E2 0E 00 77 02 80 0D 02 02 06 00 C4 75 33 80 BF D4 00 00 7E [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:40]Read from MH i2c: E2 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 03 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 03 00 77 02 00 90 00 ED [19:50:40]RAPDU: 90 00 [19:50:40]wFMCommunicate OK [19:50:40]wFMCommunicate request_size=4 [19:50:40]MH_SAM_APDU [19:50:40]CAPDU: 80 0D 03 02 [19:50:40]Write to MH i2c: E2 08 00 78 02 80 0D 03 02 00 00 00 00 F5 [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:40]Read from MH i2c: E2 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 0B 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 0B 00 78 02 00 71 84 5A AA 37 C7 B2 94 90 00 33 [19:50:40]RAPDU: 71 84 5A AA 37 C7 B2 94 90 00 [19:50:40]wFMCommunicate OK [19:50:40]SAM_PROTO_SignData done [19:50:40]FM_MakeSignedData done [19:50:40]CreateOFDProtocolMessage [19:50:40]wFMCommunicate request_size=4 [19:50:40]MH_SAM_APDU [19:50:40]CAPDU: 80 11 00 00 [19:50:40]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:40]Read from MH i2c: E2 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 17 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 48 [19:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:50:40]wFMCommunicate OK [19:50:40]CreateOFDProtocolMessage done [19:50:40]OFDSenderStorePacket 104027 [19:50:40]StoreOFDPacket docnum=104027 [19:50:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C9 CE 08 01 EB E1 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 CB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0E CD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9D 00 00 00 00 07 04 06 00 C4 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 0E 88 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 96 01 00 35 04 06 00 C4 75 33 80 BF D4 71 84 5A AA 37 C7 B2 94 [19:50:40]CheckFolder [19:50:40]dirname=/storage/ofd_packets [19:50:40]CheckFolder done [19:50:40]ProducePacketName [19:50:40]name=ofd_packets/00104027 [19:50:40]NVStorageSaveData ofd_packets/00104027 [19:50:40]File name is /storage/ofd_packets/00104027 [19:50:40]Write 302 bytes [19:50:40]NVStorageSaveData done [19:50:40]OFDSenderStorePacket done [19:50:40]KKMCreateOFDPacket done [19:50:40]NVStorageSaveData kkm_last_timestamp [19:50:40]File name is /storage/kkm_last_timestamp [19:50:40]Write 4 bytes [19:50:40]NVStorageSaveData done [19:50:40]ExternCall_PrintAddStr [19:50:40]wPrintStart [19:50:40]Write to MH i2c: 01 00 00 7A 02 7C [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: 01 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: 01 07 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: 01 07 00 7A 02 00 00 00 00 00 FF 0F 91 [19:50:40]RasterBufferAndPrint [19:50:40]line Счет N : (1)673405 [19:50:40]line ИНН: 02508201610067 [19:50:40]line Контрольно-Кассовый Чек [19:50:40]line ПРОДАЖА [19:50:40]line ТРК (МРК, ГНК) : 11 [19:50:40]line Товар: 2710194210 [19:50:40]line ДТ(л)-К-5 [19:50:40]line 52.150 * 72.90 [19:50:40]line = 3801.74 [19:50:40]line НДС 12% НСП 1% [19:50:40]line > о реализуемом товаре [19:50:40]line ОКРУГЛЕНИЕ: -0.74 [19:50:40]line ИТОГО: 3801.00 [19:50:40]line Внесено: 5000.00 [19:50:40]line СДАЧА: 1199.00 [19:50:40]line НСП 1% : 33.64 [19:50:40]line НДС 12% : 403.72 [19:50:40]line Наличными: 3801.00 [19:50:40]line Безнал.: 0.00 [19:50:40]line Место: АЗС № 120 "Партнер Нефть" [19:50:40]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:50:40]line СНО: Общий режим [19:50:40]line Чек 212 20.06.2024 19:50 [19:50:40]line Смена: 354 ФФД: 1.0 [19:50:40]line ЗНМ: 0300000164 [19:50:40]line РНМ: 0000000000092785 [19:50:40]line Версия ККМ: 001 [19:50:40]line ФМ: 0000000000875093 [19:50:40]line ФД: 104027 [19:50:40]line ФПД: 216007654293460 [19:50:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T195038&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104027&fm=216007654293460&tin=02508201610067®Number=0000000000092785&sum=380100 [19:50:40]OFD Sender: Processing packet 104027 [packets to send 17, broken 16] [19:50:40]ProducePacketName [19:50:40]name=ofd_packets/00104027 [19:50:40]OFD Sender: To server: pG, [19:50:40]CommunicateWithHost lk.salyk.kg:30040 [19:50:40]ConnectInit lk.salyk.kg [19:50:40]written 0, free lines is 4095 [19:50:40]Connected sock=10 [19:50:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C9 CE 08 01 EB E1 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B6 CB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0E CD 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 CC 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9D 00 00 00 00 07 04 06 00 C4 CC 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 0E 88 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 96 01 00 35 04 06 00 C4 75 33 80 BF D4 71 84 5A AA 37 C7 B2 94 [19:50:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0D 6B 47 00 33 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5B 96 01 00 F4 03 04 00 93 2E 74 66 B6 04 01 00 00 62 0D 4F 30 C9 37 B4 A1 [19:50:40]CommunicateWithHost err = 0 [19:50:40]CheckOFDResponse [19:50:40]1017 (14) - 77093643461234 [19:50:40]1041 (16) - 0000000000875093 [19:50:40]1040 (4) - 104027 [19:50:40]1012 (4) - 20.06.2024 13:28 [19:50:40]1206 (1) - 0 [19:50:40]OFD Sender: Remove packet 104027 [19:50:40]ProducePacketName [19:50:40]name=ofd_packets/00104027 [19:50:40]NVStorageDeleteData [19:50:41]Write to MH i2c: 01 00 00 A5 02 A7 [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: 01 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: 01 07 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 E4 0C 9E [19:50:41]RasterBufferAndPrint [19:50:41]line [19:50:41]line [19:50:41]line [19:50:41]line [19:50:41]line [19:50:41]written 0, free lines is 3303 [19:50:41]MH_Cut [19:50:41]Write to MH i2c: D1 01 00 AC 02 01 80 [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: D1 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: D1 01 00 [19:50:41]MH_I2C_Read... [19:50:41]Read from MH i2c: D1 01 00 AC 02 00 7F [19:50:41]Write to MH i2c: 01 00 00 AD 02 AF [19:50:41]Write i2c OK [19:50:41]MH_I2C_Read... [19:50:41]OFD Sender: No OFD packet to send [19:50:41]*** Cut start [19:50:41]*** Partial cut [19:50:41]*** CUTSNS_PIN = 1 [19:50:41]*** CUTSNS_PIN = 0 [19:50:41]*** Brake cut motor [19:50:42]Read from MH i2c: 01 [19:50:42]MH_I2C_Read... [19:50:42]*** Stop cut motor [19:50:42]*** Cut end [19:50:42]Read from MH i2c: 01 07 00 [19:50:42]MH_I2C_Read... [19:50:42]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 FF 0F C4 [19:50:42]process_action close_receipt done [19:50:42]requested_data is exist [19:50:42]produce_requested_data [19:50:42]requested_item fm.sn is exist - process it [19:50:42]wFMCommunicate request_size=4 [19:50:42]MH_SAM_APDU [19:50:42]CAPDU: 80 11 00 00 [19:50:42]Write to MH i2c: E2 08 00 AE 02 80 11 00 00 00 00 00 00 2A [19:50:42]Write i2c OK [19:50:42]MH_I2C_Read... [19:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:42]Read from MH i2c: E2 [19:50:42]MH_I2C_Read... [19:50:42]Read from MH i2c: E2 17 00 [19:50:42]MH_I2C_Read... [19:50:42]Read from MH i2c: E2 17 00 AE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [19:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:50:42]wFMCommunicate OK [19:50:42]requested_item fd.num is exist - process it [19:50:42]SAM_PROTO_GetFieldsCounters [19:50:42]wFMCommunicate request_size=4 [19:50:42]MH_SAM_APDU [19:50:42]CAPDU: 80 13 00 00 [19:50:42]Write to MH i2c: E2 08 00 AF 02 80 13 00 00 00 00 00 00 2D [19:50:42]Write i2c OK [19:50:42]MH_I2C_Read... [19:50:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:42]Read from MH i2c: E2 [19:50:42]MH_I2C_Read... [19:50:42]Read from MH i2c: E2 62 00 [19:50:42]MH_I2C_Read... [19:50:42]Read from MH i2c: E2 62 00 AF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [19:50:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:42]wFMCommunicate OK [19:50:42]SAM_PROTO_GetFieldsCounters done [19:50:42]requested_item shift.num is exist - process it [19:50:42]requested_item shift.opened is exist - process it [19:50:42]req_shift_opened [19:50:42]FM_GetShiftState [19:50:42]SAM_PROTO_GetShiftState [19:50:42]wFMCommunicate request_size=4 [19:50:42]MH_SAM_APDU [19:50:42]CAPDU: 80 13 01 00 [19:50:42]Write to MH i2c: E2 08 00 B0 02 80 13 01 00 00 00 00 00 2F [19:50:42]Write i2c OK [19:50:42]MH_I2C_Read... [19:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:42]Read from MH i2c: E2 [19:50:42]MH_I2C_Read... [19:50:42]Read from MH i2c: E2 0E 00 [19:50:42]MH_I2C_Read... [19:50:42]Read from MH i2c: E2 0E 00 B0 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 7E [19:50:42]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:50:42]wFMCommunicate OK [19:50:42]SAM_PROTO_GetShiftState done [19:50:42]FM_GetShiftState done [19:50:42]req_shift_opened done [19:50:42]requested_item shift.open_date is exist - process it [19:50:42]req_shift_open_date [19:50:42]req_shift_open_date done [19:50:42]produce_requested_data done [19:50:42]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104027,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:50:42]process_action_free close_receipt [19:50:42]json_value_free [19:50:42]json_value_free done [19:50:42]process_json_proto returns [19:50:42]Send response to host [19:50:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104027,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:50:42]free response buf [19:50:42]execute_script done [19:50:42]execute_script returns [19:50:42]free content buf [19:50:42]Sock 9.Close socket [19:50:42]Sock 9.Thread stoped [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:30]accept exits with 7 [19:59:30]New connection [19:59:30]New thread 3066563940 created [19:59:30]Thread 3066707300 joined [19:59:30]Waiting for new connection... [19:59:30] Sock 7.Parse request [19:59:30]Sock 7.Check first char [19:59:30]Sock 7.First char is OK [19:59:30]request: POST /json_proto HTTP/1.0 [19:59:30]Method: POST [19:59:30]URL: /json_proto [19:59:30]Method is POST - this is cgi request [19:59:30]url: /json_proto [19:59:30]query_string will be loaded in cgi processing [19:59:30]execute_cgi json_proto POST (null) [19:59:30]execute_cgi path=json_proto method=POST [19:59:30]POST find Content-Length [19:59:30]Host: 172.17.38.133:8080 [19:59:30]Content-Length: 821 [19:59:30]Content-Type: application/json [19:59:30] [19:59:30]POST finish read [19:59:30]Found Content-Length = 821 [19:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:30]execute_script... [19:59:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:30]POST & json_proto [19:59:30]process_json_proto [19:59:30]json parsed OK: [19:59:30]protocol is kg_v1.0 [19:59:30]action value=close_receipt [19:59:30]process_action close_receipt [19:59:30]cmd_close_receipt [19:59:30]MH_GetDate [19:59:30]Write to MH i2c: F0 00 00 B1 02 A2 [19:59:30]Write i2c OK [19:59:30]MH_I2C_Read... [19:59:30]Read from MH i2c: F0 [19:59:30]MH_I2C_Read... [19:59:30]Read from MH i2c: F0 09 00 [19:59:30]MH_I2C_Read... [19:59:30]Read from MH i2c: F0 09 00 B1 02 00 23 8A 74 66 BD 8F 7C 64 5E [19:59:30]GetLastDocTimeStamp 1718913038 [19:59:30]current date 1718913571 [19:59:30]FM_GetShiftState [19:59:30]SAM_PROTO_GetShiftState [19:59:30]wFMCommunicate request_size=4 [19:59:30]MH_SAM_APDU [19:59:30]CAPDU: 80 13 01 00 [19:59:30]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [19:59:30]Write i2c OK [19:59:30]MH_I2C_Read... [19:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:30]Read from MH i2c: E2 [19:59:30]MH_I2C_Read... [19:59:30]Read from MH i2c: E2 0E 00 [19:59:30]MH_I2C_Read... [19:59:30]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 80 [19:59:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:59:30]wFMCommunicate OK [19:59:30]SAM_PROTO_GetShiftState done [19:59:30]FM_GetShiftState done [19:59:30]opened in 1718843124 [19:59:30]opened+sec_in_day 1718929524 [19:59:30]quantity*price = 70056 [19:59:30]sum+1 = 70058 [19:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.57 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 0.00 Безнал.: 700.57 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 213 20.06.2024 19:59 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104028 ФПД: 128504895914987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T195931&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104028&fm=128504895914987&tin=02508201610067®Number=0000000000092785&sum=70057 [19:59:32]StoreToDocumentArchive [19:59:32]shift 354 fd 104028 [19:59:32]save to /storage/0354/doc_00104028 [19:59:32]save last doc name /storage/0354/doc_00104028 to /storage/kkm_last_doc_name [19:59:32]save OK [19:59:32]Clear old archive folders... [19:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:59:32]tlvbuf is 014F9220 [19:59:32]SAM_PROTO_ClearQueue [19:59:32]wFMCommunicate request_size=4 [19:59:32]MH_SAM_APDU [19:59:32]CAPDU: 80 09 00 00 [19:59:32]Write to MH i2c: E2 08 00 BF 02 80 09 00 00 00 00 00 00 33 [19:59:32]Write i2c OK [19:59:32]MH_I2C_Read... [19:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:32]Read from MH i2c: E2 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 03 00 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [19:59:32]RAPDU: 90 00 [19:59:32]wFMCommunicate OK [19:59:32]SAM_PROTO_ClearQueue done [19:59:32]KKMCreateOFDPacket [19:59:32]OFDProtocolAddRootSTLVToBuf [19:59:32]FM_MakeSignedData [19:59:32]FM_MakeSignedData [19:59:32]SAM_PROTO_SignData [19:59:32]wFMCommunicate request_size=4 [19:59:32]MH_SAM_APDU [19:59:32]CAPDU: 80 0D 01 02 [19:59:32]Write to MH i2c: E2 08 00 C0 02 80 0D 01 02 00 00 00 00 3B [19:59:32]Write i2c OK [19:59:32]MH_I2C_Read... [19:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:32]Read from MH i2c: E2 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 03 00 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [19:59:32]RAPDU: 90 00 [19:59:32]wFMCommunicate OK [19:59:32]wFMCommunicate request_size=255 [19:59:32]MH_SAM_APDU [19:59:32]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 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 00 00 00 00 00 00 39 04 06 00 A9 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 23 8A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 96 01 00 35 04 06 00 [19:59:32]Write to MH i2c: E2 02 01 C1 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 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 00 00 00 00 00 00 39 04 06 00 A9 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 23 8A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 96 01 00 35 04 06 00 00 00 49 [19:59:32]Write i2c OK [19:59:32]MH_I2C_Read... [19:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:32]Read from MH i2c: E2 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 03 00 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [19:59:32]RAPDU: 90 00 [19:59:32]wFMCommunicate OK [19:59:32]wFMCommunicate request_size=11 [19:59:32]MH_SAM_APDU [19:59:32]CAPDU: 80 0D 02 02 06 74 DF E0 AC 43 EB [19:59:32]Write to MH i2c: E2 0E 00 C2 02 80 0D 02 02 06 00 74 DF E0 AC 43 EB 00 00 57 [19:59:32]Write i2c OK [19:59:32]MH_I2C_Read... [19:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:32]Read from MH i2c: E2 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 03 00 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [19:59:32]RAPDU: 90 00 [19:59:32]wFMCommunicate OK [19:59:32]wFMCommunicate request_size=4 [19:59:32]MH_SAM_APDU [19:59:32]CAPDU: 80 0D 03 02 [19:59:32]Write to MH i2c: E2 08 00 C3 02 80 0D 03 02 00 00 00 00 40 [19:59:32]Write i2c OK [19:59:32]MH_I2C_Read... [19:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:32]Read from MH i2c: E2 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 0B 00 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 0B 00 C3 02 00 02 10 A8 F8 43 2A 8D E1 90 00 CE [19:59:32]RAPDU: 02 10 A8 F8 43 2A 8D E1 90 00 [19:59:32]wFMCommunicate OK [19:59:32]SAM_PROTO_SignData done [19:59:32]FM_MakeSignedData done [19:59:32]CreateOFDProtocolMessage [19:59:32]wFMCommunicate request_size=4 [19:59:32]MH_SAM_APDU [19:59:32]CAPDU: 80 11 00 00 [19:59:32]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [19:59:32]Write i2c OK [19:59:32]MH_I2C_Read... [19:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:32]Read from MH i2c: E2 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: E2 17 00 [19:59:32]MH_I2C_Read... [19:59:32]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 35 30 39 33 90 00 93 [19:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:59:32]wFMCommunicate OK [19:59:32]CreateOFDProtocolMessage done [19:59:32]OFDSenderStorePacket 104028 [19:59:32]StoreOFDPacket docnum=104028 [19:59:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 48 04 08 01 B9 AE 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 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 00 00 00 00 00 00 39 04 06 00 A9 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 23 8A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 96 01 00 35 04 06 00 74 DF E0 AC 43 EB 02 10 A8 F8 43 2A 8D E1 [19:59:32]CheckFolder [19:59:32]dirname=/storage/ofd_packets [19:59:32]CheckFolder done [19:59:32]ProducePacketName [19:59:32]name=ofd_packets/00104028 [19:59:32]NVStorageSaveData ofd_packets/00104028 [19:59:32]File name is /storage/ofd_packets/00104028 [19:59:32]Write 302 bytes [19:59:32]NVStorageSaveData done [19:59:32]OFDSenderStorePacket done [19:59:32]KKMCreateOFDPacket done [19:59:32]NVStorageSaveData kkm_last_timestamp [19:59:32]File name is /storage/kkm_last_timestamp [19:59:32]Write 4 bytes [19:59:32]NVStorageSaveData done [19:59:32]ExternCall_PrintAddStr [19:59:32]wPrintStart [19:59:32]Write to MH i2c: 01 00 00 C5 02 C7 [19:59:32]Write i2c OK [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: 01 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: 01 07 00 [19:59:32]MH_I2C_Read... [19:59:32]Read from MH i2c: 01 07 00 C5 02 00 00 00 00 00 FF 0F DC [19:59:32]RasterBufferAndPrint [19:59:32]line Счет N : (1)673407 [19:59:32]line ИНН: 02508201610067 [19:59:32]line Контрольно-Кассовый Чек [19:59:32]line ПРОДАЖА [19:59:32]line ТРК (МРК, ГНК) : 21 [19:59:32]line Товар: 2710194210 [19:59:32]line ДТ(л)-К-5 [19:59:32]line 9.610 * 72.90 [19:59:32]line = 700.57 [19:59:32]line НДС 12% НСП 1% [19:59:32]line > о реализуемом товаре [19:59:32]line ИТОГО: 700.57 [19:59:32]line НСП 1% : 6.20 [19:59:32]line НДС 12% : 74.40 [19:59:32]line Наличными: 0.00 [19:59:32]line Безнал.: 700.57 [19:59:32]line Место: АЗС № 120 "Партнер Нефть" [19:59:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [19:59:32]line СНО: Общий режим [19:59:32]line Чек 213 20.06.2024 19:59 [19:59:32]line Смена: 354 ФФД: 1.0 [19:59:32]line ЗНМ: 0300000164 [19:59:32]line РНМ: 0000000000092785 [19:59:32]line Версия ККМ: 001 [19:59:32]line Платежная система: Бакай Банк [19:59:32]line ФМ: 0000000000875093 [19:59:32]line ФД: 104028 [19:59:32]line ФПД: 128504895914987 [19:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T195931&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104028&fm=128504895914987&tin=02508201610067®Number=0000000000092785&sum=70057 [19:59:32]OFD Sender: Processing packet 104028 [packets to send 17, broken 16] [19:59:32]ProducePacketName [19:59:32]name=ofd_packets/00104028 [19:59:32]OFD Sender: To server: pG, [19:59:32]CommunicateWithHost lk.salyk.kg:30040 [19:59:32]ConnectInit lk.salyk.kg [19:59:32]written 0, free lines is 4095 [19:59:33]Connected sock=11 [19:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 48 04 08 01 B9 AE 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A9 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 00 00 00 00 00 00 39 04 06 00 A9 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 23 8A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5C 96 01 00 35 04 06 00 74 DF E0 AC 43 EB 02 10 A8 F8 43 2A 8D E1 [19:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 05 AC 47 00 26 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 35 30 39 33 10 04 04 00 5C 96 01 00 F4 03 04 00 A7 30 74 66 B6 04 01 00 00 B4 24 B0 AE 24 6A 06 7E [19:59:33]CommunicateWithHost err = 0 [19:59:33]CheckOFDResponse [19:59:33]1017 (14) - 77093643461234 [19:59:33]1041 (16) - 0000000000875093 [19:59:33]1040 (4) - 104028 [19:59:33]1012 (4) - 20.06.2024 13:37 [19:59:33]1206 (1) - 0 [19:59:33]OFD Sender: Remove packet 104028 [19:59:33]ProducePacketName [19:59:33]name=ofd_packets/00104028 [19:59:33]NVStorageDeleteData [19:59:33]Write to MH i2c: 01 00 00 EF 02 F1 [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: 01 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: 01 07 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 F4 0C F8 [19:59:33]RasterBufferAndPrint [19:59:33]line [19:59:33]line [19:59:33]line [19:59:33]line [19:59:33]line [19:59:33]written 0, free lines is 3323 [19:59:33]MH_Cut [19:59:33]Write to MH i2c: D1 01 00 F6 02 01 CA [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: D1 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: D1 01 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: D1 01 00 F6 02 00 C9 [19:59:33]Write to MH i2c: 01 00 00 F7 02 F9 [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]OFD Sender: No OFD packet to send [19:59:34]*** Cut start [19:59:34]*** Partial cut [19:59:34]*** CUTSNS_PIN = 1 [19:59:34]*** CUTSNS_PIN = 0 [19:59:34]*** Brake cut motor [19:59:34]Read from MH i2c: 01 [19:59:34]MH_I2C_Read... [19:59:34]*** Stop cut motor [19:59:34]*** Cut end [19:59:34]Read from MH i2c: 01 07 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 FF 0F 0E [19:59:34]process_action close_receipt done [19:59:34]requested_data is exist [19:59:34]produce_requested_data [19:59:34]requested_item fm.sn is exist - process it [19:59:34]wFMCommunicate request_size=4 [19:59:34]MH_SAM_APDU [19:59:34]CAPDU: 80 11 00 00 [19:59:34]Write to MH i2c: E2 08 00 F8 02 80 11 00 00 00 00 00 00 74 [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:34]Read from MH i2c: E2 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 17 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 17 00 F8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C7 [19:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [19:59:34]wFMCommunicate OK [19:59:34]requested_item fd.num is exist - process it [19:59:34]SAM_PROTO_GetFieldsCounters [19:59:34]wFMCommunicate request_size=4 [19:59:34]MH_SAM_APDU [19:59:34]CAPDU: 80 13 00 00 [19:59:34]Write to MH i2c: E2 08 00 F9 02 80 13 00 00 00 00 00 00 77 [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:34]Read from MH i2c: E2 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 62 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 62 00 F9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [19:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:34]wFMCommunicate OK [19:59:34]SAM_PROTO_GetFieldsCounters done [19:59:34]requested_item shift.num is exist - process it [19:59:34]requested_item shift.opened is exist - process it [19:59:34]req_shift_opened [19:59:34]FM_GetShiftState [19:59:34]SAM_PROTO_GetShiftState [19:59:34]wFMCommunicate request_size=4 [19:59:34]MH_SAM_APDU [19:59:34]CAPDU: 80 13 01 00 [19:59:34]Write to MH i2c: E2 08 00 FA 02 80 13 01 00 00 00 00 00 79 [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:34]Read from MH i2c: E2 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 0E 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 0E 00 FA 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C8 [19:59:34]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [19:59:34]wFMCommunicate OK [19:59:34]SAM_PROTO_GetShiftState done [19:59:34]FM_GetShiftState done [19:59:34]req_shift_opened done [19:59:34]requested_item shift.open_date is exist - process it [19:59:34]req_shift_open_date [19:59:34]req_shift_open_date done [19:59:34]produce_requested_data done [19:59:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104028,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [19:59:34]process_action_free close_receipt [19:59:34]json_value_free [19:59:34]json_value_free done [19:59:34]process_json_proto returns [19:59:34]Send response to host [19:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104028,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [19:59:34]free response buf [19:59:34]execute_script done [19:59:34]execute_script returns [19:59:34]free content buf [19:59:34]Sock 7.Close socket [19:59:34]Sock 7.Thread stoped [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:04]accept exits with 9 [20:01:04]New connection [20:01:04]New thread 3066707300 created [20:01:04]Thread 3066563940 joined [20:01:04]Waiting for new connection... [20:01:04] Sock 9.Parse request [20:01:04]Sock 9.Check first char [20:01:04]Sock 9.First char is OK [20:01:04]request: POST /json_proto HTTP/1.0 [20:01:04]Method: POST [20:01:04]URL: /json_proto [20:01:04]Method is POST - this is cgi request [20:01:04]url: /json_proto [20:01:04]query_string will be loaded in cgi processing [20:01:04]execute_cgi json_proto POST (null) [20:01:04]execute_cgi path=json_proto method=POST [20:01:04]POST find Content-Length [20:01:04]Host: 172.17.38.133:8080 [20:01:04]Content-Length: 819 [20:01:04]Content-Type: application/json [20:01:04] [20:01:04]POST finish read [20:01:04]Found Content-Length = 819 [20:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:04]execute_script... [20:01: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)673408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:04]POST & json_proto [20:01:04]process_json_proto [20:01:04]json parsed OK: [20:01:04]protocol is kg_v1.0 [20:01:04]action value=close_receipt [20:01:04]process_action close_receipt [20:01:04]cmd_close_receipt [20:01:04]MH_GetDate [20:01:04]Write to MH i2c: F0 00 00 FB 02 EC [20:01:04]Write i2c OK [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: F0 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: F0 09 00 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: F0 09 00 FB 02 00 80 8A 74 66 BD 8F 7C 64 05 [20:01:04]GetLastDocTimeStamp 1718913571 [20:01:04]current date 1718913664 [20:01:04]FM_GetShiftState [20:01:04]SAM_PROTO_GetShiftState [20:01:04]wFMCommunicate request_size=4 [20:01:04]MH_SAM_APDU [20:01:04]CAPDU: 80 13 01 00 [20:01:04]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [20:01:04]Write i2c OK [20:01:04]MH_I2C_Read... [20:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:04]Read from MH i2c: E2 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: E2 0E 00 [20:01:04]MH_I2C_Read... [20:01:04]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CA [20:01:04]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:01:04]wFMCommunicate OK [20:01:04]SAM_PROTO_GetShiftState done [20:01:04]FM_GetShiftState done [20:01:04]opened in 1718843124 [20:01:04]opened+sec_in_day 1718929524 [20:01:04]quantity*price = 150064 [20:01:04]sum+1 = 150065 [20:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 214 20.06.2024 20:01 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104029 ФПД: 160121120099635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T200104&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104029&fm=160121120099635&tin=02508201610067®Number=0000000000092785&sum=150064 [20:01:05]StoreToDocumentArchive [20:01:05]shift 354 fd 104029 [20:01:05]save to /storage/0354/doc_00104029 [20:01:05]save last doc name /storage/0354/doc_00104029 to /storage/kkm_last_doc_name [20:01:05]save OK [20:01:05]Clear old archive folders... [20:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:05]tlvbuf is 0149DE70 [20:01:05]SAM_PROTO_ClearQueue [20:01:05]wFMCommunicate request_size=4 [20:01:05]MH_SAM_APDU [20:01:05]CAPDU: 80 09 00 00 [20:01:05]Write to MH i2c: E2 08 00 09 03 80 09 00 00 00 00 00 00 7E [20:01:05]Write i2c OK [20:01:05]MH_I2C_Read... [20:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:05]Read from MH i2c: E2 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: E2 03 00 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [20:01:05]RAPDU: 90 00 [20:01:05]wFMCommunicate OK [20:01:05]SAM_PROTO_ClearQueue done [20:01:05]KKMCreateOFDPacket [20:01:05]OFDProtocolAddRootSTLVToBuf [20:01:05]FM_MakeSignedData [20:01:05]FM_MakeSignedData [20:01:05]SAM_PROTO_SignData [20:01:05]wFMCommunicate request_size=4 [20:01:05]MH_SAM_APDU [20:01:05]CAPDU: 80 0D 01 02 [20:01:05]Write to MH i2c: E2 08 00 0A 03 80 0D 01 02 00 00 00 00 86 [20:01:05]Write i2c OK [20:01:05]MH_I2C_Read... [20:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:05]Read from MH i2c: E2 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: E2 03 00 [20:01:05]MH_I2C_Read... [20:01:05]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [20:01:05]RAPDU: 90 00 [20:01:05]wFMCommunicate OK [20:01:05]wFMCommunicate request_size=255 [20:01:05]MH_SAM_APDU [20:01: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 80 8A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 96 01 00 35 04 06 00 91 [20:01:05]Write to MH i2c: E2 02 01 0B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 80 8A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 96 01 00 35 04 06 00 91 00 00 08 [20:01:05]Write i2c OK [20:01:05]MH_I2C_Read... [20:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:06]Read from MH i2c: E2 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: E2 03 00 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [20:01:06]RAPDU: 90 00 [20:01:06]wFMCommunicate OK [20:01:06]wFMCommunicate request_size=10 [20:01:06]MH_SAM_APDU [20:01:06]CAPDU: 80 0D 02 02 05 A1 1A 7C 0D 33 [20:01:06]Write to MH i2c: E2 0D 00 0C 03 80 0D 02 02 05 00 A1 1A 7C 0D 33 00 00 0A [20:01:06]Write i2c OK [20:01:06]MH_I2C_Read... [20:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:06]Read from MH i2c: E2 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: E2 03 00 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [20:01:06]RAPDU: 90 00 [20:01:06]wFMCommunicate OK [20:01:06]wFMCommunicate request_size=4 [20:01:06]MH_SAM_APDU [20:01:06]CAPDU: 80 0D 03 02 [20:01:06]Write to MH i2c: E2 08 00 0D 03 80 0D 03 02 00 00 00 00 8B [20:01:06]Write i2c OK [20:01:06]MH_I2C_Read... [20:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:06]Read from MH i2c: E2 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: E2 0B 00 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: E2 0B 00 0D 03 00 A9 41 AB 7B 7C 87 33 49 90 00 1B [20:01:06]RAPDU: A9 41 AB 7B 7C 87 33 49 90 00 [20:01:06]wFMCommunicate OK [20:01:06]SAM_PROTO_SignData done [20:01:06]FM_MakeSignedData done [20:01:06]CreateOFDProtocolMessage [20:01:06]wFMCommunicate request_size=4 [20:01:06]MH_SAM_APDU [20:01:06]CAPDU: 80 11 00 00 [20:01:06]Write to MH i2c: E2 08 00 0E 03 80 11 00 00 00 00 00 00 8B [20:01:06]Write i2c OK [20:01:06]MH_I2C_Read... [20:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:06]Read from MH i2c: E2 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: E2 17 00 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: E2 17 00 0E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DE [20:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:01:06]wFMCommunicate OK [20:01:06]CreateOFDProtocolMessage done [20:01:06]OFDSenderStorePacket 104029 [20:01:06]StoreOFDPacket docnum=104029 [20:01:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 51 DC 07 01 53 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 80 8A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 96 01 00 35 04 06 00 91 A1 1A 7C 0D 33 A9 41 AB 7B 7C 87 33 49 [20:01:06]CheckFolder [20:01:06]dirname=/storage/ofd_packets [20:01:06]CheckFolder done [20:01:06]ProducePacketName [20:01:06]name=ofd_packets/00104029 [20:01:06]NVStorageSaveData ofd_packets/00104029 [20:01:06]File name is /storage/ofd_packets/00104029 [20:01:06]Write 301 bytes [20:01:06]NVStorageSaveData done [20:01:06]OFDSenderStorePacket done [20:01:06]KKMCreateOFDPacket done [20:01:06]NVStorageSaveData kkm_last_timestamp [20:01:06]File name is /storage/kkm_last_timestamp [20:01:06]Write 4 bytes [20:01:06]NVStorageSaveData done [20:01:06]ExternCall_PrintAddStr [20:01:06]wPrintStart [20:01:06]Write to MH i2c: 01 00 00 0F 03 12 [20:01:06]Write i2c OK [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: 01 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: 01 07 00 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: 01 07 00 0F 03 00 00 00 00 00 FF 0F 27 [20:01:06]RasterBufferAndPrint [20:01:06]line Счет N : (1)673408 [20:01:06]line ИНН: 02508201610067 [20:01:06]line Контрольно-Кассовый Чек [20:01:06]line ПРОДАЖА [20:01:06]line ТРК (МРК, ГНК) : 32 [20:01:06]line Товар: 2710124130 [20:01:06]line Аи-92-К-5 [20:01:06]line 22.600 * 66.40 [20:01:06]line = 1500.64 [20:01:06]line НДС 12% НСП 1% [20:01:06]line > о реализуемом товаре [20:01:06]line ИТОГО: 1500.64 [20:01:06]line НСП 1% : 13.28 [20:01:06]line НДС 12% : 159.36 [20:01:06]line Наличными: 0.00 [20:01:06]line Безнал.: 1500.64 [20:01:06]line Место: АЗС № 120 "Партнер Нефть" [20:01:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:01:06]line СНО: Общий режим [20:01:06]line Чек 214 20.06.2024 20:01 [20:01:06]line Смена: 354 ФФД: 1.0 [20:01:06]line ЗНМ: 0300000164 [20:01:06]line РНМ: 0000000000092785 [20:01:06]line Версия ККМ: 001 [20:01:06]line Платежная система: Бакай Банк [20:01:06]line ФМ: 0000000000875093 [20:01:06]line ФД: 104029 [20:01:06]line ФПД: 160121120099635 [20:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T200104&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104029&fm=160121120099635&tin=02508201610067®Number=0000000000092785&sum=150064 [20:01:06]OFD Sender: Processing packet 104029 [packets to send 17, broken 16] [20:01:06]ProducePacketName [20:01:06]name=ofd_packets/00104029 [20:01:06]OFD Sender: To server: pG, [20:01:06]CommunicateWithHost lk.salyk.kg:30040 [20:01:06]ConnectInit lk.salyk.kg [20:01:06]written 0, free lines is 4095 [20:01:06]Connected sock=10 [20:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 51 DC 07 01 53 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 80 8A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5D 96 01 00 35 04 06 00 91 A1 1A 7C 0D 33 A9 41 AB 7B 7C 87 33 49 [20:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BC 5D 47 00 A3 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 35 30 39 33 10 04 04 00 5D 96 01 00 F4 03 04 00 05 31 74 66 B6 04 01 00 00 39 15 2B B6 A6 3C D2 CB [20:01:06]CommunicateWithHost err = 0 [20:01:06]CheckOFDResponse [20:01:06]1017 (14) - 77093643461234 [20:01:06]1041 (16) - 0000000000875093 [20:01:06]1040 (4) - 104029 [20:01:06]1012 (4) - 20.06.2024 13:39 [20:01:06]1206 (1) - 0 [20:01:06]OFD Sender: Remove packet 104029 [20:01:06]ProducePacketName [20:01:06]name=ofd_packets/00104029 [20:01:06]NVStorageDeleteData [20:01:06]Write to MH i2c: 01 00 00 39 03 3C [20:01:06]Write i2c OK [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: 01 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: 01 07 00 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 01 0D 51 [20:01:06]RasterBufferAndPrint [20:01:06]line [20:01:06]line [20:01:06]line [20:01:06]line [20:01:06]line [20:01:06]written 0, free lines is 3335 [20:01:07]MH_Cut [20:01:07]Write to MH i2c: D1 01 00 40 03 01 15 [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: D1 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: D1 01 00 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: D1 01 00 40 03 00 14 [20:01:07]Write to MH i2c: 01 00 00 41 03 44 [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]OFD Sender: No OFD packet to send [20:01:07]*** Cut start [20:01:07]*** Partial cut [20:01:07]*** CUTSNS_PIN = 1 [20:01:07]*** CUTSNS_PIN = 0 [20:01:07]*** Brake cut motor [20:01:08]Read from MH i2c: 01 [20:01:08]MH_I2C_Read... [20:01:08]*** Stop cut motor [20:01:08]*** Cut end [20:01:08]Read from MH i2c: 01 07 00 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 FF 0F 59 [20:01:08]process_action close_receipt done [20:01:08]requested_data is exist [20:01:08]produce_requested_data [20:01:08]requested_item fm.sn is exist - process it [20:01:08]wFMCommunicate request_size=4 [20:01:08]MH_SAM_APDU [20:01:08]CAPDU: 80 11 00 00 [20:01:08]Write to MH i2c: E2 08 00 42 03 80 11 00 00 00 00 00 00 BF [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:08]Read from MH i2c: E2 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 17 00 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 17 00 42 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 12 [20:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:01:08]wFMCommunicate OK [20:01:08]requested_item fd.num is exist - process it [20:01:08]SAM_PROTO_GetFieldsCounters [20:01:08]wFMCommunicate request_size=4 [20:01:08]MH_SAM_APDU [20:01:08]CAPDU: 80 13 00 00 [20:01:08]Write to MH i2c: E2 08 00 43 03 80 13 00 00 00 00 00 00 C2 [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:08]Read from MH i2c: E2 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 62 00 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 62 00 43 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [20:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:08]wFMCommunicate OK [20:01:08]SAM_PROTO_GetFieldsCounters done [20:01:08]requested_item shift.num is exist - process it [20:01:08]requested_item shift.opened is exist - process it [20:01:08]req_shift_opened [20:01:08]FM_GetShiftState [20:01:08]SAM_PROTO_GetShiftState [20:01:08]wFMCommunicate request_size=4 [20:01:08]MH_SAM_APDU [20:01:08]CAPDU: 80 13 01 00 [20:01:08]Write to MH i2c: E2 08 00 44 03 80 13 01 00 00 00 00 00 C4 [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 [20:01:08]MH_I2C_Read... [20:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:08]Read from MH i2c: E2 0E 00 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 0E 00 44 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 13 [20:01:08]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:01:08]wFMCommunicate OK [20:01:08]SAM_PROTO_GetShiftState done [20:01:08]FM_GetShiftState done [20:01:08]req_shift_opened done [20:01:08]requested_item shift.open_date is exist - process it [20:01:08]req_shift_open_date [20:01:08]req_shift_open_date done [20:01:08]produce_requested_data done [20:01:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104029,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:01:08]process_action_free close_receipt [20:01:08]json_value_free [20:01:08]json_value_free done [20:01:08]process_json_proto returns [20:01:08]Send response to host [20:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104029,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:01:08]free response buf [20:01:08]execute_script done [20:01:08]execute_script returns [20:01:08]free content buf [20:01:08]Sock 9.Close socket [20:01:08]Sock 9.Thread stoped [20:01:09]accept exits with 7 [20:01:09]New connection [20:01:09]New thread 3066563940 created [20:01:09]Thread 3066707300 joined [20:01:09]Waiting for new connection... [20:01:09] Sock 7.Parse request [20:01:09]Sock 7.Check first char [20:01:09]Sock 7.First char is OK [20:01:09]request: POST /json_proto HTTP/1.0 [20:01:09]Method: POST [20:01:09]URL: /json_proto [20:01:09]Method is POST - this is cgi request [20:01:09]url: /json_proto [20:01:09]query_string will be loaded in cgi processing [20:01:09]execute_cgi json_proto POST (null) [20:01:09]execute_cgi path=json_proto method=POST [20:01:09]POST find Content-Length [20:01:09]Host: 172.17.38.133:8080 [20:01:09]Content-Length: 1169 [20:01:09]Content-Type: application/json [20:01:09] [20:01:09]POST finish read [20:01:09]Found Content-Length = 1169 [20:01:09]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673406\u000A20.06.2024 19:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 70.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 5173.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074068\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:09]execute_script... [20:01:09]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673406\u000A20.06.2024 19:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 70.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 5173.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074068\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:09]POST & json_proto [20:01:09]process_json_proto [20:01:09]json parsed OK: [20:01:09]protocol is kg_v1.0 [20:01:09]action value=print_text [20:01:09]process_action print_text [20:01:09]cmd_print_text [20:01:09]ExternCall_PrintAddStr [20:01:09]wPrintStart [20:01:09]Write to MH i2c: 01 00 00 45 03 48 [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: 01 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: 01 07 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [20:01:09]RasterBufferAndPrint [20:01:09]line *****ТОВАРНЫЙ ЧЕК***** [20:01:09]line АЗС 120 [20:01:09]line Партнер нефть [20:01:09]line 02508201610067 [20:01:09]line Кассир : Дуйшенбиев А. [20:01:09]line Счет N : (1)673406 [20:01:09]line 20.06.2024 19:38 [20:01:09]line ПРОДАЖА [20:01:09]line ТРК (МРК, ГНК): 41 [20:01:09]line Вид ГСМ : 2710124500 [20:01:09]line Аи-95-К-5 [20:01:09]line 70.000 x 73.90 [20:01:09]line ИТОГ: 5173.00 [20:01:09]line Тип оплаты: Талоны: ТК ГПНА Online [20:01:09]line 30074068 [20:01:09]line ______________________ [20:01:09]line (подпись) [20:01:09]written 0, free lines is 4095 [20:01:09]Write to MH i2c: 01 00 00 59 03 5C [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: 01 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: 01 07 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 11 0E 82 [20:01:09]RasterBufferAndPrint [20:01:09]line [20:01:09]line [20:01:09]line [20:01:09]line [20:01:09]line [20:01:09]written 0, free lines is 3604 [20:01:09]MH_Cut [20:01:09]Write to MH i2c: D1 01 00 60 03 01 35 [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: D1 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: D1 01 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: D1 01 00 60 03 00 34 [20:01:09]Write to MH i2c: 01 00 00 61 03 64 [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:10]*** Cut start [20:01:10]*** Partial cut [20:01:10]*** CUTSNS_PIN = 1 [20:01:10]*** CUTSNS_PIN = 0 [20:01:10]*** Brake cut motor [20:01:11]Read from MH i2c: 01 [20:01:11]MH_I2C_Read... [20:01:11]*** Stop cut motor [20:01:11]*** Cut end [20:01:11]Read from MH i2c: 01 07 00 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [20:01:11]process_action print_text done [20:01:11]requested_data is exist [20:01:11]produce_requested_data [20:01:11]requested_item fm.sn is exist - process it [20:01:11]wFMCommunicate request_size=4 [20:01:11]MH_SAM_APDU [20:01:11]CAPDU: 80 11 00 00 [20:01:11]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [20:01:11]Write i2c OK [20:01:11]MH_I2C_Read... [20:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:11]Read from MH i2c: E2 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 17 00 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 32 [20:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:01:11]wFMCommunicate OK [20:01:11]requested_item fd.num is exist - process it [20:01:11]SAM_PROTO_GetFieldsCounters [20:01:11]wFMCommunicate request_size=4 [20:01:11]MH_SAM_APDU [20:01:11]CAPDU: 80 13 00 00 [20:01:11]Write to MH i2c: E2 08 00 63 03 80 13 00 00 00 00 00 00 E2 [20:01:11]Write i2c OK [20:01:11]MH_I2C_Read... [20:01:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:11]Read from MH i2c: E2 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 62 00 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 62 00 63 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [20:01:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:11]wFMCommunicate OK [20:01:11]SAM_PROTO_GetFieldsCounters done [20:01:11]requested_item shift.num is exist - process it [20:01:11]requested_item shift.opened is exist - process it [20:01:11]req_shift_opened [20:01:11]FM_GetShiftState [20:01:11]SAM_PROTO_GetShiftState [20:01:11]wFMCommunicate request_size=4 [20:01:11]MH_SAM_APDU [20:01:11]CAPDU: 80 13 01 00 [20:01:11]Write to MH i2c: E2 08 00 64 03 80 13 01 00 00 00 00 00 E4 [20:01:11]Write i2c OK [20:01:11]MH_I2C_Read... [20:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:11]Read from MH i2c: E2 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 0E 00 [20:01:11]MH_I2C_Read... [20:01:11]Read from MH i2c: E2 0E 00 64 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 33 [20:01:11]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:01:11]wFMCommunicate OK [20:01:11]SAM_PROTO_GetShiftState done [20:01:11]FM_GetShiftState done [20:01:11]req_shift_opened done [20:01:11]requested_item shift.open_date is exist - process it [20:01:11]req_shift_open_date [20:01:11]req_shift_open_date done [20:01:11]produce_requested_data done [20:01:11]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104029,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:01:11]process_action_free print_text [20:01:11]json_value_free [20:01:11]json_value_free done [20:01:11]process_json_proto returns [20:01:11]Send response to host [20:01:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104029,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:01:11]free response buf [20:01:11]execute_script done [20:01:11]execute_script returns [20:01:11]free content buf [20:01:11]Sock 7.Close socket [20:01:11]Sock 7.Thread stoped [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:15]accept exits with 9 [20:03:15]New connection [20:03:15]New thread 3066707300 created [20:03:15]Thread 3066563940 joined [20:03:15]Waiting for new connection... [20:03:15] Sock 9.Parse request [20:03:15]Sock 9.Check first char [20:03:15]Sock 9.First char is OK [20:03:15]request: POST /json_proto HTTP/1.0 [20:03:15]Method: POST [20:03:15]URL: /json_proto [20:03:15]Method is POST - this is cgi request [20:03:15]url: /json_proto [20:03:15]query_string will be loaded in cgi processing [20:03:15]execute_cgi json_proto POST (null) [20:03:15]execute_cgi path=json_proto method=POST [20:03:15]POST find Content-Length [20:03:15]Host: 172.17.38.133:8080 [20:03:15]Content-Length: 677 [20:03:15]Content-Type: application/json [20:03:15] [20:03:15]POST finish read [20:03:15]Found Content-Length = 677 [20:03:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [20:03:15]execute_script... [20:03: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)673409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [20:03:15]POST & json_proto [20:03:15]process_json_proto [20:03:15]json parsed OK: [20:03:15]protocol is kg_v1.0 [20:03:15]action value=close_receipt [20:03:15]process_action close_receipt [20:03:15]cmd_close_receipt [20:03:15]MH_GetDate [20:03:15]Write to MH i2c: F0 00 00 65 03 57 [20:03:15]Write i2c OK [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: F0 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: F0 09 00 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: F0 09 00 65 03 00 04 8B 74 66 BD 8F 7C 64 F5 [20:03:15]GetLastDocTimeStamp 1718913664 [20:03:15]current date 1718913796 [20:03:15]FM_GetShiftState [20:03:15]SAM_PROTO_GetShiftState [20:03:15]wFMCommunicate request_size=4 [20:03:15]MH_SAM_APDU [20:03:15]CAPDU: 80 13 01 00 [20:03:15]Write to MH i2c: E2 08 00 66 03 80 13 01 00 00 00 00 00 E6 [20:03:15]Write i2c OK [20:03:15]MH_I2C_Read... [20:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:15]Read from MH i2c: E2 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: E2 0E 00 [20:03:15]MH_I2C_Read... [20:03:15]Read from MH i2c: E2 0E 00 66 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 35 [20:03:15]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:03:15]wFMCommunicate OK [20:03:15]SAM_PROTO_GetShiftState done [20:03:15]FM_GetShiftState done [20:03:15]opened in 1718843124 [20:03:15]opened+sec_in_day 1718929524 [20:03:15]quantity*price = 60025 [20:03:15]sum+1 = 60027 [20:03:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 215 20.06.2024 20:03 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104030 ФПД: 81956853792097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T200316&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104030&fm=81956853792097&tin=02508201610067®Number=0000000000092785&sum=60000 [20:03:16]StoreToDocumentArchive [20:03:16]shift 354 fd 104030 [20:03:16]save to /storage/0354/doc_00104030 [20:03:16]save last doc name /storage/0354/doc_00104030 to /storage/kkm_last_doc_name [20:03:16]save OK [20:03:16]Clear old archive folders... [20:03:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:16]tlvbuf is B6E858A0 [20:03:16]SAM_PROTO_ClearQueue [20:03:16]wFMCommunicate request_size=4 [20:03:16]MH_SAM_APDU [20:03:16]CAPDU: 80 09 00 00 [20:03:16]Write to MH i2c: E2 08 00 73 03 80 09 00 00 00 00 00 00 E8 [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:16]Read from MH i2c: E2 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 03 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [20:03:16]RAPDU: 90 00 [20:03:16]wFMCommunicate OK [20:03:16]SAM_PROTO_ClearQueue done [20:03:16]KKMCreateOFDPacket [20:03:16]OFDProtocolAddRootSTLVToBuf [20:03:16]FM_MakeSignedData [20:03:16]FM_MakeSignedData [20:03:16]SAM_PROTO_SignData [20:03:16]wFMCommunicate request_size=4 [20:03:16]MH_SAM_APDU [20:03:16]CAPDU: 80 0D 01 02 [20:03:16]Write to MH i2c: E2 08 00 74 03 80 0D 01 02 00 00 00 00 F0 [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:16]Read from MH i2c: E2 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 03 00 [20:03:16]MH_I2C_Read... [20:03:16]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [20:03:16]RAPDU: 90 00 [20:03:16]wFMCommunicate OK [20:03:16]wFMCommunicate request_size=255 [20:03:16]MH_SAM_APDU [20:03:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 04 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 96 01 00 35 04 06 00 4A [20:03:16]Write to MH i2c: E2 02 01 75 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 04 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 96 01 00 35 04 06 00 4A 00 00 69 [20:03:16]Write i2c OK [20:03:16]MH_I2C_Read... [20:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:17]Read from MH i2c: E2 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: E2 03 00 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [20:03:17]RAPDU: 90 00 [20:03:17]wFMCommunicate OK [20:03:17]wFMCommunicate request_size=10 [20:03:17]MH_SAM_APDU [20:03:17]CAPDU: 80 0D 02 02 05 8A 11 28 3D 61 [20:03:17]Write to MH i2c: E2 0D 00 76 03 80 0D 02 02 05 00 8A 11 28 3D 61 00 00 5E [20:03:17]Write i2c OK [20:03:17]MH_I2C_Read... [20:03:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:17]Read from MH i2c: E2 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: E2 03 00 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [20:03:17]RAPDU: 90 00 [20:03:17]wFMCommunicate OK [20:03:17]wFMCommunicate request_size=4 [20:03:17]MH_SAM_APDU [20:03:17]CAPDU: 80 0D 03 02 [20:03:17]Write to MH i2c: E2 08 00 77 03 80 0D 03 02 00 00 00 00 F5 [20:03:17]Write i2c OK [20:03:17]MH_I2C_Read... [20:03:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:17]Read from MH i2c: E2 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: E2 0B 00 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: E2 0B 00 77 03 00 82 8F 41 D9 67 B6 EE A8 90 00 D4 [20:03:17]RAPDU: 82 8F 41 D9 67 B6 EE A8 90 00 [20:03:17]wFMCommunicate OK [20:03:17]SAM_PROTO_SignData done [20:03:17]FM_MakeSignedData done [20:03:17]CreateOFDProtocolMessage [20:03:17]wFMCommunicate request_size=4 [20:03:17]MH_SAM_APDU [20:03:17]CAPDU: 80 11 00 00 [20:03:17]Write to MH i2c: E2 08 00 78 03 80 11 00 00 00 00 00 00 F5 [20:03:17]Write i2c OK [20:03:17]MH_I2C_Read... [20:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:17]Read from MH i2c: E2 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: E2 17 00 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: E2 17 00 78 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 48 [20:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:03:17]wFMCommunicate OK [20:03:17]CreateOFDProtocolMessage done [20:03:17]OFDSenderStorePacket 104030 [20:03:17]StoreOFDPacket docnum=104030 [20:03:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9A 12 07 01 C5 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 04 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 96 01 00 35 04 06 00 4A 8A 11 28 3D 61 82 8F 41 D9 67 B6 EE A8 [20:03:17]CheckFolder [20:03:17]dirname=/storage/ofd_packets [20:03:17]CheckFolder done [20:03:17]ProducePacketName [20:03:17]name=ofd_packets/00104030 [20:03:17]NVStorageSaveData ofd_packets/00104030 [20:03:17]File name is /storage/ofd_packets/00104030 [20:03:17]Write 301 bytes [20:03:17]NVStorageSaveData done [20:03:17]OFDSenderStorePacket done [20:03:17]KKMCreateOFDPacket done [20:03:17]NVStorageSaveData kkm_last_timestamp [20:03:17]File name is /storage/kkm_last_timestamp [20:03:17]Write 4 bytes [20:03:17]NVStorageSaveData done [20:03:17]ExternCall_PrintAddStr [20:03:17]wPrintStart [20:03:17]Write to MH i2c: 01 00 00 79 03 7C [20:03:17]Write i2c OK [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: 01 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: 01 07 00 [20:03:17]MH_I2C_Read... [20:03:17]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 FF 0F 91 [20:03:17]RasterBufferAndPrint [20:03:17]line Счет N : (1)673409 [20:03:17]line ИНН: 02508201610067 [20:03:17]line Контрольно-Кассовый Чек [20:03:17]line ПРОДАЖА [20:03:17]line ТРК (МРК, ГНК) : 32 [20:03:17]line Товар: 2710124130 [20:03:17]line Аи-92-К-5 [20:03:17]line 9.040 * 66.40 [20:03:17]line = 600.26 [20:03:17]line НДС 12% НСП 1% [20:03:17]line > о реализуемом товаре [20:03:17]line ОКРУГЛЕНИЕ: -0.26 [20:03:17]line ИТОГО: 600.00 [20:03:17]line Внесено: 600.00 [20:03:17]line СДАЧА: 0.00 [20:03:17]line НСП 1% : 5.31 [20:03:17]line НДС 12% : 63.74 [20:03:17]line Наличными: 600.00 [20:03:17]line Безнал.: 0.00 [20:03:17]line Место: АЗС № 120 "Партнер Нефть" [20:03:17]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:03:17]line СНО: Общий режим [20:03:17]line Чек 215 20.06.2024 20:03 [20:03:17]line Смена: 354 ФФД: 1.0 [20:03:17]line ЗНМ: 0300000164 [20:03:17]line РНМ: 0000000000092785 [20:03:17]line Версия ККМ: 001 [20:03:17]line ФМ: 0000000000875093 [20:03:17]line ФД: 104030 [20:03:17]line ФПД: 81956853792097 [20:03:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T200316&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104030&fm=81956853792097&tin=02508201610067®Number=0000000000092785&sum=60000 [20:03:17]OFD Sender: Processing packet 104030 [packets to send 17, broken 16] [20:03:17]ProducePacketName [20:03:17]name=ofd_packets/00104030 [20:03:17]OFD Sender: To server: pG, [20:03:17]CommunicateWithHost lk.salyk.kg:30040 [20:03:17]ConnectInit lk.salyk.kg [20:03:17]written 0, free lines is 4095 [20:03:17]Connected sock=10 [20:03:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 9A 12 07 01 C5 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 04 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 96 01 00 35 04 06 00 4A 8A 11 28 3D 61 82 8F 41 D9 67 B6 EE A8 [20:03:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 85 CE 47 00 15 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5E 96 01 00 F4 03 04 00 88 31 74 66 B6 04 01 00 00 83 DB 57 C2 0D A5 0C 36 [20:03:18]CommunicateWithHost err = 0 [20:03:18]CheckOFDResponse [20:03:18]1017 (14) - 77093643461234 [20:03:18]1041 (16) - 0000000000875093 [20:03:18]1040 (4) - 104030 [20:03:18]1012 (4) - 20.06.2024 13:41 [20:03:18]1206 (1) - 0 [20:03:18]OFD Sender: Remove packet 104030 [20:03:18]ProducePacketName [20:03:18]name=ofd_packets/00104030 [20:03:18]NVStorageDeleteData [20:03:18]Write to MH i2c: 01 00 00 A4 03 A7 [20:03:18]Write i2c OK [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: 01 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: 01 07 00 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 EB 0C A5 [20:03:18]RasterBufferAndPrint [20:03:18]line [20:03:18]line [20:03:18]line [20:03:18]line [20:03:18]line [20:03:18]written 0, free lines is 3310 [20:03:18]MH_Cut [20:03:18]Write to MH i2c: D1 01 00 AB 03 01 80 [20:03:18]Write i2c OK [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: D1 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: D1 01 00 [20:03:18]MH_I2C_Read... [20:03:18]Read from MH i2c: D1 01 00 AB 03 00 7F [20:03:18]Write to MH i2c: 01 00 00 AC 03 AF [20:03:18]Write i2c OK [20:03:18]MH_I2C_Read... [20:03:18]OFD Sender: No OFD packet to send [20:03:18]*** Cut start [20:03:18]*** Partial cut [20:03:18]*** CUTSNS_PIN = 1 [20:03:18]*** CUTSNS_PIN = 0 [20:03:19]*** Brake cut motor [20:03:19]Read from MH i2c: 01 [20:03:19]MH_I2C_Read... [20:03:19]*** Stop cut motor [20:03:19]*** Cut end [20:03:19]Read from MH i2c: 01 07 00 [20:03:19]MH_I2C_Read... [20:03:19]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 FF 0F C4 [20:03:19]process_action close_receipt done [20:03:19]requested_data is exist [20:03:19]produce_requested_data [20:03:19]requested_item fm.sn is exist - process it [20:03:19]wFMCommunicate request_size=4 [20:03:19]MH_SAM_APDU [20:03:19]CAPDU: 80 11 00 00 [20:03:19]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [20:03:19]Write i2c OK [20:03:19]MH_I2C_Read... [20:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:19]Read from MH i2c: E2 [20:03:19]MH_I2C_Read... [20:03:19]Read from MH i2c: E2 17 00 [20:03:19]MH_I2C_Read... [20:03:19]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7D [20:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:03:19]wFMCommunicate OK [20:03:19]requested_item fd.num is exist - process it [20:03:19]SAM_PROTO_GetFieldsCounters [20:03:19]wFMCommunicate request_size=4 [20:03:19]MH_SAM_APDU [20:03:19]CAPDU: 80 13 00 00 [20:03:19]Write to MH i2c: E2 08 00 AE 03 80 13 00 00 00 00 00 00 2D [20:03:19]Write i2c OK [20:03:19]MH_I2C_Read... [20:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:19]Read from MH i2c: E2 [20:03:19]MH_I2C_Read... [20:03:19]Read from MH i2c: E2 62 00 [20:03:19]MH_I2C_Read... [20:03:19]Read from MH i2c: E2 62 00 AE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [20:03:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:03:19]wFMCommunicate OK [20:03:19]SAM_PROTO_GetFieldsCounters done [20:03:19]requested_item shift.num is exist - process it [20:03:19]requested_item shift.opened is exist - process it [20:03:19]req_shift_opened [20:03:19]FM_GetShiftState [20:03:19]SAM_PROTO_GetShiftState [20:03:19]wFMCommunicate request_size=4 [20:03:19]MH_SAM_APDU [20:03:19]CAPDU: 80 13 01 00 [20:03:19]Write to MH i2c: E2 08 00 AF 03 80 13 01 00 00 00 00 00 2F [20:03:19]Write i2c OK [20:03:19]MH_I2C_Read... [20:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:19]Read from MH i2c: E2 [20:03:19]MH_I2C_Read... [20:03:19]Read from MH i2c: E2 0E 00 [20:03:19]MH_I2C_Read... [20:03:19]Read from MH i2c: E2 0E 00 AF 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 7E [20:03:19]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:03:19]wFMCommunicate OK [20:03:19]SAM_PROTO_GetShiftState done [20:03:19]FM_GetShiftState done [20:03:19]req_shift_opened done [20:03:19]requested_item shift.open_date is exist - process it [20:03:19]req_shift_open_date [20:03:19]req_shift_open_date done [20:03:19]produce_requested_data done [20:03:19]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104030,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:03:19]process_action_free close_receipt [20:03:19]json_value_free [20:03:19]json_value_free done [20:03:19]process_json_proto returns [20:03:19]Send response to host [20:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104030,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:03:19]free response buf [20:03:19]execute_script done [20:03:19]execute_script returns [20:03:19]free content buf [20:03:19]Sock 9.Close socket [20:03:19]Sock 9.Thread stoped [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:26]accept exits with 7 [20:04:26]New connection [20:04:26]New thread 3066563940 created [20:04:26]Thread 3066707300 joined [20:04:26]Waiting for new connection... [20:04:26] Sock 7.Parse request [20:04:26]Sock 7.Check first char [20:04:26]Sock 7.First char is OK [20:04:26]request: POST /json_proto HTTP/1.0 [20:04:26]Method: POST [20:04:26]URL: /json_proto [20:04:26]Method is POST - this is cgi request [20:04:26]url: /json_proto [20:04:26]query_string will be loaded in cgi processing [20:04:26]execute_cgi json_proto POST (null) [20:04:26]execute_cgi path=json_proto method=POST [20:04:26]POST find Content-Length [20:04:26]Host: 172.17.38.133:8080 [20:04:26]Content-Length: 1205 [20:04:26]Content-Type: application/json [20:04:26] [20:04:26]POST finish read [20:04:26]Found Content-Length = 1205 [20:04:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673410\u000A20.06.2024 19:41\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 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3888049;3888048\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:26]execute_script... [20:04:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673410\u000A20.06.2024 19:41\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 66.40\u000A\u0418\u0422\u041E\u0413: 1328.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\u000A3888049;3888048\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:26]POST & json_proto [20:04:26]process_json_proto [20:04:26]json parsed OK: [20:04:26]protocol is kg_v1.0 [20:04:26]action value=print_text [20:04:26]process_action print_text [20:04:26]cmd_print_text [20:04:26]ExternCall_PrintAddStr [20:04:26]wPrintStart [20:04:26]Write to MH i2c: 01 00 00 B0 03 B3 [20:04:26]Write i2c OK [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 07 00 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 07 00 B0 03 00 00 00 00 00 FF 0F C8 [20:04:26]RasterBufferAndPrint [20:04:26]line *****ТОВАРНЫЙ ЧЕК***** [20:04:26]line АЗС 120 [20:04:26]line Партнер нефть [20:04:26]line 02508201610067 [20:04:26]line Кассир : Дуйшенбиев А. [20:04:26]line Счет N : (1)673410 [20:04:26]line 20.06.2024 19:41 [20:04:26]line ПРОДАЖА [20:04:26]line ТРК (МРК, ГНК): 42 [20:04:26]line Вид ГСМ : 2710124130 [20:04:26]line Аи-92-К-5 [20:04:26]line 20.000 x 66.40 [20:04:26]line ИТОГ: 1328.00 [20:04:26]line Тип оплаты: Талоны: Партнер нефть [20:04:26]line 3888049;3888048 [20:04:26]line ______________________ [20:04:26]line (подпись) [20:04:26]written 0, free lines is 4095 [20:04:26]Write to MH i2c: 01 00 00 C4 03 C7 [20:04:26]Write i2c OK [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 07 00 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 18 0E F4 [20:04:26]RasterBufferAndPrint [20:04:26]line [20:04:26]line [20:04:26]line [20:04:26]line [20:04:26]line [20:04:26]written 0, free lines is 3609 [20:04:26]MH_Cut [20:04:26]Write to MH i2c: D1 01 00 CB 03 01 A0 [20:04:26]Write i2c OK [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: D1 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: D1 01 00 [20:04:26]MH_I2C_Read... [20:04:26]Read from MH i2c: D1 01 00 CB 03 00 9F [20:04:26]Write to MH i2c: 01 00 00 CC 03 CF [20:04:26]Write i2c OK [20:04:26]MH_I2C_Read... [20:04:27]*** Cut start [20:04:27]*** Partial cut [20:04:27]*** CUTSNS_PIN = 1 [20:04:27]*** CUTSNS_PIN = 0 [20:04:27]*** Brake cut motor [20:04:27]Read from MH i2c: 01 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: 01 07 00 [20:04:27]MH_I2C_Read... [20:04:27]*** Stop cut motor [20:04:27]*** Cut end [20:04:27]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 FF 0F E4 [20:04:27]process_action print_text done [20:04:27]requested_data is exist [20:04:27]produce_requested_data [20:04:27]requested_item fm.sn is exist - process it [20:04:27]wFMCommunicate request_size=4 [20:04:27]MH_SAM_APDU [20:04:27]CAPDU: 80 11 00 00 [20:04:27]Write to MH i2c: E2 08 00 CD 03 80 11 00 00 00 00 00 00 4A [20:04:27]Write i2c OK [20:04:27]MH_I2C_Read... [20:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:27]Read from MH i2c: E2 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: E2 17 00 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: E2 17 00 CD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9D [20:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:04:27]wFMCommunicate OK [20:04:27]requested_item fd.num is exist - process it [20:04:27]SAM_PROTO_GetFieldsCounters [20:04:27]wFMCommunicate request_size=4 [20:04:27]MH_SAM_APDU [20:04:27]CAPDU: 80 13 00 00 [20:04:27]Write to MH i2c: E2 08 00 CE 03 80 13 00 00 00 00 00 00 4D [20:04:27]Write i2c OK [20:04:27]MH_I2C_Read... [20:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:27]Read from MH i2c: E2 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: E2 62 00 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: E2 62 00 CE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [20: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:27]wFMCommunicate OK [20:04:27]SAM_PROTO_GetFieldsCounters done [20:04:27]requested_item shift.num is exist - process it [20:04:27]requested_item shift.opened is exist - process it [20:04:27]req_shift_opened [20:04:27]FM_GetShiftState [20:04:27]SAM_PROTO_GetShiftState [20:04:27]wFMCommunicate request_size=4 [20:04:27]MH_SAM_APDU [20:04:27]CAPDU: 80 13 01 00 [20:04:27]Write to MH i2c: E2 08 00 CF 03 80 13 01 00 00 00 00 00 4F [20:04:27]Write i2c OK [20:04:27]MH_I2C_Read... [20:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:27]Read from MH i2c: E2 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: E2 0E 00 [20:04:27]MH_I2C_Read... [20:04:27]Read from MH i2c: E2 0E 00 CF 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9E [20:04:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:04:27]wFMCommunicate OK [20:04:27]SAM_PROTO_GetShiftState done [20:04:27]FM_GetShiftState done [20:04:27]req_shift_opened done [20:04:27]requested_item shift.open_date is exist - process it [20:04:27]req_shift_open_date [20:04:27]req_shift_open_date done [20:04:27]produce_requested_data done [20:04:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104030,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:04:27]process_action_free print_text [20:04:27]json_value_free [20:04:27]json_value_free done [20:04:27]process_json_proto returns [20:04:27]Send response to host [20:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104030,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:04:27]free response buf [20:04:27]execute_script done [20:04:27]execute_script returns [20:04:27]free content buf [20:04:27]Sock 7.Close socket [20:04:27]Sock 7.Thread stoped [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:47]accept exits with 10 [20:04:47]New connection [20:04:47]New thread 3066707300 created [20:04:47]Thread 3066563940 joined [20:04:47]Waiting for new connection... [20:04:47] Sock 10.Parse request [20:04:47]Sock 10.Check first char [20:04:47]Sock 10.First char is OK [20:04:47]request: POST /json_proto HTTP/1.0 [20:04:47]Method: POST [20:04:47]URL: /json_proto [20:04:47]Method is POST - this is cgi request [20:04:47]url: /json_proto [20:04:47]query_string will be loaded in cgi processing [20:04:47]execute_cgi json_proto POST (null) [20:04:47]execute_cgi path=json_proto method=POST [20:04:47]POST find Content-Length [20:04:47]Host: 172.17.38.133:8080 [20:04:47]Content-Length: 687 [20:04:47]Content-Type: application/json [20:04:47] [20:04:47]POST finish read [20:04:47]Found Content-Length = 687 [20:04:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 30.180, "sum" : 2200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:47]execute_script... [20:04:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 30.180, "sum" : 2200.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:47]POST & json_proto [20:04:47]process_json_proto [20:04:47]json parsed OK: [20:04:47]protocol is kg_v1.0 [20:04:47]action value=close_receipt [20:04:47]process_action close_receipt [20:04:47]cmd_close_receipt [20:04:47]MH_GetDate [20:04:47]Write to MH i2c: F0 00 00 D0 03 C2 [20:04:47]Write i2c OK [20:04:47]MH_I2C_Read... [20:04:47]Read from MH i2c: F0 [20:04:47]MH_I2C_Read... [20:04:47]Read from MH i2c: F0 09 00 [20:04:47]MH_I2C_Read... [20:04:47]Read from MH i2c: F0 09 00 D0 03 00 5F 8B 74 66 BD 8F 7C 64 BB [20:04:47]GetLastDocTimeStamp 1718913796 [20:04:47]current date 1718913887 [20:04:47]FM_GetShiftState [20:04:47]SAM_PROTO_GetShiftState [20:04:47]wFMCommunicate request_size=4 [20:04:47]MH_SAM_APDU [20:04:47]CAPDU: 80 13 01 00 [20:04:47]Write to MH i2c: E2 08 00 D1 03 80 13 01 00 00 00 00 00 51 [20:04:47]Write i2c OK [20:04:47]MH_I2C_Read... [20:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:47]Read from MH i2c: E2 [20:04:47]MH_I2C_Read... [20:04:47]Read from MH i2c: E2 0E 00 [20:04:47]MH_I2C_Read... [20:04:47]Read from MH i2c: E2 0E 00 D1 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A0 [20:04:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:04:47]wFMCommunicate OK [20:04:47]SAM_PROTO_GetShiftState done [20:04:47]FM_GetShiftState done [20:04:47]opened in 1718843124 [20:04:47]opened+sec_in_day 1718929524 [20:04:47]quantity*price = 220012 [20:04:47]sum+1 = 220013 [20:04:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 216 20.06.2024 20:04 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104031 ФПД: 117251099013608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T200448&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104031&fm=117251099013608&tin=02508201610067®Number=0000000000092785&sum=220000 [20:04:48]StoreToDocumentArchive [20:04:48]shift 354 fd 104031 [20:04:48]save to /storage/0354/doc_00104031 [20:04:48]save last doc name /storage/0354/doc_00104031 to /storage/kkm_last_doc_name [20:04:48]save OK [20:04:48]Clear old archive folders... [20:04:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:04:48]tlvbuf is B6D6C740 [20:04:48]SAM_PROTO_ClearQueue [20:04:48]wFMCommunicate request_size=4 [20:04:48]MH_SAM_APDU [20:04:48]CAPDU: 80 09 00 00 [20:04:48]Write to MH i2c: E2 08 00 DE 03 80 09 00 00 00 00 00 00 53 [20:04:48]Write i2c OK [20:04:48]MH_I2C_Read... [20:04:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:48]Read from MH i2c: E2 [20:04:48]MH_I2C_Read... [20:04:48]Read from MH i2c: E2 03 00 [20:04:48]MH_I2C_Read... [20:04:48]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [20:04:48]RAPDU: 90 00 [20:04:48]wFMCommunicate OK [20:04:48]SAM_PROTO_ClearQueue done [20:04:48]KKMCreateOFDPacket [20:04:48]OFDProtocolAddRootSTLVToBuf [20:04:48]FM_MakeSignedData [20:04:48]FM_MakeSignedData [20:04:48]SAM_PROTO_SignData [20:04:48]wFMCommunicate request_size=4 [20:04:48]MH_SAM_APDU [20:04:48]CAPDU: 80 0D 01 02 [20:04:48]Write to MH i2c: E2 08 00 DF 03 80 0D 01 02 00 00 00 00 5B [20:04:48]Write i2c OK [20:04:48]MH_I2C_Read... [20:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:48]Read from MH i2c: E2 [20:04:48]MH_I2C_Read... [20:04:48]Read from MH i2c: E2 03 00 [20:04:48]MH_I2C_Read... [20:04:48]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [20:04:48]RAPDU: 90 00 [20:04:48]wFMCommunicate OK [20:04:48]wFMCommunicate request_size=255 [20:04:48]MH_SAM_APDU [20:04:48]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 60 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 96 01 00 35 04 06 00 [20:04:48]Write to MH i2c: E2 02 01 E0 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 60 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 96 01 00 35 04 06 00 00 00 12 [20:04:48]Write i2c OK [20:04:48]MH_I2C_Read... [20:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:49]Read from MH i2c: E2 [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: E2 03 00 [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [20:04:49]RAPDU: 90 00 [20:04:49]wFMCommunicate OK [20:04:49]wFMCommunicate request_size=11 [20:04:49]MH_SAM_APDU [20:04:49]CAPDU: 80 0D 02 02 06 6A A3 A6 1B 31 E8 [20:04:49]Write to MH i2c: E2 0E 00 E1 03 80 0D 02 02 06 00 6A A3 A6 1B 31 E8 00 00 51 [20:04:49]Write i2c OK [20:04:49]MH_I2C_Read... [20:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:49]Read from MH i2c: E2 [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: E2 03 00 [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [20:04:49]RAPDU: 90 00 [20:04:49]wFMCommunicate OK [20:04:49]wFMCommunicate request_size=4 [20:04:49]MH_SAM_APDU [20:04:49]CAPDU: 80 0D 03 02 [20:04:49]Write to MH i2c: E2 08 00 E2 03 80 0D 03 02 00 00 00 00 60 [20:04:49]Write i2c OK [20:04:49]MH_I2C_Read... [20:04:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:49]Read from MH i2c: E2 [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: E2 0B 00 [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: E2 0B 00 E2 03 00 8E E2 50 F8 71 86 A8 53 90 00 0B [20:04:49]RAPDU: 8E E2 50 F8 71 86 A8 53 90 00 [20:04:49]wFMCommunicate OK [20:04:49]SAM_PROTO_SignData done [20:04:49]FM_MakeSignedData done [20:04:49]CreateOFDProtocolMessage [20:04:49]wFMCommunicate request_size=4 [20:04:49]MH_SAM_APDU [20:04:49]CAPDU: 80 11 00 00 [20:04:49]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [20:04:49]Write i2c OK [20:04:49]MH_I2C_Read... [20:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:49]Read from MH i2c: E2 [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: E2 17 00 [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [20:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:04:49]wFMCommunicate OK [20:04:49]CreateOFDProtocolMessage done [20:04:49]OFDSenderStorePacket 104031 [20:04:49]StoreOFDPacket docnum=104031 [20:04:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DD 31 08 01 C2 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 60 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 96 01 00 35 04 06 00 6A A3 A6 1B 31 E8 8E E2 50 F8 71 86 A8 53 [20:04:49]CheckFolder [20:04:49]dirname=/storage/ofd_packets [20:04:49]CheckFolder done [20:04:49]ProducePacketName [20:04:49]name=ofd_packets/00104031 [20:04:49]NVStorageSaveData ofd_packets/00104031 [20:04:49]File name is /storage/ofd_packets/00104031 [20:04:49]Write 302 bytes [20:04:49]NVStorageSaveData done [20:04:49]OFDSenderStorePacket done [20:04:49]KKMCreateOFDPacket done [20:04:49]NVStorageSaveData kkm_last_timestamp [20:04:49]File name is /storage/kkm_last_timestamp [20:04:49]Write 4 bytes [20:04:49]NVStorageSaveData done [20:04:49]ExternCall_PrintAddStr [20:04:49]wPrintStart [20:04:49]Write to MH i2c: 01 00 00 E4 03 E7 [20:04:49]Write i2c OK [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: 01 [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: 01 07 00 [20:04:49]MH_I2C_Read... [20:04:49]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 FF 0F FC [20:04:49]RasterBufferAndPrint [20:04:49]line Счет N : (1)673411 [20:04:49]line ИНН: 02508201610067 [20:04:49]line Контрольно-Кассовый Чек [20:04:49]line ПРОДАЖА [20:04:49]line ТРК (МРК, ГНК) : 21 [20:04:49]line Товар: 2710194210 [20:04:49]line ДТ(л)-К-5 [20:04:49]line 30.180 * 72.90 [20:04:49]line = 2200.12 [20:04:49]line НДС 12% НСП 1% [20:04:49]line > о реализуемом товаре [20:04:49]line ОКРУГЛЕНИЕ: -0.12 [20:04:49]line ИТОГО: 2200.00 [20:04:49]line Внесено: 2200.00 [20:04:49]line СДАЧА: 0.00 [20:04:49]line НСП 1% : 19.47 [20:04:49]line НДС 12% : 233.64 [20:04:49]line Наличными: 2200.00 [20:04:49]line Безнал.: 0.00 [20:04:49]line Место: АЗС № 120 "Партнер Нефть" [20:04:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:04:49]line СНО: Общий режим [20:04:49]line Чек 216 20.06.2024 20:04 [20:04:49]line Смена: 354 ФФД: 1.0 [20:04:49]line ЗНМ: 0300000164 [20:04:49]line РНМ: 0000000000092785 [20:04:49]line Версия ККМ: 001 [20:04:49]line ФМ: 0000000000875093 [20:04:49]line ФД: 104031 [20:04:49]line ФПД: 117251099013608 [20:04:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T200448&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104031&fm=117251099013608&tin=02508201610067®Number=0000000000092785&sum=220000 [20:04:49]OFD Sender: Processing packet 104031 [packets to send 17, broken 16] [20:04:49]ProducePacketName [20:04:49]name=ofd_packets/00104031 [20:04:49]OFD Sender: To server: pG, [20:04:49]CommunicateWithHost lk.salyk.kg:30040 [20:04:49]ConnectInit lk.salyk.kg [20:04:49]written 0, free lines is 4095 [20:04:49]Connected sock=7 [20:04:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 DD 31 08 01 C2 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E4 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 60 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 96 01 00 35 04 06 00 6A A3 A6 1B 31 E8 8E E2 50 F8 71 86 A8 53 [20:04:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 40 4A 47 00 CE 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 5F 96 01 00 F4 03 04 00 E4 31 74 66 B6 04 01 00 00 AD 53 D6 DB B6 EA D7 66 [20:04:50]CommunicateWithHost err = 0 [20:04:50]CheckOFDResponse [20:04:50]1017 (14) - 77093643461234 [20:04:50]1041 (16) - 0000000000875093 [20:04:50]1040 (4) - 104031 [20:04:50]1012 (4) - 20.06.2024 13:43 [20:04:50]1206 (1) - 0 [20:04:50]OFD Sender: Remove packet 104031 [20:04:50]ProducePacketName [20:04:50]name=ofd_packets/00104031 [20:04:50]NVStorageDeleteData [20:04:50]Write to MH i2c: 01 00 00 0F 04 13 [20:04:50]Write i2c OK [20:04:50]MH_I2C_Read... [20:04:50]Read from MH i2c: 01 [20:04:50]MH_I2C_Read... [20:04:50]Read from MH i2c: 01 07 00 [20:04:50]MH_I2C_Read... [20:04:50]Read from MH i2c: 01 07 00 0F 04 00 00 00 00 00 03 0D 2A [20:04:50]RasterBufferAndPrint [20:04:50]line [20:04:50]line [20:04:50]line [20:04:50]line [20:04:50]line [20:04:50]written 0, free lines is 3337 [20:04:50]MH_Cut [20:04:50]Write to MH i2c: D1 01 00 16 04 01 EC [20:04:50]Write i2c OK [20:04:50]MH_I2C_Read... [20:04:50]Read from MH i2c: D1 [20:04:50]MH_I2C_Read... [20:04:50]Read from MH i2c: D1 01 00 [20:04:50]MH_I2C_Read... [20:04:50]Read from MH i2c: D1 01 00 16 04 00 EB [20:04:50]Write to MH i2c: 01 00 00 17 04 1B [20:04:50]Write i2c OK [20:04:50]MH_I2C_Read... [20:04:50]OFD Sender: No OFD packet to send [20:04:50]*** Cut start [20:04:50]*** Partial cut [20:04:50]*** CUTSNS_PIN = 1 [20:04:50]*** CUTSNS_PIN = 0 [20:04:51]*** Brake cut motor [20:04:51]Read from MH i2c: 01 [20:04:51]MH_I2C_Read... [20:04:51]*** Stop cut motor [20:04:51]*** Cut end [20:04:51]Read from MH i2c: 01 07 00 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: 01 07 00 17 04 00 00 00 00 00 FF 0F 30 [20:04:51]process_action close_receipt done [20:04:51]requested_data is exist [20:04:51]produce_requested_data [20:04:51]requested_item fm.sn is exist - process it [20:04:51]wFMCommunicate request_size=4 [20:04:51]MH_SAM_APDU [20:04:51]CAPDU: 80 11 00 00 [20:04:51]Write to MH i2c: E2 08 00 18 04 80 11 00 00 00 00 00 00 96 [20:04:51]Write i2c OK [20:04:51]MH_I2C_Read... [20:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:51]Read from MH i2c: E2 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: E2 17 00 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: E2 17 00 18 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E9 [20:04:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:04:51]wFMCommunicate OK [20:04:51]requested_item fd.num is exist - process it [20:04:51]SAM_PROTO_GetFieldsCounters [20:04:51]wFMCommunicate request_size=4 [20:04:51]MH_SAM_APDU [20:04:51]CAPDU: 80 13 00 00 [20:04:51]Write to MH i2c: E2 08 00 19 04 80 13 00 00 00 00 00 00 99 [20:04:51]Write i2c OK [20:04:51]MH_I2C_Read... [20:04:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:51]Read from MH i2c: E2 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: E2 62 00 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: E2 62 00 19 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [20:04:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 5F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:51]wFMCommunicate OK [20:04:51]SAM_PROTO_GetFieldsCounters done [20:04:51]requested_item shift.num is exist - process it [20:04:51]requested_item shift.opened is exist - process it [20:04:51]req_shift_opened [20:04:51]FM_GetShiftState [20:04:51]SAM_PROTO_GetShiftState [20:04:51]wFMCommunicate request_size=4 [20:04:51]MH_SAM_APDU [20:04:51]CAPDU: 80 13 01 00 [20:04:51]Write to MH i2c: E2 08 00 1A 04 80 13 01 00 00 00 00 00 9B [20:04:51]Write i2c OK [20:04:51]MH_I2C_Read... [20:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:51]Read from MH i2c: E2 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: E2 0E 00 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: E2 0E 00 1A 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EA [20:04:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:04:51]wFMCommunicate OK [20:04:51]SAM_PROTO_GetShiftState done [20:04:51]FM_GetShiftState done [20:04:51]req_shift_opened done [20:04:51]requested_item shift.open_date is exist - process it [20:04:51]req_shift_open_date [20:04:51]req_shift_open_date done [20:04:51]produce_requested_data done [20:04:51]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104031,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:04:51]process_action_free close_receipt [20:04:51]json_value_free [20:04:51]json_value_free done [20:04:51]process_json_proto returns [20:04:51]Send response to host [20:04:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104031,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:04:51]free response buf [20:04:51]execute_script done [20:04:51]execute_script returns [20:04:51]free content buf [20:04:51]Sock 10.Close socket [20:04:51]Sock 10.Thread stoped [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:49]accept exits with 9 [20:06:49]New connection [20:06:49]New thread 3066563940 created [20:06:49]Thread 3066707300 joined [20:06:49]Waiting for new connection... [20:06:49] Sock 9.Parse request [20:06:49]Sock 9.Check first char [20:06:49]Sock 9.First char is OK [20:06:49]request: POST /json_proto HTTP/1.0 [20:06:49]Method: POST [20:06:49]URL: /json_proto [20:06:49]Method is POST - this is cgi request [20:06:49]url: /json_proto [20:06:49]query_string will be loaded in cgi processing [20:06:49]execute_cgi json_proto POST (null) [20:06:49]execute_cgi path=json_proto method=POST [20:06:49]POST find Content-Length [20:06:49]Host: 172.17.38.133:8080 [20:06:49]Content-Length: 677 [20:06:49]Content-Type: application/json [20:06:49] [20:06:49]POST finish read [20:06:49]Found Content-Length = 677 [20:06:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [20:06:49]execute_script... [20:06: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)673412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [20:06:49]POST & json_proto [20:06:49]process_json_proto [20:06:49]json parsed OK: [20:06:49]protocol is kg_v1.0 [20:06:49]action value=close_receipt [20:06:49]process_action close_receipt [20:06:49]cmd_close_receipt [20:06:49]MH_GetDate [20:06:49]Write to MH i2c: F0 00 00 1B 04 0E [20:06:49]Write i2c OK [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: F0 [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: F0 09 00 [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: F0 09 00 1B 04 00 D9 8B 74 66 BD 8F 7C 64 81 [20:06:49]GetLastDocTimeStamp 1718913888 [20:06:49]current date 1718914009 [20:06:49]FM_GetShiftState [20:06:49]SAM_PROTO_GetShiftState [20:06:49]wFMCommunicate request_size=4 [20:06:49]MH_SAM_APDU [20:06:49]CAPDU: 80 13 01 00 [20:06:49]Write to MH i2c: E2 08 00 1C 04 80 13 01 00 00 00 00 00 9D [20:06:49]Write i2c OK [20:06:49]MH_I2C_Read... [20:06:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:49]Read from MH i2c: E2 [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: E2 0E 00 [20:06:49]MH_I2C_Read... [20:06:49]Read from MH i2c: E2 0E 00 1C 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EC [20:06:49]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:06:49]wFMCommunicate OK [20:06:49]SAM_PROTO_GetShiftState done [20:06:49]FM_GetShiftState done [20:06:49]opened in 1718843124 [20:06:49]opened+sec_in_day 1718929524 [20:06:49]quantity*price = 60025 [20:06:49]sum+1 = 60027 [20:06:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 217 20.06.2024 20:06 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104032 ФПД: 77348488495597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T200649&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104032&fm=77348488495597&tin=02508201610067®Number=0000000000092785&sum=60000 [20:06:50]StoreToDocumentArchive [20:06:50]shift 354 fd 104032 [20:06:50]save to /storage/0354/doc_00104032 [20:06:50]save last doc name /storage/0354/doc_00104032 to /storage/kkm_last_doc_name [20:06:50]save OK [20:06:50]Clear old archive folders... [20:06:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:50]tlvbuf is 01482B20 [20:06:50]SAM_PROTO_ClearQueue [20:06:50]wFMCommunicate request_size=4 [20:06:50]MH_SAM_APDU [20:06:50]CAPDU: 80 09 00 00 [20:06:50]Write to MH i2c: E2 08 00 29 04 80 09 00 00 00 00 00 00 9F [20:06:50]Write i2c OK [20:06:50]MH_I2C_Read... [20:06:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:50]Read from MH i2c: E2 [20:06:50]MH_I2C_Read... [20:06:50]Read from MH i2c: E2 03 00 [20:06:50]MH_I2C_Read... [20:06:50]Read from MH i2c: E2 03 00 29 04 00 90 00 A1 [20:06:50]RAPDU: 90 00 [20:06:50]wFMCommunicate OK [20:06:50]SAM_PROTO_ClearQueue done [20:06:50]KKMCreateOFDPacket [20:06:50]OFDProtocolAddRootSTLVToBuf [20:06:50]FM_MakeSignedData [20:06:50]FM_MakeSignedData [20:06:50]SAM_PROTO_SignData [20:06:50]wFMCommunicate request_size=4 [20:06:50]MH_SAM_APDU [20:06:50]CAPDU: 80 0D 01 02 [20:06:50]Write to MH i2c: E2 08 00 2A 04 80 0D 01 02 00 00 00 00 A7 [20:06:50]Write i2c OK [20:06:50]MH_I2C_Read... [20:06:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:50]Read from MH i2c: E2 [20:06:50]MH_I2C_Read... [20:06:50]Read from MH i2c: E2 03 00 [20:06:50]MH_I2C_Read... [20:06:50]Read from MH i2c: E2 03 00 2A 04 00 90 00 A2 [20:06:50]RAPDU: 90 00 [20:06:50]wFMCommunicate OK [20:06:50]wFMCommunicate request_size=255 [20:06:50]MH_SAM_APDU [20:06:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 D9 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 96 01 00 35 04 06 00 46 [20:06:50]Write to MH i2c: E2 02 01 2B 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 D9 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 96 01 00 35 04 06 00 46 00 00 F5 [20:06:50]Write i2c OK [20:06:50]MH_I2C_Read... [20:06:50]OFD Sender: No OFD packet to send [20:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:51]Read from MH i2c: E2 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 2B 04 00 90 00 A3 [20:06:51]RAPDU: 90 00 [20:06:51]wFMCommunicate OK [20:06:51]wFMCommunicate request_size=10 [20:06:51]MH_SAM_APDU [20:06:51]CAPDU: 80 0D 02 02 05 59 19 2E 41 ED [20:06:51]Write to MH i2c: E2 0D 00 2C 04 80 0D 02 02 05 00 59 19 2E 41 ED 00 00 82 [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:51]Read from MH i2c: E2 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [20:06:51]RAPDU: 90 00 [20:06:51]wFMCommunicate OK [20:06:51]wFMCommunicate request_size=4 [20:06:51]MH_SAM_APDU [20:06:51]CAPDU: 80 0D 03 02 [20:06:51]Write to MH i2c: E2 08 00 2D 04 80 0D 03 02 00 00 00 00 AC [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:51]Read from MH i2c: E2 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 0B 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 0B 00 2D 04 00 49 62 3C CF 0B AD D3 5F 90 00 4D [20:06:51]RAPDU: 49 62 3C CF 0B AD D3 5F 90 00 [20:06:51]wFMCommunicate OK [20:06:51]SAM_PROTO_SignData done [20:06:51]FM_MakeSignedData done [20:06:51]CreateOFDProtocolMessage [20:06:51]wFMCommunicate request_size=4 [20:06:51]MH_SAM_APDU [20:06:51]CAPDU: 80 11 00 00 [20:06:51]Write to MH i2c: E2 08 00 2E 04 80 11 00 00 00 00 00 00 AC [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:51]Read from MH i2c: E2 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 17 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: E2 17 00 2E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FF [20:06:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:06:51]wFMCommunicate OK [20:06:51]CreateOFDProtocolMessage done [20:06:51]OFDSenderStorePacket 104032 [20:06:51]StoreOFDPacket docnum=104032 [20:06:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6D 58 07 01 18 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 D9 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 96 01 00 35 04 06 00 46 59 19 2E 41 ED 49 62 3C CF 0B AD D3 5F [20:06:51]CheckFolder [20:06:51]dirname=/storage/ofd_packets [20:06:51]CheckFolder done [20:06:51]ProducePacketName [20:06:51]name=ofd_packets/00104032 [20:06:51]NVStorageSaveData ofd_packets/00104032 [20:06:51]File name is /storage/ofd_packets/00104032 [20:06:51]Write 301 bytes [20:06:51]NVStorageSaveData done [20:06:51]OFDSenderStorePacket done [20:06:51]KKMCreateOFDPacket done [20:06:51]NVStorageSaveData kkm_last_timestamp [20:06:51]File name is /storage/kkm_last_timestamp [20:06:51]Write 4 bytes [20:06:51]NVStorageSaveData done [20:06:51]ExternCall_PrintAddStr [20:06:51]wPrintStart [20:06:51]Write to MH i2c: 01 00 00 2F 04 33 [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: 01 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: 01 07 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: 01 07 00 2F 04 00 00 00 00 00 FF 0F 48 [20:06:51]RasterBufferAndPrint [20:06:51]line Счет N : (1)673412 [20:06:51]line ИНН: 02508201610067 [20:06:51]line Контрольно-Кассовый Чек [20:06:51]line ПРОДАЖА [20:06:51]line ТРК (МРК, ГНК) : 42 [20:06:51]line Товар: 2710124130 [20:06:51]line Аи-92-К-5 [20:06:51]line 9.040 * 66.40 [20:06:51]line = 600.26 [20:06:51]line НДС 12% НСП 1% [20:06:51]line > о реализуемом товаре [20:06:51]line ОКРУГЛЕНИЕ: -0.26 [20:06:51]line ИТОГО: 600.00 [20:06:51]line Внесено: 600.00 [20:06:51]line СДАЧА: 0.00 [20:06:51]line НСП 1% : 5.31 [20:06:51]line НДС 12% : 63.74 [20:06:51]line Наличными: 600.00 [20:06:51]line Безнал.: 0.00 [20:06:51]line Место: АЗС № 120 "Партнер Нефть" [20:06:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:06:51]line СНО: Общий режим [20:06:51]line Чек 217 20.06.2024 20:06 [20:06:51]line Смена: 354 ФФД: 1.0 [20:06:51]line ЗНМ: 0300000164 [20:06:51]line РНМ: 0000000000092785 [20:06:51]line Версия ККМ: 001 [20:06:51]line ФМ: 0000000000875093 [20:06:51]line ФД: 104032 [20:06:51]line ФПД: 77348488495597 [20:06:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T200649&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104032&fm=77348488495597&tin=02508201610067®Number=0000000000092785&sum=60000 [20:06:51]OFD Sender: Processing packet 104032 [packets to send 17, broken 16] [20:06:51]ProducePacketName [20:06:51]name=ofd_packets/00104032 [20:06:51]OFD Sender: To server: pG, [20:06:51]CommunicateWithHost lk.salyk.kg:30040 [20:06:51]ConnectInit lk.salyk.kg [20:06:51]written 0, free lines is 4095 [20:06:51]Connected sock=10 [20:06:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6D 58 07 01 18 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 D9 8B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 96 01 00 35 04 06 00 46 59 19 2E 41 ED 49 62 3C CF 0B AD D3 5F [20:06:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 1F 2C 47 00 0B B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 60 96 01 00 F4 03 04 00 5E 32 74 66 B6 04 01 00 00 29 5E 0D 2D 29 E1 A6 96 [20:06:51]CommunicateWithHost err = 0 [20:06:51]CheckOFDResponse [20:06:51]1017 (14) - 77093643461234 [20:06:51]1041 (16) - 0000000000875093 [20:06:51]1040 (4) - 104032 [20:06:51]1012 (4) - 20.06.2024 13:45 [20:06:51]1206 (1) - 0 [20:06:51]OFD Sender: Remove packet 104032 [20:06:51]ProducePacketName [20:06:51]name=ofd_packets/00104032 [20:06:51]NVStorageDeleteData [20:06:51]Write to MH i2c: 01 00 00 5A 04 5E [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: 01 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: 01 07 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: 01 07 00 5A 04 00 00 00 00 00 DF 0C 50 [20:06:51]RasterBufferAndPrint [20:06:51]line [20:06:51]line [20:06:51]line [20:06:51]line [20:06:51]line [20:06:51]written 0, free lines is 3302 [20:06:51]MH_Cut [20:06:51]Write to MH i2c: D1 01 00 61 04 01 37 [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: D1 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: D1 01 00 [20:06:51]MH_I2C_Read... [20:06:51]Read from MH i2c: D1 01 00 61 04 00 36 [20:06:51]Write to MH i2c: 01 00 00 62 04 66 [20:06:51]Write i2c OK [20:06:51]MH_I2C_Read... [20:06:52]OFD Sender: No OFD packet to send [20:06:52]*** Cut start [20:06:52]*** Partial cut [20:06:52]*** CUTSNS_PIN = 1 [20:06:52]*** CUTSNS_PIN = 0 [20:06:52]*** Brake cut motor [20:06:53]Read from MH i2c: 01 [20:06:53]MH_I2C_Read... [20:06:53]*** Stop cut motor [20:06:53]*** Cut end [20:06:53]Read from MH i2c: 01 07 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: 01 07 00 62 04 00 00 00 00 00 FF 0F 7B [20:06:53]process_action close_receipt done [20:06:53]requested_data is exist [20:06:53]produce_requested_data [20:06:53]requested_item fm.sn is exist - process it [20:06:53]wFMCommunicate request_size=4 [20:06:53]MH_SAM_APDU [20:06:53]CAPDU: 80 11 00 00 [20:06:53]Write to MH i2c: E2 08 00 63 04 80 11 00 00 00 00 00 00 E1 [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:53]Read from MH i2c: E2 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 17 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 17 00 63 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 34 [20:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:06:53]wFMCommunicate OK [20:06:53]requested_item fd.num is exist - process it [20:06:53]SAM_PROTO_GetFieldsCounters [20:06:53]wFMCommunicate request_size=4 [20:06:53]MH_SAM_APDU [20:06:53]CAPDU: 80 13 00 00 [20:06:53]Write to MH i2c: E2 08 00 64 04 80 13 00 00 00 00 00 00 E4 [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:53]Read from MH i2c: E2 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 62 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 62 00 64 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 60 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [20:06:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 60 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:53]wFMCommunicate OK [20:06:53]SAM_PROTO_GetFieldsCounters done [20:06:53]requested_item shift.num is exist - process it [20:06:53]requested_item shift.opened is exist - process it [20:06:53]req_shift_opened [20:06:53]FM_GetShiftState [20:06:53]SAM_PROTO_GetShiftState [20:06:53]wFMCommunicate request_size=4 [20:06:53]MH_SAM_APDU [20:06:53]CAPDU: 80 13 01 00 [20:06:53]Write to MH i2c: E2 08 00 65 04 80 13 01 00 00 00 00 00 E6 [20:06:53]Write i2c OK [20:06:53]MH_I2C_Read... [20:06:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:53]Read from MH i2c: E2 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 0E 00 [20:06:53]MH_I2C_Read... [20:06:53]Read from MH i2c: E2 0E 00 65 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 35 [20:06:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:06:53]wFMCommunicate OK [20:06:53]SAM_PROTO_GetShiftState done [20:06:53]FM_GetShiftState done [20:06:53]req_shift_opened done [20:06:53]requested_item shift.open_date is exist - process it [20:06:53]req_shift_open_date [20:06:53]req_shift_open_date done [20:06:53]produce_requested_data done [20:06:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104032,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:06:53]process_action_free close_receipt [20:06:53]json_value_free [20:06:53]json_value_free done [20:06:53]process_json_proto returns [20:06:53]Send response to host [20:06:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104032,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:06:53]free response buf [20:06:53]execute_script done [20:06:53]execute_script returns [20:06:53]free content buf [20:06:53]Sock 9.Close socket [20:06:53]Sock 9.Thread stoped [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:45]accept exits with 7 [20:19:45]New connection [20:19:45]New thread 3066707300 created [20:19:45]Thread 3066563940 joined [20:19:45]Waiting for new connection... [20:19:45] Sock 7.Parse request [20:19:45]Sock 7.Check first char [20:19:45]Sock 7.First char is OK [20:19:45]request: POST /json_proto HTTP/1.0 [20:19:45]Method: POST [20:19:45]URL: /json_proto [20:19:45]Method is POST - this is cgi request [20:19:45]url: /json_proto [20:19:45]query_string will be loaded in cgi processing [20:19:45]execute_cgi json_proto POST (null) [20:19:45]execute_cgi path=json_proto method=POST [20:19:45]POST find Content-Length [20:19:45]Host: 172.17.38.133:8080 [20:19:45]Content-Length: 677 [20:19:45]Content-Type: application/json [20:19:45] [20:19:45]POST finish read [20:19:45]Found Content-Length = 677 [20:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:45]execute_script... [20:19:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:45]POST & json_proto [20:19:45]process_json_proto [20:19:45]json parsed OK: [20:19:45]protocol is kg_v1.0 [20:19:45]action value=close_receipt [20:19:45]process_action close_receipt [20:19:45]cmd_close_receipt [20:19:45]MH_GetDate [20:19:45]Write to MH i2c: F0 00 00 66 04 59 [20:19:45]Write i2c OK [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: F0 [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: F0 09 00 [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: F0 09 00 66 04 00 E2 8E 74 66 BD 8F 7C 64 D8 [20:19:45]GetLastDocTimeStamp 1718914009 [20:19:45]current date 1718914786 [20:19:45]FM_GetShiftState [20:19:45]SAM_PROTO_GetShiftState [20:19:45]wFMCommunicate request_size=4 [20:19:45]MH_SAM_APDU [20:19:45]CAPDU: 80 13 01 00 [20:19:45]Write to MH i2c: E2 08 00 67 04 80 13 01 00 00 00 00 00 E8 [20:19:45]Write i2c OK [20:19:45]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 0E 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 0E 00 67 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 37 [20:19:46]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:19:46]wFMCommunicate OK [20:19:46]SAM_PROTO_GetShiftState done [20:19:46]FM_GetShiftState done [20:19:46]opened in 1718843124 [20:19:46]opened+sec_in_day 1718929524 [20:19:46]quantity*price = 25032 [20:19:46]sum+1 = 25034 [20:19:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 218 20.06.2024 20:19 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104033 ФПД: 26883238916587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T201946&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104033&fm=26883238916587&tin=02508201610067®Number=0000000000092785&sum=25000 [20:19:47]StoreToDocumentArchive [20:19:47]shift 354 fd 104033 [20:19:47]save to /storage/0354/doc_00104033 [20:19:47]save last doc name /storage/0354/doc_00104033 to /storage/kkm_last_doc_name [20:19:47]save OK [20:19:47]Clear old archive folders... [20:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:19:47]tlvbuf is 0149BE00 [20:19:47]SAM_PROTO_ClearQueue [20:19:47]wFMCommunicate request_size=4 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 09 00 00 [20:19:47]Write to MH i2c: E2 08 00 74 04 80 09 00 00 00 00 00 00 EA [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:47]Read from MH i2c: E2 03 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 74 04 00 90 00 EC [20:19:47]RAPDU: 90 00 [20:19:47]wFMCommunicate OK [20:19:47]SAM_PROTO_ClearQueue done [20:19:47]KKMCreateOFDPacket [20:19:47]OFDProtocolAddRootSTLVToBuf [20:19:47]FM_MakeSignedData [20:19:47]FM_MakeSignedData [20:19:47]SAM_PROTO_SignData [20:19:47]wFMCommunicate request_size=4 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 0D 01 02 [20:19:47]Write to MH i2c: E2 08 00 75 04 80 0D 01 02 00 00 00 00 F2 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:47]Read from MH i2c: E2 03 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [20:19:47]RAPDU: 90 00 [20:19:47]wFMCommunicate OK [20:19:47]wFMCommunicate request_size=255 [20:19:47]MH_SAM_APDU [20:19: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E2 8E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 96 01 00 35 04 06 00 18 [20:19:47]Write to MH i2c: E2 02 01 76 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E2 8E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 96 01 00 35 04 06 00 18 00 00 EF [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [20:19:47]RAPDU: 90 00 [20:19:47]wFMCommunicate OK [20:19:47]wFMCommunicate request_size=10 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 0D 02 02 05 73 3D E7 F1 EB [20:19:47]Write to MH i2c: E2 0D 00 77 04 80 0D 02 02 05 00 73 3D E7 F1 EB 00 00 72 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [20:19:47]RAPDU: 90 00 [20:19:47]wFMCommunicate OK [20:19:47]wFMCommunicate request_size=4 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 0D 03 02 [20:19:47]Write to MH i2c: E2 08 00 78 04 80 0D 03 02 00 00 00 00 F7 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 0B 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 0B 00 78 04 00 BC 92 18 CE 03 68 CE 51 90 00 B6 [20:19:47]RAPDU: BC 92 18 CE 03 68 CE 51 90 00 [20:19:47]wFMCommunicate OK [20:19:47]SAM_PROTO_SignData done [20:19:47]FM_MakeSignedData done [20:19:47]CreateOFDProtocolMessage [20:19:47]wFMCommunicate request_size=4 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 11 00 00 [20:19:47]Write to MH i2c: E2 08 00 79 04 80 11 00 00 00 00 00 00 F7 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 17 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 17 00 79 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4A [20:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:19:47]wFMCommunicate OK [20:19:47]CreateOFDProtocolMessage done [20:19:47]OFDSenderStorePacket 104033 [20:19:47]StoreOFDPacket docnum=104033 [20:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B0 0E 07 01 BA 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E2 8E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 96 01 00 35 04 06 00 18 73 3D E7 F1 EB BC 92 18 CE 03 68 CE 51 [20:19:47]CheckFolder [20:19:47]dirname=/storage/ofd_packets [20:19:47]CheckFolder done [20:19:47]ProducePacketName [20:19:47]name=ofd_packets/00104033 [20:19:47]NVStorageSaveData ofd_packets/00104033 [20:19:47]File name is /storage/ofd_packets/00104033 [20:19:47]Write 301 bytes [20:19:47]NVStorageSaveData done [20:19:47]OFDSenderStorePacket done [20:19:47]KKMCreateOFDPacket done [20:19:47]NVStorageSaveData kkm_last_timestamp [20:19:47]File name is /storage/kkm_last_timestamp [20:19:47]Write 4 bytes [20:19:47]NVStorageSaveData done [20:19:47]ExternCall_PrintAddStr [20:19:47]wPrintStart [20:19:47]Write to MH i2c: 01 00 00 7A 04 7E [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: 01 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: 01 07 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 FF 0F 93 [20:19:47]RasterBufferAndPrint [20:19:47]line Счет N : (1)673413 [20:19:47]line ИНН: 02508201610067 [20:19:47]line Контрольно-Кассовый Чек [20:19:47]line ПРОДАЖА [20:19:47]line ТРК (МРК, ГНК) : 32 [20:19:47]line Товар: 2710124130 [20:19:47]line Аи-92-К-5 [20:19:47]line 3.770 * 66.40 [20:19:47]line = 250.33 [20:19:47]line НДС 12% НСП 1% [20:19:47]line > о реализуемом товаре [20:19:47]line ОКРУГЛЕНИЕ: -0.33 [20:19:47]line ИТОГО: 250.00 [20:19:47]line Внесено: 250.00 [20:19:47]line СДАЧА: 0.00 [20:19:47]line НСП 1% : 2.21 [20:19:47]line НДС 12% : 26.58 [20:19:47]line Наличными: 250.00 [20:19:47]line Безнал.: 0.00 [20:19:47]line Место: АЗС № 120 "Партнер Нефть" [20:19:47]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:19:47]line СНО: Общий режим [20:19:47]line Чек 218 20.06.2024 20:19 [20:19:47]line Смена: 354 ФФД: 1.0 [20:19:47]line ЗНМ: 0300000164 [20:19:47]line РНМ: 0000000000092785 [20:19:47]line Версия ККМ: 001 [20:19:47]line ФМ: 0000000000875093 [20:19:47]line ФД: 104033 [20:19:47]line ФПД: 26883238916587 [20:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T201946&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104033&fm=26883238916587&tin=02508201610067®Number=0000000000092785&sum=25000 [20:19:48]OFD Sender: Processing packet 104033 [packets to send 17, broken 16] [20:19:48]ProducePacketName [20:19:48]name=ofd_packets/00104033 [20:19:48]OFD Sender: To server: pG, [20:19:48]CommunicateWithHost lk.salyk.kg:30040 [20:19:48]ConnectInit lk.salyk.kg [20:19:48]written 0, free lines is 4095 [20:19:48]Connected sock=11 [20:19:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B0 0E 07 01 BA 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E2 8E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 96 01 00 35 04 06 00 18 73 3D E7 F1 EB BC 92 18 CE 03 68 CE 51 [20:19:48]Write to MH i2c: 01 00 00 A5 04 A9 [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 07 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 07 00 A5 04 00 00 00 00 00 D9 0C 95 [20:19:48]RasterBufferAndPrint [20:19:48]line [20:19:48]line [20:19:48]line [20:19:48]line [20:19:48]line [20:19:48]written 0, free lines is 3297 [20:19:48]MH_Cut [20:19:48]Write to MH i2c: D1 01 00 AC 04 01 82 [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: D1 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: D1 01 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: D1 01 00 AC 04 00 81 [20:19:48]Write to MH i2c: 01 00 00 AD 04 B1 [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 65 EE 47 00 AC 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 61 96 01 00 F4 03 04 00 67 35 74 66 B6 04 01 00 00 2E 13 6E DB D4 95 BA 82 [20:19:48]CommunicateWithHost err = 0 [20:19:48]CheckOFDResponse [20:19:48]1017 (14) - 77093643461234 [20:19:48]1041 (16) - 0000000000875093 [20:19:48]1040 (4) - 104033 [20:19:48]1012 (4) - 20.06.2024 13:57 [20:19:48]1206 (1) - 0 [20:19:48]OFD Sender: Remove packet 104033 [20:19:48]ProducePacketName [20:19:48]name=ofd_packets/00104033 [20:19:48]NVStorageDeleteData [20:19:48]OFD Sender: No OFD packet to send [20:19:49]*** Cut start [20:19:49]*** Partial cut [20:19:49]*** CUTSNS_PIN = 1 [20:19:49]*** CUTSNS_PIN = 0 [20:19:49]*** Brake cut motor [20:19:49]Read from MH i2c: 01 [20:19:49]MH_I2C_Read... [20:19:49]*** Stop cut motor [20:19:49]*** Cut end [20:19:49]Read from MH i2c: 01 07 00 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 FF 0F C6 [20:19:49]process_action close_receipt done [20:19:49]requested_data is exist [20:19:49]produce_requested_data [20:19:49]requested_item fm.sn is exist - process it [20:19:49]wFMCommunicate request_size=4 [20:19:49]MH_SAM_APDU [20:19:49]CAPDU: 80 11 00 00 [20:19:49]Write to MH i2c: E2 08 00 AE 04 80 11 00 00 00 00 00 00 2C [20:19:49]Write i2c OK [20:19:49]MH_I2C_Read... [20:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:49]Read from MH i2c: E2 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: E2 17 00 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: E2 17 00 AE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7F [20:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:19:49]wFMCommunicate OK [20:19:49]requested_item fd.num is exist - process it [20:19:49]SAM_PROTO_GetFieldsCounters [20:19:49]wFMCommunicate request_size=4 [20:19:49]MH_SAM_APDU [20:19:49]CAPDU: 80 13 00 00 [20:19:49]Write to MH i2c: E2 08 00 AF 04 80 13 00 00 00 00 00 00 2F [20:19:49]Write i2c OK [20:19:49]MH_I2C_Read... [20:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:49]Read from MH i2c: E2 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: E2 62 00 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: E2 62 00 AF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 61 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [20:19:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 61 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:19:49]wFMCommunicate OK [20:19:49]SAM_PROTO_GetFieldsCounters done [20:19:49]requested_item shift.num is exist - process it [20:19:49]requested_item shift.opened is exist - process it [20:19:49]req_shift_opened [20:19:49]FM_GetShiftState [20:19:49]SAM_PROTO_GetShiftState [20:19:49]wFMCommunicate request_size=4 [20:19:49]MH_SAM_APDU [20:19:49]CAPDU: 80 13 01 00 [20:19:49]Write to MH i2c: E2 08 00 B0 04 80 13 01 00 00 00 00 00 31 [20:19:49]Write i2c OK [20:19:49]MH_I2C_Read... [20:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:50]Read from MH i2c: E2 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 0E 00 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 0E 00 B0 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 80 [20:19:50]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:19:50]wFMCommunicate OK [20:19:50]SAM_PROTO_GetShiftState done [20:19:50]FM_GetShiftState done [20:19:50]req_shift_opened done [20:19:50]requested_item shift.open_date is exist - process it [20:19:50]req_shift_open_date [20:19:50]req_shift_open_date done [20:19:50]produce_requested_data done [20:19:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104033,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:19:50]process_action_free close_receipt [20:19:50]json_value_free [20:19:50]json_value_free done [20:19:50]process_json_proto returns [20:19:50]Send response to host [20:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104033,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:19:50]free response buf [20:19:50]execute_script done [20:19:50]execute_script returns [20:19:50]free content buf [20:19:50]Sock 7.Close socket [20:19:50]Sock 7.Thread stoped [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:31]accept exits with 9 [20:31:31]New connection [20:31:31]New thread 3066563940 created [20:31:31]Thread 3066707300 joined [20:31:31]Waiting for new connection... [20:31:31] Sock 9.Parse request [20:31:31]Sock 9.Check first char [20:31:31]Sock 9.First char is OK [20:31:31]request: POST /json_proto HTTP/1.0 [20:31:31]Method: POST [20:31:31]URL: /json_proto [20:31:31]Method is POST - this is cgi request [20:31:31]url: /json_proto [20:31:31]query_string will be loaded in cgi processing [20:31:31]execute_cgi json_proto POST (null) [20:31:31]execute_cgi path=json_proto method=POST [20:31:31]POST find Content-Length [20:31:31]Host: 172.17.38.133:8080 [20:31:31]Content-Length: 800 [20:31:31]Content-Type: application/json [20:31:31] [20:31:31]POST finish read [20:31:31]Found Content-Length = 800 [20:31:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.380, "sum" : 490.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 490.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:31]execute_script... [20:31: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)673415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.380, "sum" : 490.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 490.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:31]POST & json_proto [20:31:31]process_json_proto [20:31:31]json parsed OK: [20:31:31]protocol is kg_v1.0 [20:31:31]action value=close_receipt [20:31:31]process_action close_receipt [20:31:31]cmd_close_receipt [20:31:31]MH_GetDate [20:31:31]Write to MH i2c: F0 00 00 B1 04 A4 [20:31:31]Write i2c OK [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: F0 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: F0 09 00 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: F0 09 00 B1 04 00 A3 91 74 66 BD 8F 7C 64 E7 [20:31:31]GetLastDocTimeStamp 1718914786 [20:31:31]current date 1718915491 [20:31:31]FM_GetShiftState [20:31:31]SAM_PROTO_GetShiftState [20:31:31]wFMCommunicate request_size=4 [20:31:31]MH_SAM_APDU [20:31:31]CAPDU: 80 13 01 00 [20:31:31]Write to MH i2c: E2 08 00 B2 04 80 13 01 00 00 00 00 00 33 [20:31:31]Write i2c OK [20:31:31]MH_I2C_Read... [20:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:31]Read from MH i2c: E2 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 0E 00 [20:31:31]MH_I2C_Read... [20:31:31]Read from MH i2c: E2 0E 00 B2 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 82 [20:31:31]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:31:31]wFMCommunicate OK [20:31:31]SAM_PROTO_GetShiftState done [20:31:31]FM_GetShiftState done [20:31:31]opened in 1718843124 [20:31:31]opened+sec_in_day 1718929524 [20:31:31]quantity*price = 49003 [20:31:31]sum+1 = 49004 [20:31:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 490.03 НСП 1% : 4.34 НДС 12% : 52.04 Наличными: 0.00 Безнал.: 490.03 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 219 20.06.2024 20:31 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104034 ФПД: 34140725014027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203131&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104034&fm=34140725014027&tin=02508201610067®Number=0000000000092785&sum=49003 [20:31:32]StoreToDocumentArchive [20:31:32]shift 354 fd 104034 [20:31:32]save to /storage/0354/doc_00104034 [20:31:32]save last doc name /storage/0354/doc_00104034 to /storage/kkm_last_doc_name [20:31:32]save OK [20:31:32]Clear old archive folders... [20:31:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:32]tlvbuf is 0149DA20 [20:31:32]SAM_PROTO_ClearQueue [20:31:32]wFMCommunicate request_size=4 [20:31:32]MH_SAM_APDU [20:31:32]CAPDU: 80 09 00 00 [20:31:32]Write to MH i2c: E2 08 00 BF 04 80 09 00 00 00 00 00 00 35 [20:31:32]Write i2c OK [20:31:32]MH_I2C_Read... [20:31:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:32]Read from MH i2c: E2 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 03 00 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [20:31:32]RAPDU: 90 00 [20:31:32]wFMCommunicate OK [20:31:32]SAM_PROTO_ClearQueue done [20:31:32]KKMCreateOFDPacket [20:31:32]OFDProtocolAddRootSTLVToBuf [20:31:32]FM_MakeSignedData [20:31:32]FM_MakeSignedData [20:31:32]SAM_PROTO_SignData [20:31:32]wFMCommunicate request_size=4 [20:31:32]MH_SAM_APDU [20:31:32]CAPDU: 80 0D 01 02 [20:31:32]Write to MH i2c: E2 08 00 C0 04 80 0D 01 02 00 00 00 00 3D [20:31:32]Write i2c OK [20:31:32]MH_I2C_Read... [20:31:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:32]Read from MH i2c: E2 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 03 00 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 03 00 C0 04 00 90 00 38 [20:31:32]RAPDU: 90 00 [20:31:32]wFMCommunicate OK [20:31:32]wFMCommunicate request_size=255 [20:31:32]MH_SAM_APDU [20:31: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 D4 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6B BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 A3 91 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 96 01 00 35 04 06 00 1F [20:31:32]Write to MH i2c: E2 02 01 C1 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 D4 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6B BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 A3 91 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 96 01 00 35 04 06 00 1F 00 00 43 [20:31:32]Write i2c OK [20:31:32]MH_I2C_Read... [20:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:32]Read from MH i2c: E2 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 03 00 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 03 00 C1 04 00 90 00 39 [20:31:32]RAPDU: 90 00 [20:31:32]wFMCommunicate OK [20:31:32]wFMCommunicate request_size=10 [20:31:32]MH_SAM_APDU [20:31:32]CAPDU: 80 0D 02 02 05 0D 01 C9 6E 0B [20:31:32]Write to MH i2c: E2 0D 00 C2 04 80 0D 02 02 05 00 0D 01 C9 6E 0B 00 00 9A [20:31:32]Write i2c OK [20:31:32]MH_I2C_Read... [20:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:32]Read from MH i2c: E2 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 03 00 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [20:31:32]RAPDU: 90 00 [20:31:32]wFMCommunicate OK [20:31:32]wFMCommunicate request_size=4 [20:31:32]MH_SAM_APDU [20:31:32]CAPDU: 80 0D 03 02 [20:31:32]Write to MH i2c: E2 08 00 C3 04 80 0D 03 02 00 00 00 00 42 [20:31:32]Write i2c OK [20:31:32]MH_I2C_Read... [20:31:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:32]Read from MH i2c: E2 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 0B 00 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 0B 00 C3 04 00 2D 12 A9 57 5D FB 46 57 90 00 77 [20:31:32]RAPDU: 2D 12 A9 57 5D FB 46 57 90 00 [20:31:32]wFMCommunicate OK [20:31:32]SAM_PROTO_SignData done [20:31:32]FM_MakeSignedData done [20:31:32]CreateOFDProtocolMessage [20:31:32]wFMCommunicate request_size=4 [20:31:32]MH_SAM_APDU [20:31:32]CAPDU: 80 11 00 00 [20:31:32]Write to MH i2c: E2 08 00 C4 04 80 11 00 00 00 00 00 00 42 [20:31:32]Write i2c OK [20:31:32]MH_I2C_Read... [20:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:32]Read from MH i2c: E2 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 17 00 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: E2 17 00 C4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 95 [20:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:31:32]wFMCommunicate OK [20:31:32]CreateOFDProtocolMessage done [20:31:32]OFDSenderStorePacket 104034 [20:31:32]StoreOFDPacket docnum=104034 [20:31:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3C E1 07 01 1F 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6B BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 A3 91 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 96 01 00 35 04 06 00 1F 0D 01 C9 6E 0B 2D 12 A9 57 5D FB 46 57 [20:31:32]CheckFolder [20:31:32]dirname=/storage/ofd_packets [20:31:32]CheckFolder done [20:31:32]ProducePacketName [20:31:32]name=ofd_packets/00104034 [20:31:32]NVStorageSaveData ofd_packets/00104034 [20:31:32]File name is /storage/ofd_packets/00104034 [20:31:32]Write 301 bytes [20:31:32]NVStorageSaveData done [20:31:32]OFDSenderStorePacket done [20:31:32]KKMCreateOFDPacket done [20:31:32]NVStorageSaveData kkm_last_timestamp [20:31:32]File name is /storage/kkm_last_timestamp [20:31:32]Write 4 bytes [20:31:32]NVStorageSaveData done [20:31:32]ExternCall_PrintAddStr [20:31:32]wPrintStart [20:31:32]Write to MH i2c: 01 00 00 C5 04 C9 [20:31:32]Write i2c OK [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: 01 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: 01 07 00 [20:31:32]MH_I2C_Read... [20:31:32]Read from MH i2c: 01 07 00 C5 04 00 00 00 00 00 FF 0F DE [20:31:32]RasterBufferAndPrint [20:31:32]line Счет N : (1)673415 [20:31:32]line ИНН: 02508201610067 [20:31:32]line Контрольно-Кассовый Чек [20:31:32]line ПРОДАЖА [20:31:32]line ТРК (МРК, ГНК) : 42 [20:31:32]line Товар: 2710124130 [20:31:32]line Аи-92-К-5 [20:31:32]line 7.380 * 66.40 [20:31:32]line = 490.03 [20:31:32]line НДС 12% НСП 1% [20:31:32]line > о реализуемом товаре [20:31:32]line ИТОГО: 490.03 [20:31:32]line НСП 1% : 4.34 [20:31:32]line НДС 12% : 52.04 [20:31:32]line Наличными: 0.00 [20:31:32]line Безнал.: 490.03 [20:31:32]line Место: АЗС № 120 "Партнер Нефть" [20:31:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:31:32]line СНО: Общий режим [20:31:32]line Чек 219 20.06.2024 20:31 [20:31:32]line Смена: 354 ФФД: 1.0 [20:31:32]line ЗНМ: 0300000164 [20:31:32]line РНМ: 0000000000092785 [20:31:32]line Версия ККМ: 001 [20:31:32]line Платежная система: O! деньги [20:31:32]line ФМ: 0000000000875093 [20:31:32]line ФД: 104034 [20:31:32]line ФПД: 34140725014027 [20:31:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203131&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104034&fm=34140725014027&tin=02508201610067®Number=0000000000092785&sum=49003 [20:31:33]OFD Sender: Processing packet 104034 [packets to send 17, broken 16] [20:31:33]ProducePacketName [20:31:33]name=ofd_packets/00104034 [20:31:33]OFD Sender: To server: pG, [20:31:33]CommunicateWithHost lk.salyk.kg:30040 [20:31:33]ConnectInit lk.salyk.kg [20:31:33]written 0, free lines is 4095 [20:31:33]Connected sock=10 [20:31:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3C E1 07 01 1F 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 6B BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B BF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 A3 91 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 96 01 00 35 04 06 00 1F 0D 01 C9 6E 0B 2D 12 A9 57 5D FB 46 57 [20:31:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 D1 A5 47 00 47 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 62 96 01 00 F4 03 04 00 28 38 74 66 B6 04 01 00 00 35 6B 93 58 63 97 84 19 [20:31:33]CommunicateWithHost err = 0 [20:31:33]CheckOFDResponse [20:31:33]1017 (14) - 77093643461234 [20:31:33]1041 (16) - 0000000000875093 [20:31:33]1040 (4) - 104034 [20:31:33]1012 (4) - 20.06.2024 14:09 [20:31:33]1206 (1) - 0 [20:31:33]OFD Sender: Remove packet 104034 [20:31:33]ProducePacketName [20:31:33]name=ofd_packets/00104034 [20:31:33]NVStorageDeleteData [20:31:33]Write to MH i2c: 01 00 00 EF 04 F3 [20:31:33]Write i2c OK [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: 01 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: 01 07 00 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: 01 07 00 EF 04 00 00 00 00 00 F1 0C F7 [20:31:33]RasterBufferAndPrint [20:31:33]line [20:31:33]line [20:31:33]line [20:31:33]line [20:31:33]line [20:31:33]written 0, free lines is 3319 [20:31:33]MH_Cut [20:31:33]Write to MH i2c: D1 01 00 F6 04 01 CC [20:31:33]Write i2c OK [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: D1 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: D1 01 00 [20:31:33]MH_I2C_Read... [20:31:33]Read from MH i2c: D1 01 00 F6 04 00 CB [20:31:33]Write to MH i2c: 01 00 00 F7 04 FB [20:31:33]Write i2c OK [20:31:33]MH_I2C_Read... [20:31:33]OFD Sender: No OFD packet to send [20:31:34]*** Cut start [20:31:34]*** Partial cut [20:31:34]*** CUTSNS_PIN = 1 [20:31:34]*** CUTSNS_PIN = 0 [20:31:34]*** Brake cut motor [20:31:34]Read from MH i2c: 01 [20:31:34]MH_I2C_Read... [20:31:34]*** Stop cut motor [20:31:34]*** Cut end [20:31:34]Read from MH i2c: 01 07 00 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: 01 07 00 F7 04 00 00 00 00 00 FF 0F 10 [20:31:34]process_action close_receipt done [20:31:34]requested_data is exist [20:31:34]produce_requested_data [20:31:34]requested_item fm.sn is exist - process it [20:31:34]wFMCommunicate request_size=4 [20:31:34]MH_SAM_APDU [20:31:34]CAPDU: 80 11 00 00 [20:31:34]Write to MH i2c: E2 08 00 F8 04 80 11 00 00 00 00 00 00 76 [20:31:34]Write i2c OK [20:31:34]MH_I2C_Read... [20:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:34]Read from MH i2c: E2 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: E2 17 00 [20:31:34]MH_I2C_Read... [20:31:34]Read from MH i2c: E2 17 00 F8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C9 [20:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:31:34]wFMCommunicate OK [20:31:34]requested_item fd.num is exist - process it [20:31:34]SAM_PROTO_GetFieldsCounters [20:31:34]wFMCommunicate request_size=4 [20:31:34]MH_SAM_APDU [20:31:34]CAPDU: 80 13 00 00 [20:31:34]Write to MH i2c: E2 08 00 F9 04 80 13 00 00 00 00 00 00 79 [20:31:34]Write i2c OK [20:31:34]MH_I2C_Read... [20:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:35]Read from MH i2c: E2 [20:31:35]MH_I2C_Read... [20:31:35]Read from MH i2c: E2 62 00 [20:31:35]MH_I2C_Read... [20:31:35]Read from MH i2c: E2 62 00 F9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 62 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [20:31:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 62 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:35]wFMCommunicate OK [20:31:35]SAM_PROTO_GetFieldsCounters done [20:31:35]requested_item shift.num is exist - process it [20:31:35]requested_item shift.opened is exist - process it [20:31:35]req_shift_opened [20:31:35]FM_GetShiftState [20:31:35]SAM_PROTO_GetShiftState [20:31:35]wFMCommunicate request_size=4 [20:31:35]MH_SAM_APDU [20:31:35]CAPDU: 80 13 01 00 [20:31:35]Write to MH i2c: E2 08 00 FA 04 80 13 01 00 00 00 00 00 7B [20:31:35]Write i2c OK [20:31:35]MH_I2C_Read... [20:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:35]Read from MH i2c: E2 [20:31:35]MH_I2C_Read... [20:31:35]Read from MH i2c: E2 0E 00 [20:31:35]MH_I2C_Read... [20:31:35]Read from MH i2c: E2 0E 00 FA 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CA [20:31:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:31:35]wFMCommunicate OK [20:31:35]SAM_PROTO_GetShiftState done [20:31:35]FM_GetShiftState done [20:31:35]req_shift_opened done [20:31:35]requested_item shift.open_date is exist - process it [20:31:35]req_shift_open_date [20:31:35]req_shift_open_date done [20:31:35]produce_requested_data done [20:31:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104034,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:31:35]process_action_free close_receipt [20:31:35]json_value_free [20:31:35]json_value_free done [20:31:35]process_json_proto returns [20:31:35]Send response to host [20:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104034,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:31:35]free response buf [20:31:35]execute_script done [20:31:35]execute_script returns [20:31:35]free content buf [20:31:35]Sock 9.Close socket [20:31:35]Sock 9.Thread stoped [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:57]accept exits with 7 [20:31:57]New connection [20:31:57]New thread 3066707300 created [20:31:57]Thread 3066563940 joined [20:31:57]Waiting for new connection... [20:31:57] Sock 7.Parse request [20:31:57]Sock 7.Check first char [20:31:57]Sock 7.First char is OK [20:31:57]request: POST /json_proto HTTP/1.0 [20:31:57]Method: POST [20:31:57]URL: /json_proto [20:31:57]Method is POST - this is cgi request [20:31:57]url: /json_proto [20:31:57]query_string will be loaded in cgi processing [20:31:57]execute_cgi json_proto POST (null) [20:31:57]execute_cgi path=json_proto method=POST [20:31:57]POST find Content-Length [20:31:57]Host: 172.17.38.133:8080 [20:31:57]Content-Length: 687 [20:31:57]Content-Type: application/json [20:31:57] [20:31:57]POST finish read [20:31:57]Found Content-Length = 687 [20:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 39.510, "sum" : 2880.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2880.00, "total" : 2880.00, "payments": [ { "type": 0, "sum" : 2880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:57]execute_script... [20:31: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)673414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 39.510, "sum" : 2880.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2880.00, "total" : 2880.00, "payments": [ { "type": 0, "sum" : 2880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:57]POST & json_proto [20:31:57]process_json_proto [20:31:57]json parsed OK: [20:31:57]protocol is kg_v1.0 [20:31:57]action value=close_receipt [20:31:57]process_action close_receipt [20:31:57]cmd_close_receipt [20:31:57]MH_GetDate [20:31:57]Write to MH i2c: F0 00 00 FB 04 EE [20:31:57]Write i2c OK [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: F0 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: F0 09 00 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: F0 09 00 FB 04 00 BD 91 74 66 BD 8F 7C 64 4B [20:31:57]GetLastDocTimeStamp 1718915491 [20:31:57]current date 1718915517 [20:31:57]FM_GetShiftState [20:31:57]SAM_PROTO_GetShiftState [20:31:57]wFMCommunicate request_size=4 [20:31:57]MH_SAM_APDU [20:31:57]CAPDU: 80 13 01 00 [20:31:57]Write to MH i2c: E2 08 00 FC 04 80 13 01 00 00 00 00 00 7D [20:31:57]Write i2c OK [20:31:57]MH_I2C_Read... [20:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:57]Read from MH i2c: E2 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: E2 0E 00 [20:31:57]MH_I2C_Read... [20:31:57]Read from MH i2c: E2 0E 00 FC 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CC [20:31:57]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:31:57]wFMCommunicate OK [20:31:57]SAM_PROTO_GetShiftState done [20:31:57]FM_GetShiftState done [20:31:57]opened in 1718843124 [20:31:57]opened+sec_in_day 1718929524 [20:31:57]quantity*price = 288027 [20:31:57]sum+1 = 288029 [20:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 2880.00 Внесено: 2880.00 СДАЧА: 0.00 НСП 1% : 25.49 НДС 12% : 305.87 Наличными: 2880.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 220 20.06.2024 20:31 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104035 ФПД: 230966112219042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203157&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104035&fm=230966112219042&tin=02508201610067®Number=0000000000092785&sum=288000 [20:31:58]StoreToDocumentArchive [20:31:58]shift 354 fd 104035 [20:31:58]save to /storage/0354/doc_00104035 [20:31:58]save last doc name /storage/0354/doc_00104035 to /storage/kkm_last_doc_name [20:31:58]save OK [20:31:58]Clear old archive folders... [20:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:31:58]tlvbuf is 014A10C0 [20:31:58]SAM_PROTO_ClearQueue [20:31:58]wFMCommunicate request_size=4 [20:31:58]MH_SAM_APDU [20:31:58]CAPDU: 80 09 00 00 [20:31:58]Write to MH i2c: E2 08 00 09 05 80 09 00 00 00 00 00 00 80 [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:58]Read from MH i2c: E2 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 03 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [20:31:58]RAPDU: 90 00 [20:31:58]wFMCommunicate OK [20:31:58]SAM_PROTO_ClearQueue done [20:31:58]KKMCreateOFDPacket [20:31:58]OFDProtocolAddRootSTLVToBuf [20:31:58]FM_MakeSignedData [20:31:58]FM_MakeSignedData [20:31:58]SAM_PROTO_SignData [20:31:58]wFMCommunicate request_size=4 [20:31:58]MH_SAM_APDU [20:31:58]CAPDU: 80 0D 01 02 [20:31:58]Write to MH i2c: E2 08 00 0A 05 80 0D 01 02 00 00 00 00 88 [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:58]Read from MH i2c: E2 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 03 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [20:31:58]RAPDU: 90 00 [20:31:58]wFMCommunicate OK [20:31:58]wFMCommunicate request_size=255 [20:31:58]MH_SAM_APDU [20:31:58]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1C 65 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 65 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 77 00 00 00 00 07 04 06 00 00 65 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 BD 91 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 96 01 00 35 04 06 00 [20:31:58]Write to MH i2c: E2 02 01 0B 05 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1C 65 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 65 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 77 00 00 00 00 07 04 06 00 00 65 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 BD 91 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 96 01 00 35 04 06 00 00 00 01 [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:58]Read from MH i2c: E2 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 03 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 03 00 0B 05 00 90 00 84 [20:31:58]RAPDU: 90 00 [20:31:58]wFMCommunicate OK [20:31:58]wFMCommunicate request_size=11 [20:31:58]MH_SAM_APDU [20:31:58]CAPDU: 80 0D 02 02 06 D2 0F FD 12 EF A2 [20:31:58]Write to MH i2c: E2 0E 00 0C 05 80 0D 02 02 06 00 D2 0F FD 12 EF A2 00 00 18 [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:58]Read from MH i2c: E2 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 03 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 03 00 0C 05 00 90 00 85 [20:31:58]RAPDU: 90 00 [20:31:58]wFMCommunicate OK [20:31:58]wFMCommunicate request_size=4 [20:31:58]MH_SAM_APDU [20:31:58]CAPDU: 80 0D 03 02 [20:31:58]Write to MH i2c: E2 08 00 0D 05 80 0D 03 02 00 00 00 00 8D [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:58]Read from MH i2c: E2 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 0B 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 0B 00 0D 05 00 D6 C8 E6 A7 4C 2A 80 A5 90 00 54 [20:31:58]RAPDU: D6 C8 E6 A7 4C 2A 80 A5 90 00 [20:31:58]wFMCommunicate OK [20:31:58]SAM_PROTO_SignData done [20:31:58]FM_MakeSignedData done [20:31:58]CreateOFDProtocolMessage [20:31:58]wFMCommunicate request_size=4 [20:31:58]MH_SAM_APDU [20:31:58]CAPDU: 80 11 00 00 [20:31:58]Write to MH i2c: E2 08 00 0E 05 80 11 00 00 00 00 00 00 8D [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:58]Read from MH i2c: E2 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 17 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 17 00 0E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E0 [20:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:31:58]wFMCommunicate OK [20:31:58]CreateOFDProtocolMessage done [20:31:58]OFDSenderStorePacket 104035 [20:31:58]StoreOFDPacket docnum=104035 [20:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E6 55 08 01 50 D5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1C 65 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 65 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 77 00 00 00 00 07 04 06 00 00 65 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 BD 91 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 96 01 00 35 04 06 00 D2 0F FD 12 EF A2 D6 C8 E6 A7 4C 2A 80 A5 [20:31:58]CheckFolder [20:31:58]dirname=/storage/ofd_packets [20:31:58]CheckFolder done [20:31:58]ProducePacketName [20:31:58]name=ofd_packets/00104035 [20:31:58]NVStorageSaveData ofd_packets/00104035 [20:31:58]File name is /storage/ofd_packets/00104035 [20:31:58]Write 302 bytes [20:31:58]NVStorageSaveData done [20:31:58]OFDSenderStorePacket done [20:31:58]KKMCreateOFDPacket done [20:31:58]NVStorageSaveData kkm_last_timestamp [20:31:58]File name is /storage/kkm_last_timestamp [20:31:58]Write 4 bytes [20:31:58]NVStorageSaveData done [20:31:58]ExternCall_PrintAddStr [20:31:58]wPrintStart [20:31:58]Write to MH i2c: 01 00 00 0F 05 14 [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: 01 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: 01 07 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 FF 0F 29 [20:31:58]RasterBufferAndPrint [20:31:58]line Счет N : (1)673414 [20:31:58]line ИНН: 02508201610067 [20:31:58]line Контрольно-Кассовый Чек [20:31:58]line ПРОДАЖА [20:31:58]line ТРК (МРК, ГНК) : 21 [20:31:58]line Товар: 2710194210 [20:31:58]line ДТ(л)-К-5 [20:31:58]line 39.510 * 72.90 [20:31:58]line = 2880.28 [20:31:58]line НДС 12% НСП 1% [20:31:58]line > о реализуемом товаре [20:31:58]line ОКРУГЛЕНИЕ: -0.28 [20:31:58]line ИТОГО: 2880.00 [20:31:58]line Внесено: 2880.00 [20:31:58]line СДАЧА: 0.00 [20:31:58]line НСП 1% : 25.49 [20:31:58]line НДС 12% : 305.87 [20:31:58]line Наличными: 2880.00 [20:31:58]line Безнал.: 0.00 [20:31:58]line Место: АЗС № 120 "Партнер Нефть" [20:31:58]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:31:58]line СНО: Общий режим [20:31:58]line Чек 220 20.06.2024 20:31 [20:31:59]line Смена: 354 ФФД: 1.0 [20:31:59]line ЗНМ: 0300000164 [20:31:59]line РНМ: 0000000000092785 [20:31:59]line Версия ККМ: 001 [20:31:59]line ФМ: 0000000000875093 [20:31:59]line ФД: 104035 [20:31:59]line ФПД: 230966112219042 [20:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203157&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104035&fm=230966112219042&tin=02508201610067®Number=0000000000092785&sum=288000 [20:31:59]OFD Sender: Processing packet 104035 [packets to send 17, broken 16] [20:31:59]ProducePacketName [20:31:59]name=ofd_packets/00104035 [20:31:59]OFD Sender: To server: pG, [20:31:59]CommunicateWithHost lk.salyk.kg:30040 [20:31:59]ConnectInit lk.salyk.kg [20:31:59]written 0, free lines is 4095 [20:31:59]Connected sock=10 [20:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E6 55 08 01 50 D5 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 56 9A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1C 65 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 65 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 77 00 00 00 00 07 04 06 00 00 65 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 BD 91 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 63 96 01 00 35 04 06 00 D2 0F FD 12 EF A2 D6 C8 E6 A7 4C 2A 80 A5 [20:31:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 75 46 47 00 21 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 35 30 39 33 10 04 04 00 63 96 01 00 F4 03 04 00 42 38 74 66 B6 04 01 00 00 94 30 57 98 FA 09 EC EE [20:31:59]CommunicateWithHost err = 0 [20:31:59]CheckOFDResponse [20:31:59]1017 (14) - 77093643461234 [20:31:59]1041 (16) - 0000000000875093 [20:31:59]1040 (4) - 104035 [20:31:59]1012 (4) - 20.06.2024 14:10 [20:31:59]1206 (1) - 0 [20:31:59]OFD Sender: Remove packet 104035 [20:31:59]ProducePacketName [20:31:59]name=ofd_packets/00104035 [20:31:59]NVStorageDeleteData [20:31:59]Write to MH i2c: 01 00 00 3A 05 3F [20:31:59]Write i2c OK [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: 01 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: 01 07 00 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 ED 0C 3F [20:31:59]RasterBufferAndPrint [20:31:59]line [20:31:59]line [20:31:59]line [20:31:59]line [20:31:59]line [20:31:59]written 0, free lines is 3315 [20:31:59]MH_Cut [20:31:59]Write to MH i2c: D1 01 00 41 05 01 18 [20:31:59]Write i2c OK [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: D1 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: D1 01 00 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: D1 01 00 41 05 00 17 [20:31:59]Write to MH i2c: 01 00 00 42 05 47 [20:31:59]Write i2c OK [20:31:59]MH_I2C_Read... [20:32:00]OFD Sender: No OFD packet to send [20:32:00]*** Cut start [20:32:00]*** Partial cut [20:32:00]*** CUTSNS_PIN = 1 [20:32:00]*** CUTSNS_PIN = 0 [20:32:00]*** Brake cut motor [20:32:00]Read from MH i2c: 01 [20:32:00]MH_I2C_Read... [20:32:00]*** Stop cut motor [20:32:00]*** Cut end [20:32:00]Read from MH i2c: 01 07 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 FF 0F 5C [20:32:00]process_action close_receipt done [20:32:00]requested_data is exist [20:32:00]produce_requested_data [20:32:00]requested_item fm.sn is exist - process it [20:32:00]wFMCommunicate request_size=4 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 11 00 00 [20:32:00]Write to MH i2c: E2 08 00 43 05 80 11 00 00 00 00 00 00 C2 [20:32:00]Write i2c OK [20:32:00]MH_I2C_Read... [20:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:00]Read from MH i2c: E2 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 17 00 [20:32:00]MH_I2C_Read... [20:32:00]Read from MH i2c: E2 17 00 43 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [20:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:32:00]wFMCommunicate OK [20:32:00]requested_item fd.num is exist - process it [20:32:00]SAM_PROTO_GetFieldsCounters [20:32:00]wFMCommunicate request_size=4 [20:32:00]MH_SAM_APDU [20:32:00]CAPDU: 80 13 00 00 [20:32:00]Write to MH i2c: E2 08 00 44 05 80 13 00 00 00 00 00 00 C5 [20:32:01]Write i2c OK [20:32:01]MH_I2C_Read... [20:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:01]Read from MH i2c: E2 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: E2 62 00 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: E2 62 00 44 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 63 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [20:32:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 63 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:01]wFMCommunicate OK [20:32:01]SAM_PROTO_GetFieldsCounters done [20:32:01]requested_item shift.num is exist - process it [20:32:01]requested_item shift.opened is exist - process it [20:32:01]req_shift_opened [20:32:01]FM_GetShiftState [20:32:01]SAM_PROTO_GetShiftState [20:32:01]wFMCommunicate request_size=4 [20:32:01]MH_SAM_APDU [20:32:01]CAPDU: 80 13 01 00 [20:32:01]Write to MH i2c: E2 08 00 45 05 80 13 01 00 00 00 00 00 C7 [20:32:01]Write i2c OK [20:32:01]MH_I2C_Read... [20:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:01]Read from MH i2c: E2 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: E2 0E 00 [20:32:01]MH_I2C_Read... [20:32:01]Read from MH i2c: E2 0E 00 45 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 16 [20:32:01]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:32:01]wFMCommunicate OK [20:32:01]SAM_PROTO_GetShiftState done [20:32:01]FM_GetShiftState done [20:32:01]req_shift_opened done [20:32:01]requested_item shift.open_date is exist - process it [20:32:01]req_shift_open_date [20:32:01]req_shift_open_date done [20:32:01]produce_requested_data done [20:32:01]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104035,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:32:01]process_action_free close_receipt [20:32:01]json_value_free [20:32:01]json_value_free done [20:32:01]process_json_proto returns [20:32:01]Send response to host [20:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104035,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:32:01]free response buf [20:32:01]execute_script done [20:32:01]execute_script returns [20:32:01]free content buf [20:32:01]Sock 7.Close socket [20:32:01]Sock 7.Thread stoped [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:21]accept exits with 9 [20:35:21]New connection [20:35:21]New thread 3066563940 created [20:35:21]Thread 3066707300 joined [20:35:21]Waiting for new connection... [20:35:21] Sock 9.Parse request [20:35:21]Sock 9.Check first char [20:35:21]Sock 9.First char is OK [20:35:21]request: POST /json_proto HTTP/1.0 [20:35:21]Method: POST [20:35:21]URL: /json_proto [20:35:21]Method is POST - this is cgi request [20:35:21]url: /json_proto [20:35:21]query_string will be loaded in cgi processing [20:35:21]execute_cgi json_proto POST (null) [20:35:21]execute_cgi path=json_proto method=POST [20:35:21]POST find Content-Length [20:35:21]Host: 172.17.38.133:8080 [20:35:21]Content-Length: 677 [20:35:21]Content-Type: application/json [20:35:21] [20:35:21]POST finish read [20:35:21]Found Content-Length = 677 [20:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:21]execute_script... [20:35: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)673417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:21]POST & json_proto [20:35:21]process_json_proto [20:35:21]json parsed OK: [20:35:21]protocol is kg_v1.0 [20:35:21]action value=close_receipt [20:35:21]process_action close_receipt [20:35:21]cmd_close_receipt [20:35:21]MH_GetDate [20:35:21]Write to MH i2c: F0 00 00 46 05 3A [20:35:21]Write i2c OK [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: F0 [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: F0 09 00 [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: F0 09 00 46 05 00 8A 92 74 66 BD 8F 7C 64 65 [20:35:21]GetLastDocTimeStamp 1718915517 [20:35:21]current date 1718915722 [20:35:21]FM_GetShiftState [20:35:21]SAM_PROTO_GetShiftState [20:35:21]wFMCommunicate request_size=4 [20:35:21]MH_SAM_APDU [20:35:21]CAPDU: 80 13 01 00 [20:35:21]Write to MH i2c: E2 08 00 47 05 80 13 01 00 00 00 00 00 C9 [20:35:21]Write i2c OK [20:35:21]MH_I2C_Read... [20:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:21]Read from MH i2c: E2 [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: E2 0E 00 [20:35:21]MH_I2C_Read... [20:35:21]Read from MH i2c: E2 0E 00 47 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 18 [20:35:21]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:35:21]wFMCommunicate OK [20:35:21]SAM_PROTO_GetShiftState done [20:35:21]FM_GetShiftState done [20:35:21]opened in 1718843124 [20:35:21]opened+sec_in_day 1718929524 [20:35:21]quantity*price = 50065 [20:35:21]sum+1 = 50067 [20:35:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 221 20.06.2024 20:35 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104036 ФПД: 264295594880316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203522&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104036&fm=264295594880316&tin=02508201610067®Number=0000000000092785&sum=50000 [20:35:22]StoreToDocumentArchive [20:35:22]shift 354 fd 104036 [20:35:22]save to /storage/0354/doc_00104036 [20:35:22]save last doc name /storage/0354/doc_00104036 to /storage/kkm_last_doc_name [20:35:22]save OK [20:35:22]Clear old archive folders... [20:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:35:22]tlvbuf is 0149AFD0 [20:35:22]SAM_PROTO_ClearQueue [20:35:22]wFMCommunicate request_size=4 [20:35:22]MH_SAM_APDU [20:35:22]CAPDU: 80 09 00 00 [20:35:22]Write to MH i2c: E2 08 00 54 05 80 09 00 00 00 00 00 00 CB [20:35:22]Write i2c OK [20:35:22]MH_I2C_Read... [20:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:22]Read from MH i2c: E2 [20:35:22]MH_I2C_Read... [20:35:22]Read from MH i2c: E2 03 00 [20:35:22]MH_I2C_Read... [20:35:22]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [20:35:22]RAPDU: 90 00 [20:35:22]wFMCommunicate OK [20:35:22]SAM_PROTO_ClearQueue done [20:35:22]KKMCreateOFDPacket [20:35:22]OFDProtocolAddRootSTLVToBuf [20:35:22]FM_MakeSignedData [20:35:22]FM_MakeSignedData [20:35:22]SAM_PROTO_SignData [20:35:22]wFMCommunicate request_size=4 [20:35:22]MH_SAM_APDU [20:35:22]CAPDU: 80 0D 01 02 [20:35:22]Write to MH i2c: E2 08 00 55 05 80 0D 01 02 00 00 00 00 D3 [20:35:22]Write i2c OK [20:35:22]MH_I2C_Read... [20:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:22]Read from MH i2c: E2 [20:35:22]MH_I2C_Read... [20:35:22]Read from MH i2c: E2 03 00 [20:35:22]MH_I2C_Read... [20:35:22]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [20:35:22]RAPDU: 90 00 [20:35:22]wFMCommunicate OK [20:35:22]wFMCommunicate request_size=255 [20:35:22]MH_SAM_APDU [20:35:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8A 92 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 96 01 00 35 04 06 00 F0 [20:35:22]Write to MH i2c: E2 02 01 56 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8A 92 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 96 01 00 35 04 06 00 F0 00 00 AE [20:35:22]Write i2c OK [20:35:22]MH_I2C_Read... [20:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:23]Read from MH i2c: E2 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 03 00 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 03 00 56 05 00 90 00 CF [20:35:23]RAPDU: 90 00 [20:35:23]wFMCommunicate OK [20:35:23]wFMCommunicate request_size=10 [20:35:23]MH_SAM_APDU [20:35:23]CAPDU: 80 0D 02 02 05 60 1D 0C 6D 3C [20:35:23]Write to MH i2c: E2 0D 00 57 05 80 0D 02 02 05 00 60 1D 0C 6D 3C 00 00 12 [20:35:23]Write i2c OK [20:35:23]MH_I2C_Read... [20:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:23]Read from MH i2c: E2 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 03 00 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [20:35:23]RAPDU: 90 00 [20:35:23]wFMCommunicate OK [20:35:23]wFMCommunicate request_size=4 [20:35:23]MH_SAM_APDU [20:35:23]CAPDU: 80 0D 03 02 [20:35:23]Write to MH i2c: E2 08 00 58 05 80 0D 03 02 00 00 00 00 D8 [20:35:23]Write i2c OK [20:35:23]MH_I2C_Read... [20:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:23]Read from MH i2c: E2 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 0B 00 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 0B 00 58 05 00 DB 0C 75 46 00 B9 AB D5 90 00 B4 [20:35:23]RAPDU: DB 0C 75 46 00 B9 AB D5 90 00 [20:35:23]wFMCommunicate OK [20:35:23]SAM_PROTO_SignData done [20:35:23]FM_MakeSignedData done [20:35:23]CreateOFDProtocolMessage [20:35:23]wFMCommunicate request_size=4 [20:35:23]MH_SAM_APDU [20:35:23]CAPDU: 80 11 00 00 [20:35:23]Write to MH i2c: E2 08 00 59 05 80 11 00 00 00 00 00 00 D8 [20:35:23]Write i2c OK [20:35:23]MH_I2C_Read... [20:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:23]Read from MH i2c: E2 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 17 00 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: E2 17 00 59 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [20:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:35:23]wFMCommunicate OK [20:35:23]CreateOFDProtocolMessage done [20:35:23]OFDSenderStorePacket 104036 [20:35:23]StoreOFDPacket docnum=104036 [20:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B4 74 07 01 7A C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8A 92 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 96 01 00 35 04 06 00 F0 60 1D 0C 6D 3C DB 0C 75 46 00 B9 AB D5 [20:35:23]CheckFolder [20:35:23]dirname=/storage/ofd_packets [20:35:23]CheckFolder done [20:35:23]ProducePacketName [20:35:23]name=ofd_packets/00104036 [20:35:23]NVStorageSaveData ofd_packets/00104036 [20:35:23]File name is /storage/ofd_packets/00104036 [20:35:23]Write 301 bytes [20:35:23]NVStorageSaveData done [20:35:23]OFDSenderStorePacket done [20:35:23]KKMCreateOFDPacket done [20:35:23]NVStorageSaveData kkm_last_timestamp [20:35:23]File name is /storage/kkm_last_timestamp [20:35:23]Write 4 bytes [20:35:23]NVStorageSaveData done [20:35:23]ExternCall_PrintAddStr [20:35:23]wPrintStart [20:35:23]Write to MH i2c: 01 00 00 5A 05 5F [20:35:23]Write i2c OK [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: 01 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: 01 07 00 [20:35:23]MH_I2C_Read... [20:35:23]Read from MH i2c: 01 07 00 5A 05 00 00 00 00 00 FF 0F 74 [20:35:23]RasterBufferAndPrint [20:35:23]line Счет N : (1)673417 [20:35:23]line ИНН: 02508201610067 [20:35:23]line Контрольно-Кассовый Чек [20:35:23]line ПРОДАЖА [20:35:23]line ТРК (МРК, ГНК) : 42 [20:35:23]line Товар: 2710124130 [20:35:23]line Аи-92-К-5 [20:35:23]line 7.540 * 66.40 [20:35:23]line = 500.66 [20:35:23]line НДС 12% НСП 1% [20:35:23]line > о реализуемом товаре [20:35:23]line ОКРУГЛЕНИЕ: -0.66 [20:35:23]line ИТОГО: 500.00 [20:35:23]line Внесено: 500.00 [20:35:23]line СДАЧА: 0.00 [20:35:23]line НСП 1% : 4.43 [20:35:23]line НДС 12% : 53.17 [20:35:23]line Наличными: 500.00 [20:35:23]line Безнал.: 0.00 [20:35:23]line Место: АЗС № 120 "Партнер Нефть" [20:35:23]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:35:23]line СНО: Общий режим [20:35:23]line Чек 221 20.06.2024 20:35 [20:35:23]line Смена: 354 ФФД: 1.0 [20:35:23]line ЗНМ: 0300000164 [20:35:23]line РНМ: 0000000000092785 [20:35:23]line Версия ККМ: 001 [20:35:23]line ФМ: 0000000000875093 [20:35:23]line ФД: 104036 [20:35:23]line ФПД: 264295594880316 [20:35:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203522&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104036&fm=264295594880316&tin=02508201610067®Number=0000000000092785&sum=50000 [20:35:23]OFD Sender: Processing packet 104036 [packets to send 17, broken 16] [20:35:23]ProducePacketName [20:35:23]name=ofd_packets/00104036 [20:35:23]OFD Sender: To server: pG, [20:35:23]CommunicateWithHost lk.salyk.kg:30040 [20:35:23]ConnectInit lk.salyk.kg [20:35:23]written 0, free lines is 4095 [20:35:23]Connected sock=10 [20:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B4 74 07 01 7A C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 8A 92 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 96 01 00 35 04 06 00 F0 60 1D 0C 6D 3C DB 0C 75 46 00 B9 AB D5 [20:35:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 37 FB 47 00 93 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 64 96 01 00 F4 03 04 00 0E 39 74 66 B6 04 01 00 00 73 DE C0 14 81 BF B0 FB [20:35:24]CommunicateWithHost err = 0 [20:35:24]CheckOFDResponse [20:35:24]1017 (14) - 77093643461234 [20:35:24]1041 (16) - 0000000000875093 [20:35:24]1040 (4) - 104036 [20:35:24]1012 (4) - 20.06.2024 14:13 [20:35:24]1206 (1) - 0 [20:35:24]OFD Sender: Remove packet 104036 [20:35:24]ProducePacketName [20:35:24]name=ofd_packets/00104036 [20:35:24]NVStorageDeleteData [20:35:24]Write to MH i2c: 01 00 00 85 05 8A [20:35:24]Write i2c OK [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: 01 [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: 01 07 00 [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: 01 07 00 85 05 00 00 00 00 00 DF 0C 7C [20:35:24]RasterBufferAndPrint [20:35:24]line [20:35:24]line [20:35:24]line [20:35:24]line [20:35:24]line [20:35:24]written 0, free lines is 3304 [20:35:24]MH_Cut [20:35:24]Write to MH i2c: D1 01 00 8C 05 01 63 [20:35:24]Write i2c OK [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: D1 [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: D1 01 00 [20:35:24]MH_I2C_Read... [20:35:24]Read from MH i2c: D1 01 00 8C 05 00 62 [20:35:24]Write to MH i2c: 01 00 00 8D 05 92 [20:35:24]Write i2c OK [20:35:24]MH_I2C_Read... [20:35:24]OFD Sender: No OFD packet to send [20:35:24]*** Cut start [20:35:24]*** Partial cut [20:35:24]*** CUTSNS_PIN = 1 [20:35:24]*** CUTSNS_PIN = 0 [20:35:25]*** Brake cut motor [20:35:25]Read from MH i2c: 01 [20:35:25]MH_I2C_Read... [20:35:25]*** Stop cut motor [20:35:25]*** Cut end [20:35:25]Read from MH i2c: 01 07 00 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: 01 07 00 8D 05 00 00 00 00 00 FF 0F A7 [20:35:25]process_action close_receipt done [20:35:25]requested_data is exist [20:35:25]produce_requested_data [20:35:25]requested_item fm.sn is exist - process it [20:35:25]wFMCommunicate request_size=4 [20:35:25]MH_SAM_APDU [20:35:25]CAPDU: 80 11 00 00 [20:35:25]Write to MH i2c: E2 08 00 8E 05 80 11 00 00 00 00 00 00 0D [20:35:25]Write i2c OK [20:35:25]MH_I2C_Read... [20:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:25]Read from MH i2c: E2 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 17 00 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 17 00 8E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [20:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:35:25]wFMCommunicate OK [20:35:25]requested_item fd.num is exist - process it [20:35:25]SAM_PROTO_GetFieldsCounters [20:35:25]wFMCommunicate request_size=4 [20:35:25]MH_SAM_APDU [20:35:25]CAPDU: 80 13 00 00 [20:35:25]Write to MH i2c: E2 08 00 8F 05 80 13 00 00 00 00 00 00 10 [20:35:25]Write i2c OK [20:35:25]MH_I2C_Read... [20:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:25]Read from MH i2c: E2 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 62 00 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 62 00 8F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 64 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [20:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 64 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:25]wFMCommunicate OK [20:35:25]SAM_PROTO_GetFieldsCounters done [20:35:25]requested_item shift.num is exist - process it [20:35:25]requested_item shift.opened is exist - process it [20:35:25]req_shift_opened [20:35:25]FM_GetShiftState [20:35:25]SAM_PROTO_GetShiftState [20:35:25]wFMCommunicate request_size=4 [20:35:25]MH_SAM_APDU [20:35:25]CAPDU: 80 13 01 00 [20:35:25]Write to MH i2c: E2 08 00 90 05 80 13 01 00 00 00 00 00 12 [20:35:25]Write i2c OK [20:35:25]MH_I2C_Read... [20:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:25]Read from MH i2c: E2 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 0E 00 [20:35:25]MH_I2C_Read... [20:35:25]Read from MH i2c: E2 0E 00 90 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 61 [20:35:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:35:25]wFMCommunicate OK [20:35:25]SAM_PROTO_GetShiftState done [20:35:25]FM_GetShiftState done [20:35:25]req_shift_opened done [20:35:25]requested_item shift.open_date is exist - process it [20:35:25]req_shift_open_date [20:35:25]req_shift_open_date done [20:35:25]produce_requested_data done [20:35:25]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104036,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:35:25]process_action_free close_receipt [20:35:25]json_value_free [20:35:25]json_value_free done [20:35:25]process_json_proto returns [20:35:25]Send response to host [20:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104036,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:35:25]free response buf [20:35:25]execute_script done [20:35:25]execute_script returns [20:35:25]free content buf [20:35:25]Sock 9.Close socket [20:35:25]Sock 9.Thread stoped [20:35:29]OFD Sender: No OFD packet to send [20:35:30]accept exits with 7 [20:35:30]New connection [20:35:30]New thread 3066707300 created [20:35:30]Thread 3066563940 joined [20:35:30]Waiting for new connection... [20:35:30] Sock 7.Parse request [20:35:30]Sock 7.Check first char [20:35:30]Sock 7.First char is OK [20:35:30]request: POST /json_proto HTTP/1.0 [20:35:30]Method: POST [20:35:30]URL: /json_proto [20:35:30]Method is POST - this is cgi request [20:35:30]url: /json_proto [20:35:30]query_string will be loaded in cgi processing [20:35:30]execute_cgi json_proto POST (null) [20:35:30]execute_cgi path=json_proto method=POST [20:35:30]POST find Content-Length [20:35:30]Host: 172.17.38.133:8080 [20:35:30]Content-Length: 803 [20:35:30]Content-Type: application/json [20:35:30] [20:35:30]POST finish read [20:35:30]Found Content-Length = 803 [20:35:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:30]execute_script... [20:35: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)673416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:30]POST & json_proto [20:35:30]process_json_proto [20:35:30]json parsed OK: [20:35:30]protocol is kg_v1.0 [20:35:30]action value=close_receipt [20:35:30]process_action close_receipt [20:35:30]cmd_close_receipt [20:35:30]MH_GetDate [20:35:30]Write to MH i2c: F0 00 00 91 05 85 [20:35:30]Write i2c OK [20:35:30]MH_I2C_Read... [20:35:30]Read from MH i2c: F0 [20:35:30]MH_I2C_Read... [20:35:30]Read from MH i2c: F0 09 00 [20:35:30]MH_I2C_Read... [20:35:30]Read from MH i2c: F0 09 00 91 05 00 92 92 74 66 BD 8F 7C 64 B8 [20:35:30]GetLastDocTimeStamp 1718915722 [20:35:30]current date 1718915730 [20:35:30]FM_GetShiftState [20:35:30]SAM_PROTO_GetShiftState [20:35:30]wFMCommunicate request_size=4 [20:35:30]MH_SAM_APDU [20:35:30]CAPDU: 80 13 01 00 [20:35:30]Write to MH i2c: E2 08 00 92 05 80 13 01 00 00 00 00 00 14 [20:35:30]Write i2c OK [20:35:30]MH_I2C_Read... [20:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:30]Read from MH i2c: E2 [20:35:30]MH_I2C_Read... [20:35:30]Read from MH i2c: E2 0E 00 [20:35:30]MH_I2C_Read... [20:35:30]Read from MH i2c: E2 0E 00 92 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 63 [20:35:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:35:30]wFMCommunicate OK [20:35:30]SAM_PROTO_GetShiftState done [20:35:30]FM_GetShiftState done [20:35:30]opened in 1718843124 [20:35:30]opened+sec_in_day 1718929524 [20:35:30]quantity*price = 100064 [20:35:30]sum+1 = 100066 [20:35:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 222 20.06.2024 20:35 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104037 ФПД: 119703389871379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203530&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104037&fm=119703389871379&tin=02508201610067®Number=0000000000092785&sum=100065 [20:35:31]StoreToDocumentArchive [20:35:31]shift 354 fd 104037 [20:35:31]save to /storage/0354/doc_00104037 [20:35:31]save last doc name /storage/0354/doc_00104037 to /storage/kkm_last_doc_name [20:35:31]save OK [20:35:31]Clear old archive folders... [20:35:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:35:31]tlvbuf is 014BC8F0 [20:35:31]SAM_PROTO_ClearQueue [20:35:31]wFMCommunicate request_size=4 [20:35:31]MH_SAM_APDU [20:35:31]CAPDU: 80 09 00 00 [20:35:31]Write to MH i2c: E2 08 00 9F 05 80 09 00 00 00 00 00 00 16 [20:35:31]Write i2c OK [20:35:31]MH_I2C_Read... [20:35:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:31]Read from MH i2c: E2 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: E2 03 00 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [20:35:31]RAPDU: 90 00 [20:35:31]wFMCommunicate OK [20:35:31]SAM_PROTO_ClearQueue done [20:35:31]KKMCreateOFDPacket [20:35:31]OFDProtocolAddRootSTLVToBuf [20:35:31]FM_MakeSignedData [20:35:31]FM_MakeSignedData [20:35:31]SAM_PROTO_SignData [20:35:31]wFMCommunicate request_size=4 [20:35:31]MH_SAM_APDU [20:35:31]CAPDU: 80 0D 01 02 [20:35:31]Write to MH i2c: E2 08 00 A0 05 80 0D 01 02 00 00 00 00 1E [20:35:31]Write i2c OK [20:35:31]MH_I2C_Read... [20:35:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:31]Read from MH i2c: E2 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: E2 03 00 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: E2 03 00 A0 05 00 90 00 19 [20:35:31]RAPDU: 90 00 [20:35:31]wFMCommunicate OK [20:35:31]wFMCommunicate request_size=255 [20:35:31]MH_SAM_APDU [20:35: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 92 92 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 96 01 00 35 04 06 00 6C [20:35:31]Write to MH i2c: E2 02 01 A1 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 92 92 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 96 01 00 35 04 06 00 6C 00 00 51 [20:35:31]Write i2c OK [20:35:31]MH_I2C_Read... [20:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:31]Read from MH i2c: E2 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: E2 03 00 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [20:35:31]RAPDU: 90 00 [20:35:31]wFMCommunicate OK [20:35:31]wFMCommunicate request_size=10 [20:35:31]MH_SAM_APDU [20:35:31]CAPDU: 80 0D 02 02 05 DE 9E 08 1D 13 [20:35:31]Write to MH i2c: E2 0D 00 A2 05 80 0D 02 02 05 00 DE 9E 08 1D 13 00 00 DF [20:35:31]Write i2c OK [20:35:31]MH_I2C_Read... [20:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:31]Read from MH i2c: E2 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: E2 03 00 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [20:35:31]RAPDU: 90 00 [20:35:31]wFMCommunicate OK [20:35:31]wFMCommunicate request_size=4 [20:35:31]MH_SAM_APDU [20:35:31]CAPDU: 80 0D 03 02 [20:35:31]Write to MH i2c: E2 08 00 A3 05 80 0D 03 02 00 00 00 00 23 [20:35:31]Write i2c OK [20:35:31]MH_I2C_Read... [20:35:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:31]Read from MH i2c: E2 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: E2 0B 00 [20:35:31]MH_I2C_Read... [20:35:31]Read from MH i2c: E2 0B 00 A3 05 00 45 6E 23 60 B3 9D B1 97 90 00 F2 [20:35:31]RAPDU: 45 6E 23 60 B3 9D B1 97 90 00 [20:35:31]wFMCommunicate OK [20:35:31]SAM_PROTO_SignData done [20:35:31]FM_MakeSignedData done [20:35:31]CreateOFDProtocolMessage [20:35:31]wFMCommunicate request_size=4 [20:35:31]MH_SAM_APDU [20:35:31]CAPDU: 80 11 00 00 [20:35:31]Write to MH i2c: E2 08 00 A4 05 80 11 00 00 00 00 00 00 23 [20:35:31]Write i2c OK [20:35:31]MH_I2C_Read... [20:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:32]Read from MH i2c: E2 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: E2 17 00 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: E2 17 00 A4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [20:35:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:35:32]wFMCommunicate OK [20:35:32]CreateOFDProtocolMessage done [20:35:32]OFDSenderStorePacket 104037 [20:35:32]StoreOFDPacket docnum=104037 [20:35:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 35 28 07 01 A1 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 92 92 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 96 01 00 35 04 06 00 6C DE 9E 08 1D 13 45 6E 23 60 B3 9D B1 97 [20:35:32]CheckFolder [20:35:32]dirname=/storage/ofd_packets [20:35:32]CheckFolder done [20:35:32]ProducePacketName [20:35:32]name=ofd_packets/00104037 [20:35:32]NVStorageSaveData ofd_packets/00104037 [20:35:32]File name is /storage/ofd_packets/00104037 [20:35:32]Write 301 bytes [20:35:32]NVStorageSaveData done [20:35:32]OFDSenderStorePacket done [20:35:32]KKMCreateOFDPacket done [20:35:32]NVStorageSaveData kkm_last_timestamp [20:35:32]File name is /storage/kkm_last_timestamp [20:35:32]Write 4 bytes [20:35:32]NVStorageSaveData done [20:35:32]ExternCall_PrintAddStr [20:35:32]wPrintStart [20:35:32]Write to MH i2c: 01 00 00 A5 05 AA [20:35:32]Write i2c OK [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: 01 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: 01 07 00 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 FF 0F BF [20:35:32]RasterBufferAndPrint [20:35:32]line Счет N : (1)673416 [20:35:32]line ИНН: 02508201610067 [20:35:32]line Контрольно-Кассовый Чек [20:35:32]line ПРОДАЖА [20:35:32]line ТРК (МРК, ГНК) : 32 [20:35:32]line Товар: 2710124130 [20:35:32]line Аи-92-К-5 [20:35:32]line 15.070 * 66.40 [20:35:32]line = 1000.65 [20:35:32]line НДС 12% НСП 1% [20:35:32]line > о реализуемом товаре [20:35:32]line ИТОГО: 1000.65 [20:35:32]line НСП 1% : 8.85 [20:35:32]line НДС 12% : 106.26 [20:35:32]line Наличными: 0.00 [20:35:32]line Безнал.: 1000.65 [20:35:32]line Место: АЗС № 120 "Партнер Нефть" [20:35:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:35:32]line СНО: Общий режим [20:35:32]line Чек 222 20.06.2024 20:35 [20:35:32]line Смена: 354 ФФД: 1.0 [20:35:32]line ЗНМ: 0300000164 [20:35:32]line РНМ: 0000000000092785 [20:35:32]line Версия ККМ: 001 [20:35:32]line Платежная система: O! деньги [20:35:32]line ФМ: 0000000000875093 [20:35:32]line ФД: 104037 [20:35:32]line ФПД: 119703389871379 [20:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203530&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104037&fm=119703389871379&tin=02508201610067®Number=0000000000092785&sum=100065 [20:35:32]written 0, free lines is 4095 [20:35:32]OFD Sender: Processing packet 104037 [packets to send 17, broken 16] [20:35:32]ProducePacketName [20:35:32]name=ofd_packets/00104037 [20:35:32]OFD Sender: To server: pG, [20:35:32]CommunicateWithHost lk.salyk.kg:30040 [20:35:32]ConnectInit lk.salyk.kg [20:35:32]Connected sock=10 [20:35:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 35 28 07 01 A1 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 92 92 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 96 01 00 35 04 06 00 6C DE 9E 08 1D 13 45 6E 23 60 B3 9D B1 97 [20:35:32]Write to MH i2c: 01 00 00 CF 05 D4 [20:35:32]Write i2c OK [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: 01 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: 01 07 00 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: 01 07 00 CF 05 00 00 00 00 00 FE 0C E5 [20:35:32]RasterBufferAndPrint [20:35:32]line [20:35:32]line [20:35:32]line [20:35:32]line [20:35:32]line [20:35:32]written 0, free lines is 3335 [20:35:32]MH_Cut [20:35:32]Write to MH i2c: D1 01 00 D6 05 01 AD [20:35:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 41 BE 47 00 3E D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 65 96 01 00 F4 03 04 00 17 39 74 66 B6 04 01 00 00 07 AC 4F 8B CC 8C 1F CE [20:35:32]CommunicateWithHost err = 0 [20:35:32]CheckOFDResponse [20:35:32]1017 (14) - 77093643461234 [20:35:32]1041 (16) - 0000000000875093 [20:35:32]1040 (4) - 104037 [20:35:32]1012 (4) - 20.06.2024 14:13 [20:35:32]1206 (1) - 0 [20:35:32]OFD Sender: Remove packet 104037 [20:35:32]ProducePacketName [20:35:32]name=ofd_packets/00104037 [20:35:32]NVStorageDeleteData [20:35:32]Write i2c OK [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: D1 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: D1 01 00 [20:35:32]MH_I2C_Read... [20:35:32]Read from MH i2c: D1 01 00 D6 05 00 AC [20:35:32]Write to MH i2c: 01 00 00 D7 05 DC [20:35:32]Write i2c OK [20:35:32]MH_I2C_Read... [20:35:33]OFD Sender: No OFD packet to send [20:35:33]*** Cut start [20:35:33]*** Partial cut [20:35:33]*** CUTSNS_PIN = 1 [20:35:33]*** CUTSNS_PIN = 0 [20:35:33]*** Brake cut motor [20:35:33]Read from MH i2c: 01 [20:35:33]MH_I2C_Read... [20:35:33]*** Stop cut motor [20:35:33]*** Cut end [20:35:33]Read from MH i2c: 01 07 00 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 FF 0F F1 [20:35:33]process_action close_receipt done [20:35:33]requested_data is exist [20:35:33]produce_requested_data [20:35:33]requested_item fm.sn is exist - process it [20:35:33]wFMCommunicate request_size=4 [20:35:33]MH_SAM_APDU [20:35:33]CAPDU: 80 11 00 00 [20:35:33]Write to MH i2c: E2 08 00 D8 05 80 11 00 00 00 00 00 00 57 [20:35:33]Write i2c OK [20:35:33]MH_I2C_Read... [20:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:33]Read from MH i2c: E2 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: E2 17 00 [20:35:33]MH_I2C_Read... [20:35:33]Read from MH i2c: E2 17 00 D8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AA [20:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:35:33]wFMCommunicate OK [20:35:33]requested_item fd.num is exist - process it [20:35:33]SAM_PROTO_GetFieldsCounters [20:35:33]wFMCommunicate request_size=4 [20:35:33]MH_SAM_APDU [20:35:33]CAPDU: 80 13 00 00 [20:35:33]Write to MH i2c: E2 08 00 D9 05 80 13 00 00 00 00 00 00 5A [20:35:33]Write i2c OK [20:35:33]MH_I2C_Read... [20:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:34]Read from MH i2c: E2 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 62 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 62 00 D9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 65 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [20:35:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 65 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:34]wFMCommunicate OK [20:35:34]SAM_PROTO_GetFieldsCounters done [20:35:34]requested_item shift.num is exist - process it [20:35:34]requested_item shift.opened is exist - process it [20:35:34]req_shift_opened [20:35:34]FM_GetShiftState [20:35:34]SAM_PROTO_GetShiftState [20:35:34]wFMCommunicate request_size=4 [20:35:34]MH_SAM_APDU [20:35:34]CAPDU: 80 13 01 00 [20:35:34]Write to MH i2c: E2 08 00 DA 05 80 13 01 00 00 00 00 00 5C [20:35:34]Write i2c OK [20:35:34]MH_I2C_Read... [20:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:34]Read from MH i2c: E2 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 0E 00 [20:35:34]MH_I2C_Read... [20:35:34]Read from MH i2c: E2 0E 00 DA 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AB [20:35:34]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:35:34]wFMCommunicate OK [20:35:34]SAM_PROTO_GetShiftState done [20:35:34]FM_GetShiftState done [20:35:34]req_shift_opened done [20:35:34]requested_item shift.open_date is exist - process it [20:35:34]req_shift_open_date [20:35:34]req_shift_open_date done [20:35:34]produce_requested_data done [20:35:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104037,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:35:34]process_action_free close_receipt [20:35:34]json_value_free [20:35:34]json_value_free done [20:35:34]process_json_proto returns [20:35:34]Send response to host [20:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104037,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:35:34]free response buf [20:35:34]execute_script done [20:35:34]execute_script returns [20:35:34]free content buf [20:35:34]Sock 7.Close socket [20:35:34]Sock 7.Thread stoped [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:04]accept exits with 9 [20:38:04]New connection [20:38:04]New thread 3066563940 created [20:38:04]Thread 3066707300 joined [20:38:04]Waiting for new connection... [20:38:04] Sock 9.Parse request [20:38:04]Sock 9.Check first char [20:38:04]Sock 9.First char is OK [20:38:04]request: POST /json_proto HTTP/1.0 [20:38:04]Method: POST [20:38:04]URL: /json_proto [20:38:04]Method is POST - this is cgi request [20:38:04]url: /json_proto [20:38:04]query_string will be loaded in cgi processing [20:38:04]execute_cgi json_proto POST (null) [20:38:04]execute_cgi path=json_proto method=POST [20:38:04]POST find Content-Length [20:38:04]Host: 172.17.38.133:8080 [20:38:04]Content-Length: 1213 [20:38:04]Content-Type: application/json [20:38:04] [20:38:04]POST finish read [20:38:04]Found Content-Length = 1213 [20:38: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673419\u000A20.06.2024 20:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2217.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\u000A2074509;2074510;2074511\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:04]execute_script... [20:38: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673419\u000A20.06.2024 20:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2217.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\u000A2074509;2074510;2074511\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:04]POST & json_proto [20:38:04]process_json_proto [20:38:04]json parsed OK: [20:38:04]protocol is kg_v1.0 [20:38:04]action value=print_text [20:38:04]process_action print_text [20:38:04]cmd_print_text [20:38:04]ExternCall_PrintAddStr [20:38:04]wPrintStart [20:38:04]Write to MH i2c: 01 00 00 DB 05 E0 [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: 01 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: 01 07 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [20:38:04]RasterBufferAndPrint [20:38:04]line *****ТОВАРНЫЙ ЧЕК***** [20:38:04]line АЗС 120 [20:38:04]line Партнер нефть [20:38:04]line 02508201610067 [20:38:04]line Кассир : Дуйшенбиев А. [20:38:04]line Счет N : (1)673419 [20:38:04]line 20.06.2024 20:15 [20:38:04]line ПРОДАЖА [20:38:04]line ТРК (МРК, ГНК): 41 [20:38:04]line Вид ГСМ : 2710124500 [20:38:04]line Аи-95-К-5 [20:38:04]line 30.000 x 73.90 [20:38:04]line ИТОГ: 2217.00 [20:38:04]line Тип оплаты: Талоны: Партнер нефть [20:38:04]line 2074509;2074510;2074511 [20:38:04]line ______________________ [20:38:04]line (подпись) [20:38:04]written 0, free lines is 4095 [20:38:04]Write to MH i2c: 01 00 00 EF 05 F4 [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: 01 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: 01 07 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: 01 07 00 EF 05 00 00 00 00 00 19 0E 22 [20:38:04]RasterBufferAndPrint [20:38:04]line [20:38:04]line [20:38:04]line [20:38:04]line [20:38:04]line [20:38:04]written 0, free lines is 3611 [20:38:04]MH_Cut [20:38:04]Write to MH i2c: D1 01 00 F6 05 01 CD [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: D1 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: D1 01 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: D1 01 00 F6 05 00 CC [20:38:04]Write to MH i2c: 01 00 00 F7 05 FC [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]*** Cut start [20:38:04]*** Partial cut [20:38:04]*** CUTSNS_PIN = 1 [20:38:04]*** CUTSNS_PIN = 0 [20:38:05]*** Brake cut motor [20:38:05]Read from MH i2c: 01 [20:38:05]MH_I2C_Read... [20:38:05]*** Stop cut motor [20:38:05]*** Cut end [20:38:05]Read from MH i2c: 01 07 00 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: 01 07 00 F7 05 00 00 00 00 00 FF 0F 11 [20:38:05]process_action print_text done [20:38:05]requested_data is exist [20:38:05]produce_requested_data [20:38:05]requested_item fm.sn is exist - process it [20:38:05]wFMCommunicate request_size=4 [20:38:05]MH_SAM_APDU [20:38:05]CAPDU: 80 11 00 00 [20:38:05]Write to MH i2c: E2 08 00 F8 05 80 11 00 00 00 00 00 00 77 [20:38:05]Write i2c OK [20:38:05]MH_I2C_Read... [20:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:05]Read from MH i2c: E2 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: E2 17 00 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: E2 17 00 F8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CA [20:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:38:05]wFMCommunicate OK [20:38:05]requested_item fd.num is exist - process it [20:38:05]SAM_PROTO_GetFieldsCounters [20:38:05]wFMCommunicate request_size=4 [20:38:05]MH_SAM_APDU [20:38:05]CAPDU: 80 13 00 00 [20:38:05]Write to MH i2c: E2 08 00 F9 05 80 13 00 00 00 00 00 00 7A [20:38:05]Write i2c OK [20:38:05]MH_I2C_Read... [20:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:05]Read from MH i2c: E2 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: E2 62 00 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: E2 62 00 F9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 65 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [20:38:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 65 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:05]wFMCommunicate OK [20:38:05]SAM_PROTO_GetFieldsCounters done [20:38:05]requested_item shift.num is exist - process it [20:38:05]requested_item shift.opened is exist - process it [20:38:05]req_shift_opened [20:38:05]FM_GetShiftState [20:38:05]SAM_PROTO_GetShiftState [20:38:05]wFMCommunicate request_size=4 [20:38:05]MH_SAM_APDU [20:38:05]CAPDU: 80 13 01 00 [20:38:05]Write to MH i2c: E2 08 00 FA 05 80 13 01 00 00 00 00 00 7C [20:38:05]Write i2c OK [20:38:05]MH_I2C_Read... [20:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:05]Read from MH i2c: E2 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: E2 0E 00 [20:38:05]MH_I2C_Read... [20:38:05]Read from MH i2c: E2 0E 00 FA 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CB [20:38:05]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:38:05]wFMCommunicate OK [20:38:05]SAM_PROTO_GetShiftState done [20:38:05]FM_GetShiftState done [20:38:05]req_shift_opened done [20:38:05]requested_item shift.open_date is exist - process it [20:38:05]req_shift_open_date [20:38:05]req_shift_open_date done [20:38:05]produce_requested_data done [20:38:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104037,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:38:05]process_action_free print_text [20:38:05]json_value_free [20:38:05]json_value_free done [20:38:05]process_json_proto returns [20:38:05]Send response to host [20:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104037,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:38:05]free response buf [20:38:05]execute_script done [20:38:05]execute_script returns [20:38:05]free content buf [20:38:05]Sock 9.Close socket [20:38:05]Sock 9.Thread stoped [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:24]accept exits with 7 [20:38:24]New connection [20:38:24]New thread 3066707300 created [20:38:24]Thread 3066563940 joined [20:38:24]Waiting for new connection... [20:38:24] Sock 7.Parse request [20:38:24]Sock 7.Check first char [20:38:24]Sock 7.First char is OK [20:38:24]request: POST /json_proto HTTP/1.0 [20:38:24]Method: POST [20:38:24]URL: /json_proto [20:38:24]Method is POST - this is cgi request [20:38:24]url: /json_proto [20:38:24]query_string will be loaded in cgi processing [20:38:24]execute_cgi json_proto POST (null) [20:38:24]execute_cgi path=json_proto method=POST [20:38:24]POST find Content-Length [20:38:24]Host: 172.17.38.133:8080 [20:38:24]Content-Length: 682 [20:38:24]Content-Type: application/json [20:38:24] [20:38:24]POST finish read [20:38:24]Found Content-Length = 682 [20:38:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:24]execute_script... [20:38: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)673421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:24]POST & json_proto [20:38:24]process_json_proto [20:38:24]json parsed OK: [20:38:24]protocol is kg_v1.0 [20:38:24]action value=close_receipt [20:38:24]process_action close_receipt [20:38:24]cmd_close_receipt [20:38:24]MH_GetDate [20:38:24]Write to MH i2c: F0 00 00 FB 05 EF [20:38:24]Write i2c OK [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: F0 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: F0 09 00 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: F0 09 00 FB 05 00 40 93 74 66 BD 8F 7C 64 D1 [20:38:24]GetLastDocTimeStamp 1718915730 [20:38:24]current date 1718915904 [20:38:24]FM_GetShiftState [20:38:24]SAM_PROTO_GetShiftState [20:38:24]wFMCommunicate request_size=4 [20:38:24]MH_SAM_APDU [20:38:24]CAPDU: 80 13 01 00 [20:38:24]Write to MH i2c: E2 08 00 FC 05 80 13 01 00 00 00 00 00 7E [20:38:24]Write i2c OK [20:38:24]MH_I2C_Read... [20:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:24]Read from MH i2c: E2 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 0E 00 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 0E 00 FC 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CD [20:38:24]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:38:24]wFMCommunicate OK [20:38:24]SAM_PROTO_GetShiftState done [20:38:24]FM_GetShiftState done [20:38:24]opened in 1718843124 [20:38:24]opened+sec_in_day 1718929524 [20:38:24]quantity*price = 30034 [20:38:24]sum+1 = 30036 [20:38:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 223 20.06.2024 20:38 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104038 ФПД: 214798141888261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203824&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104038&fm=214798141888261&tin=02508201610067®Number=0000000000092785&sum=30000 [20:38:25]StoreToDocumentArchive [20:38:25]shift 354 fd 104038 [20:38:25]save to /storage/0354/doc_00104038 [20:38:25]save last doc name /storage/0354/doc_00104038 to /storage/kkm_last_doc_name [20:38:25]save OK [20:38:25]Clear old archive folders... [20:38:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:38:25]tlvbuf is 014B1280 [20:38:25]SAM_PROTO_ClearQueue [20:38:25]wFMCommunicate request_size=4 [20:38:25]MH_SAM_APDU [20:38:25]CAPDU: 80 09 00 00 [20:38:25]Write to MH i2c: E2 08 00 09 06 80 09 00 00 00 00 00 00 81 [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 [20:38:25]MH_I2C_Read... [20:38:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:25]Read from MH i2c: E2 03 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 03 00 09 06 00 90 00 83 [20:38:25]RAPDU: 90 00 [20:38:25]wFMCommunicate OK [20:38:25]SAM_PROTO_ClearQueue done [20:38:25]KKMCreateOFDPacket [20:38:25]OFDProtocolAddRootSTLVToBuf [20:38:25]FM_MakeSignedData [20:38:25]FM_MakeSignedData [20:38:25]SAM_PROTO_SignData [20:38:25]wFMCommunicate request_size=4 [20:38:25]MH_SAM_APDU [20:38:25]CAPDU: 80 0D 01 02 [20:38:25]Write to MH i2c: E2 08 00 0A 06 80 0D 01 02 00 00 00 00 89 [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:25]Read from MH i2c: E2 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 03 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 03 00 0A 06 00 90 00 84 [20:38:25]RAPDU: 90 00 [20:38:25]wFMCommunicate OK [20:38:25]wFMCommunicate request_size=255 [20:38:25]MH_SAM_APDU [20:38:25]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 40 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 96 01 00 35 04 06 00 [20:38:25]Write to MH i2c: E2 02 01 0B 06 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 40 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 96 01 00 35 04 06 00 00 00 1D [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:25]Read from MH i2c: E2 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 03 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 03 00 0B 06 00 90 00 85 [20:38:25]RAPDU: 90 00 [20:38:25]wFMCommunicate OK [20:38:25]wFMCommunicate request_size=11 [20:38:25]MH_SAM_APDU [20:38:25]CAPDU: 80 0D 02 02 06 C3 5B 96 F2 17 05 [20:38:25]Write to MH i2c: E2 0E 00 0C 06 80 0D 02 02 06 00 C3 5B 96 F2 17 05 00 00 5A [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:25]Read from MH i2c: E2 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 03 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 03 00 0C 06 00 90 00 86 [20:38:25]RAPDU: 90 00 [20:38:25]wFMCommunicate OK [20:38:25]wFMCommunicate request_size=4 [20:38:25]MH_SAM_APDU [20:38:25]CAPDU: 80 0D 03 02 [20:38:25]Write to MH i2c: E2 08 00 0D 06 80 0D 03 02 00 00 00 00 8E [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:25]Read from MH i2c: E2 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 0B 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 0B 00 0D 06 00 63 28 13 52 92 91 45 E9 90 00 D0 [20:38:25]RAPDU: 63 28 13 52 92 91 45 E9 90 00 [20:38:25]wFMCommunicate OK [20:38:25]SAM_PROTO_SignData done [20:38:25]FM_MakeSignedData done [20:38:25]CreateOFDProtocolMessage [20:38:25]wFMCommunicate request_size=4 [20:38:25]MH_SAM_APDU [20:38:25]CAPDU: 80 11 00 00 [20:38:25]Write to MH i2c: E2 08 00 0E 06 80 11 00 00 00 00 00 00 8E [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:26]Read from MH i2c: E2 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 17 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 17 00 0E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E1 [20:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:38:26]wFMCommunicate OK [20:38:26]CreateOFDProtocolMessage done [20:38:26]OFDSenderStorePacket 104038 [20:38:26]StoreOFDPacket docnum=104038 [20:38:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 3A 5D 08 01 8C ED 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 40 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 96 01 00 35 04 06 00 C3 5B 96 F2 17 05 63 28 13 52 92 91 45 E9 [20:38:26]CheckFolder [20:38:26]dirname=/storage/ofd_packets [20:38:26]CheckFolder done [20:38:26]ProducePacketName [20:38:26]name=ofd_packets/00104038 [20:38:26]NVStorageSaveData ofd_packets/00104038 [20:38:26]File name is /storage/ofd_packets/00104038 [20:38:26]Write 302 bytes [20:38:26]NVStorageSaveData done [20:38:26]OFDSenderStorePacket done [20:38:26]KKMCreateOFDPacket done [20:38:26]NVStorageSaveData kkm_last_timestamp [20:38:26]File name is /storage/kkm_last_timestamp [20:38:26]Write 4 bytes [20:38:26]NVStorageSaveData done [20:38:26]ExternCall_PrintAddStr [20:38:26]wPrintStart [20:38:26]Write to MH i2c: 01 00 00 0F 06 15 [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 07 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 07 00 0F 06 00 00 00 00 00 FF 0F 2A [20:38:26]RasterBufferAndPrint [20:38:26]line Счет N : (1)673421 [20:38:26]line ИНН: 02508201610067 [20:38:26]line Контрольно-Кассовый Чек [20:38:26]line ПРОДАЖА [20:38:26]line ТРК (МРК, ГНК) : 21 [20:38:26]line Товар: 2710194210 [20:38:26]line ДТ(л)-К-5 [20:38:26]line 4.120 * 72.90 [20:38:26]line = 300.35 [20:38:26]line НДС 12% НСП 1% [20:38:26]line > о реализуемом товаре [20:38:26]line ОКРУГЛЕНИЕ: -0.35 [20:38:26]line ИТОГО: 300.00 [20:38:26]line Внесено: 300.00 [20:38:26]line СДАЧА: 0.00 [20:38:26]line НСП 1% : 2.66 [20:38:26]line НДС 12% : 31.90 [20:38:26]line Наличными: 300.00 [20:38:26]line Безнал.: 0.00 [20:38:26]line Место: АЗС № 120 "Партнер Нефть" [20:38:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:38:26]line СНО: Общий режим [20:38:26]line Чек 223 20.06.2024 20:38 [20:38:26]line Смена: 354 ФФД: 1.0 [20:38:26]line ЗНМ: 0300000164 [20:38:26]line РНМ: 0000000000092785 [20:38:26]line Версия ККМ: 001 [20:38:26]line ФМ: 0000000000875093 [20:38:26]line ФД: 104038 [20:38:26]line ФПД: 214798141888261 [20:38:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203824&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104038&fm=214798141888261&tin=02508201610067®Number=0000000000092785&sum=30000 [20:38:26]OFD Sender: Processing packet 104038 [packets to send 17, broken 16] [20:38:26]ProducePacketName [20:38:26]name=ofd_packets/00104038 [20:38:26]OFD Sender: To server: pG, [20:38:26]CommunicateWithHost lk.salyk.kg:30040 [20:38:26]ConnectInit lk.salyk.kg [20:38:26]written 0, free lines is 4095 [20:38:26]Connected sock=10 [20:38:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 3A 5D 08 01 8C ED 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 40 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 96 01 00 35 04 06 00 C3 5B 96 F2 17 05 63 28 13 52 92 91 45 E9 [20:38:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 65 F6 47 00 FF A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 66 96 01 00 F4 03 04 00 C5 39 74 66 B6 04 01 00 00 2B 12 7F B9 7E 37 AF E0 [20:38:26]CommunicateWithHost err = 0 [20:38:26]CheckOFDResponse [20:38:26]1017 (14) - 77093643461234 [20:38:26]1041 (16) - 0000000000875093 [20:38:26]1040 (4) - 104038 [20:38:26]1012 (4) - 20.06.2024 14:16 [20:38:26]1206 (1) - 0 [20:38:26]OFD Sender: Remove packet 104038 [20:38:26]ProducePacketName [20:38:26]name=ofd_packets/00104038 [20:38:26]NVStorageDeleteData [20:38:26]Write to MH i2c: 01 00 00 3A 06 40 [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 07 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 EB 0C 3E [20:38:26]RasterBufferAndPrint [20:38:26]line [20:38:26]line [20:38:26]line [20:38:26]line [20:38:26]line [20:38:26]written 0, free lines is 3313 [20:38:26]MH_Cut [20:38:26]Write to MH i2c: D1 01 00 41 06 01 19 [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: D1 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: D1 01 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: D1 01 00 41 06 00 18 [20:38:26]Write to MH i2c: 01 00 00 42 06 48 [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:27]OFD Sender: No OFD packet to send [20:38:27]*** Cut start [20:38:27]*** Partial cut [20:38:27]*** CUTSNS_PIN = 1 [20:38:27]*** CUTSNS_PIN = 0 [20:38:27]*** Brake cut motor [20:38:28]Read from MH i2c: 01 [20:38:28]MH_I2C_Read... [20:38:28]*** Stop cut motor [20:38:28]*** Cut end [20:38:28]Read from MH i2c: 01 07 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 FF 0F 5D [20:38:28]process_action close_receipt done [20:38:28]requested_data is exist [20:38:28]produce_requested_data [20:38:28]requested_item fm.sn is exist - process it [20:38:28]wFMCommunicate request_size=4 [20:38:28]MH_SAM_APDU [20:38:28]CAPDU: 80 11 00 00 [20:38:28]Write to MH i2c: E2 08 00 43 06 80 11 00 00 00 00 00 00 C3 [20:38:28]Write i2c OK [20:38:28]MH_I2C_Read... [20:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:28]Read from MH i2c: E2 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 17 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 17 00 43 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [20:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:38:28]wFMCommunicate OK [20:38:28]requested_item fd.num is exist - process it [20:38:28]SAM_PROTO_GetFieldsCounters [20:38:28]wFMCommunicate request_size=4 [20:38:28]MH_SAM_APDU [20:38:28]CAPDU: 80 13 00 00 [20:38:28]Write to MH i2c: E2 08 00 44 06 80 13 00 00 00 00 00 00 C6 [20:38:28]Write i2c OK [20:38:28]MH_I2C_Read... [20:38:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:28]Read from MH i2c: E2 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 62 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 62 00 44 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [20:38:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:28]wFMCommunicate OK [20:38:28]SAM_PROTO_GetFieldsCounters done [20:38:28]requested_item shift.num is exist - process it [20:38:28]requested_item shift.opened is exist - process it [20:38:28]req_shift_opened [20:38:28]FM_GetShiftState [20:38:28]SAM_PROTO_GetShiftState [20:38:28]wFMCommunicate request_size=4 [20:38:28]MH_SAM_APDU [20:38:28]CAPDU: 80 13 01 00 [20:38:28]Write to MH i2c: E2 08 00 45 06 80 13 01 00 00 00 00 00 C8 [20:38:28]Write i2c OK [20:38:28]MH_I2C_Read... [20:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:28]Read from MH i2c: E2 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 0E 00 [20:38:28]MH_I2C_Read... [20:38:28]Read from MH i2c: E2 0E 00 45 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 17 [20:38:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:38:28]wFMCommunicate OK [20:38:28]SAM_PROTO_GetShiftState done [20:38:28]FM_GetShiftState done [20:38:28]req_shift_opened done [20:38:28]requested_item shift.open_date is exist - process it [20:38:28]req_shift_open_date [20:38:28]req_shift_open_date done [20:38:28]produce_requested_data done [20:38:28]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104038,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:38:28]process_action_free close_receipt [20:38:28]json_value_free [20:38:28]json_value_free done [20:38:28]process_json_proto returns [20:38:28]Send response to host [20:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104038,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:38:28]free response buf [20:38:28]execute_script done [20:38:28]execute_script returns [20:38:28]free content buf [20:38:28]Sock 7.Close socket [20:38:28]Sock 7.Thread stoped [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:29]accept exits with 9 [20:39:29]New connection [20:39:29]New thread 3066563940 created [20:39:29]Thread 3066707300 joined [20:39:29]Waiting for new connection... [20:39:29] Sock 9.Parse request [20:39:29]Sock 9.Check first char [20:39:29]Sock 9.First char is OK [20:39:29]request: POST /json_proto HTTP/1.0 [20:39:29]Method: POST [20:39:29]URL: /json_proto [20:39:29]Method is POST - this is cgi request [20:39:29]url: /json_proto [20:39:29]query_string will be loaded in cgi processing [20:39:29]execute_cgi json_proto POST (null) [20:39:29]execute_cgi path=json_proto method=POST [20:39:29]POST find Content-Length [20:39:29]Host: 172.17.38.133:8080 [20:39:29]Content-Length: 1203 [20:39:29]Content-Type: application/json [20:39:29] [20:39:29]POST finish read [20:39:29]Found Content-Length = 1203 [20:39:29]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673418\u000A20.06.2024 20:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.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\u000A3607964\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:29]execute_script... [20:39:29]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673418\u000A20.06.2024 20:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.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\u000A3607964\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:29]POST & json_proto [20:39:29]process_json_proto [20:39:29]json parsed OK: [20:39:29]protocol is kg_v1.0 [20:39:29]action value=print_text [20:39:29]process_action print_text [20:39:29]cmd_print_text [20:39:29]ExternCall_PrintAddStr [20:39:29]wPrintStart [20:39:29]Write to MH i2c: 01 00 00 46 06 4C [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: 01 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: 01 07 00 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: 01 07 00 46 06 00 00 00 00 00 FF 0F 61 [20:39:29]RasterBufferAndPrint [20:39:29]line *****ТОВАРНЫЙ ЧЕК***** [20:39:29]line АЗС 120 [20:39:29]line Партнер нефть [20:39:29]line 02508201610067 [20:39:29]line Кассир : Дуйшенбиев А. [20:39:29]line Счет N : (1)673418 [20:39:29]line 20.06.2024 20:16 [20:39:29]line ПРОДАЖА [20:39:29]line ТРК (МРК, ГНК): 11 [20:39:29]line Вид ГСМ : 2710194210 [20:39:29]line ДТ(л)-К-5 [20:39:29]line 100.000 x 72.90 [20:39:29]line ИТОГ: 7290.00 [20:39:29]line Тип оплаты: Талоны: Партнер нефть [20:39:29]line 3607964 [20:39:29]line ______________________ [20:39:29]line (подпись) [20:39:29]written 0, free lines is 4095 [20:39:29]Write to MH i2c: 01 00 00 5A 06 60 [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: 01 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: 01 07 00 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 12 0E 87 [20:39:29]RasterBufferAndPrint [20:39:29]line [20:39:29]line [20:39:29]line [20:39:29]line [20:39:29]line [20:39:29]written 0, free lines is 3604 [20:39:29]MH_Cut [20:39:29]Write to MH i2c: D1 01 00 61 06 01 39 [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: D1 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: D1 01 00 [20:39:29]MH_I2C_Read... [20:39:29]Read from MH i2c: D1 01 00 61 06 00 38 [20:39:29]Write to MH i2c: 01 00 00 62 06 68 [20:39:29]Write i2c OK [20:39:29]MH_I2C_Read... [20:39:30]*** Cut start [20:39:30]*** Partial cut [20:39:30]*** CUTSNS_PIN = 1 [20:39:30]*** CUTSNS_PIN = 0 [20:39:30]*** Brake cut motor [20:39:30]Read from MH i2c: 01 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: 01 07 *** Stop cut motor [20:39:30]*** Cut end [20:39:30]00 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: 01 07 00 62 06 00 00 00 00 00 FF 0F 7D [20:39:30]process_action print_text done [20:39:30]requested_data is exist [20:39:30]produce_requested_data [20:39:30]requested_item fm.sn is exist - process it [20:39:30]wFMCommunicate request_size=4 [20:39:30]MH_SAM_APDU [20:39:30]CAPDU: 80 11 00 00 [20:39:30]Write to MH i2c: E2 08 00 63 06 80 11 00 00 00 00 00 00 E3 [20:39:30]Write i2c OK [20:39:30]MH_I2C_Read... [20:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:30]Read from MH i2c: E2 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 17 00 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 17 00 63 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 36 [20:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:39:30]wFMCommunicate OK [20:39:30]requested_item fd.num is exist - process it [20:39:30]SAM_PROTO_GetFieldsCounters [20:39:30]wFMCommunicate request_size=4 [20:39:30]MH_SAM_APDU [20:39:30]CAPDU: 80 13 00 00 [20:39:30]Write to MH i2c: E2 08 00 64 06 80 13 00 00 00 00 00 00 E6 [20:39:30]Write i2c OK [20:39:30]MH_I2C_Read... [20:39:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:30]Read from MH i2c: E2 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 62 00 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 62 00 64 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [20:39:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 66 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:30]wFMCommunicate OK [20:39:30]SAM_PROTO_GetFieldsCounters done [20:39:30]requested_item shift.num is exist - process it [20:39:30]requested_item shift.opened is exist - process it [20:39:30]req_shift_opened [20:39:30]FM_GetShiftState [20:39:30]SAM_PROTO_GetShiftState [20:39:30]wFMCommunicate request_size=4 [20:39:30]MH_SAM_APDU [20:39:30]CAPDU: 80 13 01 00 [20:39:30]Write to MH i2c: E2 08 00 65 06 80 13 01 00 00 00 00 00 E8 [20:39:30]Write i2c OK [20:39:30]MH_I2C_Read... [20:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:30]Read from MH i2c: E2 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 0E 00 [20:39:30]MH_I2C_Read... [20:39:30]Read from MH i2c: E2 0E 00 65 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 37 [20:39:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:39:30]wFMCommunicate OK [20:39:30]SAM_PROTO_GetShiftState done [20:39:30]FM_GetShiftState done [20:39:30]req_shift_opened done [20:39:30]requested_item shift.open_date is exist - process it [20:39:30]req_shift_open_date [20:39:30]req_shift_open_date done [20:39:30]produce_requested_data done [20:39:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104038,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:39:30]process_action_free print_text [20:39:30]json_value_free [20:39:30]json_value_free done [20:39:30]process_json_proto returns [20:39:30]Send response to host [20:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104038,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:39:30]free response buf [20:39:30]execute_script done [20:39:30]execute_script returns [20:39:30]free content buf [20:39:30]Sock 9.Close socket [20:39:30]Sock 9.Thread stoped [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:42]accept exits with 7 [20:39:42]New connection [20:39:42]New thread 3066707300 created [20:39:42]Thread 3066563940 joined [20:39:42]Waiting for new connection... [20:39:42] Sock 7.Parse request [20:39:42]Sock 7.Check first char [20:39:42]Sock 7.First char is OK [20:39:42]request: POST /json_proto HTTP/1.0 [20:39:42]Method: POST [20:39:42]URL: /json_proto [20:39:42]Method is POST - this is cgi request [20:39:42]url: /json_proto [20:39:42]query_string will be loaded in cgi processing [20:39:42]execute_cgi json_proto POST (null) [20:39:42]execute_cgi path=json_proto method=POST [20:39:42]POST find Content-Length [20:39:42]Host: 172.17.38.133:8080 [20:39:42]Content-Length: 648 [20:39:42]Content-Type: application/json [20:39:42] [20:39:42]POST finish read [20:39:42]Found Content-Length = 648 [20:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 100.000, "sum" : 7290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:42]execute_script... [20:39: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)673424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 100.000, "sum" : 7290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:42]POST & json_proto [20:39:42]process_json_proto [20:39:42]json parsed OK: [20:39:42]protocol is kg_v1.0 [20:39:42]action value=close_receipt [20:39:42]process_action close_receipt [20:39:42]cmd_close_receipt [20:39:42]MH_GetDate [20:39:42]Write to MH i2c: F0 00 00 66 06 5B [20:39:42]Write i2c OK [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: F0 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: F0 09 00 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: F0 09 00 66 06 00 8E 93 74 66 BD 8F 7C 64 8B [20:39:42]GetLastDocTimeStamp 1718915904 [20:39:42]current date 1718915982 [20:39:42]FM_GetShiftState [20:39:42]SAM_PROTO_GetShiftState [20:39:42]wFMCommunicate request_size=4 [20:39:42]MH_SAM_APDU [20:39:42]CAPDU: 80 13 01 00 [20:39:42]Write to MH i2c: E2 08 00 67 06 80 13 01 00 00 00 00 00 EA [20:39:42]Write i2c OK [20:39:42]MH_I2C_Read... [20:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:42]Read from MH i2c: E2 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 0E 00 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 0E 00 67 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 39 [20:39:42]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:39:42]wFMCommunicate OK [20:39:42]SAM_PROTO_GetShiftState done [20:39:42]FM_GetShiftState done [20:39:42]opened in 1718843124 [20:39:42]opened+sec_in_day 1718929524 [20:39:42]quantity*price = 729000 [20:39:42]sum+1 = 729001 [20:39:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7290.00 НСП 1% : 64.51 НДС 12% : 774.16 Наличными: 7290.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 224 20.06.2024 20:39 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104039 ФПД: 220938309717824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203942&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104039&fm=220938309717824&tin=02508201610067®Number=0000000000092785&sum=729000 [20:39:43]StoreToDocumentArchive [20:39:43]shift 354 fd 104039 [20:39:43]save to /storage/0354/doc_00104039 [20:39:43]save last doc name /storage/0354/doc_00104039 to /storage/kkm_last_doc_name [20:39:43]save OK [20:39:43]Clear old archive folders... [20:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:39:43]tlvbuf is 014B2B40 [20:39:43]SAM_PROTO_ClearQueue [20:39:43]wFMCommunicate request_size=4 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 09 00 00 [20:39:43]Write to MH i2c: E2 08 00 74 06 80 09 00 00 00 00 00 00 EC [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 74 06 00 90 00 EE [20:39:43]RAPDU: 90 00 [20:39:43]wFMCommunicate OK [20:39:43]SAM_PROTO_ClearQueue done [20:39:43]KKMCreateOFDPacket [20:39:43]OFDProtocolAddRootSTLVToBuf [20:39:43]FM_MakeSignedData [20:39:43]FM_MakeSignedData [20:39:43]SAM_PROTO_SignData [20:39:43]wFMCommunicate request_size=4 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 0D 01 02 [20:39:43]Write to MH i2c: E2 08 00 75 06 80 0D 01 02 00 00 00 00 F4 [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 75 06 00 90 00 EF [20:39:43]RAPDU: 90 00 [20:39:43]wFMCommunicate OK [20:39:43]wFMCommunicate request_size=255 [20:39:43]MH_SAM_APDU [20:39:43]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 8E 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 96 01 00 35 04 06 00 [20:39:43]Write to MH i2c: E2 02 01 76 06 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 8E 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 96 01 00 35 04 06 00 00 00 91 [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 76 06 00 90 00 F0 [20:39:43]RAPDU: 90 00 [20:39:43]wFMCommunicate OK [20:39:43]wFMCommunicate request_size=11 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 0D 02 02 06 C8 F1 35 77 CF 40 [20:39:43]Write to MH i2c: E2 0E 00 77 06 80 0D 02 02 06 00 C8 F1 35 77 CF 40 00 00 77 [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 77 06 00 90 00 F1 [20:39:44]RAPDU: 90 00 [20:39:44]wFMCommunicate OK [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 0D 03 02 [20:39:44]Write to MH i2c: E2 08 00 78 06 80 0D 03 02 00 00 00 00 F9 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 0B 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 0B 00 78 06 00 86 E0 42 4D FB 70 52 DE 90 00 8A [20:39:44]RAPDU: 86 E0 42 4D FB 70 52 DE 90 00 [20:39:44]wFMCommunicate OK [20:39:44]SAM_PROTO_SignData done [20:39:44]FM_MakeSignedData done [20:39:44]CreateOFDProtocolMessage [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 11 00 00 [20:39:44]Write to MH i2c: E2 08 00 79 06 80 11 00 00 00 00 00 00 F9 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 17 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 17 00 79 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4C [20:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:39:44]wFMCommunicate OK [20:39:44]CreateOFDProtocolMessage done [20:39:44]OFDSenderStorePacket 104039 [20:39:44]StoreOFDPacket docnum=104039 [20:39:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 CC 62 08 01 16 0A 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 8E 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 96 01 00 35 04 06 00 C8 F1 35 77 CF 40 86 E0 42 4D FB 70 52 DE [20:39:44]CheckFolder [20:39:44]dirname=/storage/ofd_packets [20:39:44]CheckFolder done [20:39:44]ProducePacketName [20:39:44]name=ofd_packets/00104039 [20:39:44]NVStorageSaveData ofd_packets/00104039 [20:39:44]File name is /storage/ofd_packets/00104039 [20:39:44]Write 302 bytes [20:39:44]NVStorageSaveData done [20:39:44]OFDSenderStorePacket done [20:39:44]KKMCreateOFDPacket done [20:39:44]NVStorageSaveData kkm_last_timestamp [20:39:44]File name is /storage/kkm_last_timestamp [20:39:44]Write 4 bytes [20:39:44]NVStorageSaveData done [20:39:44]ExternCall_PrintAddStr [20:39:44]wPrintStart [20:39:44]Write to MH i2c: 01 00 00 7A 06 80 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 07 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 07 00 7A 06 00 00 00 00 00 FF 0F 95 [20:39:44]RasterBufferAndPrint [20:39:44]line Счет N : (1)673424 [20:39:44]line ИНН: 02508201610067 [20:39:44]line Контрольно-Кассовый Чек [20:39:44]line ПРОДАЖА [20:39:44]line ТРК (МРК, ГНК) : 21 [20:39:44]line Товар: 2710194210 [20:39:44]line ДТ(л)-К-5 [20:39:44]line 100.000 * 72.90 [20:39:44]line = 7290.00 [20:39:44]line НДС 12% НСП 1% [20:39:44]line > о реализуемом товаре [20:39:44]line ИТОГО: 7290.00 [20:39:44]line НСП 1% : 64.51 [20:39:44]line НДС 12% : 774.16 [20:39:44]line Наличными: 7290.00 [20:39:44]line Безнал.: 0.00 [20:39:44]line Место: АЗС № 120 "Партнер Нефть" [20:39:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:39:44]line СНО: Общий режим [20:39:44]line Чек 224 20.06.2024 20:39 [20:39:44]line Смена: 354 ФФД: 1.0 [20:39:44]line ЗНМ: 0300000164 [20:39:44]line РНМ: 0000000000092785 [20:39:44]line Версия ККМ: 001 [20:39:44]line ФМ: 0000000000875093 [20:39:44]line ФД: 104039 [20:39:44]line ФПД: 220938309717824 [20:39:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203942&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104039&fm=220938309717824&tin=02508201610067®Number=0000000000092785&sum=729000 [20:39:44]OFD Sender: Processing packet 104039 [packets to send 17, broken 16] [20:39:44]ProducePacketName [20:39:44]name=ofd_packets/00104039 [20:39:44]OFD Sender: To server: pG, [20:39:44]CommunicateWithHost lk.salyk.kg:30040 [20:39:44]ConnectInit lk.salyk.kg [20:39:44]written 0, free lines is 4095 [20:39:44]Connected sock=10 [20:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 CC 62 08 01 16 0A 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 8E 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 67 96 01 00 35 04 06 00 C8 F1 35 77 CF 40 86 E0 42 4D FB 70 52 DE [20:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 C8 25 47 00 AB 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 35 30 39 33 10 04 04 00 67 96 01 00 F4 03 04 00 13 3A 74 66 B6 04 01 00 00 95 E3 A1 4F 80 92 FD BE [20:39:44]CommunicateWithHost err = 0 [20:39:44]CheckOFDResponse [20:39:44]1017 (14) - 77093643461234 [20:39:44]1041 (16) - 0000000000875093 [20:39:44]1040 (4) - 104039 [20:39:44]1012 (4) - 20.06.2024 14:17 [20:39:44]1206 (1) - 0 [20:39:44]OFD Sender: Remove packet 104039 [20:39:44]ProducePacketName [20:39:44]name=ofd_packets/00104039 [20:39:44]NVStorageDeleteData [20:39:44]Write to MH i2c: 01 00 00 A2 06 A8 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 07 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 07 00 A2 06 00 00 00 00 00 1D 0D D9 [20:39:44]RasterBufferAndPrint [20:39:44]line [20:39:44]line [20:39:44]line [20:39:44]line [20:39:44]line [20:39:44]written 0, free lines is 3363 [20:39:44]MH_Cut [20:39:44]Write to MH i2c: D1 01 00 A9 06 01 81 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: D1 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: D1 01 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: D1 01 00 A9 06 00 80 [20:39:44]Write to MH i2c: 01 00 00 AA 06 B0 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:45]OFD Sender: No OFD packet to send [20:39:45]*** Cut start [20:39:45]*** Partial cut [20:39:45]*** CUTSNS_PIN = 1 [20:39:45]*** CUTSNS_PIN = 0 [20:39:45]*** Brake cut motor [20:39:46]Read from MH i2c: 01 [20:39:46]MH_I2C_Read... [20:39:46]*** Stop cut motor [20:39:46]*** Cut end [20:39:46]Read from MH i2c: 01 07 00 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: 01 07 00 AA 06 00 00 00 00 00 FF 0F C5 [20:39:46]process_action close_receipt done [20:39:46]requested_data is exist [20:39:46]produce_requested_data [20:39:46]requested_item fm.sn is exist - process it [20:39:46]wFMCommunicate request_size=4 [20:39:46]MH_SAM_APDU [20:39:46]CAPDU: 80 11 00 00 [20:39:46]Write to MH i2c: E2 08 00 AB 06 80 11 00 00 00 00 00 00 2B [20:39:46]Write i2c OK [20:39:46]MH_I2C_Read... [20:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:46]Read from MH i2c: E2 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 17 00 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 17 00 AB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 7E [20:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:39:46]wFMCommunicate OK [20:39:46]requested_item fd.num is exist - process it [20:39:46]SAM_PROTO_GetFieldsCounters [20:39:46]wFMCommunicate request_size=4 [20:39:46]MH_SAM_APDU [20:39:46]CAPDU: 80 13 00 00 [20:39:46]Write to MH i2c: E2 08 00 AC 06 80 13 00 00 00 00 00 00 2E [20:39:46]Write i2c OK [20:39:46]MH_I2C_Read... [20:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:46]Read from MH i2c: E2 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 62 00 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 62 00 AC 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 67 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [20:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 67 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:46]wFMCommunicate OK [20:39:46]SAM_PROTO_GetFieldsCounters done [20:39:46]requested_item shift.num is exist - process it [20:39:46]requested_item shift.opened is exist - process it [20:39:46]req_shift_opened [20:39:46]FM_GetShiftState [20:39:46]SAM_PROTO_GetShiftState [20:39:46]wFMCommunicate request_size=4 [20:39:46]MH_SAM_APDU [20:39:46]CAPDU: 80 13 01 00 [20:39:46]Write to MH i2c: E2 08 00 AD 06 80 13 01 00 00 00 00 00 30 [20:39:46]Write i2c OK [20:39:46]MH_I2C_Read... [20:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:46]Read from MH i2c: E2 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 0E 00 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 0E 00 AD 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 7F [20:39:46]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:39:46]wFMCommunicate OK [20:39:46]SAM_PROTO_GetShiftState done [20:39:46]FM_GetShiftState done [20:39:46]req_shift_opened done [20:39:46]requested_item shift.open_date is exist - process it [20:39:46]req_shift_open_date [20:39:46]req_shift_open_date done [20:39:46]produce_requested_data done [20:39:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104039,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:39:46]process_action_free close_receipt [20:39:46]json_value_free [20:39:46]json_value_free done [20:39:46]process_json_proto returns [20:39:46]Send response to host [20:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104039,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:39:46]free response buf [20:39:46]execute_script done [20:39:46]execute_script returns [20:39:46]free content buf [20:39:46]Sock 7.Close socket [20:39:46]Sock 7.Thread stoped [20:39:48]accept exits with 9 [20:39:48]New connection [20:39:48]New thread 3066563940 created [20:39:48]Thread 3066707300 joined [20:39:48]Waiting for new connection... [20:39:48] Sock 9.Parse request [20:39:48]Sock 9.Check first char [20:39:48]Sock 9.First char is OK [20:39:48]request: POST /json_proto HTTP/1.0 [20:39:48]Method: POST [20:39:48]URL: /json_proto [20:39:48]Method is POST - this is cgi request [20:39:48]url: /json_proto [20:39:48]query_string will be loaded in cgi processing [20:39:48]execute_cgi json_proto POST (null) [20:39:48]execute_cgi path=json_proto method=POST [20:39:48]POST find Content-Length [20:39:48]Host: 172.17.38.133:8080 [20:39:48]Content-Length: 705 [20:39:48]Content-Type: application/json [20:39:48] [20:39:48]POST finish read [20:39:48]Found Content-Length = 705 [20:39:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104039, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 100.000, "sum" : 7290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:48]execute_script... [20:39:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 104039, "base_FM": "0000000000875093", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 100.000, "sum" : 7290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:48]POST & json_proto [20:39:48]process_json_proto [20:39:48]json parsed OK: [20:39:48]protocol is kg_v1.0 [20:39:48]action value=close_receipt [20:39:48]process_action close_receipt [20:39:48]cmd_close_receipt [20:39:48]MH_GetDate [20:39:48]Write to MH i2c: F0 00 00 AE 06 A3 [20:39:48]Write i2c OK [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: F0 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: F0 09 00 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: F0 09 00 AE 06 00 95 93 74 66 BD 8F 7C 64 DA [20:39:48]GetLastDocTimeStamp 1718915982 [20:39:48]current date 1718915989 [20:39:48]FM_GetShiftState [20:39:48]SAM_PROTO_GetShiftState [20:39:48]wFMCommunicate request_size=4 [20:39:48]MH_SAM_APDU [20:39:48]CAPDU: 80 13 01 00 [20:39:48]Write to MH i2c: E2 08 00 AF 06 80 13 01 00 00 00 00 00 32 [20:39:48]Write i2c OK [20:39:48]MH_I2C_Read... [20:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:49]Read from MH i2c: E2 [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: E2 0E 00 [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: E2 0E 00 AF 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 81 [20:39:49]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:39:49]wFMCommunicate OK [20:39:49]SAM_PROTO_GetShiftState done [20:39:49]FM_GetShiftState done [20:39:49]opened in 1718843124 [20:39:49]opened+sec_in_day 1718929524 [20:39:49]quantity*price = 729000 [20:39:49]sum+1 = 729001 [20:39:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7290.00 НСП 1% : 64.51 НДС 12% : 774.16 Наличными: 7290.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 225 20.06.2024 20:39 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФД осн.: 104039 ФМ осн.: 0000000000875093 ФМ: 0000000000875093 ФД: 104040 ФПД: 90541775059817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203949&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104040&fm=90541775059817&tin=02508201610067®Number=0000000000092785&sum=729000 [20:39:50]StoreToDocumentArchive [20:39:50]shift 354 fd 104040 [20:39:50]save to /storage/0354/doc_00104040 [20:39:50]save last doc name /storage/0354/doc_00104040 to /storage/kkm_last_doc_name [20:39:50]save OK [20:39:50]Clear old archive folders... [20:39:50]ProcessDocumentItem done err = 0, tmpTLVsize=280 [20:39:50]tlvbuf is 014EFF00 [20:39:50]SAM_PROTO_ClearQueue [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 09 00 00 [20:39:50]Write to MH i2c: E2 08 00 BE 06 80 09 00 00 00 00 00 00 36 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:50]OFD Sender: No OFD packet to send [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [20:39:50]RAPDU: 90 00 [20:39:50]wFMCommunicate OK [20:39:50]SAM_PROTO_ClearQueue done [20:39:50]KKMCreateOFDPacket [20:39:50]OFDProtocolAddRootSTLVToBuf [20:39:50]FM_MakeSignedData [20:39:50]FM_MakeSignedData [20:39:50]SAM_PROTO_SignData [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 0D 01 02 [20:39:50]Write to MH i2c: E2 08 00 BF 06 80 0D 01 02 00 00 00 00 3E [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 BF 06 00 90 00 39 [20:39:50]RAPDU: 90 00 [20:39:50]wFMCommunicate OK [20:39:50]wFMCommunicate request_size=255 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 95 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 67 96 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 [20:39:50]Write to MH i2c: E2 02 01 C0 06 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 95 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 67 96 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 00 00 15 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 C0 06 00 90 00 3A [20:39:50]RAPDU: 90 00 [20:39:50]wFMCommunicate OK [20:39:50]wFMCommunicate request_size=39 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 96 01 00 35 04 06 00 52 58 E6 56 FB 69 [20:39:50]Write to MH i2c: E2 2A 00 C1 06 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 96 01 00 35 04 06 00 52 58 E6 56 FB 69 00 00 45 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 C1 06 00 90 00 3B [20:39:50]RAPDU: 90 00 [20:39:50]wFMCommunicate OK [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 0D 03 02 [20:39:50]Write to MH i2c: E2 08 00 C2 06 80 0D 03 02 00 00 00 00 43 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 0B 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 0B 00 C2 06 00 99 9E 21 22 47 9C 3D FB 90 00 D9 [20:39:50]RAPDU: 99 9E 21 22 47 9C 3D FB 90 00 [20:39:50]wFMCommunicate OK [20:39:50]SAM_PROTO_SignData done [20:39:50]FM_MakeSignedData done [20:39:50]CreateOFDProtocolMessage [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 11 00 00 [20:39:50]Write to MH i2c: E2 08 00 C3 06 80 11 00 00 00 00 00 00 43 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 17 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 17 00 C3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 96 [20:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:39:50]wFMCommunicate OK [20:39:50]CreateOFDProtocolMessage done [20:39:50]OFDSenderStorePacket 104040 [20:39:50]StoreOFDPacket docnum=104040 [20:39:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2C 01 00 00 15 F9 24 01 CB 4D 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 95 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 67 96 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 96 01 00 35 04 06 00 52 58 E6 56 FB 69 99 9E 21 22 47 9C 3D FB [20:39:50]CheckFolder [20:39:50]dirname=/storage/ofd_packets [20:39:50]CheckFolder done [20:39:50]ProducePacketName [20:39:50]name=ofd_packets/00104040 [20:39:50]NVStorageSaveData ofd_packets/00104040 [20:39:50]File name is /storage/ofd_packets/00104040 [20:39:50]Write 330 bytes [20:39:50]NVStorageSaveData done [20:39:50]OFDSenderStorePacket done [20:39:50]KKMCreateOFDPacket done [20:39:50]NVStorageSaveData kkm_last_timestamp [20:39:50]File name is /storage/kkm_last_timestamp [20:39:50]Write 4 bytes [20:39:50]NVStorageSaveData done [20:39:50]ExternCall_PrintAddStr [20:39:50]wPrintStart [20:39:50]Write to MH i2c: 01 00 00 C4 06 CA [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: 01 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: 01 07 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: 01 07 00 C4 06 00 00 00 00 00 FF 0F DF [20:39:50]RasterBufferAndPrint [20:39:50]line Счет N : (1)673424 [20:39:50]line ИНН: 02508201610067 [20:39:50]line Контрольно-Кассовый Чек [20:39:50]line ВОЗВРАТ ПРОДАЖИ [20:39:50]line ТРК (МРК, ГНК) : 21 [20:39:50]line Товар: 2710194210 [20:39:50]line ДТ(л)-К-5 [20:39:50]line 100.000 * 72.90 [20:39:50]line = 7290.00 [20:39:50]line НДС 12% НСП 1% [20:39:50]line > о реализуемом товаре [20:39:50]line ИТОГО: 7290.00 [20:39:50]line НСП 1% : 64.51 [20:39:50]line НДС 12% : 774.16 [20:39:50]line Наличными: 7290.00 [20:39:50]line Безнал.: 0.00 [20:39:50]line Место: АЗС № 120 "Партнер Нефть" [20:39:50]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:39:50]line СНО: Общий режим [20:39:50]line Чек 225 20.06.2024 20:39 [20:39:50]line Смена: 354 ФФД: 1.0 [20:39:50]line ЗНМ: 0300000164 [20:39:50]line РНМ: 0000000000092785 [20:39:50]line Версия ККМ: 001 [20:39:50]line ФД осн.: 104039 [20:39:50]line ФМ осн.: 0000000000875093 [20:39:50]line ФМ: 0000000000875093 [20:39:50]line ФД: 104040 [20:39:50]line ФПД: 90541775059817 [20:39:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T203949&type=2&operation_type=1&fn_number=0000000000875093&fd_number=104040&fm=90541775059817&tin=02508201610067®Number=0000000000092785&sum=729000 [20:39:50]written 0, free lines is 4095 [20:39:50]OFD Sender: Processing packet 104040 [packets to send 17, broken 16] [20:39:50]ProducePacketName [20:39:50]name=ofd_packets/00104040 [20:39:50]OFD Sender: To server: pG, [20:39:50]CommunicateWithHost lk.salyk.kg:30040 [20:39:50]ConnectInit lk.salyk.kg [20:39:51]Connected sock=10 [20:39:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 2C 01 00 00 15 F9 24 01 CB 4D 5A 03 01 00 03 00 18 01 1E 04 01 00 02 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A8 1F 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 1F 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 2E 01 00 00 00 07 04 06 00 A8 1F 0B 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 95 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 27 04 04 00 67 96 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 96 01 00 35 04 06 00 52 58 E6 56 FB 69 99 9E 21 22 47 9C 3D FB [20:39:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B7 B1 47 00 D9 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 68 96 01 00 F4 03 04 00 19 3A 74 66 B6 04 01 00 00 25 DB 3C C6 D0 BE 96 CA [20:39:51]CommunicateWithHost err = 0 [20:39:51]CheckOFDResponse [20:39:51]1017 (14) - 77093643461234 [20:39:51]1041 (16) - 0000000000875093 [20:39:51]1040 (4) - 104040 [20:39:51]1012 (4) - 20.06.2024 14:18 [20:39:51]1206 (1) - 0 [20:39:51]OFD Sender: Remove packet 104040 [20:39:51]ProducePacketName [20:39:51]name=ofd_packets/00104040 [20:39:51]NVStorageDeleteData [20:39:51]Write to MH i2c: 01 00 00 EE 06 F4 [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 07 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 07 00 EE 06 00 00 00 00 00 04 0D 0C [20:39:51]RasterBufferAndPrint [20:39:51]line [20:39:51]line [20:39:51]line [20:39:51]line [20:39:51]line [20:39:51]written 0, free lines is 3344 [20:39:51]MH_Cut [20:39:51]Write to MH i2c: D1 01 00 F5 06 01 CD [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: D1 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: D1 01 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: D1 01 00 F5 06 00 CC [20:39:51]Write to MH i2c: 01 00 00 F6 06 FC [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]OFD Sender: No OFD packet to send [20:39:52]*** Cut start [20:39:52]*** Partial cut [20:39:52]*** CUTSNS_PIN = 1 [20:39:52]*** CUTSNS_PIN = 0 [20:39:52]*** Brake cut motor [20:39:52]Read from MH i2c: 01 [20:39:52]MH_I2C_Read... [20:39:52]*** Stop cut motor [20:39:52]*** Cut end [20:39:52]Read from MH i2c: 01 07 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 FF 0F 11 [20:39:52]process_action close_receipt done [20:39:52]requested_data is exist [20:39:52]produce_requested_data [20:39:52]requested_item fm.sn is exist - process it [20:39:52]wFMCommunicate request_size=4 [20:39:52]MH_SAM_APDU [20:39:52]CAPDU: 80 11 00 00 [20:39:52]Write to MH i2c: E2 08 00 F7 06 80 11 00 00 00 00 00 00 77 [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:52]Read from MH i2c: E2 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 17 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 17 00 F7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CA [20:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:39:52]wFMCommunicate OK [20:39:52]requested_item fd.num is exist - process it [20:39:52]SAM_PROTO_GetFieldsCounters [20:39:52]wFMCommunicate request_size=4 [20:39:52]MH_SAM_APDU [20:39:52]CAPDU: 80 13 00 00 [20:39:52]Write to MH i2c: E2 08 00 F8 06 80 13 00 00 00 00 00 00 7A [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:52]Read from MH i2c: E2 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 62 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 62 00 F8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 68 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [20:39:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 68 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:52]wFMCommunicate OK [20:39:52]SAM_PROTO_GetFieldsCounters done [20:39:52]requested_item shift.num is exist - process it [20:39:52]requested_item shift.opened is exist - process it [20:39:52]req_shift_opened [20:39:52]FM_GetShiftState [20:39:52]SAM_PROTO_GetShiftState [20:39:52]wFMCommunicate request_size=4 [20:39:52]MH_SAM_APDU [20:39:52]CAPDU: 80 13 01 00 [20:39:52]Write to MH i2c: E2 08 00 F9 06 80 13 01 00 00 00 00 00 7C [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:53]Read from MH i2c: E2 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: E2 0E 00 [20:39:53]MH_I2C_Read... [20:39:53]Read from MH i2c: E2 0E 00 F9 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CB [20:39:53]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:39:53]wFMCommunicate OK [20:39:53]SAM_PROTO_GetShiftState done [20:39:53]FM_GetShiftState done [20:39:53]req_shift_opened done [20:39:53]requested_item shift.open_date is exist - process it [20:39:53]req_shift_open_date [20:39:53]req_shift_open_date done [20:39:53]produce_requested_data done [20:39:53]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104040,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:39:53]process_action_free close_receipt [20:39:53]json_value_free [20:39:53]json_value_free done [20:39:53]process_json_proto returns [20:39:53]Send response to host [20:39:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104040,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:39:53]free response buf [20:39:53]execute_script done [20:39:53]execute_script returns [20:39:53]free content buf [20:39:53]Sock 9.Close socket [20:39:53]Sock 9.Thread stoped [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:12]accept exits with 7 [20:41:12]New connection [20:41:12]New thread 3066707300 created [20:41:12]Thread 3066563940 joined [20:41:12]Waiting for new connection... [20:41:12] Sock 7.Parse request [20:41:12]Sock 7.Check first char [20:41:12]Sock 7.First char is OK [20:41:12]request: POST /json_proto HTTP/1.0 [20:41:12]Method: POST [20:41:12]URL: /json_proto [20:41:12]Method is POST - this is cgi request [20:41:12]url: /json_proto [20:41:12]query_string will be loaded in cgi processing [20:41:12]execute_cgi json_proto POST (null) [20:41:12]execute_cgi path=json_proto method=POST [20:41:12]POST find Content-Length [20:41:12]Host: 172.17.38.133:8080 [20:41:12]Content-Length: 683 [20:41:12]Content-Type: application/json [20:41:12] [20:41:12]POST finish read [20:41:12]Found Content-Length = 683 [20:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673420", "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" : 73.90, "quantity" : 89.600, "sum" : 6621.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 6621.00, "payments": [ { "type": 0, "sum" : 6621.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:12]execute_script... [20:41: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)673420", "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" : 73.90, "quantity" : 89.600, "sum" : 6621.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 6621.00, "payments": [ { "type": 0, "sum" : 6621.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:12]POST & json_proto [20:41:12]process_json_proto [20:41:12]json parsed OK: [20:41:12]protocol is kg_v1.0 [20:41:12]action value=close_receipt [20:41:12]process_action close_receipt [20:41:12]cmd_close_receipt [20:41:12]MH_GetDate [20:41:12]Write to MH i2c: F0 00 00 FA 06 EF [20:41:12]Write i2c OK [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: F0 [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: F0 09 00 [20:41:12]MH_I2C_Read... [20:41:12]Read from MH i2c: F0 09 00 FA 06 00 E9 93 74 66 BD 8F 7C 64 7A [20:41:12]GetLastDocTimeStamp 1718915989 [20:41:12]current date 1718916073 [20:41:12]FM_GetShiftState [20:41:12]SAM_PROTO_GetShiftState [20:41:12]wFMCommunicate request_size=4 [20:41:12]MH_SAM_APDU [20:41:12]CAPDU: 80 13 01 00 [20:41:12]Write to MH i2c: E2 08 00 FB 06 80 13 01 00 00 00 00 00 7E [20:41:12]Write i2c OK [20:41:12]MH_I2C_Read... [20:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:13]Read from MH i2c: E2 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 0E 00 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: E2 0E 00 FB 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CD [20:41:13]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:41:13]wFMCommunicate OK [20:41:13]SAM_PROTO_GetShiftState done [20:41:13]FM_GetShiftState done [20:41:13]opened in 1718843124 [20:41:13]opened+sec_in_day 1718929524 [20:41:13]quantity*price = 662144 [20:41:13]sum+1 = 662145 [20:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 6621.00 Внесено: 15000.00 СДАЧА: 8379.00 НСП 1% : 58.60 НДС 12% : 703.16 Наличными: 6621.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 226 20.06.2024 20:41 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104041 ФПД: 119018724581483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T204113&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104041&fm=119018724581483&tin=02508201610067®Number=0000000000092785&sum=662100 [20:41:14]StoreToDocumentArchive [20:41:14]shift 354 fd 104041 [20:41:14]save to /storage/0354/doc_00104041 [20:41:14]save last doc name /storage/0354/doc_00104041 to /storage/kkm_last_doc_name [20:41:14]save OK [20:41:14]Clear old archive folders... [20:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:14]tlvbuf is 014B1820 [20:41:14]SAM_PROTO_ClearQueue [20:41:14]wFMCommunicate request_size=4 [20:41:14]MH_SAM_APDU [20:41:14]CAPDU: 80 09 00 00 [20:41:14]Write to MH i2c: E2 08 00 08 07 80 09 00 00 00 00 00 00 81 [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:14]Read from MH i2c: E2 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 03 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 03 00 08 07 00 90 00 83 [20:41:14]RAPDU: 90 00 [20:41:14]wFMCommunicate OK [20:41:14]SAM_PROTO_ClearQueue done [20:41:14]KKMCreateOFDPacket [20:41:14]OFDProtocolAddRootSTLVToBuf [20:41:14]FM_MakeSignedData [20:41:14]FM_MakeSignedData [20:41:14]SAM_PROTO_SignData [20:41:14]wFMCommunicate request_size=4 [20:41:14]MH_SAM_APDU [20:41:14]CAPDU: 80 0D 01 02 [20:41:14]Write to MH i2c: E2 08 00 09 07 80 0D 01 02 00 00 00 00 89 [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:14]Read from MH i2c: E2 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 03 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 03 00 09 07 00 90 00 84 [20:41:14]RAPDU: 90 00 [20:41:14]wFMCommunicate OK [20:41:14]wFMCommunicate request_size=255 [20:41:14]MH_SAM_APDU [20:41: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 00 5E 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 80 1A 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 1A 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 12 01 00 00 00 07 04 06 00 54 1A 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 E9 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 96 01 00 35 04 06 00 6C [20:41:14]Write to MH i2c: E2 02 01 0A 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 5E 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 80 1A 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 1A 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 12 01 00 00 00 07 04 06 00 54 1A 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 E9 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 96 01 00 35 04 06 00 6C 00 00 4A [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:14]Read from MH i2c: E2 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 03 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 03 00 0A 07 00 90 00 85 [20:41:14]RAPDU: 90 00 [20:41:14]wFMCommunicate OK [20:41:14]wFMCommunicate request_size=10 [20:41:14]MH_SAM_APDU [20:41:14]CAPDU: 80 0D 02 02 05 3F 34 CC E0 6B [20:41:14]Write to MH i2c: E2 0D 00 0B 07 80 0D 02 02 05 00 3F 34 CC E0 6B 00 00 20 [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:14]Read from MH i2c: E2 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 03 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 03 00 0B 07 00 90 00 86 [20:41:14]RAPDU: 90 00 [20:41:14]wFMCommunicate OK [20:41:14]wFMCommunicate request_size=4 [20:41:14]MH_SAM_APDU [20:41:14]CAPDU: 80 0D 03 02 [20:41:14]Write to MH i2c: E2 08 00 0C 07 80 0D 03 02 00 00 00 00 8E [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:14]Read from MH i2c: E2 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 0B 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 0B 00 0C 07 00 8D 6C 54 C9 11 A1 4D 76 90 00 1A [20:41:14]RAPDU: 8D 6C 54 C9 11 A1 4D 76 90 00 [20:41:14]wFMCommunicate OK [20:41:14]SAM_PROTO_SignData done [20:41:14]FM_MakeSignedData done [20:41:14]CreateOFDProtocolMessage [20:41:14]wFMCommunicate request_size=4 [20:41:14]MH_SAM_APDU [20:41:14]CAPDU: 80 11 00 00 [20:41:14]Write to MH i2c: E2 08 00 0D 07 80 11 00 00 00 00 00 00 8E [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:14]Read from MH i2c: E2 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 17 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 17 00 0D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E1 [20:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:41:14]wFMCommunicate OK [20:41:14]CreateOFDProtocolMessage done [20:41:14]OFDSenderStorePacket 104041 [20:41:14]StoreOFDPacket docnum=104041 [20:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3E 5E 07 01 B7 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 5E 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 80 1A 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 1A 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 12 01 00 00 00 07 04 06 00 54 1A 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 E9 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 96 01 00 35 04 06 00 6C 3F 34 CC E0 6B 8D 6C 54 C9 11 A1 4D 76 [20:41:14]CheckFolder [20:41:14]dirname=/storage/ofd_packets [20:41:14]CheckFolder done [20:41:14]ProducePacketName [20:41:14]name=ofd_packets/00104041 [20:41:14]NVStorageSaveData ofd_packets/00104041 [20:41:14]File name is /storage/ofd_packets/00104041 [20:41:14]Write 301 bytes [20:41:14]NVStorageSaveData done [20:41:14]OFDSenderStorePacket done [20:41:14]KKMCreateOFDPacket done [20:41:14]NVStorageSaveData kkm_last_timestamp [20:41:14]File name is /storage/kkm_last_timestamp [20:41:14]Write 4 bytes [20:41:14]NVStorageSaveData done [20:41:14]ExternCall_PrintAddStr [20:41:14]wPrintStart [20:41:14]Write to MH i2c: 01 00 00 0E 07 15 [20:41:14]Write i2c OK [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: 01 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: 01 07 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: 01 07 00 0E 07 00 00 00 00 00 FF 0F 2A [20:41:14]RasterBufferAndPrint [20:41:14]line Счет N : (1)673420 [20:41:14]line ИНН: 02508201610067 [20:41:14]line Контрольно-Кассовый Чек [20:41:14]line ПРОДАЖА [20:41:14]line ТРК (МРК, ГНК) : 31 [20:41:14]line Товар: 2710124500 [20:41:14]line Аи-95-К-5 [20:41:14]line 89.600 * 73.90 [20:41:14]line = 6621.44 [20:41:14]line НДС 12% НСП 1% [20:41:14]line > о реализуемом товаре [20:41:14]line ОКРУГЛЕНИЕ: -0.44 [20:41:14]line ИТОГО: 6621.00 [20:41:14]line Внесено: 15000.00 [20:41:14]line СДАЧА: 8379.00 [20:41:14]line НСП 1% : 58.60 [20:41:14]line НДС 12% : 703.16 [20:41:14]line Наличными: 6621.00 [20:41:14]line Безнал.: 0.00 [20:41:14]line Место: АЗС № 120 "Партнер Нефть" [20:41:14]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:41:14]line СНО: Общий режим [20:41:14]line Чек 226 20.06.2024 20:41 [20:41:14]line Смена: 354 ФФД: 1.0 [20:41:14]line ЗНМ: 0300000164 [20:41:14]line РНМ: 0000000000092785 [20:41:14]line Версия ККМ: 001 [20:41:14]line ФМ: 0000000000875093 [20:41:14]line ФД: 104041 [20:41:14]line ФПД: 119018724581483 [20:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T204113&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104041&fm=119018724581483&tin=02508201610067®Number=0000000000092785&sum=662100 [20:41:14]OFD Sender: Processing packet 104041 [packets to send 17, broken 16] [20:41:14]ProducePacketName [20:41:14]name=ofd_packets/00104041 [20:41:14]OFD Sender: To server: pG, [20:41:14]CommunicateWithHost lk.salyk.kg:30040 [20:41:14]ConnectInit lk.salyk.kg [20:41:14]written 0, free lines is 4095 [20:41:15]Connected sock=10 [20:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 3E 5E 07 01 B7 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 00 5E 01 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 80 1A 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 1A 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 12 01 00 00 00 07 04 06 00 54 1A 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 E9 93 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 96 01 00 35 04 06 00 6C 3F 34 CC E0 6B 8D 6C 54 C9 11 A1 4D 76 [20:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 51 9B 47 00 DB 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 69 96 01 00 F4 03 04 00 6D 3A 74 66 B6 04 01 00 00 24 24 9F C5 4D C5 B9 5A [20:41:15]CommunicateWithHost err = 0 [20:41:15]CheckOFDResponse [20:41:15]1017 (14) - 77093643461234 [20:41:15]1041 (16) - 0000000000875093 [20:41:15]1040 (4) - 104041 [20:41:15]1012 (4) - 20.06.2024 14:19 [20:41:15]1206 (1) - 0 [20:41:15]OFD Sender: Remove packet 104041 [20:41:15]ProducePacketName [20:41:15]name=ofd_packets/00104041 [20:41:15]NVStorageDeleteData [20:41:15]Write to MH i2c: 01 00 00 39 07 40 [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: 01 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: 01 07 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: 01 07 00 39 07 00 00 00 00 00 EC 0C 3F [20:41:15]RasterBufferAndPrint [20:41:15]line [20:41:15]line [20:41:15]line [20:41:15]line [20:41:15]line [20:41:15]written 0, free lines is 3314 [20:41:15]MH_Cut [20:41:15]Write to MH i2c: D1 01 00 40 07 01 19 [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: D1 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: D1 01 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: D1 01 00 40 07 00 18 [20:41:15]Write to MH i2c: 01 00 00 41 07 48 [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]OFD Sender: No OFD packet to send [20:41:16]*** Cut start [20:41:16]*** Partial cut [20:41:16]*** CUTSNS_PIN = 1 [20:41:16]*** CUTSNS_PIN = 0 [20:41:16]*** Brake cut motor [20:41:16]Read from MH i2c: 01 [20:41:16]MH_I2C_Read... [20:41:16]*** Stop cut motor [20:41:16]*** Cut end [20:41:16]Read from MH i2c: 01 07 00 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: 01 07 00 41 07 00 00 00 00 00 FF 0F 5D [20:41:16]process_action close_receipt done [20:41:16]requested_data is exist [20:41:16]produce_requested_data [20:41:16]requested_item fm.sn is exist - process it [20:41:16]wFMCommunicate request_size=4 [20:41:16]MH_SAM_APDU [20:41:16]CAPDU: 80 11 00 00 [20:41:16]Write to MH i2c: E2 08 00 42 07 80 11 00 00 00 00 00 00 C3 [20:41:16]Write i2c OK [20:41:16]MH_I2C_Read... [20:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:16]Read from MH i2c: E2 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: E2 17 00 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: E2 17 00 42 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 16 [20:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:41:16]wFMCommunicate OK [20:41:16]requested_item fd.num is exist - process it [20:41:16]SAM_PROTO_GetFieldsCounters [20:41:16]wFMCommunicate request_size=4 [20:41:16]MH_SAM_APDU [20:41:16]CAPDU: 80 13 00 00 [20:41:16]Write to MH i2c: E2 08 00 43 07 80 13 00 00 00 00 00 00 C6 [20:41:16]Write i2c OK [20:41:16]MH_I2C_Read... [20:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:16]Read from MH i2c: E2 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: E2 62 00 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: E2 62 00 43 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 69 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [20:41:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 69 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:16]wFMCommunicate OK [20:41:16]SAM_PROTO_GetFieldsCounters done [20:41:16]requested_item shift.num is exist - process it [20:41:16]requested_item shift.opened is exist - process it [20:41:16]req_shift_opened [20:41:16]FM_GetShiftState [20:41:16]SAM_PROTO_GetShiftState [20:41:16]wFMCommunicate request_size=4 [20:41:16]MH_SAM_APDU [20:41:16]CAPDU: 80 13 01 00 [20:41:16]Write to MH i2c: E2 08 00 44 07 80 13 01 00 00 00 00 00 C8 [20:41:16]Write i2c OK [20:41:16]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 0E 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 0E 00 44 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 17 [20:41:17]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:41:17]wFMCommunicate OK [20:41:17]SAM_PROTO_GetShiftState done [20:41:17]FM_GetShiftState done [20:41:17]req_shift_opened done [20:41:17]requested_item shift.open_date is exist - process it [20:41:17]req_shift_open_date [20:41:17]req_shift_open_date done [20:41:17]produce_requested_data done [20:41:17]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104041,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:41:17]process_action_free close_receipt [20:41:17]json_value_free [20:41:17]json_value_free done [20:41:17]process_json_proto returns [20:41:17]Send response to host [20:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104041,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:41:17]free response buf [20:41:17]execute_script done [20:41:17]execute_script returns [20:41:17]free content buf [20:41:17]Sock 7.Close socket [20:41:17]Sock 7.Thread stoped [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:51]accept exits with 9 [20:41:51]New connection [20:41:51]New thread 3066563940 created [20:41:51]Thread 3066707300 joined [20:41:51]Waiting for new connection... [20:41:51] Sock 9.Parse request [20:41:51]Sock 9.Check first char [20:41:51]Sock 9.First char is OK [20:41:51]request: POST /json_proto HTTP/1.0 [20:41:51]Method: POST [20:41:51]URL: /json_proto [20:41:51]Method is POST - this is cgi request [20:41:51]url: /json_proto [20:41:51]query_string will be loaded in cgi processing [20:41:51]execute_cgi json_proto POST (null) [20:41:51]execute_cgi path=json_proto method=POST [20:41:51]POST find Content-Length [20:41:51]Host: 172.17.38.133:8080 [20:41:51]Content-Length: 683 [20:41:51]Content-Type: application/json [20:41:51] [20:41:51]POST finish read [20:41:51]Found Content-Length = 683 [20:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673422", "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" : 73.90, "quantity" : 63.560, "sum" : 4697.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 20000.00, "total" : 4697.00, "payments": [ { "type": 0, "sum" : 4697.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:51]execute_script... [20:41:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673422", "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" : 73.90, "quantity" : 63.560, "sum" : 4697.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 20000.00, "total" : 4697.00, "payments": [ { "type": 0, "sum" : 4697.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:51]POST & json_proto [20:41:51]process_json_proto [20:41:51]json parsed OK: [20:41:51]protocol is kg_v1.0 [20:41:51]action value=close_receipt [20:41:51]process_action close_receipt [20:41:51]cmd_close_receipt [20:41:51]MH_GetDate [20:41:51]Write to MH i2c: F0 00 00 45 07 3B [20:41:51]Write i2c OK [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: F0 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: F0 09 00 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: F0 09 00 45 07 00 0F 94 74 66 BD 8F 7C 64 ED [20:41:51]GetLastDocTimeStamp 1718916073 [20:41:51]current date 1718916111 [20:41:51]FM_GetShiftState [20:41:51]SAM_PROTO_GetShiftState [20:41:51]wFMCommunicate request_size=4 [20:41:51]MH_SAM_APDU [20:41:51]CAPDU: 80 13 01 00 [20:41:51]Write to MH i2c: E2 08 00 46 07 80 13 01 00 00 00 00 00 CA [20:41:51]Write i2c OK [20:41:51]MH_I2C_Read... [20:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:51]Read from MH i2c: E2 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: E2 0E 00 [20:41:51]MH_I2C_Read... [20:41:51]Read from MH i2c: E2 0E 00 46 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 19 [20:41:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:41:51]wFMCommunicate OK [20:41:51]SAM_PROTO_GetShiftState done [20:41:51]FM_GetShiftState done [20:41:51]opened in 1718843124 [20:41:51]opened+sec_in_day 1718929524 [20:41:51]quantity*price = 469708 [20:41:51]sum+1 = 469709 [20:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 4697.00 Внесено: 20000.00 СДАЧА: 15303.00 НСП 1% : 41.57 НДС 12% : 498.80 Наличными: 4697.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 227 20.06.2024 20:41 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104042 ФПД: 164007132896861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T204151&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104042&fm=164007132896861&tin=02508201610067®Number=0000000000092785&sum=469700 [20:41:52]StoreToDocumentArchive [20:41:52]shift 354 fd 104042 [20:41:52]save to /storage/0354/doc_00104042 [20:41:52]save last doc name /storage/0354/doc_00104042 to /storage/kkm_last_doc_name [20:41:52]save OK [20:41:52]Clear old archive folders... [20:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:52]tlvbuf is 014F01A0 [20:41:52]SAM_PROTO_ClearQueue [20:41:52]wFMCommunicate request_size=4 [20:41:52]MH_SAM_APDU [20:41:52]CAPDU: 80 09 00 00 [20:41:52]Write to MH i2c: E2 08 00 53 07 80 09 00 00 00 00 00 00 CC [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:52]Read from MH i2c: E2 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 03 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 03 00 53 07 00 90 00 CE [20:41:52]RAPDU: 90 00 [20:41:52]wFMCommunicate OK [20:41:52]SAM_PROTO_ClearQueue done [20:41:52]KKMCreateOFDPacket [20:41:52]OFDProtocolAddRootSTLVToBuf [20:41:52]FM_MakeSignedData [20:41:52]FM_MakeSignedData [20:41:52]SAM_PROTO_SignData [20:41:52]wFMCommunicate request_size=4 [20:41:52]MH_SAM_APDU [20:41:52]CAPDU: 80 0D 01 02 [20:41:52]Write to MH i2c: E2 08 00 54 07 80 0D 01 02 00 00 00 00 D4 [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:52]Read from MH i2c: E2 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 03 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 03 00 54 07 00 90 00 CF [20:41:52]RAPDU: 90 00 [20:41:52]wFMCommunicate OK [20:41:52]wFMCommunicate request_size=255 [20:41:52]MH_SAM_APDU [20:41:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 48 F8 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CC 2A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 2A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 C2 00 00 00 00 07 04 06 00 C4 2A 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 0F 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 96 01 00 35 04 06 00 95 [20:41:52]Write to MH i2c: E2 02 01 55 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 48 F8 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CC 2A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 2A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 C2 00 00 00 00 07 04 06 00 C4 2A 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 0F 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 96 01 00 35 04 06 00 95 00 00 49 [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:52]Read from MH i2c: E2 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 03 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 03 00 55 07 00 90 00 D0 [20:41:52]RAPDU: 90 00 [20:41:52]wFMCommunicate OK [20:41:52]wFMCommunicate request_size=10 [20:41:52]MH_SAM_APDU [20:41:52]CAPDU: 80 0D 02 02 05 29 E2 E5 9E 5D [20:41:52]Write to MH i2c: E2 0D 00 56 07 80 0D 02 02 05 00 29 E2 E5 9E 5D 00 00 CC [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:52]Read from MH i2c: E2 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 03 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 03 00 56 07 00 90 00 D1 [20:41:52]RAPDU: 90 00 [20:41:52]wFMCommunicate OK [20:41:52]wFMCommunicate request_size=4 [20:41:52]MH_SAM_APDU [20:41:52]CAPDU: 80 0D 03 02 [20:41:52]Write to MH i2c: E2 08 00 57 07 80 0D 03 02 00 00 00 00 D9 [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:52]Read from MH i2c: E2 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 0B 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 0B 00 57 07 00 B4 45 90 BC CF 63 AA AC 90 00 A7 [20:41:52]RAPDU: B4 45 90 BC CF 63 AA AC 90 00 [20:41:52]wFMCommunicate OK [20:41:52]SAM_PROTO_SignData done [20:41:52]FM_MakeSignedData done [20:41:52]CreateOFDProtocolMessage [20:41:52]wFMCommunicate request_size=4 [20:41:52]MH_SAM_APDU [20:41:52]CAPDU: 80 11 00 00 [20:41:52]Write to MH i2c: E2 08 00 58 07 80 11 00 00 00 00 00 00 D9 [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:52]Read from MH i2c: E2 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 17 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 17 00 58 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2C [20:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:41:52]wFMCommunicate OK [20:41:52]CreateOFDProtocolMessage done [20:41:52]OFDSenderStorePacket 104042 [20:41:52]StoreOFDPacket docnum=104042 [20:41:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 37 89 07 01 1A 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 48 F8 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CC 2A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 2A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 C2 00 00 00 00 07 04 06 00 C4 2A 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 0F 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 96 01 00 35 04 06 00 95 29 E2 E5 9E 5D B4 45 90 BC CF 63 AA AC [20:41:52]CheckFolder [20:41:52]dirname=/storage/ofd_packets [20:41:52]CheckFolder done [20:41:52]ProducePacketName [20:41:52]name=ofd_packets/00104042 [20:41:52]NVStorageSaveData ofd_packets/00104042 [20:41:52]File name is /storage/ofd_packets/00104042 [20:41:52]Write 301 bytes [20:41:52]NVStorageSaveData done [20:41:52]OFDSenderStorePacket done [20:41:52]KKMCreateOFDPacket done [20:41:52]NVStorageSaveData kkm_last_timestamp [20:41:52]File name is /storage/kkm_last_timestamp [20:41:52]Write 4 bytes [20:41:52]NVStorageSaveData done [20:41:52]ExternCall_PrintAddStr [20:41:52]wPrintStart [20:41:52]Write to MH i2c: 01 00 00 59 07 60 [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: 01 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: 01 07 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: 01 07 00 59 07 00 00 00 00 00 FF 0F 75 [20:41:52]RasterBufferAndPrint [20:41:52]line Счет N : (1)673422 [20:41:52]line ИНН: 02508201610067 [20:41:52]line Контрольно-Кассовый Чек [20:41:52]line ПРОДАЖА [20:41:52]line ТРК (МРК, ГНК) : 41 [20:41:52]line Товар: 2710124500 [20:41:52]line Аи-95-К-5 [20:41:52]line 63.560 * 73.90 [20:41:52]line = 4697.08 [20:41:52]line НДС 12% НСП 1% [20:41:52]line > о реализуемом товаре [20:41:52]line ОКРУГЛЕНИЕ: -0.08 [20:41:52]line ИТОГО: 4697.00 [20:41:52]line Внесено: 20000.00 [20:41:52]line СДАЧА: 15303.00 [20:41:52]line НСП 1% : 41.57 [20:41:52]line НДС 12% : 498.80 [20:41:52]line Наличными: 4697.00 [20:41:52]line Безнал.: 0.00 [20:41:52]line Место: АЗС № 120 "Партнер Нефть" [20:41:52]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:41:52]line СНО: Общий режим [20:41:52]line Чек 227 20.06.2024 20:41 [20:41:52]line Смена: 354 ФФД: 1.0 [20:41:52]line ЗНМ: 0300000164 [20:41:52]line РНМ: 0000000000092785 [20:41:52]line Версия ККМ: 001 [20:41:52]line ФМ: 0000000000875093 [20:41:52]line ФД: 104042 [20:41:52]line ФПД: 164007132896861 [20:41:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T204151&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104042&fm=164007132896861&tin=02508201610067®Number=0000000000092785&sum=469700 [20:41:53]OFD Sender: Processing packet 104042 [packets to send 17, broken 16] [20:41:53]ProducePacketName [20:41:53]name=ofd_packets/00104042 [20:41:53]OFD Sender: To server: pG, [20:41:53]CommunicateWithHost lk.salyk.kg:30040 [20:41:53]ConnectInit lk.salyk.kg [20:41:53]written 0, free lines is 4095 [20:41:53]Connected sock=10 [20:41:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 37 89 07 01 1A 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 48 F8 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CC 2A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 2A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 C2 00 00 00 00 07 04 06 00 C4 2A 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 0F 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6A 96 01 00 35 04 06 00 95 29 E2 E5 9E 5D B4 45 90 BC CF 63 AA AC [20:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 BA 1F 47 00 FF 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 35 30 39 33 10 04 04 00 6A 96 01 00 F4 03 04 00 94 3A 74 66 B6 04 01 00 00 27 05 14 A5 48 A4 E1 C2 [20:41:53]CommunicateWithHost err = 0 [20:41:53]CheckOFDResponse [20:41:53]1017 (14) - 77093643461234 [20:41:53]1041 (16) - 0000000000875093 [20:41:53]1040 (4) - 104042 [20:41:53]1012 (4) - 20.06.2024 14:20 [20:41:53]1206 (1) - 0 [20:41:53]OFD Sender: Remove packet 104042 [20:41:53]ProducePacketName [20:41:53]name=ofd_packets/00104042 [20:41:53]NVStorageDeleteData [20:41:53]Write to MH i2c: 01 00 00 84 07 8B [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: 01 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: 01 07 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: 01 07 00 84 07 00 00 00 00 00 EC 0C 8A [20:41:53]RasterBufferAndPrint [20:41:53]line [20:41:53]line [20:41:53]line [20:41:53]line [20:41:53]line [20:41:53]written 0, free lines is 3315 [20:41:53]MH_Cut [20:41:53]Write to MH i2c: D1 01 00 8B 07 01 64 [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: D1 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: D1 01 00 [20:41:53]MH_I2C_Read... [20:41:53]Read from MH i2c: D1 01 00 8B 07 00 63 [20:41:53]Write to MH i2c: 01 00 00 8C 07 93 [20:41:53]Write i2c OK [20:41:53]MH_I2C_Read... [20:41:54]OFD Sender: No OFD packet to send [20:41:54]*** Cut start [20:41:54]*** Partial cut [20:41:54]*** CUTSNS_PIN = 1 [20:41:54]*** CUTSNS_PIN = 0 [20:41:54]*** Brake cut motor [20:41:54]Read from MH i2c: 01 [20:41:54]MH_I2C_Read... [20:41:54]*** Stop cut motor [20:41:54]*** Cut end [20:41:54]Read from MH i2c: 01 07 00 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: 01 07 00 8C 07 00 00 00 00 00 FF 0F A8 [20:41:54]process_action close_receipt done [20:41:54]requested_data is exist [20:41:54]produce_requested_data [20:41:54]requested_item fm.sn is exist - process it [20:41:54]wFMCommunicate request_size=4 [20:41:54]MH_SAM_APDU [20:41:54]CAPDU: 80 11 00 00 [20:41:54]Write to MH i2c: E2 08 00 8D 07 80 11 00 00 00 00 00 00 0E [20:41:55]Write i2c OK [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 [20:41:55]MH_I2C_Read... [20:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:55]Read from MH i2c: E2 17 00 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 17 00 8D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 61 [20:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:41:55]wFMCommunicate OK [20:41:55]requested_item fd.num is exist - process it [20:41:55]SAM_PROTO_GetFieldsCounters [20:41:55]wFMCommunicate request_size=4 [20:41:55]MH_SAM_APDU [20:41:55]CAPDU: 80 13 00 00 [20:41:55]Write to MH i2c: E2 08 00 8E 07 80 13 00 00 00 00 00 00 11 [20:41:55]Write i2c OK [20:41:55]MH_I2C_Read... [20:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:55]Read from MH i2c: E2 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 62 00 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 62 00 8E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [20:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:55]wFMCommunicate OK [20:41:55]SAM_PROTO_GetFieldsCounters done [20:41:55]requested_item shift.num is exist - process it [20:41:55]requested_item shift.opened is exist - process it [20:41:55]req_shift_opened [20:41:55]FM_GetShiftState [20:41:55]SAM_PROTO_GetShiftState [20:41:55]wFMCommunicate request_size=4 [20:41:55]MH_SAM_APDU [20:41:55]CAPDU: 80 13 01 00 [20:41:55]Write to MH i2c: E2 08 00 8F 07 80 13 01 00 00 00 00 00 13 [20:41:55]Write i2c OK [20:41:55]MH_I2C_Read... [20:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:55]Read from MH i2c: E2 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 0E 00 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: E2 0E 00 8F 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 62 [20:41:55]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:41:55]wFMCommunicate OK [20:41:55]SAM_PROTO_GetShiftState done [20:41:55]FM_GetShiftState done [20:41:55]req_shift_opened done [20:41:55]requested_item shift.open_date is exist - process it [20:41:55]req_shift_open_date [20:41:55]req_shift_open_date done [20:41:55]produce_requested_data done [20:41:55]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104042,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:41:55]process_action_free close_receipt [20:41:55]json_value_free [20:41:55]json_value_free done [20:41:55]process_json_proto returns [20:41:55]Send response to host [20:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104042,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:41:55]free response buf [20:41:55]execute_script done [20:41:55]execute_script returns [20:41:55]free content buf [20:41:55]Sock 9.Close socket [20:41:55]Sock 9.Thread stoped [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]accept exits with 7 [20:42:34]New connection [20:42:34]New thread 3066707300 created [20:42:34]Thread 3066563940 joined [20:42:34]Waiting for new connection... [20:42:34] Sock 7.Parse request [20:42:34]Sock 7.Check first char [20:42:34]Sock 7.First char is OK [20:42:34]request: POST /json_proto HTTP/1.0 [20:42:34]Method: POST [20:42:34]URL: /json_proto [20:42:34]Method is POST - this is cgi request [20:42:34]url: /json_proto [20:42:34]query_string will be loaded in cgi processing [20:42:34]execute_cgi json_proto POST (null) [20:42:34]execute_cgi path=json_proto method=POST [20:42:34]POST find Content-Length [20:42:34]Host: 172.17.38.133:8080 [20:42:34]Content-Length: 678 [20:42:34]Content-Type: application/json [20:42:34] [20:42:34]POST finish read [20:42:34]Found Content-Length = 678 [20:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:34]execute_script... [20:42: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)673425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:34]POST & json_proto [20:42:34]process_json_proto [20:42:34]json parsed OK: [20:42:34]protocol is kg_v1.0 [20:42:34]action value=close_receipt [20:42:34]process_action close_receipt [20:42:34]cmd_close_receipt [20:42:34]MH_GetDate [20:42:34]Write to MH i2c: F0 00 00 90 07 86 [20:42:34]Write i2c OK [20:42:34]MH_I2C_Read... [20:42:34]Read from MH i2c: F0 [20:42:34]MH_I2C_Read... [20:42:34]Read from MH i2c: F0 09 00 [20:42:34]MH_I2C_Read... [20:42:34]Read from MH i2c: F0 09 00 90 07 00 3A 94 74 66 BD 8F 7C 64 63 [20:42:34]GetLastDocTimeStamp 1718916111 [20:42:34]current date 1718916154 [20:42:34]FM_GetShiftState [20:42:34]SAM_PROTO_GetShiftState [20:42:34]wFMCommunicate request_size=4 [20:42:34]MH_SAM_APDU [20:42:34]CAPDU: 80 13 01 00 [20:42:34]Write to MH i2c: E2 08 00 91 07 80 13 01 00 00 00 00 00 15 [20:42:34]Write i2c OK [20:42:34]MH_I2C_Read... [20:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:34]Read from MH i2c: E2 [20:42:34]MH_I2C_Read... [20:42:34]Read from MH i2c: E2 0E 00 [20:42:34]MH_I2C_Read... [20:42:34]Read from MH i2c: E2 0E 00 91 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 64 [20:42:34]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:42:34]wFMCommunicate OK [20:42:34]SAM_PROTO_GetShiftState done [20:42:34]FM_GetShiftState done [20:42:34]opened in 1718843124 [20:42:34]opened+sec_in_day 1718929524 [20:42:34]quantity*price = 90038 [20:42:34]sum+1 = 90039 [20:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 228 20.06.2024 20:42 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104043 ФПД: 20827042864516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T204234&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104043&fm=20827042864516&tin=02508201610067®Number=0000000000092785&sum=90000 [20:42:35]StoreToDocumentArchive [20:42:35]shift 354 fd 104043 [20:42:35]save to /storage/0354/doc_00104043 [20:42:35]save last doc name /storage/0354/doc_00104043 to /storage/kkm_last_doc_name [20:42:35]save OK [20:42:35]Clear old archive folders... [20:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:42:35]tlvbuf is 014BCEC0 [20:42:35]SAM_PROTO_ClearQueue [20:42:35]wFMCommunicate request_size=4 [20:42:35]MH_SAM_APDU [20:42:35]CAPDU: 80 09 00 00 [20:42:35]Write to MH i2c: E2 08 00 9E 07 80 09 00 00 00 00 00 00 17 [20:42:35]Write i2c OK [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 [20:42:35]MH_I2C_Read... [20:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:35]Read from MH i2c: E2 03 00 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 03 00 9E 07 00 90 00 19 [20:42:35]RAPDU: 90 00 [20:42:35]wFMCommunicate OK [20:42:35]SAM_PROTO_ClearQueue done [20:42:35]KKMCreateOFDPacket [20:42:35]OFDProtocolAddRootSTLVToBuf [20:42:35]FM_MakeSignedData [20:42:35]FM_MakeSignedData [20:42:35]SAM_PROTO_SignData [20:42:35]wFMCommunicate request_size=4 [20:42:35]MH_SAM_APDU [20:42:35]CAPDU: 80 0D 01 02 [20:42:35]Write to MH i2c: E2 08 00 9F 07 80 0D 01 02 00 00 00 00 1F [20:42:35]Write i2c OK [20:42:35]MH_I2C_Read... [20:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:35]Read from MH i2c: E2 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 03 00 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [20:42:35]RAPDU: 90 00 [20:42:35]wFMCommunicate OK [20:42:35]wFMCommunicate request_size=255 [20:42:35]MH_SAM_APDU [20:42: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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3A 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 96 01 00 35 04 06 00 12 [20:42:35]Write to MH i2c: E2 02 01 A0 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3A 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 96 01 00 35 04 06 00 12 00 00 FC [20:42:35]Write i2c OK [20:42:35]MH_I2C_Read... [20:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:35]Read from MH i2c: E2 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 03 00 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 03 00 A0 07 00 90 00 1B [20:42:35]RAPDU: 90 00 [20:42:35]wFMCommunicate OK [20:42:35]wFMCommunicate request_size=10 [20:42:35]MH_SAM_APDU [20:42:35]CAPDU: 80 0D 02 02 05 F1 2C 7D DD 84 [20:42:35]Write to MH i2c: E2 0D 00 A1 07 80 0D 02 02 05 00 F1 2C 7D DD 84 00 00 27 [20:42:35]Write i2c OK [20:42:35]MH_I2C_Read... [20:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:35]Read from MH i2c: E2 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 03 00 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [20:42:35]RAPDU: 90 00 [20:42:35]wFMCommunicate OK [20:42:35]wFMCommunicate request_size=4 [20:42:35]MH_SAM_APDU [20:42:35]CAPDU: 80 0D 03 02 [20:42:35]Write to MH i2c: E2 08 00 A2 07 80 0D 03 02 00 00 00 00 24 [20:42:35]Write i2c OK [20:42:35]MH_I2C_Read... [20:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:35]Read from MH i2c: E2 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 0B 00 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 0B 00 A2 07 00 FE F6 57 96 D2 7C DF F9 90 00 2C [20:42:35]RAPDU: FE F6 57 96 D2 7C DF F9 90 00 [20:42:35]wFMCommunicate OK [20:42:35]SAM_PROTO_SignData done [20:42:35]FM_MakeSignedData done [20:42:35]CreateOFDProtocolMessage [20:42:35]wFMCommunicate request_size=4 [20:42:35]MH_SAM_APDU [20:42:35]CAPDU: 80 11 00 00 [20:42:35]Write to MH i2c: E2 08 00 A3 07 80 11 00 00 00 00 00 00 24 [20:42:35]Write i2c OK [20:42:35]MH_I2C_Read... [20:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:35]Read from MH i2c: E2 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 17 00 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: E2 17 00 A3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 77 [20:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:42:35]wFMCommunicate OK [20:42:35]CreateOFDProtocolMessage done [20:42:35]OFDSenderStorePacket 104043 [20:42:35]StoreOFDPacket docnum=104043 [20:42:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0B FD 07 01 91 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3A 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 96 01 00 35 04 06 00 12 F1 2C 7D DD 84 FE F6 57 96 D2 7C DF F9 [20:42:35]CheckFolder [20:42:35]dirname=/storage/ofd_packets [20:42:35]CheckFolder done [20:42:35]ProducePacketName [20:42:35]name=ofd_packets/00104043 [20:42:35]NVStorageSaveData ofd_packets/00104043 [20:42:35]File name is /storage/ofd_packets/00104043 [20:42:35]Write 301 bytes [20:42:35]NVStorageSaveData done [20:42:35]OFDSenderStorePacket done [20:42:35]KKMCreateOFDPacket done [20:42:35]NVStorageSaveData kkm_last_timestamp [20:42:35]File name is /storage/kkm_last_timestamp [20:42:35]Write 4 bytes [20:42:35]NVStorageSaveData done [20:42:35]ExternCall_PrintAddStr [20:42:35]wPrintStart [20:42:35]Write to MH i2c: 01 00 00 A4 07 AB [20:42:35]Write i2c OK [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: 01 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: 01 07 00 [20:42:35]MH_I2C_Read... [20:42:35]Read from MH i2c: 01 07 00 A4 07 00 00 00 00 00 FF 0F C0 [20:42:35]RasterBufferAndPrint [20:42:35]line Счет N : (1)673425 [20:42:35]line ИНН: 02508201610067 [20:42:35]line Контрольно-Кассовый Чек [20:42:35]line ПРОДАЖА [20:42:35]line ТРК (МРК, ГНК) : 32 [20:42:35]line Товар: 2710124130 [20:42:35]line Аи-92-К-5 [20:42:35]line 13.560 * 66.40 [20:42:35]line = 900.38 [20:42:35]line НДС 12% НСП 1% [20:42:35]line > о реализуемом товаре [20:42:35]line ОКРУГЛЕНИЕ: -0.38 [20:42:35]line ИТОГО: 900.00 [20:42:35]line Внесено: 900.00 [20:42:35]line СДАЧА: 0.00 [20:42:35]line НСП 1% : 7.97 [20:42:35]line НДС 12% : 95.62 [20:42:35]line Наличными: 900.00 [20:42:35]line Безнал.: 0.00 [20:42:35]line Место: АЗС № 120 "Партнер Нефть" [20:42:35]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:42:35]line СНО: Общий режим [20:42:35]line Чек 228 20.06.2024 20:42 [20:42:35]line Смена: 354 ФФД: 1.0 [20:42:35]line ЗНМ: 0300000164 [20:42:35]line РНМ: 0000000000092785 [20:42:35]line Версия ККМ: 001 [20:42:35]line ФМ: 0000000000875093 [20:42:35]line ФД: 104043 [20:42:35]line ФПД: 20827042864516 [20:42:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T204234&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104043&fm=20827042864516&tin=02508201610067®Number=0000000000092785&sum=90000 [20:42:36]written 0, free lines is 4095 [20:42:36]OFD Sender: Processing packet 104043 [packets to send 17, broken 16] [20:42:36]ProducePacketName [20:42:36]name=ofd_packets/00104043 [20:42:36]OFD Sender: To server: pG, [20:42:36]CommunicateWithHost lk.salyk.kg:30040 [20:42:36]ConnectInit lk.salyk.kg [20:42:36]Connected sock=10 [20:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0B FD 07 01 91 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 3A 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6B 96 01 00 35 04 06 00 12 F1 2C 7D DD 84 FE F6 57 96 D2 7C DF F9 [20:42:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 85 3B 47 00 B0 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 35 30 39 33 10 04 04 00 6B 96 01 00 F4 03 04 00 BF 3A 74 66 B6 04 01 00 00 C8 07 5A 4C DD 0B A3 A9 [20:42:36]CommunicateWithHost err = 0 [20:42:36]CheckOFDResponse [20:42:36]1017 (14) - 77093643461234 [20:42:36]1041 (16) - 0000000000875093 [20:42:36]1040 (4) - 104043 [20:42:36]1012 (4) - 20.06.2024 14:20 [20:42:36]1206 (1) - 0 [20:42:36]OFD Sender: Remove packet 104043 [20:42:36]ProducePacketName [20:42:36]name=ofd_packets/00104043 [20:42:36]NVStorageDeleteData [20:42:36]Write to MH i2c: 01 00 00 CF 07 D6 [20:42:36]Write i2c OK [20:42:36]MH_I2C_Read... [20:42:36]Read from MH i2c: 01 [20:42:36]MH_I2C_Read... [20:42:36]Read from MH i2c: 01 07 00 [20:42:36]MH_I2C_Read... [20:42:36]Read from MH i2c: 01 07 00 CF 07 00 00 00 00 00 E0 0C C9 [20:42:36]RasterBufferAndPrint [20:42:36]line [20:42:36]line [20:42:36]line [20:42:36]line [20:42:36]line [20:42:36]written 0, free lines is 3304 [20:42:36]MH_Cut [20:42:36]Write to MH i2c: D1 01 00 D6 07 01 AF [20:42:36]Write i2c OK [20:42:36]MH_I2C_Read... [20:42:36]Read from MH i2c: D1 [20:42:36]MH_I2C_Read... [20:42:36]Read from MH i2c: D1 01 00 [20:42:36]MH_I2C_Read... [20:42:36]Read from MH i2c: D1 01 00 D6 07 00 AE [20:42:36]Write to MH i2c: 01 00 00 D7 07 DE [20:42:36]Write i2c OK [20:42:36]MH_I2C_Read... [20:42:36]OFD Sender: No OFD packet to send [20:42:37]*** Cut start [20:42:37]*** Partial cut [20:42:37]*** CUTSNS_PIN = 1 [20:42:37]*** CUTSNS_PIN = 0 [20:42:37]*** Brake cut motor [20:42:37]Read from MH i2c: 01 [20:42:37]MH_I2C_Read... [20:42:37]*** Stop cut motor [20:42:37]*** Cut end [20:42:37]Read from MH i2c: 01 07 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 FF 0F F3 [20:42:37]process_action close_receipt done [20:42:37]requested_data is exist [20:42:37]produce_requested_data [20:42:37]requested_item fm.sn is exist - process it [20:42:37]wFMCommunicate request_size=4 [20:42:37]MH_SAM_APDU [20:42:37]CAPDU: 80 11 00 00 [20:42:37]Write to MH i2c: E2 08 00 D8 07 80 11 00 00 00 00 00 00 59 [20:42:37]Write i2c OK [20:42:37]MH_I2C_Read... [20:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:37]Read from MH i2c: E2 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 17 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 17 00 D8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AC [20:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:42:37]wFMCommunicate OK [20:42:37]requested_item fd.num is exist - process it [20:42:37]SAM_PROTO_GetFieldsCounters [20:42:37]wFMCommunicate request_size=4 [20:42:37]MH_SAM_APDU [20:42:37]CAPDU: 80 13 00 00 [20:42:37]Write to MH i2c: E2 08 00 D9 07 80 13 00 00 00 00 00 00 5C [20:42:37]Write i2c OK [20:42:37]MH_I2C_Read... [20:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:37]Read from MH i2c: E2 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 62 00 [20:42:37]MH_I2C_Read... [20:42:37]Read from MH i2c: E2 62 00 D9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [20:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:38]wFMCommunicate OK [20:42:38]SAM_PROTO_GetFieldsCounters done [20:42:38]requested_item shift.num is exist - process it [20:42:38]requested_item shift.opened is exist - process it [20:42:38]req_shift_opened [20:42:38]FM_GetShiftState [20:42:38]SAM_PROTO_GetShiftState [20:42:38]wFMCommunicate request_size=4 [20:42:38]MH_SAM_APDU [20:42:38]CAPDU: 80 13 01 00 [20:42:38]Write to MH i2c: E2 08 00 DA 07 80 13 01 00 00 00 00 00 5E [20:42:38]Write i2c OK [20:42:38]MH_I2C_Read... [20:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:38]Read from MH i2c: E2 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 0E 00 [20:42:38]MH_I2C_Read... [20:42:38]Read from MH i2c: E2 0E 00 DA 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AD [20:42:38]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:42:38]wFMCommunicate OK [20:42:38]SAM_PROTO_GetShiftState done [20:42:38]FM_GetShiftState done [20:42:38]req_shift_opened done [20:42:38]requested_item shift.open_date is exist - process it [20:42:38]req_shift_open_date [20:42:38]req_shift_open_date done [20:42:38]produce_requested_data done [20:42:38]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104043,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:42:38]process_action_free close_receipt [20:42:38]json_value_free [20:42:38]json_value_free done [20:42:38]process_json_proto returns [20:42:38]Send response to host [20:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104043,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:42:38]free response buf [20:42:38]execute_script done [20:42:38]execute_script returns [20:42:38]free content buf [20:42:38]Sock 7.Close socket [20:42:38]Sock 7.Thread stoped [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:29]accept exits with 9 [20:45:29]New connection [20:45:29]New thread 3066563940 created [20:45:29]Thread 3066707300 joined [20:45:29]Waiting for new connection... [20:45:29] Sock 9.Parse request [20:45:29]Sock 9.Check first char [20:45:29]Sock 9.First char is OK [20:45:29]request: POST /json_proto HTTP/1.0 [20:45:29]Method: POST [20:45:29]URL: /json_proto [20:45:29]Method is POST - this is cgi request [20:45:29]url: /json_proto [20:45:29]query_string will be loaded in cgi processing [20:45:29]execute_cgi json_proto POST (null) [20:45:29]execute_cgi path=json_proto method=POST [20:45:29]POST find Content-Length [20:45:29]Host: 172.17.38.133:8080 [20:45:29]Content-Length: 650 [20:45:29]Content-Type: application/json [20:45:29] [20:45:29]POST finish read [20:45:29]Found Content-Length = 650 [20:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 200.000, "sum" : 14580.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 14580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:29]execute_script... [20:45:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 200.000, "sum" : 14580.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 14580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:45:29]POST & json_proto [20:45:29]process_json_proto [20:45:29]json parsed OK: [20:45:29]protocol is kg_v1.0 [20:45:29]action value=close_receipt [20:45:29]process_action close_receipt [20:45:29]cmd_close_receipt [20:45:29]MH_GetDate [20:45:29]Write to MH i2c: F0 00 00 DB 07 D1 [20:45:29]Write i2c OK [20:45:29]MH_I2C_Read... [20:45:29]Read from MH i2c: F0 [20:45:29]MH_I2C_Read... [20:45:29]Read from MH i2c: F0 09 00 [20:45:29]MH_I2C_Read... [20:45:29]Read from MH i2c: F0 09 00 DB 07 00 E9 94 74 66 BD 8F 7C 64 5D [20:45:29]GetLastDocTimeStamp 1718916154 [20:45:29]current date 1718916329 [20:45:29]FM_GetShiftState [20:45:29]SAM_PROTO_GetShiftState [20:45:29]wFMCommunicate request_size=4 [20:45:29]MH_SAM_APDU [20:45:29]CAPDU: 80 13 01 00 [20:45:29]Write to MH i2c: E2 08 00 DC 07 80 13 01 00 00 00 00 00 60 [20:45:29]Write i2c OK [20:45:29]MH_I2C_Read... [20:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:29]Read from MH i2c: E2 [20:45:29]MH_I2C_Read... [20:45:29]Read from MH i2c: E2 0E 00 [20:45:29]MH_I2C_Read... [20:45:29]Read from MH i2c: E2 0E 00 DC 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AF [20:45:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:45:29]wFMCommunicate OK [20:45:29]SAM_PROTO_GetShiftState done [20:45:29]FM_GetShiftState done [20:45:29]opened in 1718843124 [20:45:29]opened+sec_in_day 1718929524 [20:45:29]quantity*price = 1458000 [20:45:29]sum+1 = 1458001 [20:45:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 14580.00 НСП 1% : 129.03 НДС 12% : 1548.32 Наличными: 14580.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 229 20.06.2024 20:45 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104044 ФПД: 145102166507656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T204529&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104044&fm=145102166507656&tin=02508201610067®Number=0000000000092785&sum=1458000 [20:45:30]StoreToDocumentArchive [20:45:30]shift 354 fd 104044 [20:45:30]save to /storage/0354/doc_00104044 [20:45:30]save last doc name /storage/0354/doc_00104044 to /storage/kkm_last_doc_name [20:45:30]save OK [20:45:30]Clear old archive folders... [20:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:45:30]tlvbuf is 014C83D0 [20:45:30]SAM_PROTO_ClearQueue [20:45:30]wFMCommunicate request_size=4 [20:45:30]MH_SAM_APDU [20:45:30]CAPDU: 80 09 00 00 [20:45:30]Write to MH i2c: E2 08 00 E9 07 80 09 00 00 00 00 00 00 62 [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:45:30]Read from MH i2c: E2 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 03 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [20:45:30]RAPDU: 90 00 [20:45:30]wFMCommunicate OK [20:45:30]SAM_PROTO_ClearQueue done [20:45:30]KKMCreateOFDPacket [20:45:30]OFDProtocolAddRootSTLVToBuf [20:45:30]FM_MakeSignedData [20:45:30]FM_MakeSignedData [20:45:30]SAM_PROTO_SignData [20:45:30]wFMCommunicate request_size=4 [20:45:30]MH_SAM_APDU [20:45:30]CAPDU: 80 0D 01 02 [20:45:30]Write to MH i2c: E2 08 00 EA 07 80 0D 01 02 00 00 00 00 6A [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:45:30]Read from MH i2c: E2 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 03 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [20:45:30]RAPDU: 90 00 [20:45:30]wFMCommunicate OK [20:45:30]wFMCommunicate request_size=255 [20:45:30]MH_SAM_APDU [20:45:30]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 50 3F 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 E9 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 96 01 00 35 04 06 00 [20:45:30]Write to MH i2c: E2 02 01 EB 07 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 50 3F 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 E9 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 96 01 00 35 04 06 00 00 00 F3 [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:30]Read from MH i2c: E2 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 03 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 03 00 EB 07 00 90 00 66 [20:45:30]RAPDU: 90 00 [20:45:30]wFMCommunicate OK [20:45:30]wFMCommunicate request_size=11 [20:45:30]MH_SAM_APDU [20:45:30]CAPDU: 80 0D 02 02 06 83 F8 3B 17 40 88 [20:45:30]Write to MH i2c: E2 0E 00 EC 07 80 0D 02 02 06 00 83 F8 3B 17 40 88 00 00 0E [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:45:30]Read from MH i2c: E2 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 03 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 03 00 EC 07 00 90 00 67 [20:45:30]RAPDU: 90 00 [20:45:30]wFMCommunicate OK [20:45:30]wFMCommunicate request_size=4 [20:45:30]MH_SAM_APDU [20:45:30]CAPDU: 80 0D 03 02 [20:45:30]Write to MH i2c: E2 08 00 ED 07 80 0D 03 02 00 00 00 00 6F [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:45:30]Read from MH i2c: E2 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 0B 00 [20:45:30]MH_I2C_Read... [20:45:30]Read from MH i2c: E2 0B 00 ED 07 00 80 44 4F 46 5C 1E 85 96 90 00 5E [20:45:30]RAPDU: 80 44 4F 46 5C 1E 85 96 90 00 [20:45:30]wFMCommunicate OK [20:45:30]SAM_PROTO_SignData done [20:45:30]FM_MakeSignedData done [20:45:30]CreateOFDProtocolMessage [20:45:30]wFMCommunicate request_size=4 [20:45:30]MH_SAM_APDU [20:45:30]CAPDU: 80 11 00 00 [20:45:30]Write to MH i2c: E2 08 00 EE 07 80 11 00 00 00 00 00 00 6F [20:45:30]Write i2c OK [20:45:30]MH_I2C_Read... [20:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:31]Read from MH i2c: E2 [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: E2 17 00 [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: E2 17 00 EE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C2 [20:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:45:31]wFMCommunicate OK [20:45:31]CreateOFDProtocolMessage done [20:45:31]OFDSenderStorePacket 104044 [20:45:31]StoreOFDPacket docnum=104044 [20:45:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C3 E9 08 01 5E F3 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 50 3F 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 E9 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 96 01 00 35 04 06 00 83 F8 3B 17 40 88 80 44 4F 46 5C 1E 85 96 [20:45:31]CheckFolder [20:45:31]dirname=/storage/ofd_packets [20:45:31]CheckFolder done [20:45:31]ProducePacketName [20:45:31]name=ofd_packets/00104044 [20:45:31]NVStorageSaveData ofd_packets/00104044 [20:45:31]File name is /storage/ofd_packets/00104044 [20:45:31]Write 302 bytes [20:45:31]NVStorageSaveData done [20:45:31]OFDSenderStorePacket done [20:45:31]KKMCreateOFDPacket done [20:45:31]NVStorageSaveData kkm_last_timestamp [20:45:31]File name is /storage/kkm_last_timestamp [20:45:31]Write 4 bytes [20:45:31]NVStorageSaveData done [20:45:31]ExternCall_PrintAddStr [20:45:31]wPrintStart [20:45:31]Write to MH i2c: 01 00 00 EF 07 F6 [20:45:31]Write i2c OK [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: 01 [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: 01 07 00 [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: 01 07 00 EF 07 00 00 00 00 00 FF 0F 0B [20:45:31]RasterBufferAndPrint [20:45:31]line Счет N : (1)673423 [20:45:31]line ИНН: 02508201610067 [20:45:31]line Контрольно-Кассовый Чек [20:45:31]line ПРОДАЖА [20:45:31]line ТРК (МРК, ГНК) : 11 [20:45:31]line Товар: 2710194210 [20:45:31]line ДТ(л)-К-5 [20:45:31]line 200.000 * 72.90 [20:45:31]line = 14580.00 [20:45:31]line НДС 12% НСП 1% [20:45:31]line > о реализуемом товаре [20:45:31]line ИТОГО: 14580.00 [20:45:31]line НСП 1% : 129.03 [20:45:31]line НДС 12% : 1548.32 [20:45:31]line Наличными: 14580.00 [20:45:31]line Безнал.: 0.00 [20:45:31]line Место: АЗС № 120 "Партнер Нефть" [20:45:31]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:45:31]line СНО: Общий режим [20:45:31]line Чек 229 20.06.2024 20:45 [20:45:31]line Смена: 354 ФФД: 1.0 [20:45:31]line ЗНМ: 0300000164 [20:45:31]line РНМ: 0000000000092785 [20:45:31]line Версия ККМ: 001 [20:45:31]line ФМ: 0000000000875093 [20:45:31]line ФД: 104044 [20:45:31]line ФПД: 145102166507656 [20:45:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T204529&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104044&fm=145102166507656&tin=02508201610067®Number=0000000000092785&sum=1458000 [20:45:31]OFD Sender: Processing packet 104044 [packets to send 17, broken 16] [20:45:31]ProducePacketName [20:45:31]name=ofd_packets/00104044 [20:45:31]OFD Sender: To server: pG, [20:45:31]CommunicateWithHost lk.salyk.kg:30040 [20:45:31]ConnectInit lk.salyk.kg [20:45:31]written 0, free lines is 4095 [20:45:31]Connected sock=7 [20:45:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 C3 E9 08 01 5E F3 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 3F 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3F 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 32 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 5C 02 00 00 00 07 04 06 00 50 3F 16 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 E9 94 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 96 01 00 35 04 06 00 83 F8 3B 17 40 88 80 44 4F 46 5C 1E 85 96 [20:45:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9F 0A 47 00 82 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6C 96 01 00 F4 03 04 00 6E 3B 74 66 B6 04 01 00 00 8A 70 7D BF 27 DA 7F AB [20:45:31]CommunicateWithHost err = 0 [20:45:31]CheckOFDResponse [20:45:31]1017 (14) - 77093643461234 [20:45:31]1041 (16) - 0000000000875093 [20:45:31]1040 (4) - 104044 [20:45:31]1012 (4) - 20.06.2024 14:23 [20:45:31]1206 (1) - 0 [20:45:31]OFD Sender: Remove packet 104044 [20:45:31]ProducePacketName [20:45:31]name=ofd_packets/00104044 [20:45:31]NVStorageDeleteData [20:45:31]Write to MH i2c: 01 00 00 17 08 1F [20:45:31]Write i2c OK [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: 01 [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: 01 07 00 [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: 01 07 00 17 08 00 00 00 00 00 0E 0D 41 [20:45:31]RasterBufferAndPrint [20:45:31]line [20:45:31]line [20:45:31]line [20:45:31]line [20:45:31]line [20:45:31]written 0, free lines is 3349 [20:45:31]MH_Cut [20:45:31]Write to MH i2c: D1 01 00 1E 08 01 F8 [20:45:31]Write i2c OK [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: D1 [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: D1 01 00 [20:45:31]MH_I2C_Read... [20:45:31]Read from MH i2c: D1 01 00 1E 08 00 F7 [20:45:31]Write to MH i2c: 01 00 00 1F 08 27 [20:45:31]Write i2c OK [20:45:31]MH_I2C_Read... [20:45:32]OFD Sender: No OFD packet to send [20:45:32]*** Cut start [20:45:32]*** Partial cut [20:45:32]*** CUTSNS_PIN = 1 [20:45:32]*** CUTSNS_PIN = 0 [20:45:32]*** Brake cut motor [20:45:33]Read from MH i2c: 01 [20:45:33]MH_I2C_Read... [20:45:33]*** Stop cut motor [20:45:33]*** Cut end [20:45:33]Read from MH i2c: 01 07 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: 01 07 00 1F 08 00 00 00 00 00 FF 0F 3C [20:45:33]process_action close_receipt done [20:45:33]requested_data is exist [20:45:33]produce_requested_data [20:45:33]requested_item fm.sn is exist - process it [20:45:33]wFMCommunicate request_size=4 [20:45:33]MH_SAM_APDU [20:45:33]CAPDU: 80 11 00 00 [20:45:33]Write to MH i2c: E2 08 00 20 08 80 11 00 00 00 00 00 00 A2 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:45:33]Read from MH i2c: E2 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 17 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 17 00 20 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F5 [20:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:45:33]wFMCommunicate OK [20:45:33]requested_item fd.num is exist - process it [20:45:33]SAM_PROTO_GetFieldsCounters [20:45:33]wFMCommunicate request_size=4 [20:45:33]MH_SAM_APDU [20:45:33]CAPDU: 80 13 00 00 [20:45:33]Write to MH i2c: E2 08 00 21 08 80 13 00 00 00 00 00 00 A5 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:45:33]Read from MH i2c: E2 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 62 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 62 00 21 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [20:45:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:45:33]wFMCommunicate OK [20:45:33]SAM_PROTO_GetFieldsCounters done [20:45:33]requested_item shift.num is exist - process it [20:45:33]requested_item shift.opened is exist - process it [20:45:33]req_shift_opened [20:45:33]FM_GetShiftState [20:45:33]SAM_PROTO_GetShiftState [20:45:33]wFMCommunicate request_size=4 [20:45:33]MH_SAM_APDU [20:45:33]CAPDU: 80 13 01 00 [20:45:33]Write to MH i2c: E2 08 00 22 08 80 13 01 00 00 00 00 00 A7 [20:45:33]Write i2c OK [20:45:33]MH_I2C_Read... [20:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:45:33]Read from MH i2c: E2 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 0E 00 [20:45:33]MH_I2C_Read... [20:45:33]Read from MH i2c: E2 0E 00 22 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F6 [20:45:33]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:45:33]wFMCommunicate OK [20:45:33]SAM_PROTO_GetShiftState done [20:45:33]FM_GetShiftState done [20:45:33]req_shift_opened done [20:45:33]requested_item shift.open_date is exist - process it [20:45:33]req_shift_open_date [20:45:33]req_shift_open_date done [20:45:33]produce_requested_data done [20:45:33]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104044,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:45:33]process_action_free close_receipt [20:45:33]json_value_free [20:45:33]json_value_free done [20:45:33]process_json_proto returns [20:45:33]Send response to host [20:45:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104044,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:45:33]free response buf [20:45:33]execute_script done [20:45:33]execute_script returns [20:45:33]free content buf [20:45:33]Sock 9.Close socket [20:45:33]Sock 9.Thread stoped [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:03]accept exits with 10 [20:48:03]New connection [20:48:03]New thread 3066707300 created [20:48:03]Thread 3066563940 joined [20:48:03]Waiting for new connection... [20:48:03] Sock 10.Parse request [20:48:03]Sock 10.Check first char [20:48:03]Sock 10.First char is OK [20:48:03]request: POST /json_proto HTTP/1.0 [20:48:03]Method: POST [20:48:03]URL: /json_proto [20:48:03]Method is POST - this is cgi request [20:48:03]url: /json_proto [20:48:03]query_string will be loaded in cgi processing [20:48:03]execute_cgi json_proto POST (null) [20:48:03]execute_cgi path=json_proto method=POST [20:48:03]POST find Content-Length [20:48:03]Host: 172.17.38.133:8080 [20:48:03]Content-Length: 687 [20:48:03]Content-Type: application/json [20:48:03] [20:48:03]POST finish read [20:48:03]Found Content-Length = 687 [20:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 34.980, "sum" : 2550.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3645.00, "total" : 2550.00, "payments": [ { "type": 0, "sum" : 2550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:03]execute_script... [20:48: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)673426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 34.980, "sum" : 2550.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3645.00, "total" : 2550.00, "payments": [ { "type": 0, "sum" : 2550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:03]POST & json_proto [20:48:03]process_json_proto [20:48:03]json parsed OK: [20:48:03]protocol is kg_v1.0 [20:48:03]action value=close_receipt [20:48:03]process_action close_receipt [20:48:03]cmd_close_receipt [20:48:03]MH_GetDate [20:48:03]Write to MH i2c: F0 00 00 23 08 1A [20:48:03]Write i2c OK [20:48:03]MH_I2C_Read... [20:48:03]Read from MH i2c: F0 [20:48:03]MH_I2C_Read... [20:48:03]Read from MH i2c: F0 09 00 [20:48:03]MH_I2C_Read... [20:48:03]Read from MH i2c: F0 09 00 23 08 00 84 95 74 66 BD 8F 7C 64 42 [20:48:03]GetLastDocTimeStamp 1718916329 [20:48:03]current date 1718916484 [20:48:03]FM_GetShiftState [20:48:03]SAM_PROTO_GetShiftState [20:48:03]wFMCommunicate request_size=4 [20:48:03]MH_SAM_APDU [20:48:03]CAPDU: 80 13 01 00 [20:48:03]Write to MH i2c: E2 08 00 24 08 80 13 01 00 00 00 00 00 A9 [20:48:03]Write i2c OK [20:48:03]MH_I2C_Read... [20:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:03]Read from MH i2c: E2 [20:48:03]MH_I2C_Read... [20:48:03]Read from MH i2c: E2 0E 00 [20:48:03]MH_I2C_Read... [20:48:03]Read from MH i2c: E2 0E 00 24 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F8 [20:48:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:48:03]wFMCommunicate OK [20:48:03]SAM_PROTO_GetShiftState done [20:48:03]FM_GetShiftState done [20:48:03]opened in 1718843124 [20:48:03]opened+sec_in_day 1718929524 [20:48:03]quantity*price = 255004 [20:48:03]sum+1 = 255005 [20:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2550.00 Внесено: 3645.00 СДАЧА: 1095.00 НСП 1% : 22.57 НДС 12% : 270.80 Наличными: 2550.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 230 20.06.2024 20:48 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104045 ФПД: 252535124295361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T204804&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104045&fm=252535124295361&tin=02508201610067®Number=0000000000092785&sum=255000 [20:48:05]StoreToDocumentArchive [20:48:05]shift 354 fd 104045 [20:48:05]save to /storage/0354/doc_00104045 [20:48:05]save last doc name /storage/0354/doc_00104045 to /storage/kkm_last_doc_name [20:48:05]save OK [20:48:05]Clear old archive folders... [20:48:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:48:05]tlvbuf is 014F61D0 [20:48:05]SAM_PROTO_ClearQueue [20:48:05]wFMCommunicate request_size=4 [20:48:05]MH_SAM_APDU [20:48:05]CAPDU: 80 09 00 00 [20:48:05]Write to MH i2c: E2 08 00 31 08 80 09 00 00 00 00 00 00 AB [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:05]Read from MH i2c: E2 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 31 08 00 90 00 AD [20:48:05]RAPDU: 90 00 [20:48:05]wFMCommunicate OK [20:48:05]SAM_PROTO_ClearQueue done [20:48:05]KKMCreateOFDPacket [20:48:05]OFDProtocolAddRootSTLVToBuf [20:48:05]FM_MakeSignedData [20:48:05]FM_MakeSignedData [20:48:05]SAM_PROTO_SignData [20:48:05]wFMCommunicate request_size=4 [20:48:05]MH_SAM_APDU [20:48:05]CAPDU: 80 0D 01 02 [20:48:05]Write to MH i2c: E2 08 00 32 08 80 0D 01 02 00 00 00 00 B3 [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:05]Read from MH i2c: E2 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 32 08 00 90 00 AE [20:48:05]RAPDU: 90 00 [20:48:05]wFMCommunicate OK [20:48:05]wFMCommunicate request_size=255 [20:48:05]MH_SAM_APDU [20:48:05]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 88 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1C E4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 E4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 69 00 00 00 00 07 04 06 00 18 E4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 84 95 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 96 01 00 35 04 06 00 [20:48:05]Write to MH i2c: E2 02 01 33 08 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 88 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1C E4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 E4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 69 00 00 00 00 07 04 06 00 18 E4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 84 95 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 96 01 00 35 04 06 00 00 00 0B [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:05]Read from MH i2c: E2 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 33 08 00 90 00 AF [20:48:05]RAPDU: 90 00 [20:48:05]wFMCommunicate OK [20:48:05]wFMCommunicate request_size=11 [20:48:05]MH_SAM_APDU [20:48:05]CAPDU: 80 0D 02 02 06 E5 AD EA 60 7E C1 [20:48:05]Write to MH i2c: E2 0E 00 34 08 80 0D 02 02 06 00 E5 AD EA 60 7E C1 00 00 DD [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:05]Read from MH i2c: E2 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 03 00 34 08 00 90 00 B0 [20:48:05]RAPDU: 90 00 [20:48:05]wFMCommunicate OK [20:48:05]wFMCommunicate request_size=4 [20:48:05]MH_SAM_APDU [20:48:05]CAPDU: 80 0D 03 02 [20:48:05]Write to MH i2c: E2 08 00 35 08 80 0D 03 02 00 00 00 00 B8 [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:05]Read from MH i2c: E2 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 0B 00 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 0B 00 35 08 00 AF 5E E3 95 5D A7 3B F6 90 00 73 [20:48:05]RAPDU: AF 5E E3 95 5D A7 3B F6 90 00 [20:48:05]wFMCommunicate OK [20:48:05]SAM_PROTO_SignData done [20:48:05]FM_MakeSignedData done [20:48:05]CreateOFDProtocolMessage [20:48:05]wFMCommunicate request_size=4 [20:48:05]MH_SAM_APDU [20:48:05]CAPDU: 80 11 00 00 [20:48:05]Write to MH i2c: E2 08 00 36 08 80 11 00 00 00 00 00 00 B8 [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:05]Read from MH i2c: E2 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 17 00 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: E2 17 00 36 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [20:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:48:05]wFMCommunicate OK [20:48:05]CreateOFDProtocolMessage done [20:48:05]OFDSenderStorePacket 104045 [20:48:05]StoreOFDPacket docnum=104045 [20:48:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 4A 7B 08 01 74 59 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 88 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1C E4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 E4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 69 00 00 00 00 07 04 06 00 18 E4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 84 95 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 96 01 00 35 04 06 00 E5 AD EA 60 7E C1 AF 5E E3 95 5D A7 3B F6 [20:48:05]CheckFolder [20:48:05]dirname=/storage/ofd_packets [20:48:05]CheckFolder done [20:48:05]ProducePacketName [20:48:05]name=ofd_packets/00104045 [20:48:05]NVStorageSaveData ofd_packets/00104045 [20:48:05]File name is /storage/ofd_packets/00104045 [20:48:05]Write 302 bytes [20:48:05]NVStorageSaveData done [20:48:05]OFDSenderStorePacket done [20:48:05]KKMCreateOFDPacket done [20:48:05]NVStorageSaveData kkm_last_timestamp [20:48:05]File name is /storage/kkm_last_timestamp [20:48:05]Write 4 bytes [20:48:05]NVStorageSaveData done [20:48:05]ExternCall_PrintAddStr [20:48:05]wPrintStart [20:48:05]Write to MH i2c: 01 00 00 37 08 3F [20:48:05]Write i2c OK [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: 01 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: 01 07 00 [20:48:05]MH_I2C_Read... [20:48:05]Read from MH i2c: 01 07 00 37 08 00 00 00 00 00 FF 0F 54 [20:48:05]RasterBufferAndPrint [20:48:05]line Счет N : (1)673426 [20:48:05]line ИНН: 02508201610067 [20:48:05]line Контрольно-Кассовый Чек [20:48:05]line ПРОДАЖА [20:48:05]line ТРК (МРК, ГНК) : 11 [20:48:05]line Товар: 2710194210 [20:48:05]line ДТ(л)-К-5 [20:48:05]line 34.980 * 72.90 [20:48:05]line = 2550.04 [20:48:05]line НДС 12% НСП 1% [20:48:05]line > о реализуемом товаре [20:48:05]line ОКРУГЛЕНИЕ: -0.04 [20:48:05]line ИТОГО: 2550.00 [20:48:05]line Внесено: 3645.00 [20:48:05]line СДАЧА: 1095.00 [20:48:05]line НСП 1% : 22.57 [20:48:05]line НДС 12% : 270.80 [20:48:05]line Наличными: 2550.00 [20:48:05]line Безнал.: 0.00 [20:48:05]line Место: АЗС № 120 "Партнер Нефть" [20:48:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:48:05]line СНО: Общий режим [20:48:05]line Чек 230 20.06.2024 20:48 [20:48:05]line Смена: 354 ФФД: 1.0 [20:48:05]line ЗНМ: 0300000164 [20:48:05]line РНМ: 0000000000092785 [20:48:05]line Версия ККМ: 001 [20:48:05]line ФМ: 0000000000875093 [20:48:05]line ФД: 104045 [20:48:05]line ФПД: 252535124295361 [20:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T204804&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104045&fm=252535124295361&tin=02508201610067®Number=0000000000092785&sum=255000 [20:48:05]OFD Sender: Processing packet 104045 [packets to send 17, broken 16] [20:48:05]ProducePacketName [20:48:05]name=ofd_packets/00104045 [20:48:05]OFD Sender: To server: pG, [20:48:05]CommunicateWithHost lk.salyk.kg:30040 [20:48:05]ConnectInit lk.salyk.kg [20:48:05]written 0, free lines is 4095 [20:48:06]Connected sock=7 [20:48:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 4A 7B 08 01 74 59 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 88 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 1C E4 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 E4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 69 00 00 00 00 07 04 06 00 18 E4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 84 95 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 96 01 00 35 04 06 00 E5 AD EA 60 7E C1 AF 5E E3 95 5D A7 3B F6 [20:48:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 08 5D 47 00 1D 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6D 96 01 00 F4 03 04 00 08 3C 74 66 B6 04 01 00 00 0A BD 1E 95 24 18 5C 58 [20:48:06]CommunicateWithHost err = 0 [20:48:06]CheckOFDResponse [20:48:06]1017 (14) - 77093643461234 [20:48:06]1041 (16) - 0000000000875093 [20:48:06]1040 (4) - 104045 [20:48:06]1012 (4) - 20.06.2024 14:26 [20:48:06]1206 (1) - 0 [20:48:06]OFD Sender: Remove packet 104045 [20:48:06]ProducePacketName [20:48:06]name=ofd_packets/00104045 [20:48:06]NVStorageDeleteData [20:48:06]Write to MH i2c: 01 00 00 62 08 6A [20:48:06]Write i2c OK [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: 01 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: 01 07 00 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: 01 07 00 62 08 00 00 00 00 00 00 0D 7E [20:48:06]RasterBufferAndPrint [20:48:06]line [20:48:06]line [20:48:06]line [20:48:06]line [20:48:06]line [20:48:06]written 0, free lines is 3333 [20:48:06]MH_Cut [20:48:06]Write to MH i2c: D1 01 00 69 08 01 43 [20:48:06]Write i2c OK [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: D1 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: D1 01 00 [20:48:06]MH_I2C_Read... [20:48:06]Read from MH i2c: D1 01 00 69 08 00 42 [20:48:06]Write to MH i2c: 01 00 00 6A 08 72 [20:48:06]Write i2c OK [20:48:06]MH_I2C_Read... [20:48:06]OFD Sender: No OFD packet to send [20:48:07]*** Cut start [20:48:07]*** Partial cut [20:48:07]*** CUTSNS_PIN = 1 [20:48:07]*** CUTSNS_PIN = 0 [20:48:07]*** Brake cut motor [20:48:07]Read from MH i2c: 01 [20:48:07]MH_I2C_Read... [20:48:07]*** Stop cut motor [20:48:07]*** Cut end [20:48:07]Read from MH i2c: 01 07 00 [20:48:07]MH_I2C_Read... [20:48:07]Read from MH i2c: 01 07 00 6A 08 00 00 00 00 00 FF 0F 87 [20:48:07]process_action close_receipt done [20:48:07]requested_data is exist [20:48:07]produce_requested_data [20:48:07]requested_item fm.sn is exist - process it [20:48:07]wFMCommunicate request_size=4 [20:48:07]MH_SAM_APDU [20:48:07]CAPDU: 80 11 00 00 [20:48:07]Write to MH i2c: E2 08 00 6B 08 80 11 00 00 00 00 00 00 ED [20:48:07]Write i2c OK [20:48:07]MH_I2C_Read... [20:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:07]Read from MH i2c: E2 [20:48:07]MH_I2C_Read... [20:48:07]Read from MH i2c: E2 17 00 [20:48:07]MH_I2C_Read... [20:48:07]Read from MH i2c: E2 17 00 6B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [20:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:48:07]wFMCommunicate OK [20:48:07]requested_item fd.num is exist - process it [20:48:07]SAM_PROTO_GetFieldsCounters [20:48:07]wFMCommunicate request_size=4 [20:48:07]MH_SAM_APDU [20:48:07]CAPDU: 80 13 00 00 [20:48:07]Write to MH i2c: E2 08 00 6C 08 80 13 00 00 00 00 00 00 F0 [20:48:07]Write i2c OK [20:48:07]MH_I2C_Read... [20:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:07]Read from MH i2c: E2 [20:48:07]MH_I2C_Read... [20:48:07]Read from MH i2c: E2 62 00 [20:48:07]MH_I2C_Read... [20:48:07]Read from MH i2c: E2 62 00 6C 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [20:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:07]wFMCommunicate OK [20:48:07]SAM_PROTO_GetFieldsCounters done [20:48:07]requested_item shift.num is exist - process it [20:48:07]requested_item shift.opened is exist - process it [20:48:07]req_shift_opened [20:48:07]FM_GetShiftState [20:48:07]SAM_PROTO_GetShiftState [20:48:07]wFMCommunicate request_size=4 [20:48:07]MH_SAM_APDU [20:48:07]CAPDU: 80 13 01 00 [20:48:07]Write to MH i2c: E2 08 00 6D 08 80 13 01 00 00 00 00 00 F2 [20:48:07]Write i2c OK [20:48:07]MH_I2C_Read... [20:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:07]Read from MH i2c: E2 [20:48:07]MH_I2C_Read... [20:48:07]Read from MH i2c: E2 0E 00 [20:48:07]MH_I2C_Read... [20:48:07]Read from MH i2c: E2 0E 00 6D 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 41 [20:48:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:48:07]wFMCommunicate OK [20:48:07]SAM_PROTO_GetShiftState done [20:48:07]FM_GetShiftState done [20:48:07]req_shift_opened done [20:48:07]requested_item shift.open_date is exist - process it [20:48:07]req_shift_open_date [20:48:07]req_shift_open_date done [20:48:07]produce_requested_data done [20:48:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104045,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:48:07]process_action_free close_receipt [20:48:07]json_value_free [20:48:07]json_value_free done [20:48:07]process_json_proto returns [20:48:07]Send response to host [20:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104045,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:48:07]free response buf [20:48:07]execute_script done [20:48:07]execute_script returns [20:48:07]free content buf [20:48:07]Sock 10.Close socket [20:48:07]Sock 10.Thread stoped [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:54:06]ConnectInit Can't connect to host [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:41]accept exits with 9 [20:55:41]New connection [20:55:41]New thread 3066563940 created [20:55:41]Thread 3066707300 joined [20:55:41]Waiting for new connection... [20:55:41] Sock 9.Parse request [20:55:41]Sock 9.Check first char [20:55:41]Sock 9.First char is OK [20:55:41]request: POST /json_proto HTTP/1.0 [20:55:41]Method: POST [20:55:41]URL: /json_proto [20:55:41]Method is POST - this is cgi request [20:55:41]url: /json_proto [20:55:41]query_string will be loaded in cgi processing [20:55:41]execute_cgi json_proto POST (null) [20:55:41]execute_cgi path=json_proto method=POST [20:55:41]POST find Content-Length [20:55:41]Host: 172.17.38.133:8080 [20:55:41]Content-Length: 677 [20:55:41]Content-Type: application/json [20:55:41] [20:55:41]POST finish read [20:55:41]Found Content-Length = 677 [20:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:41]execute_script... [20:55:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:41]POST & json_proto [20:55:41]process_json_proto [20:55:41]json parsed OK: [20:55:41]protocol is kg_v1.0 [20:55:41]action value=close_receipt [20:55:41]process_action close_receipt [20:55:41]cmd_close_receipt [20:55:41]MH_GetDate [20:55:41]Write to MH i2c: F0 00 00 6E 08 65 [20:55:41]Write i2c OK [20:55:41]MH_I2C_Read... [20:55:41]Read from MH i2c: F0 [20:55:41]MH_I2C_Read... [20:55:41]Read from MH i2c: F0 09 00 [20:55:41]MH_I2C_Read... [20:55:41]Read from MH i2c: F0 09 00 6E 08 00 4D 97 74 66 BD 8F 7C 64 58 [20:55:41]GetLastDocTimeStamp 1718916484 [20:55:41]current date 1718916941 [20:55:41]FM_GetShiftState [20:55:41]SAM_PROTO_GetShiftState [20:55:41]wFMCommunicate request_size=4 [20:55:41]MH_SAM_APDU [20:55:41]CAPDU: 80 13 01 00 [20:55:41]Write to MH i2c: E2 08 00 6F 08 80 13 01 00 00 00 00 00 F4 [20:55:41]Write i2c OK [20:55:41]MH_I2C_Read... [20:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:41]Read from MH i2c: E2 [20:55:41]MH_I2C_Read... [20:55:41]Read from MH i2c: E2 0E 00 [20:55:41]MH_I2C_Read... [20:55:41]Read from MH i2c: E2 0E 00 6F 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 43 [20:55:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:55:41]wFMCommunicate OK [20:55:41]SAM_PROTO_GetShiftState done [20:55:41]FM_GetShiftState done [20:55:41]opened in 1718843124 [20:55:41]opened+sec_in_day 1718929524 [20:55:41]quantity*price = 40039 [20:55:41]sum+1 = 40040 [20:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 231 20.06.2024 20:55 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104046 ФПД: 30134908279510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T205541&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104046&fm=30134908279510&tin=02508201610067®Number=0000000000092785&sum=40000 [20:55:42]StoreToDocumentArchive [20:55:42]shift 354 fd 104046 [20:55:42]save to /storage/0354/doc_00104046 [20:55:42]save last doc name /storage/0354/doc_00104046 to /storage/kkm_last_doc_name [20:55:42]save OK [20:55:42]Clear old archive folders... [20:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:42]tlvbuf is 014C9E00 [20:55:42]SAM_PROTO_ClearQueue [20:55:42]wFMCommunicate request_size=4 [20:55:42]MH_SAM_APDU [20:55:42]CAPDU: 80 09 00 00 [20:55:42]Write to MH i2c: E2 08 00 7C 08 80 09 00 00 00 00 00 00 F6 [20:55:42]Write i2c OK [20:55:42]MH_I2C_Read... [20:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:42]Read from MH i2c: E2 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 7C 08 00 90 00 F8 [20:55:42]RAPDU: 90 00 [20:55:42]wFMCommunicate OK [20:55:42]SAM_PROTO_ClearQueue done [20:55:42]KKMCreateOFDPacket [20:55:42]OFDProtocolAddRootSTLVToBuf [20:55:42]FM_MakeSignedData [20:55:42]FM_MakeSignedData [20:55:42]SAM_PROTO_SignData [20:55:42]wFMCommunicate request_size=4 [20:55:42]MH_SAM_APDU [20:55:42]CAPDU: 80 0D 01 02 [20:55:42]Write to MH i2c: E2 08 00 7D 08 80 0D 01 02 00 00 00 00 FE [20:55:42]Write i2c OK [20:55:42]MH_I2C_Read... [20:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:42]Read from MH i2c: E2 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 7D 08 00 90 00 F9 [20:55:42]RAPDU: 90 00 [20:55:42]wFMCommunicate OK [20:55:42]wFMCommunicate request_size=255 [20:55:42]MH_SAM_APDU [20:55: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 E7 00 00 00 F4 03 04 00 4D 97 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 96 01 00 35 04 06 00 1B [20:55:42]Write to MH i2c: E2 02 01 7E 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 E7 00 00 00 F4 03 04 00 4D 97 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 96 01 00 35 04 06 00 1B 00 00 AE [20:55:42]Write i2c OK [20:55:42]MH_I2C_Read... [20:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:42]Read from MH i2c: E2 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 7E 08 00 90 00 FA [20:55:42]RAPDU: 90 00 [20:55:42]wFMCommunicate OK [20:55:42]wFMCommunicate request_size=10 [20:55:42]MH_SAM_APDU [20:55:42]CAPDU: 80 0D 02 02 05 68 54 80 DA D6 [20:55:42]Write to MH i2c: E2 0D 00 7F 08 80 0D 02 02 05 00 68 54 80 DA D6 00 00 F7 [20:55:42]Write i2c OK [20:55:42]MH_I2C_Read... [20:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:42]Read from MH i2c: E2 [20:55:42]MH_I2C_Read... [20:55:42]Read from MH i2c: E2 03 00 [20:55:42]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 03 00 7F 08 00 90 00 FB [20:55:43]RAPDU: 90 00 [20:55:43]wFMCommunicate OK [20:55:43]wFMCommunicate request_size=4 [20:55:43]MH_SAM_APDU [20:55:43]CAPDU: 80 0D 03 02 [20:55:43]Write to MH i2c: E2 08 00 80 08 80 0D 03 02 00 00 00 00 03 [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:43]Read from MH i2c: E2 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 0B 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 0B 00 80 08 00 F6 D5 AD 61 C9 BF C8 1F 90 00 4C [20:55:43]RAPDU: F6 D5 AD 61 C9 BF C8 1F 90 00 [20:55:43]wFMCommunicate OK [20:55:43]SAM_PROTO_SignData done [20:55:43]FM_MakeSignedData done [20:55:43]CreateOFDProtocolMessage [20:55:43]wFMCommunicate request_size=4 [20:55:43]MH_SAM_APDU [20:55:43]CAPDU: 80 11 00 00 [20:55:43]Write to MH i2c: E2 08 00 81 08 80 11 00 00 00 00 00 00 03 [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:43]Read from MH i2c: E2 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 17 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: E2 17 00 81 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [20:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:55:43]wFMCommunicate OK [20:55:43]CreateOFDProtocolMessage done [20:55:43]OFDSenderStorePacket 104046 [20:55:43]StoreOFDPacket docnum=104046 [20:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2F B9 07 01 9A FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 E7 00 00 00 F4 03 04 00 4D 97 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 96 01 00 35 04 06 00 1B 68 54 80 DA D6 F6 D5 AD 61 C9 BF C8 1F [20:55:43]CheckFolder [20:55:43]dirname=/storage/ofd_packets [20:55:43]CheckFolder done [20:55:43]ProducePacketName [20:55:43]name=ofd_packets/00104046 [20:55:43]NVStorageSaveData ofd_packets/00104046 [20:55:43]File name is /storage/ofd_packets/00104046 [20:55:43]Write 301 bytes [20:55:43]NVStorageSaveData done [20:55:43]OFDSenderStorePacket done [20:55:43]KKMCreateOFDPacket done [20:55:43]NVStorageSaveData kkm_last_timestamp [20:55:43]File name is /storage/kkm_last_timestamp [20:55:43]Write 4 bytes [20:55:43]NVStorageSaveData done [20:55:43]ExternCall_PrintAddStr [20:55:43]wPrintStart [20:55:43]Write to MH i2c: 01 00 00 82 08 8A [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 07 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 07 00 82 08 00 00 00 00 00 FF 0F 9F [20:55:43]RasterBufferAndPrint [20:55:43]line Счет N : (1)673427 [20:55:43]line ИНН: 02508201610067 [20:55:43]line Контрольно-Кассовый Чек [20:55:43]line ПРОДАЖА [20:55:43]line ТРК (МРК, ГНК) : 32 [20:55:43]line Товар: 2710124130 [20:55:43]line Аи-92-К-5 [20:55:43]line 6.030 * 66.40 [20:55:43]line = 400.39 [20:55:43]line НДС 12% НСП 1% [20:55:43]line > о реализуемом товаре [20:55:43]line ОКРУГЛЕНИЕ: -0.39 [20:55:43]line ИТОГО: 400.00 [20:55:43]line Внесено: 400.00 [20:55:43]line СДАЧА: 0.00 [20:55:43]line НСП 1% : 3.54 [20:55:43]line НДС 12% : 42.52 [20:55:43]line Наличными: 400.00 [20:55:43]line Безнал.: 0.00 [20:55:43]line Место: АЗС № 120 "Партнер Нефть" [20:55:43]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [20:55:43]line СНО: Общий режим [20:55:43]line Чек 231 20.06.2024 20:55 [20:55:43]line Смена: 354 ФФД: 1.0 [20:55:43]line ЗНМ: 0300000164 [20:55:43]line РНМ: 0000000000092785 [20:55:43]line Версия ККМ: 001 [20:55:43]line ФМ: 0000000000875093 [20:55:43]line ФД: 104046 [20:55:43]line ФПД: 30134908279510 [20:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T205541&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104046&fm=30134908279510&tin=02508201610067®Number=0000000000092785&sum=40000 [20:55:43]OFD Sender: Processing packet 104046 [packets to send 17, broken 16] [20:55:43]ProducePacketName [20:55:43]name=ofd_packets/00104046 [20:55:43]OFD Sender: To server: pG, [20:55:43]CommunicateWithHost lk.salyk.kg:30040 [20:55:43]ConnectInit lk.salyk.kg [20:55:43]written 0, free lines is 4095 [20:55:43]Connected sock=10 [20:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2F B9 07 01 9A FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 E7 00 00 00 F4 03 04 00 4D 97 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 96 01 00 35 04 06 00 1B 68 54 80 DA D6 F6 D5 AD 61 C9 BF C8 1F [20:55:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FD 19 47 00 28 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6E 96 01 00 F4 03 04 00 D2 3D 74 66 B6 04 01 00 00 CB CA DB 0E 18 CE C6 63 [20:55:43]CommunicateWithHost err = 0 [20:55:43]CheckOFDResponse [20:55:43]1017 (14) - 77093643461234 [20:55:43]1041 (16) - 0000000000875093 [20:55:43]1040 (4) - 104046 [20:55:43]1012 (4) - 20.06.2024 14:33 [20:55:43]1206 (1) - 0 [20:55:43]OFD Sender: Remove packet 104046 [20:55:43]ProducePacketName [20:55:43]name=ofd_packets/00104046 [20:55:43]NVStorageDeleteData [20:55:43]Write to MH i2c: 01 00 00 AD 08 B5 [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 07 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: 01 07 00 AD 08 00 00 00 00 00 F3 0C BB [20:55:43]RasterBufferAndPrint [20:55:43]line [20:55:43]line [20:55:43]line [20:55:43]line [20:55:43]line [20:55:43]written 0, free lines is 3321 [20:55:43]MH_Cut [20:55:43]Write to MH i2c: D1 01 00 B4 08 01 8E [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: D1 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: D1 01 00 [20:55:43]MH_I2C_Read... [20:55:43]Read from MH i2c: D1 01 00 B4 08 00 8D [20:55:43]Write to MH i2c: 01 00 00 B5 08 BD [20:55:43]Write i2c OK [20:55:43]MH_I2C_Read... [20:55:44]OFD Sender: No OFD packet to send [20:55:44]*** Cut start [20:55:44]*** Partial cut [20:55:44]*** CUTSNS_PIN = 1 [20:55:44]*** CUTSNS_PIN = 0 [20:55:44]*** Brake cut motor [20:55:45]Read from MH i2c: 01 [20:55:45]MH_I2C_Read... [20:55:45]*** Stop cut motor [20:55:45]*** Cut end [20:55:45]Read from MH i2c: 01 07 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: 01 07 00 B5 08 00 00 00 00 00 FF 0F D2 [20:55:45]process_action close_receipt done [20:55:45]requested_data is exist [20:55:45]produce_requested_data [20:55:45]requested_item fm.sn is exist - process it [20:55:45]wFMCommunicate request_size=4 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 11 00 00 [20:55:45]Write to MH i2c: E2 08 00 B6 08 80 11 00 00 00 00 00 00 38 [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 17 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 17 00 B6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8B [20:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [20:55:45]wFMCommunicate OK [20:55:45]requested_item fd.num is exist - process it [20:55:45]SAM_PROTO_GetFieldsCounters [20:55:45]wFMCommunicate request_size=4 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 13 00 00 [20:55:45]Write to MH i2c: E2 08 00 B7 08 80 13 00 00 00 00 00 00 3B [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 62 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 62 00 B7 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [20:55:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 6E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:45]wFMCommunicate OK [20:55:45]SAM_PROTO_GetFieldsCounters done [20:55:45]requested_item shift.num is exist - process it [20:55:45]requested_item shift.opened is exist - process it [20:55:45]req_shift_opened [20:55:45]FM_GetShiftState [20:55:45]SAM_PROTO_GetShiftState [20:55:45]wFMCommunicate request_size=4 [20:55:45]MH_SAM_APDU [20:55:45]CAPDU: 80 13 01 00 [20:55:45]Write to MH i2c: E2 08 00 B8 08 80 13 01 00 00 00 00 00 3D [20:55:45]Write i2c OK [20:55:45]MH_I2C_Read... [20:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:45]Read from MH i2c: E2 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 0E 00 [20:55:45]MH_I2C_Read... [20:55:45]Read from MH i2c: E2 0E 00 B8 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8C [20:55:45]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [20:55:45]wFMCommunicate OK [20:55:45]SAM_PROTO_GetShiftState done [20:55:45]FM_GetShiftState done [20:55:45]req_shift_opened done [20:55:45]requested_item shift.open_date is exist - process it [20:55:45]req_shift_open_date [20:55:45]req_shift_open_date done [20:55:45]produce_requested_data done [20:55:45]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104046,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [20:55:45]process_action_free close_receipt [20:55:45]json_value_free [20:55:45]json_value_free done [20:55:45]process_json_proto returns [20:55:45]Send response to host [20:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104046,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [20:55:45]free response buf [20:55:45]execute_script done [20:55:45]execute_script returns [20:55:45]free content buf [20:55:45]Sock 9.Close socket [20:55:45]Sock 9.Thread stoped [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [21:00:16]ConnectInit Can't connect to host [21:00:17]OFD Sender: Processing packet 104047 [packets to send 17, broken 16] [21:00:17]ProducePacketName [21:00:17]name=ofd_packets/00104047 [21:00:17]OFD Sender: To server: pG, [21:00:17]CommunicateWithHost lk.salyk.kg:30040 [21:00:17]ConnectInit lk.salyk.kg [21:00:22]ConnectInit Can't take IP for lk.salyk.kg [21:00:22]CommunicateWithHost connect error [21:00:22]CommunicateWithHost err = -1 [21:00:22]OFD Sender: Server communicate error [21:00:27]OFD Sender: Processing packet 104047 [packets to send 17, broken 16] [21:00:27]ProducePacketName [21:00:27]name=ofd_packets/00104047 [21:00:27]OFD Sender: To server: pG, [21:00:27]CommunicateWithHost lk.salyk.kg:30040 [21:00:27]ConnectInit lk.salyk.kg [21:00:27]Connected sock=10 [21:00:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 AA CC 07 01 A2 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 88 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 23 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 1F 00 00 00 00 07 04 06 00 CC 23 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 FC 97 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 96 01 00 35 04 06 00 91 48 A3 0C 10 D1 E4 96 81 17 53 7A A8 9A [21:00:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 95 21 47 00 D6 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 6F 96 01 00 F4 03 04 00 EE 3E 74 66 B6 04 01 00 00 D0 2D D5 30 38 49 93 0E [21:00:27]CommunicateWithHost err = 0 [21:00:27]CheckOFDResponse [21:00:27]1017 (14) - 77093643461234 [21:00:27]1041 (16) - 0000000000875093 [21:00:27]1040 (4) - 104047 [21:00:27]1012 (4) - 20.06.2024 14:38 [21:00:27]1206 (1) - 0 [21:00:27]OFD Sender: Remove packet 104047 [21:00:27]ProducePacketName [21:00:27]name=ofd_packets/00104047 [21:00:27]NVStorageDeleteData [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:05]accept exits with 7 [21:11:05]New connection [21:11:05]New thread 3066715492 created [21:11:05]Thread 3066858852 joined [21:11:05]Waiting for new connection... [21:11:05] Sock 7.Parse request [21:11:05]Sock 7.Check first char [21:11:05]Sock 7.First char is OK [21:11:05]request: POST /json_proto HTTP/1.0 [21:11:05]Method: POST [21:11:05]URL: /json_proto [21:11:05]Method is POST - this is cgi request [21:11:05]url: /json_proto [21:11:05]query_string will be loaded in cgi processing [21:11:05]execute_cgi json_proto POST (null) [21:11:05]execute_cgi path=json_proto method=POST [21:11:05]POST find Content-Length [21:11:05]Host: 172.17.38.133:8080 [21:11:05]Content-Length: 682 [21:11:05]Content-Type: application/json [21:11:05] [21:11:05]POST finish read [21:11:05]Found Content-Length = 682 [21:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [21:11:05]execute_script... [21:11:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [21:11:05]POST & json_proto [21:11:05]process_json_proto [21:11:05]json parsed OK: [21:11:05]protocol is kg_v1.0 [21:11:05]action value=close_receipt [21:11:05]process_action close_receipt [21:11:05]cmd_close_receipt [21:11:05]MH_GetDate [21:11:05]Write to MH i2c: F0 00 00 5B 00 4A [21:11:05]Write i2c OK [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: F0 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: F0 09 00 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: F0 09 00 5B 00 00 EA 9A 74 66 BD 8F 7C 64 DD [21:11:05]GetLastDocTimeStamp 1718917116 [21:11:05]current date 1718917866 [21:11:05]FM_GetShiftState [21:11:05]SAM_PROTO_GetShiftState [21:11:05]wFMCommunicate request_size=4 [21:11:05]MH_SAM_APDU [21:11:05]CAPDU: 80 13 01 00 [21:11:05]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [21:11:05]Write i2c OK [21:11:05]MH_I2C_Read... [21:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:05]Read from MH i2c: E2 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: E2 0E 00 [21:11:05]MH_I2C_Read... [21:11:05]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 28 [21:11:05]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:11:05]wFMCommunicate OK [21:11:05]SAM_PROTO_GetShiftState done [21:11:05]FM_GetShiftState done [21:11:05]opened in 1718843124 [21:11:05]opened+sec_in_day 1718929524 [21:11:05]quantity*price = 40022 [21:11:05]sum+1 = 40023 [21:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 233 20.06.2024 21:11 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104048 ФПД: 157909789692949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T211106&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104048&fm=157909789692949&tin=02508201610067®Number=0000000000092785&sum=40000 [21:11:06]StoreToDocumentArchive [21:11:06]shift 354 fd 104048 [21:11:06]save to /storage/0354/doc_00104048 [21:11:06]save last doc name /storage/0354/doc_00104048 to /storage/kkm_last_doc_name [21:11:06]save OK [21:11:06]Clear old archive folders... [21:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:11:06]tlvbuf is 010EEE80 [21:11:06]SAM_PROTO_ClearQueue [21:11:06]wFMCommunicate request_size=4 [21:11:06]MH_SAM_APDU [21:11:06]CAPDU: 80 09 00 00 [21:11:06]Write to MH i2c: E2 08 00 69 00 80 09 00 00 00 00 00 00 DB [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:06]Read from MH i2c: E2 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 03 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [21:11:06]RAPDU: 90 00 [21:11:06]wFMCommunicate OK [21:11:06]SAM_PROTO_ClearQueue done [21:11:06]KKMCreateOFDPacket [21:11:06]OFDProtocolAddRootSTLVToBuf [21:11:06]FM_MakeSignedData [21:11:06]FM_MakeSignedData [21:11:06]SAM_PROTO_SignData [21:11:06]wFMCommunicate request_size=4 [21:11:06]MH_SAM_APDU [21:11:06]CAPDU: 80 0D 01 02 [21:11:06]Write to MH i2c: E2 08 00 6A 00 80 0D 01 02 00 00 00 00 E3 [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:06]Read from MH i2c: E2 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 03 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [21:11:06]RAPDU: 90 00 [21:11:06]wFMCommunicate OK [21:11:06]wFMCommunicate request_size=255 [21:11:06]MH_SAM_APDU [21:11:06]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 EA 9A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 96 01 00 35 04 06 00 [21:11:06]Write to MH i2c: E2 02 01 6B 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 EA 9A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 96 01 00 35 04 06 00 00 00 B3 [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:06]Read from MH i2c: E2 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 03 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [21:11:06]RAPDU: 90 00 [21:11:06]wFMCommunicate OK [21:11:06]wFMCommunicate request_size=11 [21:11:06]MH_SAM_APDU [21:11:06]CAPDU: 80 0D 02 02 06 8F 9E 3C EB D4 15 [21:11:06]Write to MH i2c: E2 0E 00 6C 00 80 0D 02 02 06 00 8F 9E 3C EB D4 15 00 00 2F [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:06]Read from MH i2c: E2 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 03 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 03 00 6C 00 00 90 00 E0 [21:11:06]RAPDU: 90 00 [21:11:06]wFMCommunicate OK [21:11:06]wFMCommunicate request_size=4 [21:11:06]MH_SAM_APDU [21:11:06]CAPDU: 80 0D 03 02 [21:11:06]Write to MH i2c: E2 08 00 6D 00 80 0D 03 02 00 00 00 00 E8 [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:06]Read from MH i2c: E2 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 0B 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 0B 00 6D 00 00 33 25 80 B9 2F 30 5C 29 90 00 5E [21:11:06]RAPDU: 33 25 80 B9 2F 30 5C 29 90 00 [21:11:06]wFMCommunicate OK [21:11:06]SAM_PROTO_SignData done [21:11:06]FM_MakeSignedData done [21:11:06]CreateOFDProtocolMessage [21:11:06]wFMCommunicate request_size=4 [21:11:06]MH_SAM_APDU [21:11:06]CAPDU: 80 11 00 00 [21:11:06]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:06]Read from MH i2c: E2 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 17 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3B [21:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:11:06]wFMCommunicate OK [21:11:06]CreateOFDProtocolMessage done [21:11:06]OFDSenderStorePacket 104048 [21:11:06]StoreOFDPacket docnum=104048 [21:11:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 13 B7 08 01 14 72 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 EA 9A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 96 01 00 35 04 06 00 8F 9E 3C EB D4 15 33 25 80 B9 2F 30 5C 29 [21:11:06]CheckFolder [21:11:06]dirname=/storage/ofd_packets [21:11:06]CheckFolder done [21:11:06]ProducePacketName [21:11:06]name=ofd_packets/00104048 [21:11:06]NVStorageSaveData ofd_packets/00104048 [21:11:06]File name is /storage/ofd_packets/00104048 [21:11:06]Write 302 bytes [21:11:06]NVStorageSaveData done [21:11:06]OFDSenderStorePacket done [21:11:06]KKMCreateOFDPacket done [21:11:06]NVStorageSaveData kkm_last_timestamp [21:11:06]File name is /storage/kkm_last_timestamp [21:11:06]Write 4 bytes [21:11:06]NVStorageSaveData done [21:11:06]ExternCall_PrintAddStr [21:11:06]wPrintStart [21:11:06]Write to MH i2c: 01 00 00 6F 00 6F [21:11:06]Write i2c OK [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 07 00 [21:11:06]MH_I2C_Read... [21:11:06]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [21:11:06]RasterBufferAndPrint [21:11:06]line Счет N : (1)673429 [21:11:06]line ИНН: 02508201610067 [21:11:06]line Контрольно-Кассовый Чек [21:11:06]line ПРОДАЖА [21:11:06]line ТРК (МРК, ГНК) : 11 [21:11:06]line Товар: 2710194210 [21:11:06]line ДТ(л)-К-5 [21:11:06]line 5.490 * 72.90 [21:11:06]line = 400.22 [21:11:06]line НДС 12% НСП 1% [21:11:06]line > о реализуемом товаре [21:11:06]line ОКРУГЛЕНИЕ: -0.22 [21:11:06]line ИТОГО: 400.00 [21:11:06]line Внесено: 400.00 [21:11:06]line СДАЧА: 0.00 [21:11:06]line НСП 1% : 3.54 [21:11:06]line НДС 12% : 42.50 [21:11:06]line Наличными: 400.00 [21:11:06]line Безнал.: 0.00 [21:11:06]line Место: АЗС № 120 "Партнер Нефть" [21:11:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:11:06]line СНО: Общий режим [21:11:06]line Чек 233 20.06.2024 21:11 [21:11:06]line Смена: 354 ФФД: 1.0 [21:11:06]line ЗНМ: 0300000164 [21:11:06]line РНМ: 0000000000092785 [21:11:06]line Версия ККМ: 001 [21:11:06]line ФМ: 0000000000875093 [21:11:06]line ФД: 104048 [21:11:06]line ФПД: 157909789692949 [21:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T211106&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104048&fm=157909789692949&tin=02508201610067®Number=0000000000092785&sum=40000 [21:11:07]OFD Sender: Processing packet 104048 [packets to send 17, broken 16] [21:11:07]ProducePacketName [21:11:07]name=ofd_packets/00104048 [21:11:07]OFD Sender: To server: pG, [21:11:07]CommunicateWithHost lk.salyk.kg:30040 [21:11:07]ConnectInit lk.salyk.kg [21:11:07]written 0, free lines is 4095 [21:11:07]Connected sock=11 [21:11:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 13 B7 08 01 14 72 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 EA 9A 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 96 01 00 35 04 06 00 8F 9E 3C EB D4 15 33 25 80 B9 2F 30 5C 29 [21:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E2 4D 47 00 11 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 70 96 01 00 F4 03 04 00 6E 41 74 66 B6 04 01 00 00 20 6D AC A9 8B 3E C2 51 [21:11:07]CommunicateWithHost err = 0 [21:11:07]CheckOFDResponse [21:11:07]1017 (14) - 77093643461234 [21:11:07]1041 (16) - 0000000000875093 [21:11:07]1040 (4) - 104048 [21:11:07]1012 (4) - 20.06.2024 14:49 [21:11:07]1206 (1) - 0 [21:11:07]OFD Sender: Remove packet 104048 [21:11:07]ProducePacketName [21:11:07]name=ofd_packets/00104048 [21:11:07]NVStorageDeleteData [21:11:07]Write to MH i2c: 01 00 00 9A 00 9A [21:11:07]Write i2c OK [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: 01 [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: 01 07 00 [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: 01 07 00 9A 00 00 00 00 00 00 E4 0C 91 [21:11:07]RasterBufferAndPrint [21:11:07]line [21:11:07]line [21:11:07]line [21:11:07]line [21:11:07]line [21:11:07]written 0, free lines is 3306 [21:11:07]MH_Cut [21:11:07]Write to MH i2c: D1 01 00 A1 00 01 73 [21:11:07]Write i2c OK [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: D1 [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: D1 01 00 [21:11:07]MH_I2C_Read... [21:11:07]Read from MH i2c: D1 01 00 A1 00 00 72 [21:11:07]Write to MH i2c: 01 00 00 A2 00 A2 [21:11:07]Write i2c OK [21:11:07]MH_I2C_Read... [21:11:08]OFD Sender: No OFD packet to send [21:11:08]*** Cut start [21:11:08]*** Partial cut [21:11:08]*** CUTSNS_PIN = 1 [21:11:08]*** CUTSNS_PIN = 0 [21:11:08]*** Brake cut motor [21:11:08]Read from MH i2c: 01 [21:11:08]MH_I2C_Read... [21:11:08]*** Stop cut motor [21:11:08]*** Cut end [21:11:08]Read from MH i2c: 01 07 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FF 0F B7 [21:11:09]process_action close_receipt done [21:11:09]requested_data is exist [21:11:09]produce_requested_data [21:11:09]requested_item fm.sn is exist - process it [21:11:09]wFMCommunicate request_size=4 [21:11:09]MH_SAM_APDU [21:11:09]CAPDU: 80 11 00 00 [21:11:09]Write to MH i2c: E2 08 00 A3 00 80 11 00 00 00 00 00 00 1D [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:09]Read from MH i2c: E2 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 17 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 17 00 A3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 70 [21:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:11:09]wFMCommunicate OK [21:11:09]requested_item fd.num is exist - process it [21:11:09]SAM_PROTO_GetFieldsCounters [21:11:09]wFMCommunicate request_size=4 [21:11:09]MH_SAM_APDU [21:11:09]CAPDU: 80 13 00 00 [21:11:09]Write to MH i2c: E2 08 00 A4 00 80 13 00 00 00 00 00 00 20 [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:09]Read from MH i2c: E2 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 62 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 62 00 A4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 70 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [21:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 70 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:09]wFMCommunicate OK [21:11:09]SAM_PROTO_GetFieldsCounters done [21:11:09]requested_item shift.num is exist - process it [21:11:09]requested_item shift.opened is exist - process it [21:11:09]req_shift_opened [21:11:09]FM_GetShiftState [21:11:09]SAM_PROTO_GetShiftState [21:11:09]wFMCommunicate request_size=4 [21:11:09]MH_SAM_APDU [21:11:09]CAPDU: 80 13 01 00 [21:11:09]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [21:11:09]Write i2c OK [21:11:09]MH_I2C_Read... [21:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:09]Read from MH i2c: E2 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 0E 00 [21:11:09]MH_I2C_Read... [21:11:09]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 71 [21:11:09]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:11:09]wFMCommunicate OK [21:11:09]SAM_PROTO_GetShiftState done [21:11:09]FM_GetShiftState done [21:11:09]req_shift_opened done [21:11:09]requested_item shift.open_date is exist - process it [21:11:09]req_shift_open_date [21:11:09]req_shift_open_date done [21:11:09]produce_requested_data done [21:11:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104048,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:11:09]process_action_free close_receipt [21:11:09]json_value_free [21:11:09]json_value_free done [21:11:09]process_json_proto returns [21:11:09]Send response to host [21:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104048,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:11:09]free response buf [21:11:09]execute_script done [21:11:09]execute_script returns [21:11:09]free content buf [21:11:09]Sock 7.Close socket [21:11:09]Sock 7.Thread stoped [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:26]accept exits with 10 [21:12:26]New connection [21:12:26]New thread 3066858852 created [21:12:26]Thread 3066715492 joined [21:12:26]Waiting for new connection... [21:12:26] Sock 10.Parse request [21:12:26]Sock 10.Check first char [21:12:26]Sock 10.First char is OK [21:12:26]request: POST /json_proto HTTP/1.0 [21:12:26]Method: POST [21:12:26]URL: /json_proto [21:12:26]Method is POST - this is cgi request [21:12:26]url: /json_proto [21:12:26]query_string will be loaded in cgi processing [21:12:26]execute_cgi json_proto POST (null) [21:12:26]execute_cgi path=json_proto method=POST [21:12:26]POST find Content-Length [21:12:26]Host: 172.17.38.133:8080 [21:12:26]Content-Length: 819 [21:12:26]Content-Type: application/json [21:12:26] [21:12:26]POST finish read [21:12:26]Found Content-Length = 819 [21:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:26]execute_script... [21:12: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)673430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:26]POST & json_proto [21:12:26]process_json_proto [21:12:26]json parsed OK: [21:12:26]protocol is kg_v1.0 [21:12:26]action value=close_receipt [21:12:26]process_action close_receipt [21:12:26]cmd_close_receipt [21:12:26]MH_GetDate [21:12:26]Write to MH i2c: F0 00 00 A6 00 95 [21:12:26]Write i2c OK [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: F0 [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: F0 09 00 [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: F0 09 00 A6 00 00 3B 9B 74 66 BD 8F 7C 64 7A [21:12:26]GetLastDocTimeStamp 1718917866 [21:12:26]current date 1718917947 [21:12:26]FM_GetShiftState [21:12:26]SAM_PROTO_GetShiftState [21:12:26]wFMCommunicate request_size=4 [21:12:26]MH_SAM_APDU [21:12:26]CAPDU: 80 13 01 00 [21:12:26]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [21:12:26]Write i2c OK [21:12:26]MH_I2C_Read... [21:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:26]Read from MH i2c: E2 [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: E2 0E 00 [21:12:26]MH_I2C_Read... [21:12:26]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 73 [21:12:26]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:12:26]wFMCommunicate OK [21:12:26]SAM_PROTO_GetShiftState done [21:12:26]FM_GetShiftState done [21:12:26]opened in 1718843124 [21:12:26]opened+sec_in_day 1718929524 [21:12:26]quantity*price = 150064 [21:12:26]sum+1 = 150065 [21:12:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 234 20.06.2024 21:12 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104049 ФПД: 247453916830082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T211227&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104049&fm=247453916830082&tin=02508201610067®Number=0000000000092785&sum=150064 [21:12:28]StoreToDocumentArchive [21:12:28]shift 354 fd 104049 [21:12:28]save to /storage/0354/doc_00104049 [21:12:28]save last doc name /storage/0354/doc_00104049 to /storage/kkm_last_doc_name [21:12:28]save OK [21:12:28]Clear old archive folders... [21:12:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:12:28]tlvbuf is B6EC3840 [21:12:28]SAM_PROTO_ClearQueue [21:12:28]wFMCommunicate request_size=4 [21:12:28]MH_SAM_APDU [21:12:28]CAPDU: 80 09 00 00 [21:12:28]Write to MH i2c: E2 08 00 B4 00 80 09 00 00 00 00 00 00 26 [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [21:12:28]RAPDU: 90 00 [21:12:28]wFMCommunicate OK [21:12:28]SAM_PROTO_ClearQueue done [21:12:28]KKMCreateOFDPacket [21:12:28]OFDProtocolAddRootSTLVToBuf [21:12:28]FM_MakeSignedData [21:12:28]FM_MakeSignedData [21:12:28]SAM_PROTO_SignData [21:12:28]wFMCommunicate request_size=4 [21:12:28]MH_SAM_APDU [21:12:28]CAPDU: 80 0D 01 02 [21:12:28]Write to MH i2c: E2 08 00 B5 00 80 0D 01 02 00 00 00 00 2E [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [21:12:28]RAPDU: 90 00 [21:12:28]wFMCommunicate OK [21:12:28]wFMCommunicate request_size=255 [21:12:28]MH_SAM_APDU [21:12:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 3B 9B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 96 01 00 35 04 06 00 E1 [21:12:28]Write to MH i2c: E2 02 01 B6 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 3B 9B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 96 01 00 35 04 06 00 E1 00 00 F4 [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]OFD Sender: No OFD packet to send [21:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [21:12:28]RAPDU: 90 00 [21:12:28]wFMCommunicate OK [21:12:28]wFMCommunicate request_size=10 [21:12:28]MH_SAM_APDU [21:12:28]CAPDU: 80 0D 02 02 05 0E DA CF 99 82 [21:12:28]Write to MH i2c: E2 0D 00 B7 00 80 0D 02 02 05 00 0E DA CF 99 82 00 00 0D [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [21:12:28]RAPDU: 90 00 [21:12:28]wFMCommunicate OK [21:12:28]wFMCommunicate request_size=4 [21:12:28]MH_SAM_APDU [21:12:28]CAPDU: 80 0D 03 02 [21:12:28]Write to MH i2c: E2 08 00 B8 00 80 0D 03 02 00 00 00 00 33 [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 0B 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 0B 00 B8 00 00 42 A8 CF 1E 36 B5 87 55 90 00 D2 [21:12:28]RAPDU: 42 A8 CF 1E 36 B5 87 55 90 00 [21:12:28]wFMCommunicate OK [21:12:28]SAM_PROTO_SignData done [21:12:28]FM_MakeSignedData done [21:12:28]CreateOFDProtocolMessage [21:12:28]wFMCommunicate request_size=4 [21:12:28]MH_SAM_APDU [21:12:28]CAPDU: 80 11 00 00 [21:12:28]Write to MH i2c: E2 08 00 B9 00 80 11 00 00 00 00 00 00 33 [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:28]Read from MH i2c: E2 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 17 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: E2 17 00 B9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [21:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:12:28]wFMCommunicate OK [21:12:28]CreateOFDProtocolMessage done [21:12:28]OFDSenderStorePacket 104049 [21:12:28]StoreOFDPacket docnum=104049 [21:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CE 73 07 01 DB 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 3B 9B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 96 01 00 35 04 06 00 E1 0E DA CF 99 82 42 A8 CF 1E 36 B5 87 55 [21:12:28]CheckFolder [21:12:28]dirname=/storage/ofd_packets [21:12:28]CheckFolder done [21:12:28]ProducePacketName [21:12:28]name=ofd_packets/00104049 [21:12:28]NVStorageSaveData ofd_packets/00104049 [21:12:28]File name is /storage/ofd_packets/00104049 [21:12:28]Write 301 bytes [21:12:28]NVStorageSaveData done [21:12:28]OFDSenderStorePacket done [21:12:28]KKMCreateOFDPacket done [21:12:28]NVStorageSaveData kkm_last_timestamp [21:12:28]File name is /storage/kkm_last_timestamp [21:12:28]Write 4 bytes [21:12:28]NVStorageSaveData done [21:12:28]ExternCall_PrintAddStr [21:12:28]wPrintStart [21:12:28]Write to MH i2c: 01 00 00 BA 00 BA [21:12:28]Write i2c OK [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: 01 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: 01 07 00 [21:12:28]MH_I2C_Read... [21:12:28]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 FF 0F CF [21:12:28]RasterBufferAndPrint [21:12:28]line Счет N : (1)673430 [21:12:28]line ИНН: 02508201610067 [21:12:28]line Контрольно-Кассовый Чек [21:12:28]line ПРОДАЖА [21:12:28]line ТРК (МРК, ГНК) : 42 [21:12:28]line Товар: 2710124130 [21:12:28]line Аи-92-К-5 [21:12:28]line 22.600 * 66.40 [21:12:28]line = 1500.64 [21:12:28]line НДС 12% НСП 1% [21:12:28]line > о реализуемом товаре [21:12:28]line ИТОГО: 1500.64 [21:12:28]line НСП 1% : 13.28 [21:12:28]line НДС 12% : 159.36 [21:12:28]line Наличными: 0.00 [21:12:28]line Безнал.: 1500.64 [21:12:28]line Место: АЗС № 120 "Партнер Нефть" [21:12:28]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:12:28]line СНО: Общий режим [21:12:28]line Чек 234 20.06.2024 21:12 [21:12:28]line Смена: 354 ФФД: 1.0 [21:12:28]line ЗНМ: 0300000164 [21:12:28]line РНМ: 0000000000092785 [21:12:28]line Версия ККМ: 001 [21:12:28]line Платежная система: Бакай Банк [21:12:28]line ФМ: 0000000000875093 [21:12:28]line ФД: 104049 [21:12:28]line ФПД: 247453916830082 [21:12:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T211227&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104049&fm=247453916830082&tin=02508201610067®Number=0000000000092785&sum=150064 [21:12:28]OFD Sender: Processing packet 104049 [packets to send 17, broken 16] [21:12:28]ProducePacketName [21:12:28]name=ofd_packets/00104049 [21:12:28]OFD Sender: To server: pG, [21:12:28]CommunicateWithHost lk.salyk.kg:30040 [21:12:28]ConnectInit lk.salyk.kg [21:12:28]written 0, free lines is 4095 [21:12:28]Connected sock=9 [21:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CE 73 07 01 DB 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 3B 9B 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 96 01 00 35 04 06 00 E1 0E DA CF 99 82 42 A8 CF 1E 36 B5 87 55 [21:12:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 05 3A 47 00 E9 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 71 96 01 00 F4 03 04 00 C0 41 74 66 B6 04 01 00 00 D2 75 6C 79 DB B7 20 EF [21:12:29]CommunicateWithHost err = 0 [21:12:29]CheckOFDResponse [21:12:29]1017 (14) - 77093643461234 [21:12:29]1041 (16) - 0000000000875093 [21:12:29]1040 (4) - 104049 [21:12:29]1012 (4) - 20.06.2024 14:50 [21:12:29]1206 (1) - 0 [21:12:29]OFD Sender: Remove packet 104049 [21:12:29]ProducePacketName [21:12:29]name=ofd_packets/00104049 [21:12:29]NVStorageDeleteData [21:12:29]Write to MH i2c: 01 00 00 E4 00 E4 [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: 01 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: 01 07 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 FA 0C F1 [21:12:29]RasterBufferAndPrint [21:12:29]line [21:12:29]line [21:12:29]line [21:12:29]line [21:12:29]line [21:12:29]written 0, free lines is 3328 [21:12:29]MH_Cut [21:12:29]Write to MH i2c: D1 01 00 EB 00 01 BD [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: D1 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: D1 01 00 [21:12:29]MH_I2C_Read... [21:12:29]Read from MH i2c: D1 01 00 EB 00 00 BC [21:12:29]Write to MH i2c: 01 00 00 EC 00 EC [21:12:29]Write i2c OK [21:12:29]MH_I2C_Read... [21:12:29]OFD Sender: No OFD packet to send [21:12:30]*** Cut start [21:12:30]*** Partial cut [21:12:30]*** CUTSNS_PIN = 1 [21:12:30]*** CUTSNS_PIN = 0 [21:12:30]*** Brake cut motor [21:12:30]Read from MH i2c: 01 [21:12:30]MH_I2C_Read... [21:12:30]*** Stop cut motor [21:12:30]*** Cut end [21:12:30]Read from MH i2c: 01 07 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 FF 0F 01 [21:12:30]process_action close_receipt done [21:12:30]requested_data is exist [21:12:30]produce_requested_data [21:12:30]requested_item fm.sn is exist - process it [21:12:30]wFMCommunicate request_size=4 [21:12:30]MH_SAM_APDU [21:12:30]CAPDU: 80 11 00 00 [21:12:30]Write to MH i2c: E2 08 00 ED 00 80 11 00 00 00 00 00 00 67 [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:30]Read from MH i2c: E2 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 17 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 17 00 ED 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BA [21:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:12:30]wFMCommunicate OK [21:12:30]requested_item fd.num is exist - process it [21:12:30]SAM_PROTO_GetFieldsCounters [21:12:30]wFMCommunicate request_size=4 [21:12:30]MH_SAM_APDU [21:12:30]CAPDU: 80 13 00 00 [21:12:30]Write to MH i2c: E2 08 00 EE 00 80 13 00 00 00 00 00 00 6A [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:30]Read from MH i2c: E2 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 62 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 62 00 EE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 71 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [21:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 71 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:12:30]wFMCommunicate OK [21:12:30]SAM_PROTO_GetFieldsCounters done [21:12:30]requested_item shift.num is exist - process it [21:12:30]requested_item shift.opened is exist - process it [21:12:30]req_shift_opened [21:12:30]FM_GetShiftState [21:12:30]SAM_PROTO_GetShiftState [21:12:30]wFMCommunicate request_size=4 [21:12:30]MH_SAM_APDU [21:12:30]CAPDU: 80 13 01 00 [21:12:30]Write to MH i2c: E2 08 00 EF 00 80 13 01 00 00 00 00 00 6C [21:12:30]Write i2c OK [21:12:30]MH_I2C_Read... [21:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:30]Read from MH i2c: E2 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 0E 00 [21:12:30]MH_I2C_Read... [21:12:30]Read from MH i2c: E2 0E 00 EF 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BB [21:12:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:12:30]wFMCommunicate OK [21:12:30]SAM_PROTO_GetShiftState done [21:12:30]FM_GetShiftState done [21:12:30]req_shift_opened done [21:12:30]requested_item shift.open_date is exist - process it [21:12:30]req_shift_open_date [21:12:30]req_shift_open_date done [21:12:30]produce_requested_data done [21:12:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104049,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:12:30]process_action_free close_receipt [21:12:30]json_value_free [21:12:30]json_value_free done [21:12:30]process_json_proto returns [21:12:30]Send response to host [21:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104049,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:12:30]free response buf [21:12:30]execute_script done [21:12:30]execute_script returns [21:12:30]free content buf [21:12:30]Sock 10.Close socket [21:12:30]Sock 10.Thread stoped [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:47]accept exits with 7 [21:17:47]New connection [21:17:47]New thread 3066715492 created [21:17:47]Thread 3066858852 joined [21:17:47]Waiting for new connection... [21:17:47] Sock 7.Parse request [21:17:47]Sock 7.Check first char [21:17:47]Sock 7.First char is OK [21:17:47]request: POST /json_proto HTTP/1.0 [21:17:47]Method: POST [21:17:47]URL: /json_proto [21:17:47]Method is POST - this is cgi request [21:17:47]url: /json_proto [21:17:47]query_string will be loaded in cgi processing [21:17:47]execute_cgi json_proto POST (null) [21:17:47]execute_cgi path=json_proto method=POST [21:17:47]POST find Content-Length [21:17:47]Host: 172.17.38.133:8080 [21:17:47]Content-Length: 678 [21:17:47]Content-Type: application/json [21:17:47] [21:17:47]POST finish read [21:17:47]Found Content-Length = 678 [21:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [21:17:47]execute_script... [21:17: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)673431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [21:17:47]POST & json_proto [21:17:47]process_json_proto [21:17:47]json parsed OK: [21:17:47]protocol is kg_v1.0 [21:17:47]action value=close_receipt [21:17:47]process_action close_receipt [21:17:47]cmd_close_receipt [21:17:47]MH_GetDate [21:17:47]Write to MH i2c: F0 00 00 F0 00 DF [21:17:47]Write i2c OK [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: F0 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: F0 09 00 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: F0 09 00 F0 00 00 7C 9C 74 66 BD 8F 7C 64 06 [21:17:47]GetLastDocTimeStamp 1718917947 [21:17:47]current date 1718918268 [21:17:47]FM_GetShiftState [21:17:47]SAM_PROTO_GetShiftState [21:17:47]wFMCommunicate request_size=4 [21:17:47]MH_SAM_APDU [21:17:47]CAPDU: 80 13 01 00 [21:17:47]Write to MH i2c: E2 08 00 F1 00 80 13 01 00 00 00 00 00 6E [21:17:47]Write i2c OK [21:17:47]MH_I2C_Read... [21:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:47]Read from MH i2c: E2 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: E2 0E 00 [21:17:47]MH_I2C_Read... [21:17:47]Read from MH i2c: E2 0E 00 F1 00 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 BD [21:17:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:17:47]wFMCommunicate OK [21:17:47]SAM_PROTO_GetShiftState done [21:17:47]FM_GetShiftState done [21:17:47]opened in 1718843124 [21:17:47]opened+sec_in_day 1718929524 [21:17:47]quantity*price = 70052 [21:17:47]sum+1 = 70053 [21:17:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 235 20.06.2024 21:17 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104050 ФПД: 242638243359279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T211748&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104050&fm=242638243359279&tin=02508201610067®Number=0000000000092785&sum=70000 [21:17:49]StoreToDocumentArchive [21:17:49]shift 354 fd 104050 [21:17:49]save to /storage/0354/doc_00104050 [21:17:49]save last doc name /storage/0354/doc_00104050 to /storage/kkm_last_doc_name [21:17:49]save OK [21:17:49]Clear old archive folders... [21:17:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:49]tlvbuf is 010F6550 [21:17:49]SAM_PROTO_ClearQueue [21:17:49]wFMCommunicate request_size=4 [21:17:49]MH_SAM_APDU [21:17:49]CAPDU: 80 09 00 00 [21:17:49]Write to MH i2c: E2 08 00 FE 00 80 09 00 00 00 00 00 00 70 [21:17:49]Write i2c OK [21:17:49]MH_I2C_Read... [21:17:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:49]Read from MH i2c: E2 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 03 00 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [21:17:49]RAPDU: 90 00 [21:17:49]wFMCommunicate OK [21:17:49]SAM_PROTO_ClearQueue done [21:17:49]KKMCreateOFDPacket [21:17:49]OFDProtocolAddRootSTLVToBuf [21:17:49]FM_MakeSignedData [21:17:49]FM_MakeSignedData [21:17:49]SAM_PROTO_SignData [21:17:49]wFMCommunicate request_size=4 [21:17:49]MH_SAM_APDU [21:17:49]CAPDU: 80 0D 01 02 [21:17:49]Write to MH i2c: E2 08 00 FF 00 80 0D 01 02 00 00 00 00 78 [21:17:49]Write i2c OK [21:17:49]MH_I2C_Read... [21:17:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:49]Read from MH i2c: E2 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 03 00 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [21:17:49]RAPDU: 90 00 [21:17:49]wFMCommunicate OK [21:17:49]wFMCommunicate request_size=255 [21:17:49]MH_SAM_APDU [21:17: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 EB 00 00 00 F4 03 04 00 7C 9C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 96 01 00 35 04 06 00 DC [21:17:49]Write to MH i2c: E2 02 01 00 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 EB 00 00 00 F4 03 04 00 7C 9C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 96 01 00 35 04 06 00 DC 00 00 6A [21:17:49]Write i2c OK [21:17:49]MH_I2C_Read... [21:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:49]Read from MH i2c: E2 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 03 00 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [21:17:49]RAPDU: 90 00 [21:17:49]wFMCommunicate OK [21:17:49]wFMCommunicate request_size=10 [21:17:49]MH_SAM_APDU [21:17:49]CAPDU: 80 0D 02 02 05 AD 9E 4D EA 2F [21:17:49]Write to MH i2c: E2 0D 00 01 01 80 0D 02 02 05 00 AD 9E 4D EA 2F 00 00 37 [21:17:49]Write i2c OK [21:17:49]MH_I2C_Read... [21:17:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:17:49]Read from MH i2c: E2 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 03 00 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [21:17:49]RAPDU: 90 00 [21:17:49]wFMCommunicate OK [21:17:49]wFMCommunicate request_size=4 [21:17:49]MH_SAM_APDU [21:17:49]CAPDU: 80 0D 03 02 [21:17:49]Write to MH i2c: E2 08 00 02 01 80 0D 03 02 00 00 00 00 7E [21:17:49]Write i2c OK [21:17:49]MH_I2C_Read... [21:17:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:17:49]Read from MH i2c: E2 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 0B 00 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 0B 00 02 01 00 F9 93 16 12 9F 44 A4 52 90 00 0C [21:17:49]RAPDU: F9 93 16 12 9F 44 A4 52 90 00 [21:17:49]wFMCommunicate OK [21:17:49]SAM_PROTO_SignData done [21:17:49]FM_MakeSignedData done [21:17:49]CreateOFDProtocolMessage [21:17:49]wFMCommunicate request_size=4 [21:17:49]MH_SAM_APDU [21:17:49]CAPDU: 80 11 00 00 [21:17:49]Write to MH i2c: E2 08 00 03 01 80 11 00 00 00 00 00 00 7E [21:17:49]Write i2c OK [21:17:49]MH_I2C_Read... [21:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:49]Read from MH i2c: E2 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 17 00 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: E2 17 00 03 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D1 [21:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:17:49]wFMCommunicate OK [21:17:49]CreateOFDProtocolMessage done [21:17:49]OFDSenderStorePacket 104050 [21:17:49]StoreOFDPacket docnum=104050 [21:17:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DF B9 07 01 0E 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 EB 00 00 00 F4 03 04 00 7C 9C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 96 01 00 35 04 06 00 DC AD 9E 4D EA 2F F9 93 16 12 9F 44 A4 52 [21:17:49]CheckFolder [21:17:49]dirname=/storage/ofd_packets [21:17:49]CheckFolder done [21:17:49]ProducePacketName [21:17:49]name=ofd_packets/00104050 [21:17:49]NVStorageSaveData ofd_packets/00104050 [21:17:49]File name is /storage/ofd_packets/00104050 [21:17:49]Write 301 bytes [21:17:49]NVStorageSaveData done [21:17:49]OFDSenderStorePacket done [21:17:49]KKMCreateOFDPacket done [21:17:49]NVStorageSaveData kkm_last_timestamp [21:17:49]File name is /storage/kkm_last_timestamp [21:17:49]Write 4 bytes [21:17:49]NVStorageSaveData done [21:17:49]ExternCall_PrintAddStr [21:17:49]wPrintStart [21:17:49]Write to MH i2c: 01 00 00 04 01 05 [21:17:49]Write i2c OK [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: 01 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: 01 07 00 [21:17:49]MH_I2C_Read... [21:17:49]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [21:17:49]RasterBufferAndPrint [21:17:49]line Счет N : (1)673431 [21:17:49]line ИНН: 02508201610067 [21:17:49]line Контрольно-Кассовый Чек [21:17:49]line ПРОДАЖА [21:17:49]line ТРК (МРК, ГНК) : 32 [21:17:49]line Товар: 2710124130 [21:17:49]line Аи-92-К-5 [21:17:49]line 10.550 * 66.40 [21:17:49]line = 700.52 [21:17:49]line НДС 12% НСП 1% [21:17:49]line > о реализуемом товаре [21:17:49]line ОКРУГЛЕНИЕ: -0.52 [21:17:49]line ИТОГО: 700.00 [21:17:49]line Внесено: 700.00 [21:17:49]line СДАЧА: 0.00 [21:17:49]line НСП 1% : 6.20 [21:17:49]line НДС 12% : 74.39 [21:17:49]line Наличными: 700.00 [21:17:49]line Безнал.: 0.00 [21:17:49]line Место: АЗС № 120 "Партнер Нефть" [21:17:49]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:17:49]line СНО: Общий режим [21:17:49]line Чек 235 20.06.2024 21:17 [21:17:49]line Смена: 354 ФФД: 1.0 [21:17:49]line ЗНМ: 0300000164 [21:17:49]line РНМ: 0000000000092785 [21:17:49]line Версия ККМ: 001 [21:17:49]line ФМ: 0000000000875093 [21:17:49]line ФД: 104050 [21:17:49]line ФПД: 242638243359279 [21:17:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T211748&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104050&fm=242638243359279&tin=02508201610067®Number=0000000000092785&sum=70000 [21:17:49]OFD Sender: Processing packet 104050 [packets to send 17, broken 16] [21:17:49]ProducePacketName [21:17:49]name=ofd_packets/00104050 [21:17:49]OFD Sender: To server: pG, [21:17:49]CommunicateWithHost lk.salyk.kg:30040 [21:17:49]ConnectInit lk.salyk.kg [21:17:49]written 0, free lines is 4095 [21:17:50]Connected sock=9 [21:17:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DF B9 07 01 0E 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 EB 00 00 00 F4 03 04 00 7C 9C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 96 01 00 35 04 06 00 DC AD 9E 4D EA 2F F9 93 16 12 9F 44 A4 52 [21:17:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 23 38 47 00 CA 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 72 96 01 00 F4 03 04 00 01 43 74 66 B6 04 01 00 00 CF 41 8A A7 44 69 D5 45 [21:17:50]CommunicateWithHost err = 0 [21:17:50]CheckOFDResponse [21:17:50]1017 (14) - 77093643461234 [21:17:50]1041 (16) - 0000000000875093 [21:17:50]1040 (4) - 104050 [21:17:50]1012 (4) - 20.06.2024 14:56 [21:17:50]1206 (1) - 0 [21:17:50]OFD Sender: Remove packet 104050 [21:17:50]ProducePacketName [21:17:50]name=ofd_packets/00104050 [21:17:50]NVStorageDeleteData [21:17:50]Write to MH i2c: 01 00 00 2F 01 30 [21:17:50]Write i2c OK [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: 01 [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: 01 07 00 [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: 01 07 00 2F 01 00 00 00 00 00 E9 0C 2C [21:17:50]RasterBufferAndPrint [21:17:50]line [21:17:50]line [21:17:50]line [21:17:50]line [21:17:50]line [21:17:50]written 0, free lines is 3311 [21:17:50]MH_Cut [21:17:50]Write to MH i2c: D1 01 00 36 01 01 09 [21:17:50]Write i2c OK [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: D1 [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: D1 01 00 [21:17:50]MH_I2C_Read... [21:17:50]Read from MH i2c: D1 01 00 36 01 00 08 [21:17:50]Write to MH i2c: 01 00 00 37 01 38 [21:17:50]Write i2c OK [21:17:50]MH_I2C_Read... [21:17:50]OFD Sender: No OFD packet to send [21:17:51]*** Cut start [21:17:51]*** Partial cut [21:17:51]*** CUTSNS_PIN = 1 [21:17:51]*** CUTSNS_PIN = 0 [21:17:51]*** Brake cut motor [21:17:51]Read from MH i2c: 01 [21:17:51]MH_I2C_Read... [21:17:51]*** Stop cut motor [21:17:51]*** Cut end [21:17:51]Read from MH i2c: 01 07 00 [21:17:51]MH_I2C_Read... [21:17:51]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 FF 0F 4D [21:17:51]process_action close_receipt done [21:17:51]requested_data is exist [21:17:51]produce_requested_data [21:17:51]requested_item fm.sn is exist - process it [21:17:51]wFMCommunicate request_size=4 [21:17:51]MH_SAM_APDU [21:17:51]CAPDU: 80 11 00 00 [21:17:51]Write to MH i2c: E2 08 00 38 01 80 11 00 00 00 00 00 00 B3 [21:17:51]Write i2c OK [21:17:51]MH_I2C_Read... [21:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:51]Read from MH i2c: E2 [21:17:51]MH_I2C_Read... [21:17:51]Read from MH i2c: E2 17 00 [21:17:51]MH_I2C_Read... [21:17:51]Read from MH i2c: E2 17 00 38 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 06 [21:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:17:51]wFMCommunicate OK [21:17:51]requested_item fd.num is exist - process it [21:17:51]SAM_PROTO_GetFieldsCounters [21:17:51]wFMCommunicate request_size=4 [21:17:51]MH_SAM_APDU [21:17:51]CAPDU: 80 13 00 00 [21:17:51]Write to MH i2c: E2 08 00 39 01 80 13 00 00 00 00 00 00 B6 [21:17:51]Write i2c OK [21:17:51]MH_I2C_Read... [21:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:51]Read from MH i2c: E2 [21:17:51]MH_I2C_Read... [21:17:51]Read from MH i2c: E2 62 00 [21:17:51]MH_I2C_Read... [21:17:51]Read from MH i2c: E2 62 00 39 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 72 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [21:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 72 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:51]wFMCommunicate OK [21:17:51]SAM_PROTO_GetFieldsCounters done [21:17:51]requested_item shift.num is exist - process it [21:17:51]requested_item shift.opened is exist - process it [21:17:51]req_shift_opened [21:17:51]FM_GetShiftState [21:17:51]SAM_PROTO_GetShiftState [21:17:51]wFMCommunicate request_size=4 [21:17:51]MH_SAM_APDU [21:17:51]CAPDU: 80 13 01 00 [21:17:51]Write to MH i2c: E2 08 00 3A 01 80 13 01 00 00 00 00 00 B8 [21:17:51]Write i2c OK [21:17:51]MH_I2C_Read... [21:17:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:52]Read from MH i2c: E2 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 0E 00 [21:17:52]MH_I2C_Read... [21:17:52]Read from MH i2c: E2 0E 00 3A 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 07 [21:17:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:17:52]wFMCommunicate OK [21:17:52]SAM_PROTO_GetShiftState done [21:17:52]FM_GetShiftState done [21:17:52]req_shift_opened done [21:17:52]requested_item shift.open_date is exist - process it [21:17:52]req_shift_open_date [21:17:52]req_shift_open_date done [21:17:52]produce_requested_data done [21:17:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104050,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:17:52]process_action_free close_receipt [21:17:52]json_value_free [21:17:52]json_value_free done [21:17:52]process_json_proto returns [21:17:52]Send response to host [21:17:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104050,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:17:52]free response buf [21:17:52]execute_script done [21:17:52]execute_script returns [21:17:52]free content buf [21:17:52]Sock 7.Close socket [21:17:52]Sock 7.Thread stoped [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]accept exits with 10 [21:19:50]New connection [21:19:50]New thread 3066858852 created [21:19:50]Thread 3066715492 joined [21:19:50]Waiting for new connection... [21:19:50] Sock 10.Parse request [21:19:50]Sock 10.Check first char [21:19:50]Sock 10.First char is OK [21:19:50]request: POST /json_proto HTTP/1.0 [21:19:50]Method: POST [21:19:50]URL: /json_proto [21:19:50]Method is POST - this is cgi request [21:19:50]url: /json_proto [21:19:50]query_string will be loaded in cgi processing [21:19:50]execute_cgi json_proto POST (null) [21:19:50]execute_cgi path=json_proto method=POST [21:19:50]POST find Content-Length [21:19:50]Host: 172.17.38.133:8080 [21:19:50]Content-Length: 677 [21:19:50]Content-Type: application/json [21:19:50] [21:19:50]POST finish read [21:19:50]Found Content-Length = 677 [21:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673432", "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" : 73.90, "quantity" : 8.120, "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" ] } } [21:19:50]execute_script... [21:19: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)673432", "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" : 73.90, "quantity" : 8.120, "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" ] } } [21:19:50]POST & json_proto [21:19:50]process_json_proto [21:19:50]json parsed OK: [21:19:50]protocol is kg_v1.0 [21:19:50]action value=close_receipt [21:19:50]process_action close_receipt [21:19:50]cmd_close_receipt [21:19:50]MH_GetDate [21:19:50]Write to MH i2c: F0 00 00 3B 01 2B [21:19:50]Write i2c OK [21:19:50]MH_I2C_Read... [21:19:50]Read from MH i2c: F0 [21:19:50]MH_I2C_Read... [21:19:50]Read from MH i2c: F0 09 00 [21:19:50]MH_I2C_Read... [21:19:50]Read from MH i2c: F0 09 00 3B 01 00 F7 9C 74 66 BD 8F 7C 64 CD [21:19:50]GetLastDocTimeStamp 1718918268 [21:19:50]current date 1718918391 [21:19:50]FM_GetShiftState [21:19:50]SAM_PROTO_GetShiftState [21:19:50]wFMCommunicate request_size=4 [21:19:50]MH_SAM_APDU [21:19:50]CAPDU: 80 13 01 00 [21:19:50]Write to MH i2c: E2 08 00 3C 01 80 13 01 00 00 00 00 00 BA [21:19:50]Write i2c OK [21:19:50]MH_I2C_Read... [21:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:50]Read from MH i2c: E2 [21:19:50]MH_I2C_Read... [21:19:50]Read from MH i2c: E2 0E 00 [21:19:50]MH_I2C_Read... [21:19:50]Read from MH i2c: E2 0E 00 3C 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 09 [21:19:50]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:19:50]wFMCommunicate OK [21:19:50]SAM_PROTO_GetShiftState done [21:19:50]FM_GetShiftState done [21:19:50]opened in 1718843124 [21:19:50]opened+sec_in_day 1718929524 [21:19:50]quantity*price = 60006 [21:19:50]sum+1 = 60008 [21:19:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 236 20.06.2024 21:19 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104051 ФПД: 67960035532952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T211951&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104051&fm=67960035532952&tin=02508201610067®Number=0000000000092785&sum=60000 [21:19:51]StoreToDocumentArchive [21:19:51]shift 354 fd 104051 [21:19:51]save to /storage/0354/doc_00104051 [21:19:51]save last doc name /storage/0354/doc_00104051 to /storage/kkm_last_doc_name [21:19:51]save OK [21:19:51]Clear old archive folders... [21:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:51]tlvbuf is 010F7ED0 [21:19:51]SAM_PROTO_ClearQueue [21:19:51]wFMCommunicate request_size=4 [21:19:51]MH_SAM_APDU [21:19:51]CAPDU: 80 09 00 00 [21:19:51]Write to MH i2c: E2 08 00 49 01 80 09 00 00 00 00 00 00 BC [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:51]Read from MH i2c: E2 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 03 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [21:19:51]RAPDU: 90 00 [21:19:51]wFMCommunicate OK [21:19:51]SAM_PROTO_ClearQueue done [21:19:51]KKMCreateOFDPacket [21:19:51]OFDProtocolAddRootSTLVToBuf [21:19:51]FM_MakeSignedData [21:19:51]FM_MakeSignedData [21:19:51]SAM_PROTO_SignData [21:19:51]wFMCommunicate request_size=4 [21:19:51]MH_SAM_APDU [21:19:51]CAPDU: 80 0D 01 02 [21:19:51]Write to MH i2c: E2 08 00 4A 01 80 0D 01 02 00 00 00 00 C4 [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:51]Read from MH i2c: E2 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 03 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [21:19:51]RAPDU: 90 00 [21:19:51]wFMCommunicate OK [21:19:51]wFMCommunicate request_size=255 [21:19:51]MH_SAM_APDU [21:19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 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 EC 00 00 00 F4 03 04 00 F7 9C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 96 01 00 35 04 06 00 3D [21:19:51]Write to MH i2c: E2 02 01 4B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 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 EC 00 00 00 F4 03 04 00 F7 9C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 96 01 00 35 04 06 00 3D 00 00 A2 [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:51]Read from MH i2c: E2 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 03 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [21:19:51]RAPDU: 90 00 [21:19:51]wFMCommunicate OK [21:19:51]wFMCommunicate request_size=10 [21:19:51]MH_SAM_APDU [21:19:51]CAPDU: 80 0D 02 02 05 CF 2D C6 E0 98 [21:19:51]Write to MH i2c: E2 0D 00 4C 01 80 0D 02 02 05 00 CF 2D C6 E0 98 00 00 0B [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:51]Read from MH i2c: E2 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 03 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [21:19:51]RAPDU: 90 00 [21:19:51]wFMCommunicate OK [21:19:51]wFMCommunicate request_size=4 [21:19:51]MH_SAM_APDU [21:19:51]CAPDU: 80 0D 03 02 [21:19:51]Write to MH i2c: E2 08 00 4D 01 80 0D 03 02 00 00 00 00 C9 [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:51]Read from MH i2c: E2 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 0B 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 0B 00 4D 01 00 17 61 48 16 C5 20 EB 12 90 00 82 [21:19:51]RAPDU: 17 61 48 16 C5 20 EB 12 90 00 [21:19:51]wFMCommunicate OK [21:19:51]SAM_PROTO_SignData done [21:19:51]FM_MakeSignedData done [21:19:51]CreateOFDProtocolMessage [21:19:51]wFMCommunicate request_size=4 [21:19:51]MH_SAM_APDU [21:19:51]CAPDU: 80 11 00 00 [21:19:51]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:51]Read from MH i2c: E2 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 17 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1C [21:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:19:51]wFMCommunicate OK [21:19:51]CreateOFDProtocolMessage done [21:19:51]OFDSenderStorePacket 104051 [21:19:51]StoreOFDPacket docnum=104051 [21:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5F 6A 07 01 73 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 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 EC 00 00 00 F4 03 04 00 F7 9C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 96 01 00 35 04 06 00 3D CF 2D C6 E0 98 17 61 48 16 C5 20 EB 12 [21:19:51]CheckFolder [21:19:51]dirname=/storage/ofd_packets [21:19:51]CheckFolder done [21:19:51]ProducePacketName [21:19:51]name=ofd_packets/00104051 [21:19:51]NVStorageSaveData ofd_packets/00104051 [21:19:51]File name is /storage/ofd_packets/00104051 [21:19:51]Write 301 bytes [21:19:51]NVStorageSaveData done [21:19:51]OFDSenderStorePacket done [21:19:51]KKMCreateOFDPacket done [21:19:51]NVStorageSaveData kkm_last_timestamp [21:19:51]File name is /storage/kkm_last_timestamp [21:19:51]Write 4 bytes [21:19:51]NVStorageSaveData done [21:19:51]ExternCall_PrintAddStr [21:19:51]wPrintStart [21:19:51]Write to MH i2c: 01 00 00 4F 01 50 [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: 01 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: 01 07 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 FF 0F 65 [21:19:51]RasterBufferAndPrint [21:19:51]line Счет N : (1)673432 [21:19:51]line ИНН: 02508201610067 [21:19:51]line Контрольно-Кассовый Чек [21:19:51]line ПРОДАЖА [21:19:51]line ТРК (МРК, ГНК) : 31 [21:19:51]line Товар: 2710124500 [21:19:51]line Аи-95-К-5 [21:19:51]line 8.120 * 73.90 [21:19:51]line = 600.07 [21:19:51]line НДС 12% НСП 1% [21:19:51]line > о реализуемом товаре [21:19:51]line ОКРУГЛЕНИЕ: -0.07 [21:19:51]line ИТОГО: 600.00 [21:19:51]line Внесено: 600.00 [21:19:51]line СДАЧА: 0.00 [21:19:51]line НСП 1% : 5.31 [21:19:51]line НДС 12% : 63.72 [21:19:51]line Наличными: 600.00 [21:19:51]line Безнал.: 0.00 [21:19:51]line Место: АЗС № 120 "Партнер Нефть" [21:19:51]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:19:51]line СНО: Общий режим [21:19:51]line Чек 236 20.06.2024 21:19 [21:19:51]line Смена: 354 ФФД: 1.0 [21:19:51]line ЗНМ: 0300000164 [21:19:51]line РНМ: 0000000000092785 [21:19:51]line Версия ККМ: 001 [21:19:51]line ФМ: 0000000000875093 [21:19:51]line ФД: 104051 [21:19:51]line ФПД: 67960035532952 [21:19:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T211951&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104051&fm=67960035532952&tin=02508201610067®Number=0000000000092785&sum=60000 [21:19:52]OFD Sender: Processing packet 104051 [packets to send 17, broken 16] [21:19:52]ProducePacketName [21:19:52]name=ofd_packets/00104051 [21:19:52]OFD Sender: To server: pG, [21:19:52]CommunicateWithHost lk.salyk.kg:30040 [21:19:52]ConnectInit lk.salyk.kg [21:19:52]written 0, free lines is 4095 [21:19:52]Connected sock=9 [21:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 5F 6A 07 01 73 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1F 00 00 00 00 00 37 04 06 00 DE 1C 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 EC 00 00 00 F4 03 04 00 F7 9C 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 96 01 00 35 04 06 00 3D CF 2D C6 E0 98 17 61 48 16 C5 20 EB 12 [21:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 6A D7 47 00 D1 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 73 96 01 00 F4 03 04 00 7B 43 74 66 B6 04 01 00 00 9E D0 73 AA 01 AF 72 4E [21:19:52]CommunicateWithHost err = 0 [21:19:52]CheckOFDResponse [21:19:52]1017 (14) - 77093643461234 [21:19:52]1041 (16) - 0000000000875093 [21:19:52]1040 (4) - 104051 [21:19:52]1012 (4) - 20.06.2024 14:58 [21:19:52]1206 (1) - 0 [21:19:52]OFD Sender: Remove packet 104051 [21:19:52]ProducePacketName [21:19:52]name=ofd_packets/00104051 [21:19:52]NVStorageDeleteData [21:19:52]Write to MH i2c: 01 00 00 7A 01 7B [21:19:52]Write i2c OK [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: 01 [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: 01 07 00 [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 EE 0C 7C [21:19:52]RasterBufferAndPrint [21:19:52]line [21:19:52]line [21:19:52]line [21:19:52]line [21:19:52]line [21:19:52]written 0, free lines is 3316 [21:19:52]MH_Cut [21:19:52]Write to MH i2c: D1 01 00 81 01 01 54 [21:19:52]Write i2c OK [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: D1 [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: D1 01 00 [21:19:52]MH_I2C_Read... [21:19:52]Read from MH i2c: D1 01 00 81 01 00 53 [21:19:52]Write to MH i2c: 01 00 00 82 01 83 [21:19:52]Write i2c OK [21:19:52]MH_I2C_Read... [21:19:53]OFD Sender: No OFD packet to send [21:19:53]*** Cut start [21:19:53]*** Partial cut [21:19:53]*** CUTSNS_PIN = 1 [21:19:53]*** CUTSNS_PIN = 0 [21:19:53]*** Brake cut motor [21:19:53]Read from MH i2c: 01 [21:19:53]MH_I2C_Read... [21:19:53]*** Stop cut motor [21:19:53]*** Cut end [21:19:53]Read from MH i2c: 01 07 00 [21:19:53]MH_I2C_Read... [21:19:53]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 FF 0F 98 [21:19:53]process_action close_receipt done [21:19:53]requested_data is exist [21:19:53]produce_requested_data [21:19:53]requested_item fm.sn is exist - process it [21:19:53]wFMCommunicate request_size=4 [21:19:53]MH_SAM_APDU [21:19:53]CAPDU: 80 11 00 00 [21:19:53]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [21:19:53]Write i2c OK [21:19:53]MH_I2C_Read... [21:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:54]Read from MH i2c: E2 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 17 00 [21:19:54]MH_I2C_Read... [21:19: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 35 30 39 33 90 00 51 [21:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:19:54]wFMCommunicate OK [21:19:54]requested_item fd.num is exist - process it [21:19:54]SAM_PROTO_GetFieldsCounters [21:19:54]wFMCommunicate request_size=4 [21:19:54]MH_SAM_APDU [21:19:54]CAPDU: 80 13 00 00 [21:19:54]Write to MH i2c: E2 08 00 84 01 80 13 00 00 00 00 00 00 01 [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:54]Read from MH i2c: E2 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 62 00 [21:19:54]MH_I2C_Read... [21:19: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 73 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [21:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 73 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:54]wFMCommunicate OK [21:19:54]SAM_PROTO_GetFieldsCounters done [21:19:54]requested_item shift.num is exist - process it [21:19:54]requested_item shift.opened is exist - process it [21:19:54]req_shift_opened [21:19:54]FM_GetShiftState [21:19:54]SAM_PROTO_GetShiftState [21:19:54]wFMCommunicate request_size=4 [21:19:54]MH_SAM_APDU [21:19:54]CAPDU: 80 13 01 00 [21:19:54]Write to MH i2c: E2 08 00 85 01 80 13 01 00 00 00 00 00 03 [21:19:54]Write i2c OK [21:19:54]MH_I2C_Read... [21:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:54]Read from MH i2c: E2 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 0E 00 [21:19:54]MH_I2C_Read... [21:19:54]Read from MH i2c: E2 0E 00 85 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 52 [21:19:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:19:54]wFMCommunicate OK [21:19:54]SAM_PROTO_GetShiftState done [21:19:54]FM_GetShiftState done [21:19:54]req_shift_opened done [21:19:54]requested_item shift.open_date is exist - process it [21:19:54]req_shift_open_date [21:19:54]req_shift_open_date done [21:19:54]produce_requested_data done [21:19:54]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104051,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:19:54]process_action_free close_receipt [21:19:54]json_value_free [21:19:54]json_value_free done [21:19:54]process_json_proto returns [21:19:54]Send response to host [21:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104051,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:19:54]free response buf [21:19:54]execute_script done [21:19:54]execute_script returns [21:19:54]free content buf [21:19:54]Sock 10.Close socket [21:19:54]Sock 10.Thread stoped [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]accept exits with 7 [21:22:43]New connection [21:22:43]New thread 3066715492 created [21:22:43]Thread 3066858852 joined [21:22:43]Waiting for new connection... [21:22:43] Sock 7.Parse request [21:22:43]Sock 7.Check first char [21:22:43]Sock 7.First char is OK [21:22:43]request: POST /json_proto HTTP/1.0 [21:22:43]Method: POST [21:22:43]URL: /json_proto [21:22:43]Method is POST - this is cgi request [21:22:43]url: /json_proto [21:22:43]query_string will be loaded in cgi processing [21:22:43]execute_cgi json_proto POST (null) [21:22:43]execute_cgi path=json_proto method=POST [21:22:43]POST find Content-Length [21:22:43]Host: 172.17.38.133:8080 [21:22:43]Content-Length: 682 [21:22:43]Content-Type: application/json [21:22:43] [21:22:43]POST finish read [21:22:43]Found Content-Length = 682 [21:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673433", "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" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:43]execute_script... [21:22: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)673433", "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" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:43]POST & json_proto [21:22:43]process_json_proto [21:22:43]json parsed OK: [21:22:43]protocol is kg_v1.0 [21:22:43]action value=close_receipt [21:22:43]process_action close_receipt [21:22:43]cmd_close_receipt [21:22:43]MH_GetDate [21:22:43]Write to MH i2c: F0 00 00 86 01 76 [21:22:43]Write i2c OK [21:22:43]MH_I2C_Read... [21:22:43]Read from MH i2c: F0 [21:22:43]MH_I2C_Read... [21:22:43]Read from MH i2c: F0 09 00 [21:22:43]MH_I2C_Read... [21:22:43]Read from MH i2c: F0 09 00 86 01 00 A4 9D 74 66 BD 8F 7C 64 C6 [21:22:43]GetLastDocTimeStamp 1718918391 [21:22:43]current date 1718918564 [21:22:43]FM_GetShiftState [21:22:43]SAM_PROTO_GetShiftState [21:22:43]wFMCommunicate request_size=4 [21:22:43]MH_SAM_APDU [21:22:43]CAPDU: 80 13 01 00 [21:22:43]Write to MH i2c: E2 08 00 87 01 80 13 01 00 00 00 00 00 05 [21:22:43]Write i2c OK [21:22:43]MH_I2C_Read... [21:22:43]OFD Sender: No OFD packet to send [21:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:43]Read from MH i2c: E2 [21:22:43]MH_I2C_Read... [21:22:43]Read from MH i2c: E2 0E 00 [21:22:43]MH_I2C_Read... [21:22:43]Read from MH i2c: E2 0E 00 87 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 54 [21:22:43]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:22:43]wFMCommunicate OK [21:22:43]SAM_PROTO_GetShiftState done [21:22:43]FM_GetShiftState done [21:22:43]opened in 1718843124 [21:22:43]opened+sec_in_day 1718929524 [21:22:43]quantity*price = 200047 [21:22:43]sum+1 = 200048 [21:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 237 20.06.2024 21:22 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104052 ФПД: 274589097961797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212244&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104052&fm=274589097961797&tin=02508201610067®Number=0000000000092785&sum=200000 [21:22:44]StoreToDocumentArchive [21:22:44]shift 354 fd 104052 [21:22:44]save to /storage/0354/doc_00104052 [21:22:44]save last doc name /storage/0354/doc_00104052 to /storage/kkm_last_doc_name [21:22:44]save OK [21:22:44]Clear old archive folders... [21:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:44]tlvbuf is 010F7850 [21:22:44]SAM_PROTO_ClearQueue [21:22:44]wFMCommunicate request_size=4 [21:22:44]MH_SAM_APDU [21:22:44]CAPDU: 80 09 00 00 [21:22:44]Write to MH i2c: E2 08 00 94 01 80 09 00 00 00 00 00 00 07 [21:22:44]Write i2c OK [21:22:44]MH_I2C_Read... [21:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:44]Read from MH i2c: E2 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 03 00 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [21:22:44]RAPDU: 90 00 [21:22:44]wFMCommunicate OK [21:22:44]SAM_PROTO_ClearQueue done [21:22:44]KKMCreateOFDPacket [21:22:44]OFDProtocolAddRootSTLVToBuf [21:22:44]FM_MakeSignedData [21:22:44]FM_MakeSignedData [21:22:44]SAM_PROTO_SignData [21:22:44]wFMCommunicate request_size=4 [21:22:44]MH_SAM_APDU [21:22:44]CAPDU: 80 0D 01 02 [21:22:44]Write to MH i2c: E2 08 00 95 01 80 0D 01 02 00 00 00 00 0F [21:22:44]Write i2c OK [21:22:44]MH_I2C_Read... [21:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:44]Read from MH i2c: E2 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 03 00 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [21:22:44]RAPDU: 90 00 [21:22:44]wFMCommunicate OK [21:22:44]wFMCommunicate request_size=255 [21:22:44]MH_SAM_APDU [21:22:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A4 9D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 96 01 00 35 04 06 00 F9 [21:22:44]Write to MH i2c: E2 02 01 96 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A4 9D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 96 01 00 35 04 06 00 F9 00 00 10 [21:22:44]Write i2c OK [21:22:44]MH_I2C_Read... [21:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:44]Read from MH i2c: E2 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 03 00 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [21:22:44]RAPDU: 90 00 [21:22:44]wFMCommunicate OK [21:22:44]wFMCommunicate request_size=10 [21:22:44]MH_SAM_APDU [21:22:44]CAPDU: 80 0D 02 02 05 BC C1 A4 A9 45 [21:22:44]Write to MH i2c: E2 0D 00 97 01 80 0D 02 02 05 00 BC C1 A4 A9 45 00 00 2B [21:22:44]Write i2c OK [21:22:44]MH_I2C_Read... [21:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:44]Read from MH i2c: E2 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 03 00 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [21:22:44]RAPDU: 90 00 [21:22:44]wFMCommunicate OK [21:22:44]wFMCommunicate request_size=4 [21:22:44]MH_SAM_APDU [21:22:44]CAPDU: 80 0D 03 02 [21:22:44]Write to MH i2c: E2 08 00 98 01 80 0D 03 02 00 00 00 00 14 [21:22:44]Write i2c OK [21:22:44]MH_I2C_Read... [21:22:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:44]Read from MH i2c: E2 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 0B 00 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 0B 00 98 01 00 A2 82 01 EB DA 8E F1 8B 90 00 09 [21:22:44]RAPDU: A2 82 01 EB DA 8E F1 8B 90 00 [21:22:44]wFMCommunicate OK [21:22:44]SAM_PROTO_SignData done [21:22:44]FM_MakeSignedData done [21:22:44]CreateOFDProtocolMessage [21:22:44]wFMCommunicate request_size=4 [21:22:44]MH_SAM_APDU [21:22:44]CAPDU: 80 11 00 00 [21:22:44]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [21:22:44]Write i2c OK [21:22:44]MH_I2C_Read... [21:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:44]Read from MH i2c: E2 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 17 00 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [21:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:22:44]wFMCommunicate OK [21:22:44]CreateOFDProtocolMessage done [21:22:44]OFDSenderStorePacket 104052 [21:22:44]StoreOFDPacket docnum=104052 [21:22:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B7 7D 07 01 70 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A4 9D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 96 01 00 35 04 06 00 F9 BC C1 A4 A9 45 A2 82 01 EB DA 8E F1 8B [21:22:44]CheckFolder [21:22:44]dirname=/storage/ofd_packets [21:22:44]CheckFolder done [21:22:44]ProducePacketName [21:22:44]name=ofd_packets/00104052 [21:22:44]NVStorageSaveData ofd_packets/00104052 [21:22:44]File name is /storage/ofd_packets/00104052 [21:22:44]Write 301 bytes [21:22:44]NVStorageSaveData done [21:22:44]OFDSenderStorePacket done [21:22:44]KKMCreateOFDPacket done [21:22:44]NVStorageSaveData kkm_last_timestamp [21:22:44]File name is /storage/kkm_last_timestamp [21:22:44]Write 4 bytes [21:22:44]NVStorageSaveData done [21:22:44]ExternCall_PrintAddStr [21:22:44]wPrintStart [21:22:44]Write to MH i2c: 01 00 00 9A 01 9B [21:22:44]Write i2c OK [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: 01 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: 01 07 00 [21:22:44]MH_I2C_Read... [21:22:44]Read from MH i2c: 01 07 00 9A 01 00 00 00 00 00 FF 0F B0 [21:22:44]RasterBufferAndPrint [21:22:44]line Счет N : (1)673433 [21:22:44]line ИНН: 02508201610067 [21:22:44]line Контрольно-Кассовый Чек [21:22:44]line ПРОДАЖА [21:22:44]line ТРК (МРК, ГНК) : 41 [21:22:44]line Товар: 2710124500 [21:22:44]line Аи-95-К-5 [21:22:44]line 27.070 * 73.90 [21:22:44]line = 2000.47 [21:22:44]line НДС 12% НСП 1% [21:22:44]line > о реализуемом товаре [21:22:44]line ОКРУГЛЕНИЕ: -0.47 [21:22:44]line ИТОГО: 2000.00 [21:22:44]line Внесено: 2000.00 [21:22:44]line СДАЧА: 0.00 [21:22:44]line НСП 1% : 17.70 [21:22:44]line НДС 12% : 212.44 [21:22:44]line Наличными: 2000.00 [21:22:44]line Безнал.: 0.00 [21:22:44]line Место: АЗС № 120 "Партнер Нефть" [21:22:44]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:22:44]line СНО: Общий режим [21:22:44]line Чек 237 20.06.2024 21:22 [21:22:44]line Смена: 354 ФФД: 1.0 [21:22:44]line ЗНМ: 0300000164 [21:22:44]line РНМ: 0000000000092785 [21:22:44]line Версия ККМ: 001 [21:22:44]line ФМ: 0000000000875093 [21:22:44]line ФД: 104052 [21:22:44]line ФПД: 274589097961797 [21:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212244&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104052&fm=274589097961797&tin=02508201610067®Number=0000000000092785&sum=200000 [21:22:45]OFD Sender: Processing packet 104052 [packets to send 17, broken 16] [21:22:45]ProducePacketName [21:22:45]name=ofd_packets/00104052 [21:22:45]OFD Sender: To server: pG, [21:22:45]CommunicateWithHost lk.salyk.kg:30040 [21:22:45]ConnectInit lk.salyk.kg [21:22:45]written 0, free lines is 4095 [21:22:45]Connected sock=10 [21:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B7 7D 07 01 70 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A4 9D 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 96 01 00 35 04 06 00 F9 BC C1 A4 A9 45 A2 82 01 EB DA 8E F1 8B [21:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 47 B7 47 00 14 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 74 96 01 00 F4 03 04 00 28 44 74 66 B6 04 01 00 00 C8 12 8F 63 4F 33 CD 10 [21:22:45]CommunicateWithHost err = 0 [21:22:45]CheckOFDResponse [21:22:45]1017 (14) - 77093643461234 [21:22:45]1041 (16) - 0000000000875093 [21:22:45]1040 (4) - 104052 [21:22:45]1012 (4) - 20.06.2024 15:00 [21:22:45]1206 (1) - 0 [21:22:45]OFD Sender: Remove packet 104052 [21:22:45]ProducePacketName [21:22:45]name=ofd_packets/00104052 [21:22:45]NVStorageDeleteData [21:22:45]Write to MH i2c: 01 00 00 C5 01 C6 [21:22:45]Write i2c OK [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: 01 [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: 01 07 00 [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 FB 0C D4 [21:22:45]RasterBufferAndPrint [21:22:45]line [21:22:45]line [21:22:45]line [21:22:45]line [21:22:45]line [21:22:45]written 0, free lines is 3329 [21:22:45]MH_Cut [21:22:45]Write to MH i2c: D1 01 00 CC 01 01 9F [21:22:45]Write i2c OK [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: D1 [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: D1 01 00 [21:22:45]MH_I2C_Read... [21:22:45]Read from MH i2c: D1 01 00 CC 01 00 9E [21:22:45]Write to MH i2c: 01 00 00 CD 01 CE [21:22:45]Write i2c OK [21:22:45]MH_I2C_Read... [21:22:46]OFD Sender: No OFD packet to send [21:22:46]*** Cut start [21:22:46]*** Partial cut [21:22:46]*** CUTSNS_PIN = 1 [21:22:46]*** CUTSNS_PIN = 0 [21:22:46]*** Brake cut motor [21:22:46]Read from MH i2c: 01 [21:22:46]MH_I2C_Read... [21:22:46]*** Stop cut motor [21:22:46]*** Cut end [21:22:46]Read from MH i2c: 01 07 00 [21:22:46]MH_I2C_Read... [21:22:47]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 FF 0F E3 [21:22:47]process_action close_receipt done [21:22:47]requested_data is exist [21:22:47]produce_requested_data [21:22:47]requested_item fm.sn is exist - process it [21:22:47]wFMCommunicate request_size=4 [21:22:47]MH_SAM_APDU [21:22:47]CAPDU: 80 11 00 00 [21:22:47]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:47]Read from MH i2c: E2 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 17 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 17 00 CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [21:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:22:47]wFMCommunicate OK [21:22:47]requested_item fd.num is exist - process it [21:22:47]SAM_PROTO_GetFieldsCounters [21:22:47]wFMCommunicate request_size=4 [21:22:47]MH_SAM_APDU [21:22:47]CAPDU: 80 13 00 00 [21:22:47]Write to MH i2c: E2 08 00 CF 01 80 13 00 00 00 00 00 00 4C [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:47]Read from MH i2c: E2 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 62 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 62 00 CF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 74 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [21:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 74 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:47]wFMCommunicate OK [21:22:47]SAM_PROTO_GetFieldsCounters done [21:22:47]requested_item shift.num is exist - process it [21:22:47]requested_item shift.opened is exist - process it [21:22:47]req_shift_opened [21:22:47]FM_GetShiftState [21:22:47]SAM_PROTO_GetShiftState [21:22:47]wFMCommunicate request_size=4 [21:22:47]MH_SAM_APDU [21:22:47]CAPDU: 80 13 01 00 [21:22:47]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:47]Read from MH i2c: E2 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 0E 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9D [21:22:47]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:22:47]wFMCommunicate OK [21:22:47]SAM_PROTO_GetShiftState done [21:22:47]FM_GetShiftState done [21:22:47]req_shift_opened done [21:22:47]requested_item shift.open_date is exist - process it [21:22:47]req_shift_open_date [21:22:47]req_shift_open_date done [21:22:47]produce_requested_data done [21:22:47]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104052,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:22:47]process_action_free close_receipt [21:22:47]json_value_free [21:22:47]json_value_free done [21:22:47]process_json_proto returns [21:22:47]Send response to host [21:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104052,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:22:47]free response buf [21:22:47]execute_script done [21:22:47]execute_script returns [21:22:47]free content buf [21:22:47]Sock 7.Close socket [21:22:47]Sock 7.Thread stoped [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:32]accept exits with 9 [21:25:32]New connection [21:25:32]New thread 3066858852 created [21:25:32]Thread 3066715492 joined [21:25:32]Waiting for new connection... [21:25:32] Sock 9.Parse request [21:25:32]Sock 9.Check first char [21:25:32]Sock 9.First char is OK [21:25:32]request: POST /json_proto HTTP/1.0 [21:25:32]Method: POST [21:25:32]URL: /json_proto [21:25:32]Method is POST - this is cgi request [21:25:32]url: /json_proto [21:25:32]query_string will be loaded in cgi processing [21:25:32]execute_cgi json_proto POST (null) [21:25:32]execute_cgi path=json_proto method=POST [21:25:32]POST find Content-Length [21:25:32]Host: 172.17.38.133:8080 [21:25:32]Content-Length: 642 [21:25:32]Content-Type: application/json [21:25:32] [21:25:32]POST finish read [21:25:32]Found Content-Length = 642 [21:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:32]execute_script... [21:25: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)673434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:32]POST & json_proto [21:25:32]process_json_proto [21:25:32]json parsed OK: [21:25:32]protocol is kg_v1.0 [21:25:32]action value=close_receipt [21:25:32]process_action close_receipt [21:25:32]cmd_close_receipt [21:25:32]MH_GetDate [21:25:32]Write to MH i2c: F0 00 00 D1 01 C1 [21:25:32]Write i2c OK [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: F0 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: F0 09 00 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: F0 09 00 D1 01 00 4D 9E 74 66 BD 8F 7C 64 BB [21:25:32]GetLastDocTimeStamp 1718918564 [21:25:32]current date 1718918733 [21:25:32]FM_GetShiftState [21:25:32]SAM_PROTO_GetShiftState [21:25:32]wFMCommunicate request_size=4 [21:25:32]MH_SAM_APDU [21:25:32]CAPDU: 80 13 01 00 [21:25:32]Write to MH i2c: E2 08 00 D2 01 80 13 01 00 00 00 00 00 50 [21:25:32]Write i2c OK [21:25:32]MH_I2C_Read... [21:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:32]Read from MH i2c: E2 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 0E 00 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 0E 00 D2 01 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9F [21:25:32]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:25:32]wFMCommunicate OK [21:25:32]SAM_PROTO_GetShiftState done [21:25:32]FM_GetShiftState done [21:25:32]opened in 1718843124 [21:25:32]opened+sec_in_day 1718929524 [21:25:32]quantity*price = 132800 [21:25:32]sum+1 = 132801 [21:25:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 1328.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 238 20.06.2024 21:25 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104053 ФПД: 149980365629287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212533&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104053&fm=149980365629287&tin=02508201610067®Number=0000000000092785&sum=132800 [21:25:33]StoreToDocumentArchive [21:25:33]shift 354 fd 104053 [21:25:33]save to /storage/0354/doc_00104053 [21:25:33]save last doc name /storage/0354/doc_00104053 to /storage/kkm_last_doc_name [21:25:33]save OK [21:25:33]Clear old archive folders... [21:25:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:33]tlvbuf is 010F33A0 [21:25:33]SAM_PROTO_ClearQueue [21:25:33]wFMCommunicate request_size=4 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 09 00 00 [21:25:33]Write to MH i2c: E2 08 00 DF 01 80 09 00 00 00 00 00 00 52 [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [21:25:33]RAPDU: 90 00 [21:25:33]wFMCommunicate OK [21:25:33]SAM_PROTO_ClearQueue done [21:25:33]KKMCreateOFDPacket [21:25:33]OFDProtocolAddRootSTLVToBuf [21:25:33]FM_MakeSignedData [21:25:33]FM_MakeSignedData [21:25:33]SAM_PROTO_SignData [21:25:33]wFMCommunicate request_size=4 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 0D 01 02 [21:25:33]Write to MH i2c: E2 08 00 E0 01 80 0D 01 02 00 00 00 00 5A [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [21:25:33]RAPDU: 90 00 [21:25:33]wFMCommunicate OK [21:25:33]wFMCommunicate request_size=255 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 4D 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 96 01 00 35 04 06 00 88 [21:25:33]Write to MH i2c: E2 02 01 E1 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 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 4D 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 96 01 00 35 04 06 00 88 00 00 CC [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:34]Read from MH i2c: E2 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 03 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [21:25:34]RAPDU: 90 00 [21:25:34]wFMCommunicate OK [21:25:34]wFMCommunicate request_size=10 [21:25:34]MH_SAM_APDU [21:25:34]CAPDU: 80 0D 02 02 05 68 06 6A A7 67 [21:25:34]Write to MH i2c: E2 0D 00 E2 01 80 0D 02 02 05 00 68 06 6A A7 67 00 00 4D [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:34]Read from MH i2c: E2 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 03 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [21:25:34]RAPDU: 90 00 [21:25:34]wFMCommunicate OK [21:25:34]wFMCommunicate request_size=4 [21:25:34]MH_SAM_APDU [21:25:34]CAPDU: 80 0D 03 02 [21:25:34]Write to MH i2c: E2 08 00 E3 01 80 0D 03 02 00 00 00 00 5F [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:34]Read from MH i2c: E2 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 0B 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 0B 00 E3 01 00 4E 57 5B AC EA BB D0 C4 90 00 45 [21:25:34]RAPDU: 4E 57 5B AC EA BB D0 C4 90 00 [21:25:34]wFMCommunicate OK [21:25:34]SAM_PROTO_SignData done [21:25:34]FM_MakeSignedData done [21:25:34]CreateOFDProtocolMessage [21:25:34]wFMCommunicate request_size=4 [21:25:34]MH_SAM_APDU [21:25:34]CAPDU: 80 11 00 00 [21:25:34]Write to MH i2c: E2 08 00 E4 01 80 11 00 00 00 00 00 00 5F [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:34]Read from MH i2c: E2 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 17 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: E2 17 00 E4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B2 [21:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:25:34]wFMCommunicate OK [21:25:34]CreateOFDProtocolMessage done [21:25:34]OFDSenderStorePacket 104053 [21:25:34]StoreOFDPacket docnum=104053 [21:25:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E3 61 07 01 2C 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 4D 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 96 01 00 35 04 06 00 88 68 06 6A A7 67 4E 57 5B AC EA BB D0 C4 [21:25:34]CheckFolder [21:25:34]dirname=/storage/ofd_packets [21:25:34]CheckFolder done [21:25:34]ProducePacketName [21:25:34]name=ofd_packets/00104053 [21:25:34]NVStorageSaveData ofd_packets/00104053 [21:25:34]File name is /storage/ofd_packets/00104053 [21:25:34]Write 301 bytes [21:25:34]NVStorageSaveData done [21:25:34]OFDSenderStorePacket done [21:25:34]KKMCreateOFDPacket done [21:25:34]NVStorageSaveData kkm_last_timestamp [21:25:34]File name is /storage/kkm_last_timestamp [21:25:34]Write 4 bytes [21:25:34]NVStorageSaveData done [21:25:34]ExternCall_PrintAddStr [21:25:34]wPrintStart [21:25:34]Write to MH i2c: 01 00 00 E5 01 E6 [21:25:34]Write i2c OK [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: 01 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: 01 07 00 [21:25:34]MH_I2C_Read... [21:25:34]Read from MH i2c: 01 07 00 E5 01 00 00 00 00 00 FF 0F FB [21:25:34]RasterBufferAndPrint [21:25:34]line Счет N : (1)673434 [21:25:34]line ИНН: 02508201610067 [21:25:34]line Контрольно-Кассовый Чек [21:25:34]line ПРОДАЖА [21:25:34]line ТРК (МРК, ГНК) : 32 [21:25:34]line Товар: 2710124130 [21:25:34]line Аи-92-К-5 [21:25:34]line 20.000 * 66.40 [21:25:34]line = 1328.00 [21:25:34]line НДС 12% НСП 1% [21:25:34]line > о реализуемом товаре [21:25:34]line ИТОГО: 1328.00 [21:25:34]line НСП 1% : 11.75 [21:25:34]line НДС 12% : 141.03 [21:25:34]line Наличными: 1328.00 [21:25:34]line Безнал.: 0.00 [21:25:34]line Место: АЗС № 120 "Партнер Нефть" [21:25:34]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:25:34]line СНО: Общий режим [21:25:34]line Чек 238 20.06.2024 21:25 [21:25:34]line Смена: 354 ФФД: 1.0 [21:25:34]line ЗНМ: 0300000164 [21:25:34]line РНМ: 0000000000092785 [21:25:34]line Версия ККМ: 001 [21:25:34]line ФМ: 0000000000875093 [21:25:34]line ФД: 104053 [21:25:34]line ФПД: 149980365629287 [21:25:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212533&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104053&fm=149980365629287&tin=02508201610067®Number=0000000000092785&sum=132800 [21:25:34]OFD Sender: Processing packet 104053 [packets to send 17, broken 16] [21:25:34]ProducePacketName [21:25:34]name=ofd_packets/00104053 [21:25:34]OFD Sender: To server: pG, [21:25:34]CommunicateWithHost lk.salyk.kg:30040 [21:25:34]ConnectInit lk.salyk.kg [21:25:34]written 0, free lines is 4095 [21:25:34]Connected sock=10 [21:25:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 E3 61 07 01 2C 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 C0 06 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 4D 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 96 01 00 35 04 06 00 88 68 06 6A A7 67 4E 57 5B AC EA BB D0 C4 [21:25:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 36 C9 47 00 18 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 75 96 01 00 F4 03 04 00 D2 44 74 66 B6 04 01 00 00 07 2B 83 29 F1 A5 FA 14 [21:25:34]CommunicateWithHost err = 0 [21:25:34]CheckOFDResponse [21:25:34]1017 (14) - 77093643461234 [21:25:34]1041 (16) - 0000000000875093 [21:25:34]1040 (4) - 104053 [21:25:34]1012 (4) - 20.06.2024 15:03 [21:25:34]1206 (1) - 0 [21:25:34]OFD Sender: Remove packet 104053 [21:25:34]ProducePacketName [21:25:34]name=ofd_packets/00104053 [21:25:34]NVStorageDeleteData [21:25:35]Write to MH i2c: 01 00 00 0D 02 0F [21:25:35]Write i2c OK [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: 01 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: 01 07 00 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 0F 0D 32 [21:25:35]RasterBufferAndPrint [21:25:35]line [21:25:35]line [21:25:35]line [21:25:35]line [21:25:35]line [21:25:35]written 0, free lines is 3350 [21:25:35]MH_Cut [21:25:35]Write to MH i2c: D1 01 00 14 02 01 E8 [21:25:35]Write i2c OK [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: D1 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: D1 01 00 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: D1 01 00 14 02 00 E7 [21:25:35]Write to MH i2c: 01 00 00 15 02 17 [21:25:35]Write i2c OK [21:25:35]MH_I2C_Read... [21:25:35]OFD Sender: No OFD packet to send [21:25:35]*** Cut start [21:25:35]*** Partial cut [21:25:35]*** CUTSNS_PIN = 1 [21:25:35]*** CUTSNS_PIN = 0 [21:25:36]*** Brake cut motor [21:25:36]Read from MH i2c: 01 [21:25:36]MH_I2C_Read... [21:25:36]*** Stop cut motor [21:25:36]*** Cut end [21:25:36]Read from MH i2c: 01 07 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: 01 07 00 15 02 00 00 00 00 00 FF 0F 2C [21:25:36]process_action close_receipt done [21:25:36]requested_data is exist [21:25:36]produce_requested_data [21:25:36]requested_item fm.sn is exist - process it [21:25:36]wFMCommunicate request_size=4 [21:25:36]MH_SAM_APDU [21:25:36]CAPDU: 80 11 00 00 [21:25:36]Write to MH i2c: E2 08 00 16 02 80 11 00 00 00 00 00 00 92 [21:25:36]Write i2c OK [21:25:36]MH_I2C_Read... [21:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:36]Read from MH i2c: E2 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 17 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 17 00 16 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [21:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:25:36]wFMCommunicate OK [21:25:36]requested_item fd.num is exist - process it [21:25:36]SAM_PROTO_GetFieldsCounters [21:25:36]wFMCommunicate request_size=4 [21:25:36]MH_SAM_APDU [21:25:36]CAPDU: 80 13 00 00 [21:25:36]Write to MH i2c: E2 08 00 17 02 80 13 00 00 00 00 00 00 95 [21:25:36]Write i2c OK [21:25:36]MH_I2C_Read... [21:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:36]Read from MH i2c: E2 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 62 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 62 00 17 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 75 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [21:25:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 75 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:36]wFMCommunicate OK [21:25:36]SAM_PROTO_GetFieldsCounters done [21:25:36]requested_item shift.num is exist - process it [21:25:36]requested_item shift.opened is exist - process it [21:25:36]req_shift_opened [21:25:36]FM_GetShiftState [21:25:36]SAM_PROTO_GetShiftState [21:25:36]wFMCommunicate request_size=4 [21:25:36]MH_SAM_APDU [21:25:36]CAPDU: 80 13 01 00 [21:25:36]Write to MH i2c: E2 08 00 18 02 80 13 01 00 00 00 00 00 97 [21:25:36]Write i2c OK [21:25:36]MH_I2C_Read... [21:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:36]Read from MH i2c: E2 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 0E 00 [21:25:36]MH_I2C_Read... [21:25:36]Read from MH i2c: E2 0E 00 18 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E6 [21:25:36]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:25:36]wFMCommunicate OK [21:25:36]SAM_PROTO_GetShiftState done [21:25:36]FM_GetShiftState done [21:25:36]req_shift_opened done [21:25:36]requested_item shift.open_date is exist - process it [21:25:36]req_shift_open_date [21:25:36]req_shift_open_date done [21:25:36]produce_requested_data done [21:25:36]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104053,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:25:36]process_action_free close_receipt [21:25:36]json_value_free [21:25:36]json_value_free done [21:25:36]process_json_proto returns [21:25:36]Send response to host [21:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104053,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:25:36]free response buf [21:25:36]execute_script done [21:25:36]execute_script returns [21:25:36]free content buf [21:25:36]Sock 9.Close socket [21:25:36]Sock 9.Thread stoped [21:25:37]accept exits with 7 [21:25:37]New connection [21:25:37]New thread 3066715492 created [21:25:37]Thread 3066858852 joined [21:25:37]Waiting for new connection... [21:25:37] Sock 7.Parse request [21:25:37]Sock 7.Check first char [21:25:37]Sock 7.First char is OK [21:25:37]request: POST /json_proto HTTP/1.0 [21:25:37]Method: POST [21:25:37]URL: /json_proto [21:25:37]Method is POST - this is cgi request [21:25:37]url: /json_proto [21:25:37]query_string will be loaded in cgi processing [21:25:37]execute_cgi json_proto POST (null) [21:25:37]execute_cgi path=json_proto method=POST [21:25:37]POST find Content-Length [21:25:37]Host: 172.17.38.133:8080 [21:25:37]Content-Length: 677 [21:25:37]Content-Type: application/json [21:25:37] [21:25:37]POST finish read [21:25:37]Found Content-Length = 677 [21:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:37]execute_script... [21:25:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:37]POST & json_proto [21:25:37]process_json_proto [21:25:37]json parsed OK: [21:25:37]protocol is kg_v1.0 [21:25:37]action value=close_receipt [21:25:37]process_action close_receipt [21:25:37]cmd_close_receipt [21:25:37]MH_GetDate [21:25:37]Write to MH i2c: F0 00 00 19 02 0A [21:25:37]Write i2c OK [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: F0 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: F0 09 00 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: F0 09 00 19 02 00 51 9E 74 66 BD 8F 7C 64 08 [21:25:37]GetLastDocTimeStamp 1718918733 [21:25:37]current date 1718918737 [21:25:37]FM_GetShiftState [21:25:37]SAM_PROTO_GetShiftState [21:25:37]wFMCommunicate request_size=4 [21:25:37]MH_SAM_APDU [21:25:37]CAPDU: 80 13 01 00 [21:25:37]Write to MH i2c: E2 08 00 1A 02 80 13 01 00 00 00 00 00 99 [21:25:37]Write i2c OK [21:25:37]MH_I2C_Read... [21:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:37]Read from MH i2c: E2 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: E2 0E 00 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: E2 0E 00 1A 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 E8 [21:25:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:25:37]wFMCommunicate OK [21:25:37]SAM_PROTO_GetShiftState done [21:25:37]FM_GetShiftState done [21:25:37]opened in 1718843124 [21:25:37]opened+sec_in_day 1718929524 [21:25:37]quantity*price = 50065 [21:25:37]sum+1 = 50067 [21:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 239 20.06.2024 21:25 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104054 ФПД: 173005231213711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104054&fm=173005231213711&tin=02508201610067®Number=0000000000092785&sum=50000 [21:25:38]StoreToDocumentArchive [21:25:38]shift 354 fd 104054 [21:25:38]save to /storage/0354/doc_00104054 [21:25:38]save last doc name /storage/0354/doc_00104054 to /storage/kkm_last_doc_name [21:25:38]save OK [21:25:38]Clear old archive folders... [21:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:38]tlvbuf is 010F4B80 [21:25:38]SAM_PROTO_ClearQueue [21:25:38]wFMCommunicate request_size=4 [21:25:38]MH_SAM_APDU [21:25:38]CAPDU: 80 09 00 00 [21:25:38]Write to MH i2c: E2 08 00 27 02 80 09 00 00 00 00 00 00 9B [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:38]Read from MH i2c: E2 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [21:25:38]RAPDU: 90 00 [21:25:38]wFMCommunicate OK [21:25:38]SAM_PROTO_ClearQueue done [21:25:38]KKMCreateOFDPacket [21:25:38]OFDProtocolAddRootSTLVToBuf [21:25:38]FM_MakeSignedData [21:25:38]FM_MakeSignedData [21:25:38]SAM_PROTO_SignData [21:25:38]wFMCommunicate request_size=4 [21:25:38]MH_SAM_APDU [21:25:38]CAPDU: 80 0D 01 02 [21:25:38]Write to MH i2c: E2 08 00 28 02 80 0D 01 02 00 00 00 00 A3 [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:38]Read from MH i2c: E2 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 28 02 00 90 00 9E [21:25:38]RAPDU: 90 00 [21:25:38]wFMCommunicate OK [21:25:38]wFMCommunicate request_size=255 [21:25:38]MH_SAM_APDU [21:25:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 52 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 96 01 00 35 04 06 00 9D [21:25:38]Write to MH i2c: E2 02 01 29 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 52 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 96 01 00 35 04 06 00 9D 00 00 23 [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:38]Read from MH i2c: E2 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 29 02 00 90 00 9F [21:25:38]RAPDU: 90 00 [21:25:38]wFMCommunicate OK [21:25:38]wFMCommunicate request_size=10 [21:25:38]MH_SAM_APDU [21:25:38]CAPDU: 80 0D 02 02 05 58 EB 59 CC 8F [21:25:38]Write to MH i2c: E2 0D 00 2A 02 80 0D 02 02 05 00 58 EB 59 CC 8F 00 00 A7 [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:38]Read from MH i2c: E2 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 2A 02 00 90 00 A0 [21:25:38]RAPDU: 90 00 [21:25:38]wFMCommunicate OK [21:25:38]wFMCommunicate request_size=4 [21:25:38]MH_SAM_APDU [21:25:38]CAPDU: 80 0D 03 02 [21:25:38]Write to MH i2c: E2 08 00 2B 02 80 0D 03 02 00 00 00 00 A8 [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:39]Read from MH i2c: E2 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 0B 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 0B 00 2B 02 00 D1 20 15 7E 1B 69 43 E5 90 00 D9 [21:25:39]RAPDU: D1 20 15 7E 1B 69 43 E5 90 00 [21:25:39]wFMCommunicate OK [21:25:39]SAM_PROTO_SignData done [21:25:39]FM_MakeSignedData done [21:25:39]CreateOFDProtocolMessage [21:25:39]wFMCommunicate request_size=4 [21:25:39]MH_SAM_APDU [21:25:39]CAPDU: 80 11 00 00 [21:25:39]Write to MH i2c: E2 08 00 2C 02 80 11 00 00 00 00 00 00 A8 [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:39]Read from MH i2c: E2 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 17 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 17 00 2C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 FB [21:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:25:39]wFMCommunicate OK [21:25:39]CreateOFDProtocolMessage done [21:25:39]OFDSenderStorePacket 104054 [21:25:39]StoreOFDPacket docnum=104054 [21:25:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 43 89 07 01 3F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 52 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 96 01 00 35 04 06 00 9D 58 EB 59 CC 8F D1 20 15 7E 1B 69 43 E5 [21:25:39]CheckFolder [21:25:39]dirname=/storage/ofd_packets [21:25:39]CheckFolder done [21:25:39]ProducePacketName [21:25:39]name=ofd_packets/00104054 [21:25:39]NVStorageSaveData ofd_packets/00104054 [21:25:39]File name is /storage/ofd_packets/00104054 [21:25:39]Write 301 bytes [21:25:39]NVStorageSaveData done [21:25:39]OFDSenderStorePacket done [21:25:39]KKMCreateOFDPacket done [21:25:39]NVStorageSaveData kkm_last_timestamp [21:25:39]File name is /storage/kkm_last_timestamp [21:25:39]Write 4 bytes [21:25:39]NVStorageSaveData done [21:25:39]ExternCall_PrintAddStr [21:25:39]wPrintStart [21:25:39]Write to MH i2c: 01 00 00 2D 02 2F [21:25:39]OFD Sender: Processing packet 104054 [packets to send 17, broken 16] [21:25:39]ProducePacketName [21:25:39]name=ofd_packets/00104054 [21:25:39]OFD Sender: To server: pG, [21:25:39]CommunicateWithHost lk.salyk.kg:30040 [21:25:39]ConnectInit lk.salyk.kg [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 07 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 07 00 2D 02 00 00 00 00 00 FF 0F 44 [21:25:39]RasterBufferAndPrint [21:25:39]line Счет N : (1)673435 [21:25:39]line ИНН: 02508201610067 [21:25:39]line Контрольно-Кассовый Чек [21:25:39]line ПРОДАЖА [21:25:39]line ТРК (МРК, ГНК) : 42 [21:25:39]line Товар: 2710124130 [21:25:39]line Аи-92-К-5 [21:25:39]line 7.540 * 66.40 [21:25:39]line = 500.66 [21:25:39]line НДС 12% НСП 1% [21:25:39]line > о реализуемом товаре [21:25:39]line ОКРУГЛЕНИЕ: -0.66 [21:25:39]line ИТОГО: 500.00 [21:25:39]line Внесено: 500.00 [21:25:39]line СДАЧА: 0.00 [21:25:39]line НСП 1% : 4.43 [21:25:39]line НДС 12% : 53.17 [21:25:39]line Наличными: 500.00 [21:25:39]line Безнал.: 0.00 [21:25:39]line Место: АЗС № 120 "Партнер Нефть" [21:25:39]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:25:39]line СНО: Общий режим [21:25:39]line Чек 239 20.06.2024 21:25 [21:25:39]line Смена: 354 ФФД: 1.0 [21:25:39]line ЗНМ: 0300000164 [21:25:39]line РНМ: 0000000000092785 [21:25:39]line Версия ККМ: 001 [21:25:39]line ФМ: 0000000000875093 [21:25:39]line ФД: 104054 [21:25:39]line ФПД: 173005231213711 [21:25:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212538&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104054&fm=173005231213711&tin=02508201610067®Number=0000000000092785&sum=50000 [21:25:39]written 0, free lines is 4095 [21:25:39]Connected sock=10 [21:25:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 43 89 07 01 3F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 52 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 76 96 01 00 35 04 06 00 9D 58 EB 59 CC 8F D1 20 15 7E 1B 69 43 E5 [21:25:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CE 54 47 00 4C 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 35 30 39 33 10 04 04 00 76 96 01 00 F4 03 04 00 D6 44 74 66 B6 04 01 00 00 B4 43 84 8C 30 50 14 BC [21:25:39]CommunicateWithHost err = 0 [21:25:39]CheckOFDResponse [21:25:39]1017 (14) - 77093643461234 [21:25:39]1041 (16) - 0000000000875093 [21:25:39]1040 (4) - 104054 [21:25:39]1012 (4) - 20.06.2024 15:03 [21:25:39]1206 (1) - 0 [21:25:39]OFD Sender: Remove packet 104054 [21:25:39]ProducePacketName [21:25:39]name=ofd_packets/00104054 [21:25:39]NVStorageDeleteData [21:25:39]Write to MH i2c: 01 00 00 58 02 5A [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 07 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 07 00 58 02 00 00 00 00 00 F8 0C 65 [21:25:39]RasterBufferAndPrint [21:25:39]line [21:25:39]line [21:25:39]line [21:25:39]line [21:25:39]line [21:25:39]written 0, free lines is 3332 [21:25:39]MH_Cut [21:25:39]Write to MH i2c: D1 01 00 5F 02 01 33 [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: D1 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: D1 01 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: D1 01 00 5F 02 00 32 [21:25:39]Write to MH i2c: 01 00 00 60 02 62 [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:40]OFD Sender: No OFD packet to send [21:25:40]*** Cut start [21:25:40]*** Partial cut [21:25:40]*** CUTSNS_PIN = 1 [21:25:40]*** CUTSNS_PIN = 0 [21:25:40]*** Brake cut motor [21:25:41]Read from MH i2c: 01 [21:25:41]MH_I2C_Read... [21:25:41]*** Stop cut motor [21:25:41]*** Cut end [21:25:41]Read from MH i2c: 01 07 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: 01 07 00 60 02 00 00 00 00 00 FF 0F 77 [21:25:41]process_action close_receipt done [21:25:41]requested_data is exist [21:25:41]produce_requested_data [21:25:41]requested_item fm.sn is exist - process it [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 11 00 00 [21:25:41]Write to MH i2c: E2 08 00 61 02 80 11 00 00 00 00 00 00 DD [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 17 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 17 00 61 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 30 [21:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:25:41]wFMCommunicate OK [21:25:41]requested_item fd.num is exist - process it [21:25:41]SAM_PROTO_GetFieldsCounters [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 13 00 00 [21:25:41]Write to MH i2c: E2 08 00 62 02 80 13 00 00 00 00 00 00 E0 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 62 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 62 00 62 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 76 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [21:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 76 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:41]wFMCommunicate OK [21:25:41]SAM_PROTO_GetFieldsCounters done [21:25:41]requested_item shift.num is exist - process it [21:25:41]requested_item shift.opened is exist - process it [21:25:41]req_shift_opened [21:25:41]FM_GetShiftState [21:25:41]SAM_PROTO_GetShiftState [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 13 01 00 [21:25:41]Write to MH i2c: E2 08 00 63 02 80 13 01 00 00 00 00 00 E2 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 0E 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 0E 00 63 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 31 [21:25:41]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:25:41]wFMCommunicate OK [21:25:41]SAM_PROTO_GetShiftState done [21:25:41]FM_GetShiftState done [21:25:41]req_shift_opened done [21:25:41]requested_item shift.open_date is exist - process it [21:25:41]req_shift_open_date [21:25:41]req_shift_open_date done [21:25:41]produce_requested_data done [21:25:41]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104054,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:25:41]process_action_free close_receipt [21:25:41]json_value_free [21:25:41]json_value_free done [21:25:41]process_json_proto returns [21:25:41]Send response to host [21:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104054,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:25:41]free response buf [21:25:41]execute_script done [21:25:41]execute_script returns [21:25:41]free content buf [21:25:41]Sock 7.Close socket [21:25:41]Sock 7.Thread stoped [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:10]int [21:26:10]Write to MH i2c: 01 00 00 64 02 66 [21:26:10]*** FLAG_PRN_PAP1 set [21:26:10]Write i2c OK [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: 01 [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: 01 07 00 [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: 01 07 00 64 02 00 01 00 00 00 FF 0F 7C [21:26:10]state=0 [21:26:10]No paper [21:26:10]int [21:26:10]Write to MH i2c: 01 00 00 65 02 67 [21:26:10]*** FLAG_PRN_PAP2 set [21:26:10]Write i2c OK [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: 01 [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: 01 07 00 [21:26:10]MH_I2C_Read... [21:26:10]Read from MH i2c: 01 07 00 65 02 00 03 00 00 00 FF 0F 7F [21:26:10]state=0 [21:26:10]No paper [21:26:10]Cover opened [21:26:12]int [21:26:12]Write to MH i2c: 01 00 00 66 02 68 [21:26:12]*** FLAG_PRN_PAP2 reset [21:26:12]Write i2c OK [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: 01 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: 01 07 00 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: 01 07 00 66 02 00 01 00 00 00 FF 0F 7E [21:26:12]state=3 [21:26:12]No paper [21:26:12]Cover closed [21:26:12]int [21:26:12]Write to MH i2c: 01 00 00 67 02 69 [21:26:12]*** FLAG_PRN_PAP2 set [21:26:12]Write i2c OK [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: 01 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: 01 07 00 [21:26:12]MH_I2C_Read... [21:26:12]Read from MH i2c: 01 07 00 67 02 00 03 00 00 00 FF 0F 81 [21:26:12]state=0 [21:26:12]No paper [21:26:12]Cover opened [21:26:15]OFD Sender: No OFD packet to send [21:26:15]int [21:26:15]Write to MH i2c: 01 00 00 68 02 6A [21:26:15]*** FLAG_PRN_PAP1 reset [21:26:15]*** FLAG_PRN_PAP2 reset [21:26:15]Write i2c OK [21:26:15]MH_I2C_Read... [21:26:15]Read from MH i2c: 01 [21:26:15]MH_I2C_Read... [21:26:15]Read from MH i2c: 01 07 00 [21:26:15]MH_I2C_Read... [21:26:15]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 FF 0F 7F [21:26:15]state=3 [21:26:15]Cover closed [21:26:16]int [21:26:16]Write to MH i2c: 01 00 00 69 02 6B [21:26:16]*** FLAG_PRN_KEY set [21:26:16]Write i2c OK [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: 01 [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: 01 07 00 [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: 01 07 00 69 02 00 08 00 00 00 FF 0F 88 [21:26:16]state=0 [21:26:16]Key pressed [21:26:16]Feed [21:26:16]Write to MH i2c: D8 00 00 6A 02 43 [21:26:16]Write i2c OK [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: D8 [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: D8 01 00 [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: D8 01 00 6A 02 00 44 [21:26:16]int [21:26:16]Write to MH i2c: 01 00 00 6B 02 6D [21:26:16]Write i2c OK [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: 01 [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: 01 07 00 [21:26:16]MH_I2C_Read... [21:26:16]Read from MH i2c: 01 07 00 6B 02 00 48 00 00 00 3C 00 F8 [21:26:16]state=2 [21:26:16]Key pressed [21:26:17]int [21:26:17]Write to MH i2c: 01 00 00 6C 02 6E [21:26:17]*** FLAG_PRN_KEY reset [21:26:17]Write i2c OK [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: 01 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: 01 07 00 [21:26:17]MH_I2C_Read... [21:26:17]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 F7 0F 7B [21:26:17]state=2 [21:26:17]Stop feed [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:26:58]accept exits with 9 [21:26:58]New connection [21:26:58]New thread 3066858852 created [21:26:58]Thread 3066715492 joined [21:26:58]Waiting for new connection... [21:26:58] Sock 9.Parse request [21:26:58]Sock 9.Check first char [21:26:58]Sock 9.First char is OK [21:26:58]request: POST /json_proto HTTP/1.0 [21:26:58]Method: POST [21:26:58]URL: /json_proto [21:26:58]Method is POST - this is cgi request [21:26:58]url: /json_proto [21:26:58]query_string will be loaded in cgi processing [21:26:58]execute_cgi json_proto POST (null) [21:26:58]execute_cgi path=json_proto method=POST [21:26:58]POST find Content-Length [21:26:58]Host: 172.17.38.133:8080 [21:26:58]Content-Length: 682 [21:26:58]Content-Type: application/json [21:26:58] [21:26:58]POST finish read [21:26:58]Found Content-Length = 682 [21:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:58]execute_script... [21:26: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)673436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:58]POST & json_proto [21:26:58]process_json_proto [21:26:58]json parsed OK: [21:26:58]protocol is kg_v1.0 [21:26:58]action value=close_receipt [21:26:58]process_action close_receipt [21:26:58]cmd_close_receipt [21:26:58]MH_GetDate [21:26:58]Write to MH i2c: F0 00 00 6D 02 5E [21:26:58]Write i2c OK [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: F0 [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: F0 09 00 [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: F0 09 00 6D 02 00 A3 9E 74 66 BD 8F 7C 64 AE [21:26:58]GetLastDocTimeStamp 1718918738 [21:26:58]current date 1718918819 [21:26:58]FM_GetShiftState [21:26:58]SAM_PROTO_GetShiftState [21:26:58]wFMCommunicate request_size=4 [21:26:58]MH_SAM_APDU [21:26:58]CAPDU: 80 13 01 00 [21:26:58]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [21:26:58]Write i2c OK [21:26:58]MH_I2C_Read... [21:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:58]Read from MH i2c: E2 [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: E2 0E 00 [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3C [21:26:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:26:58]wFMCommunicate OK [21:26:58]SAM_PROTO_GetShiftState done [21:26:58]FM_GetShiftState done [21:26:58]opened in 1718843124 [21:26:58]opened+sec_in_day 1718929524 [21:26:58]quantity*price = 50009 [21:26:58]sum+1 = 50010 [21:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 240 20.06.2024 21:26 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104055 ФПД: 276491718329278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104055&fm=276491718329278&tin=02508201610067®Number=0000000000092785&sum=50000 [21:27:00]StoreToDocumentArchive [21:27:00]shift 354 fd 104055 [21:27:00]save to /storage/0354/doc_00104055 [21:27:00]save last doc name /storage/0354/doc_00104055 to /storage/kkm_last_doc_name [21:27:00]save OK [21:27:00]Clear old archive folders... [21:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:27:00]tlvbuf is 01120980 [21:27:00]SAM_PROTO_ClearQueue [21:27:00]wFMCommunicate request_size=4 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 09 00 00 [21:27:00]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [21:27:00]RAPDU: 90 00 [21:27:00]wFMCommunicate OK [21:27:00]SAM_PROTO_ClearQueue done [21:27:00]KKMCreateOFDPacket [21:27:00]OFDProtocolAddRootSTLVToBuf [21:27:00]FM_MakeSignedData [21:27:00]FM_MakeSignedData [21:27:00]SAM_PROTO_SignData [21:27:00]wFMCommunicate request_size=4 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 0D 01 02 [21:27:00]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [21:27:00]RAPDU: 90 00 [21:27:00]wFMCommunicate OK [21:27:00]wFMCommunicate request_size=255 [21:27:00]MH_SAM_APDU [21:27: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 A3 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 96 01 00 35 04 06 00 [21:27:00]Write to MH i2c: E2 02 01 7D 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 A3 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 96 01 00 35 04 06 00 00 00 0B [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]OFD Sender: No OFD packet to send [21:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [21:27:00]RAPDU: 90 00 [21:27:00]wFMCommunicate OK [21:27:00]wFMCommunicate request_size=11 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 0D 02 02 06 FB 77 BE A7 83 BE [21:27:00]Write to MH i2c: E2 0E 00 7E 02 80 0D 02 02 06 00 FB 77 BE A7 83 BE 00 00 1E [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [21:27:00]RAPDU: 90 00 [21:27:00]wFMCommunicate OK [21:27:00]wFMCommunicate request_size=4 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 0D 03 02 [21:27:00]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 0B 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 0B 00 7F 02 00 17 48 CF 01 38 C6 93 3D 90 00 FA [21:27:00]RAPDU: 17 48 CF 01 38 C6 93 3D 90 00 [21:27:00]wFMCommunicate OK [21:27:00]SAM_PROTO_SignData done [21:27:00]FM_MakeSignedData done [21:27:00]CreateOFDProtocolMessage [21:27:00]wFMCommunicate request_size=4 [21:27:00]MH_SAM_APDU [21:27:00]CAPDU: 80 11 00 00 [21:27:00]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:00]Read from MH i2c: E2 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 17 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4F [21:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:27:00]wFMCommunicate OK [21:27:00]CreateOFDProtocolMessage done [21:27:00]OFDSenderStorePacket 104055 [21:27:00]StoreOFDPacket docnum=104055 [21:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 B3 0F 08 01 B4 FB 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 A3 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 96 01 00 35 04 06 00 FB 77 BE A7 83 BE 17 48 CF 01 38 C6 93 3D [21:27:00]CheckFolder [21:27:00]dirname=/storage/ofd_packets [21:27:00]CheckFolder done [21:27:00]ProducePacketName [21:27:00]name=ofd_packets/00104055 [21:27:00]NVStorageSaveData ofd_packets/00104055 [21:27:00]File name is /storage/ofd_packets/00104055 [21:27:00]Write 302 bytes [21:27:00]NVStorageSaveData done [21:27:00]OFDSenderStorePacket done [21:27:00]KKMCreateOFDPacket done [21:27:00]NVStorageSaveData kkm_last_timestamp [21:27:00]File name is /storage/kkm_last_timestamp [21:27:00]Write 4 bytes [21:27:00]NVStorageSaveData done [21:27:00]ExternCall_PrintAddStr [21:27:00]wPrintStart [21:27:00]Write to MH i2c: 01 00 00 81 02 83 [21:27:00]Write i2c OK [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: 01 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: 01 07 00 [21:27:00]MH_I2C_Read... [21:27:00]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [21:27:00]RasterBufferAndPrint [21:27:00]line Счет N : (1)673436 [21:27:00]line ИНН: 02508201610067 [21:27:00]line Контрольно-Кассовый Чек [21:27:00]line ПРОДАЖА [21:27:00]line ТРК (МРК, ГНК) : 11 [21:27:00]line Товар: 2710194210 [21:27:00]line ДТ(л)-К-5 [21:27:00]line 6.860 * 72.90 [21:27:00]line = 500.09 [21:27:00]line НДС 12% НСП 1% [21:27:00]line > о реализуемом товаре [21:27:00]line ОКРУГЛЕНИЕ: -0.09 [21:27:00]line ИТОГО: 500.00 [21:27:00]line Внесено: 500.00 [21:27:00]line СДАЧА: 0.00 [21:27:00]line НСП 1% : 4.43 [21:27:00]line НДС 12% : 53.11 [21:27:00]line Наличными: 500.00 [21:27:00]line Безнал.: 0.00 [21:27:00]line Место: АЗС № 120 "Партнер Нефть" [21:27:00]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:27:00]line СНО: Общий режим [21:27:00]line Чек 240 20.06.2024 21:26 [21:27:00]line Смена: 354 ФФД: 1.0 [21:27:00]line ЗНМ: 0300000164 [21:27:00]line РНМ: 0000000000092785 [21:27:00]line Версия ККМ: 001 [21:27:00]line ФМ: 0000000000875093 [21:27:00]line ФД: 104055 [21:27:00]line ФПД: 276491718329278 [21:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212659&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104055&fm=276491718329278&tin=02508201610067®Number=0000000000092785&sum=50000 [21:27:00]OFD Sender: Processing packet 104055 [packets to send 17, broken 16] [21:27:00]ProducePacketName [21:27:00]name=ofd_packets/00104055 [21:27:00]OFD Sender: To server: pG, [21:27:00]CommunicateWithHost lk.salyk.kg:30040 [21:27:00]ConnectInit lk.salyk.kg [21:27:00]written 0, free lines is 4095 [21:27:01]Connected sock=10 [21:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 B3 0F 08 01 B4 FB 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 A3 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 96 01 00 35 04 06 00 FB 77 BE A7 83 BE 17 48 CF 01 38 C6 93 3D [21:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 36 DE 47 00 87 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 77 96 01 00 F4 03 04 00 28 45 74 66 B6 04 01 00 00 C7 96 66 47 E4 73 E4 D8 [21:27:01]CommunicateWithHost err = 0 [21:27:01]CheckOFDResponse [21:27:01]1017 (14) - 77093643461234 [21:27:01]1041 (16) - 0000000000875093 [21:27:01]1040 (4) - 104055 [21:27:01]1012 (4) - 20.06.2024 15:05 [21:27:01]1206 (1) - 0 [21:27:01]OFD Sender: Remove packet 104055 [21:27:01]ProducePacketName [21:27:01]name=ofd_packets/00104055 [21:27:01]NVStorageDeleteData [21:27:01]Write to MH i2c: 01 00 00 AC 02 AE [21:27:01]Write i2c OK [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: 01 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: 01 07 00 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: 01 07 00 AC 02 00 00 00 00 00 EB 0C AC [21:27:01]RasterBufferAndPrint [21:27:01]line [21:27:01]line [21:27:01]line [21:27:01]line [21:27:01]line [21:27:01]written 0, free lines is 3313 [21:27:01]MH_Cut [21:27:01]Write to MH i2c: D1 01 00 B3 02 01 87 [21:27:01]Write i2c OK [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: D1 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: D1 01 00 [21:27:01]MH_I2C_Read... [21:27:01]Read from MH i2c: D1 01 00 B3 02 00 86 [21:27:01]Write to MH i2c: 01 00 00 B4 02 B6 [21:27:01]Write i2c OK [21:27:01]MH_I2C_Read... [21:27:01]OFD Sender: No OFD packet to send [21:27:02]*** Cut start [21:27:02]*** Partial cut [21:27:02]*** CUTSNS_PIN = 1 [21:27:02]*** CUTSNS_PIN = 0 [21:27:02]*** Brake cut motor [21:27:02]Read from MH i2c: 01 [21:27:02]MH_I2C_Read... [21:27:02]*** Stop cut motor [21:27:02]*** Cut end [21:27:02]Read from MH i2c: 01 07 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [21:27:02]process_action close_receipt done [21:27:02]requested_data is exist [21:27:02]produce_requested_data [21:27:02]requested_item fm.sn is exist - process it [21:27:02]wFMCommunicate request_size=4 [21:27:02]MH_SAM_APDU [21:27:02]CAPDU: 80 11 00 00 [21:27:02]Write to MH i2c: E2 08 00 B5 02 80 11 00 00 00 00 00 00 31 [21:27:02]Write i2c OK [21:27:02]MH_I2C_Read... [21:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:02]Read from MH i2c: E2 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 17 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 17 00 B5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [21:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:27:02]wFMCommunicate OK [21:27:02]requested_item fd.num is exist - process it [21:27:02]SAM_PROTO_GetFieldsCounters [21:27:02]wFMCommunicate request_size=4 [21:27:02]MH_SAM_APDU [21:27:02]CAPDU: 80 13 00 00 [21:27:02]Write to MH i2c: E2 08 00 B6 02 80 13 00 00 00 00 00 00 34 [21:27:02]Write i2c OK [21:27:02]MH_I2C_Read... [21:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:02]Read from MH i2c: E2 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 62 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 62 00 B6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 77 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [21:27:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 77 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:02]wFMCommunicate OK [21:27:02]SAM_PROTO_GetFieldsCounters done [21:27:02]requested_item shift.num is exist - process it [21:27:02]requested_item shift.opened is exist - process it [21:27:02]req_shift_opened [21:27:02]FM_GetShiftState [21:27:02]SAM_PROTO_GetShiftState [21:27:02]wFMCommunicate request_size=4 [21:27:02]MH_SAM_APDU [21:27:02]CAPDU: 80 13 01 00 [21:27:02]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [21:27:02]Write i2c OK [21:27:02]MH_I2C_Read... [21:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:02]Read from MH i2c: E2 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 0E 00 [21:27:02]MH_I2C_Read... [21:27:02]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 85 [21:27:02]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:27:02]wFMCommunicate OK [21:27:02]SAM_PROTO_GetShiftState done [21:27:02]FM_GetShiftState done [21:27:02]req_shift_opened done [21:27:02]requested_item shift.open_date is exist - process it [21:27:02]req_shift_open_date [21:27:02]req_shift_open_date done [21:27:02]produce_requested_data done [21:27:02]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104055,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:27:02]process_action_free close_receipt [21:27:02]json_value_free [21:27:02]json_value_free done [21:27:02]process_json_proto returns [21:27:02]Send response to host [21:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104055,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:27:02]free response buf [21:27:02]execute_script done [21:27:02]execute_script returns [21:27:02]free content buf [21:27:02]Sock 9.Close socket [21:27:02]Sock 9.Thread stoped [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:27:59]accept exits with 7 [21:27:59]New connection [21:27:59]New thread 3066715492 created [21:27:59]Thread 3066858852 joined [21:27:59]Waiting for new connection... [21:27:59] Sock 7.Parse request [21:27:59]Sock 7.Check first char [21:27:59]Sock 7.First char is OK [21:27:59]request: POST /json_proto HTTP/1.0 [21:27:59]Method: POST [21:27:59]URL: /json_proto [21:27:59]Method is POST - this is cgi request [21:27:59]url: /json_proto [21:27:59]query_string will be loaded in cgi processing [21:27:59]execute_cgi json_proto POST (null) [21:27:59]execute_cgi path=json_proto method=POST [21:27:59]POST find Content-Length [21:27:59]Host: 172.17.38.133:8080 [21:27:59]Content-Length: 677 [21:27:59]Content-Type: application/json [21:27:59] [21:27:59]POST finish read [21:27:59]Found Content-Length = 677 [21:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:59]execute_script... [21:27: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)673437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:59]POST & json_proto [21:27:59]process_json_proto [21:27:59]json parsed OK: [21:27:59]protocol is kg_v1.0 [21:27:59]action value=close_receipt [21:27:59]process_action close_receipt [21:27:59]cmd_close_receipt [21:27:59]MH_GetDate [21:27:59]Write to MH i2c: F0 00 00 B8 02 A9 [21:27:59]Write i2c OK [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: F0 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: F0 09 00 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: F0 09 00 B8 02 00 E0 9E 74 66 BD 8F 7C 64 36 [21:27:59]GetLastDocTimeStamp 1718918819 [21:27:59]current date 1718918880 [21:27:59]FM_GetShiftState [21:27:59]SAM_PROTO_GetShiftState [21:27:59]wFMCommunicate request_size=4 [21:27:59]MH_SAM_APDU [21:27:59]CAPDU: 80 13 01 00 [21:27:59]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [21:27:59]Write i2c OK [21:27:59]MH_I2C_Read... [21:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:59]Read from MH i2c: E2 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: E2 0E 00 [21:27:59]MH_I2C_Read... [21:27:59]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 87 [21:27:59]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:27:59]wFMCommunicate OK [21:27:59]SAM_PROTO_GetShiftState done [21:27:59]FM_GetShiftState done [21:27:59]opened in 1718843124 [21:27:59]opened+sec_in_day 1718929524 [21:27:59]quantity*price = 50065 [21:27:59]sum+1 = 50067 [21:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 241 20.06.2024 21:28 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104056 ФПД: 135854461454337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212800&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104056&fm=135854461454337&tin=02508201610067®Number=0000000000092785&sum=50000 [21:28:00]StoreToDocumentArchive [21:28:00]shift 354 fd 104056 [21:28:00]save to /storage/0354/doc_00104056 [21:28:00]save last doc name /storage/0354/doc_00104056 to /storage/kkm_last_doc_name [21:28:00]save OK [21:28:00]Clear old archive folders... [21:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:28:00]tlvbuf is 01125510 [21:28:00]SAM_PROTO_ClearQueue [21:28:00]wFMCommunicate request_size=4 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 09 00 00 [21:28:00]Write to MH i2c: E2 08 00 C6 02 80 09 00 00 00 00 00 00 3A [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 [21:28:00]MH_I2C_Read... [21:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:00]Read from MH i2c: E2 03 00 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [21:28:00]RAPDU: 90 00 [21:28:00]wFMCommunicate OK [21:28:00]SAM_PROTO_ClearQueue done [21:28:00]KKMCreateOFDPacket [21:28:00]OFDProtocolAddRootSTLVToBuf [21:28:00]FM_MakeSignedData [21:28:00]FM_MakeSignedData [21:28:00]SAM_PROTO_SignData [21:28:00]wFMCommunicate request_size=4 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 0D 01 02 [21:28:00]Write to MH i2c: E2 08 00 C7 02 80 0D 01 02 00 00 00 00 42 [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:00]Read from MH i2c: E2 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 03 00 [21:28:00]MH_I2C_Read... [21:28:00]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [21:28:00]RAPDU: 90 00 [21:28:00]wFMCommunicate OK [21:28:00]wFMCommunicate request_size=255 [21:28:00]MH_SAM_APDU [21:28:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E0 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 96 01 00 35 04 06 00 7B [21:28:00]Write to MH i2c: E2 02 01 C8 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E0 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 96 01 00 35 04 06 00 7B 00 00 32 [21:28:00]Write i2c OK [21:28:00]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 03 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [21:28:01]RAPDU: 90 00 [21:28:01]wFMCommunicate OK [21:28:01]wFMCommunicate request_size=10 [21:28:01]MH_SAM_APDU [21:28:01]CAPDU: 80 0D 02 02 05 8F 14 EA 88 01 [21:28:01]Write to MH i2c: E2 0D 00 C9 02 80 0D 02 02 05 00 8F 14 EA 88 01 00 00 65 [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 03 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [21:28:01]RAPDU: 90 00 [21:28:01]wFMCommunicate OK [21:28:01]wFMCommunicate request_size=4 [21:28:01]MH_SAM_APDU [21:28:01]CAPDU: 80 0D 03 02 [21:28:01]Write to MH i2c: E2 08 00 CA 02 80 0D 03 02 00 00 00 00 47 [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 0B 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 0B 00 CA 02 00 96 27 DD 9D D8 DA 11 13 90 00 55 [21:28:01]RAPDU: 96 27 DD 9D D8 DA 11 13 90 00 [21:28:01]wFMCommunicate OK [21:28:01]SAM_PROTO_SignData done [21:28:01]FM_MakeSignedData done [21:28:01]CreateOFDProtocolMessage [21:28:01]wFMCommunicate request_size=4 [21:28:01]MH_SAM_APDU [21:28:01]CAPDU: 80 11 00 00 [21:28:01]Write to MH i2c: E2 08 00 CB 02 80 11 00 00 00 00 00 00 47 [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:01]Read from MH i2c: E2 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 17 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: E2 17 00 CB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [21:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:28:01]wFMCommunicate OK [21:28:01]CreateOFDProtocolMessage done [21:28:01]OFDSenderStorePacket 104056 [21:28:01]StoreOFDPacket docnum=104056 [21:28:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 78 35 07 01 B2 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E0 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 96 01 00 35 04 06 00 7B 8F 14 EA 88 01 96 27 DD 9D D8 DA 11 13 [21:28:01]CheckFolder [21:28:01]dirname=/storage/ofd_packets [21:28:01]CheckFolder done [21:28:01]ProducePacketName [21:28:01]name=ofd_packets/00104056 [21:28:01]NVStorageSaveData ofd_packets/00104056 [21:28:01]File name is /storage/ofd_packets/00104056 [21:28:01]Write 301 bytes [21:28:01]NVStorageSaveData done [21:28:01]OFDSenderStorePacket done [21:28:01]KKMCreateOFDPacket done [21:28:01]NVStorageSaveData kkm_last_timestamp [21:28:01]File name is /storage/kkm_last_timestamp [21:28:01]Write 4 bytes [21:28:01]NVStorageSaveData done [21:28:01]ExternCall_PrintAddStr [21:28:01]wPrintStart [21:28:01]Write to MH i2c: 01 00 00 CC 02 CE [21:28:01]Write i2c OK [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: 01 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: 01 07 00 [21:28:01]MH_I2C_Read... [21:28:01]Read from MH i2c: 01 07 00 CC 02 00 00 00 00 00 FF 0F E3 [21:28:01]RasterBufferAndPrint [21:28:01]line Счет N : (1)673437 [21:28:01]line ИНН: 02508201610067 [21:28:01]line Контрольно-Кассовый Чек [21:28:01]line ПРОДАЖА [21:28:01]line ТРК (МРК, ГНК) : 32 [21:28:01]line Товар: 2710124130 [21:28:01]line Аи-92-К-5 [21:28:01]line 7.540 * 66.40 [21:28:01]line = 500.66 [21:28:01]line НДС 12% НСП 1% [21:28:01]line > о реализуемом товаре [21:28:01]line ОКРУГЛЕНИЕ: -0.66 [21:28:01]line ИТОГО: 500.00 [21:28:01]line Внесено: 500.00 [21:28:01]line СДАЧА: 0.00 [21:28:01]line НСП 1% : 4.43 [21:28:01]line НДС 12% : 53.17 [21:28:01]line Наличными: 500.00 [21:28:01]line Безнал.: 0.00 [21:28:01]line Место: АЗС № 120 "Партнер Нефть" [21:28:01]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:28:01]line СНО: Общий режим [21:28:01]line Чек 241 20.06.2024 21:28 [21:28:01]line Смена: 354 ФФД: 1.0 [21:28:01]line ЗНМ: 0300000164 [21:28:01]line РНМ: 0000000000092785 [21:28:01]line Версия ККМ: 001 [21:28:01]line ФМ: 0000000000875093 [21:28:01]line ФД: 104056 [21:28:01]line ФПД: 135854461454337 [21:28:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212800&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104056&fm=135854461454337&tin=02508201610067®Number=0000000000092785&sum=50000 [21:28:01]OFD Sender: Processing packet 104056 [packets to send 17, broken 16] [21:28:01]ProducePacketName [21:28:01]name=ofd_packets/00104056 [21:28:01]OFD Sender: To server: pG, [21:28:01]CommunicateWithHost lk.salyk.kg:30040 [21:28:01]ConnectInit lk.salyk.kg [21:28:01]written 0, free lines is 4095 [21:28:01]Connected sock=11 [21:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 78 35 07 01 B2 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E0 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 78 96 01 00 35 04 06 00 7B 8F 14 EA 88 01 96 27 DD 9D D8 DA 11 13 [21:28:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 25 F4 47 00 6F 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 35 30 39 33 10 04 04 00 78 96 01 00 F4 03 04 00 65 45 74 66 B6 04 01 00 00 9F 99 9E C2 FB 8B 5F A5 [21:28:02]CommunicateWithHost err = 0 [21:28:02]CheckOFDResponse [21:28:02]1017 (14) - 77093643461234 [21:28:02]1041 (16) - 0000000000875093 [21:28:02]1040 (4) - 104056 [21:28:02]1012 (4) - 20.06.2024 15:06 [21:28:02]1206 (1) - 0 [21:28:02]OFD Sender: Remove packet 104056 [21:28:02]ProducePacketName [21:28:02]name=ofd_packets/00104056 [21:28:02]NVStorageDeleteData [21:28:02]Write to MH i2c: 01 00 00 F7 02 F9 [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: 01 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: 01 07 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 EB 0C F7 [21:28:02]RasterBufferAndPrint [21:28:02]line [21:28:02]line [21:28:02]line [21:28:02]line [21:28:02]line [21:28:02]written 0, free lines is 3313 [21:28:02]MH_Cut [21:28:02]Write to MH i2c: D1 01 00 FE 02 01 D2 [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: D1 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: D1 01 00 [21:28:02]MH_I2C_Read... [21:28:02]Read from MH i2c: D1 01 00 FE 02 00 D1 [21:28:02]Write to MH i2c: 01 00 00 FF 02 01 [21:28:02]Write i2c OK [21:28:02]MH_I2C_Read... [21:28:02]OFD Sender: No OFD packet to send [21:28:02]*** Cut start [21:28:02]*** Partial cut [21:28:02]*** CUTSNS_PIN = 1 [21:28:02]*** CUTSNS_PIN = 0 [21:28:03]*** Brake cut motor [21:28:03]Read from MH i2c: 01 [21:28:03]MH_I2C_Read... [21:28:03]*** Stop cut motor [21:28:03]*** Cut end [21:28:03]Read from MH i2c: 01 07 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [21:28:03]process_action close_receipt done [21:28:03]requested_data is exist [21:28:03]produce_requested_data [21:28:03]requested_item fm.sn is exist - process it [21:28:03]wFMCommunicate request_size=4 [21:28:03]MH_SAM_APDU [21:28:03]CAPDU: 80 11 00 00 [21:28:03]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:03]Read from MH i2c: E2 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: E2 17 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D0 [21:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:28:03]wFMCommunicate OK [21:28:03]requested_item fd.num is exist - process it [21:28:03]SAM_PROTO_GetFieldsCounters [21:28:03]wFMCommunicate request_size=4 [21:28:03]MH_SAM_APDU [21:28:03]CAPDU: 80 13 00 00 [21:28:03]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:03]Read from MH i2c: E2 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: E2 62 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: E2 62 00 01 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 78 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [21:28:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 78 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:03]wFMCommunicate OK [21:28:03]SAM_PROTO_GetFieldsCounters done [21:28:03]requested_item shift.num is exist - process it [21:28:03]requested_item shift.opened is exist - process it [21:28:03]req_shift_opened [21:28:03]FM_GetShiftState [21:28:03]SAM_PROTO_GetShiftState [21:28:03]wFMCommunicate request_size=4 [21:28:03]MH_SAM_APDU [21:28:03]CAPDU: 80 13 01 00 [21:28:03]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:03]Read from MH i2c: E2 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: E2 0E 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D1 [21:28:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:28:03]wFMCommunicate OK [21:28:03]SAM_PROTO_GetShiftState done [21:28:03]FM_GetShiftState done [21:28:03]req_shift_opened done [21:28:03]requested_item shift.open_date is exist - process it [21:28:03]req_shift_open_date [21:28:03]req_shift_open_date done [21:28:03]produce_requested_data done [21:28:03]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104056,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:28:03]process_action_free close_receipt [21:28:03]json_value_free [21:28:03]json_value_free done [21:28:03]process_json_proto returns [21:28:03]Send response to host [21:28:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104056,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:28:03]free response buf [21:28:03]execute_script done [21:28:03]execute_script returns [21:28:03]free content buf [21:28:03]Sock 7.Close socket [21:28:03]Sock 7.Thread stoped [21:28:04]accept exits with 9 [21:28:04]New connection [21:28:04]New thread 3066858852 created [21:28:04]Thread 3066715492 joined [21:28:04]Waiting for new connection... [21:28:04] Sock 9.Parse request [21:28:04]Sock 9.Check first char [21:28:04]Sock 9.First char is OK [21:28:04]request: POST /json_proto HTTP/1.0 [21:28:04]Method: POST [21:28:04]URL: /json_proto [21:28:04]Method is POST - this is cgi request [21:28:04]url: /json_proto [21:28:04]query_string will be loaded in cgi processing [21:28:04]execute_cgi json_proto POST (null) [21:28:04]execute_cgi path=json_proto method=POST [21:28:04]POST find Content-Length [21:28:04]Host: 172.17.38.133:8080 [21:28:04]Content-Length: 677 [21:28:04]Content-Type: application/json [21:28:04] [21:28:04]POST finish read [21:28:04]Found Content-Length = 677 [21:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.100, "sum" : 405.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:04]execute_script... [21: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)673438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.100, "sum" : 405.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:04]POST & json_proto [21:28:04]process_json_proto [21:28:04]json parsed OK: [21:28:04]protocol is kg_v1.0 [21:28:04]action value=close_receipt [21:28:04]process_action close_receipt [21:28:04]cmd_close_receipt [21:28:04]MH_GetDate [21:28:04]Write to MH i2c: F0 00 00 03 03 F5 [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: F0 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: F0 09 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: F0 09 00 03 03 00 E4 9E 74 66 BD 8F 7C 64 86 [21:28:04]GetLastDocTimeStamp 1718918880 [21:28:04]current date 1718918884 [21:28:04]FM_GetShiftState [21:28:04]SAM_PROTO_GetShiftState [21:28:04]wFMCommunicate request_size=4 [21:28:04]MH_SAM_APDU [21:28:04]CAPDU: 80 13 01 00 [21:28:04]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:04]Read from MH i2c: E2 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 0E 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D3 [21:28:04]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:28:04]wFMCommunicate OK [21:28:04]SAM_PROTO_GetShiftState done [21:28:04]FM_GetShiftState done [21:28:04]opened in 1718843124 [21:28:04]opened+sec_in_day 1718929524 [21:28:04]quantity*price = 40504 [21:28:04]sum+1 = 40505 [21:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 405.00 Внесено: 405.00 СДАЧА: 0.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 242 20.06.2024 21:28 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104057 ФПД: 142396441001015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212805&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104057&fm=142396441001015&tin=02508201610067®Number=0000000000092785&sum=40500 [21:28:05]StoreToDocumentArchive [21:28:05]shift 354 fd 104057 [21:28:05]save to /storage/0354/doc_00104057 [21:28:05]save last doc name /storage/0354/doc_00104057 to /storage/kkm_last_doc_name [21:28:05]save OK [21:28:05]Clear old archive folders... [21:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:28:05]tlvbuf is 01109CE0 [21:28:05]SAM_PROTO_ClearQueue [21:28:05]wFMCommunicate request_size=4 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 09 00 00 [21:28:05]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [21:28:05]RAPDU: 90 00 [21:28:05]wFMCommunicate OK [21:28:05]SAM_PROTO_ClearQueue done [21:28:05]KKMCreateOFDPacket [21:28:05]OFDProtocolAddRootSTLVToBuf [21:28:05]FM_MakeSignedData [21:28:05]FM_MakeSignedData [21:28:05]SAM_PROTO_SignData [21:28:05]wFMCommunicate request_size=4 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 0D 01 02 [21:28:05]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [21:28:05]RAPDU: 90 00 [21:28:05]wFMCommunicate OK [21:28:05]wFMCommunicate request_size=255 [21:28:05]MH_SAM_APDU [21: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 D4 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 38 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E5 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 96 01 00 35 04 06 00 81 [21:28:05]Write to MH i2c: E2 02 01 13 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 38 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E5 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 96 01 00 35 04 06 00 81 00 00 93 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [21:28:05]RAPDU: 90 00 [21:28:05]wFMCommunicate OK [21:28:05]wFMCommunicate request_size=10 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 0D 02 02 05 82 41 48 7C 37 [21:28:05]Write to MH i2c: E2 0D 00 14 03 80 0D 02 02 05 00 82 41 48 7C 37 00 00 59 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [21:28:05]RAPDU: 90 00 [21:28:05]wFMCommunicate OK [21:28:05]wFMCommunicate request_size=4 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 0D 03 02 [21:28:05]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 0B 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 0B 00 15 03 00 91 24 02 D2 CA 97 EF A8 90 00 15 [21:28:05]RAPDU: 91 24 02 D2 CA 97 EF A8 90 00 [21:28:05]wFMCommunicate OK [21:28:05]SAM_PROTO_SignData done [21:28:05]FM_MakeSignedData done [21:28:05]CreateOFDProtocolMessage [21:28:05]wFMCommunicate request_size=4 [21:28:05]MH_SAM_APDU [21:28:05]CAPDU: 80 11 00 00 [21:28:05]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:05]Read from MH i2c: E2 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 17 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E6 [21:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:28:06]wFMCommunicate OK [21:28:06]CreateOFDProtocolMessage done [21:28:06]OFDSenderStorePacket 104057 [21:28:06]StoreOFDPacket docnum=104057 [21:28:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 CD E6 07 01 8D 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 38 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E5 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 96 01 00 35 04 06 00 81 82 41 48 7C 37 91 24 02 D2 CA 97 EF A8 [21:28:06]CheckFolder [21:28:06]dirname=/storage/ofd_packets [21:28:06]CheckFolder done [21:28:06]ProducePacketName [21:28:06]name=ofd_packets/00104057 [21:28:06]NVStorageSaveData ofd_packets/00104057 [21:28:06]File name is /storage/ofd_packets/00104057 [21:28:06]Write 301 bytes [21:28:06]NVStorageSaveData done [21:28:06]OFDSenderStorePacket done [21:28:06]KKMCreateOFDPacket done [21:28:06]NVStorageSaveData kkm_last_timestamp [21:28:06]File name is /storage/kkm_last_timestamp [21:28:06]Write 4 bytes [21:28:06]NVStorageSaveData done [21:28:06]ExternCall_PrintAddStr [21:28:06]wPrintStart [21:28:06]Write to MH i2c: 01 00 00 17 03 1A [21:28:06]Write i2c OK [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: 01 [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: 01 07 00 [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [21:28:06]RasterBufferAndPrint [21:28:06]line Счет N : (1)673438 [21:28:06]line ИНН: 02508201610067 [21:28:06]line Контрольно-Кассовый Чек [21:28:06]line ПРОДАЖА [21:28:06]line ТРК (МРК, ГНК) : 42 [21:28:06]line Товар: 2710124130 [21:28:06]line Аи-92-К-5 [21:28:06]line 6.100 * 66.40 [21:28:06]line = 405.04 [21:28:06]line НДС 12% НСП 1% [21:28:06]line > о реализуемом товаре [21:28:06]line ОКРУГЛЕНИЕ: -0.04 [21:28:06]line ИТОГО: 405.00 [21:28:06]line Внесено: 405.00 [21:28:06]line СДАЧА: 0.00 [21:28:06]line НСП 1% : 3.58 [21:28:06]line НДС 12% : 43.01 [21:28:06]line Наличными: 405.00 [21:28:06]line Безнал.: 0.00 [21:28:06]line Место: АЗС № 120 "Партнер Нефть" [21:28:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:28:06]line СНО: Общий режим [21:28:06]line Чек 242 20.06.2024 21:28 [21:28:06]line Смена: 354 ФФД: 1.0 [21:28:06]line ЗНМ: 0300000164 [21:28:06]line РНМ: 0000000000092785 [21:28:06]line Версия ККМ: 001 [21:28:06]line ФМ: 0000000000875093 [21:28:06]line ФД: 104057 [21:28:06]line ФПД: 142396441001015 [21:28:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T212805&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104057&fm=142396441001015&tin=02508201610067®Number=0000000000092785&sum=40500 [21:28:06]OFD Sender: Processing packet 104057 [packets to send 17, broken 16] [21:28:06]ProducePacketName [21:28:06]name=ofd_packets/00104057 [21:28:06]OFD Sender: To server: pG, [21:28:06]CommunicateWithHost lk.salyk.kg:30040 [21:28:06]ConnectInit lk.salyk.kg [21:28:06]written 0, free lines is 4095 [21:28:06]Connected sock=10 [21: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 35 30 39 33 0F 01 00 00 CD E6 07 01 8D 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 38 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E5 9E 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 96 01 00 35 04 06 00 81 82 41 48 7C 37 91 24 02 D2 CA 97 EF A8 [21:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 16 13 47 00 90 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 79 96 01 00 F4 03 04 00 69 45 74 66 B6 04 01 00 00 A5 7A 10 C3 E5 B0 11 41 [21:28:06]CommunicateWithHost err = 0 [21:28:06]CheckOFDResponse [21:28:06]1017 (14) - 77093643461234 [21:28:06]1041 (16) - 0000000000875093 [21:28:06]1040 (4) - 104057 [21:28:06]1012 (4) - 20.06.2024 15:06 [21:28:06]1206 (1) - 0 [21:28:06]OFD Sender: Remove packet 104057 [21:28:06]ProducePacketName [21:28:06]name=ofd_packets/00104057 [21:28:06]NVStorageDeleteData [21:28:06]Write to MH i2c: 01 00 00 42 03 45 [21:28:06]Write i2c OK [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: 01 [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: 01 07 00 [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: 01 07 00 42 03 00 00 00 00 00 F3 0C 4B [21:28:06]RasterBufferAndPrint [21:28:06]line [21:28:06]line [21:28:06]line [21:28:06]line [21:28:06]line [21:28:06]written 0, free lines is 3324 [21:28:06]MH_Cut [21:28:06]Write to MH i2c: D1 01 00 49 03 01 1E [21:28:06]Write i2c OK [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: D1 [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: D1 01 00 [21:28:06]MH_I2C_Read... [21:28:06]Read from MH i2c: D1 01 00 49 03 00 1D [21:28:06]Write to MH i2c: 01 00 00 4A 03 4D [21:28:06]Write i2c OK [21:28:06]MH_I2C_Read... [21:28:07]OFD Sender: No OFD packet to send [21:28:07]*** Cut start [21:28:07]*** Partial cut [21:28:07]*** CUTSNS_PIN = 1 [21:28:07]*** CUTSNS_PIN = 0 [21:28:07]*** Brake cut motor [21:28:08]Read from MH i2c: 01 [21:28:08]MH_I2C_Read... [21:28:08]*** Stop cut motor [21:28:08]*** Cut end [21:28:08]Read from MH i2c: 01 07 00 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 FF 0F 62 [21:28:08]process_action close_receipt done [21:28:08]requested_data is exist [21:28:08]produce_requested_data [21:28:08]requested_item fm.sn is exist - process it [21:28:08]wFMCommunicate request_size=4 [21:28:08]MH_SAM_APDU [21:28:08]CAPDU: 80 11 00 00 [21:28:08]Write to MH i2c: E2 08 00 4B 03 80 11 00 00 00 00 00 00 C8 [21:28:08]Write i2c OK [21:28:08]MH_I2C_Read... [21:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:08]Read from MH i2c: E2 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 17 00 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 17 00 4B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1B [21:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:28:08]wFMCommunicate OK [21:28:08]requested_item fd.num is exist - process it [21:28:08]SAM_PROTO_GetFieldsCounters [21:28:08]wFMCommunicate request_size=4 [21:28:08]MH_SAM_APDU [21:28:08]CAPDU: 80 13 00 00 [21:28:08]Write to MH i2c: E2 08 00 4C 03 80 13 00 00 00 00 00 00 CB [21:28:08]Write i2c OK [21:28:08]MH_I2C_Read... [21:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:08]Read from MH i2c: E2 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 62 00 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 62 00 4C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [21:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 79 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:08]wFMCommunicate OK [21:28:08]SAM_PROTO_GetFieldsCounters done [21:28:08]requested_item shift.num is exist - process it [21:28:08]requested_item shift.opened is exist - process it [21:28:08]req_shift_opened [21:28:08]FM_GetShiftState [21:28:08]SAM_PROTO_GetShiftState [21:28:08]wFMCommunicate request_size=4 [21:28:08]MH_SAM_APDU [21:28:08]CAPDU: 80 13 01 00 [21:28:08]Write to MH i2c: E2 08 00 4D 03 80 13 01 00 00 00 00 00 CD [21:28:08]Write i2c OK [21:28:08]MH_I2C_Read... [21:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:08]Read from MH i2c: E2 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 0E 00 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 0E 00 4D 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1C [21:28:08]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:28:08]wFMCommunicate OK [21:28:08]SAM_PROTO_GetShiftState done [21:28:08]FM_GetShiftState done [21:28:08]req_shift_opened done [21:28:08]requested_item shift.open_date is exist - process it [21:28:08]req_shift_open_date [21:28:08]req_shift_open_date done [21:28:08]produce_requested_data done [21:28:08]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104057,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:28:08]process_action_free close_receipt [21:28:08]json_value_free [21:28:08]json_value_free done [21:28:08]process_json_proto returns [21:28:08]Send response to host [21:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104057,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:28:08]free response buf [21:28:08]execute_script done [21:28:08]execute_script returns [21:28:08]free content buf [21:28:08]Sock 9.Close socket [21:28:08]Sock 9.Thread stoped [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:01]accept exits with 7 [21:30:01]New connection [21:30:01]New thread 3066715492 created [21:30:01]Thread 3066858852 joined [21:30:01]Waiting for new connection... [21:30:01] Sock 7.Parse request [21:30:01]Sock 7.Check first char [21:30:01]Sock 7.First char is OK [21:30:01]request: POST /json_proto HTTP/1.0 [21:30:01]Method: POST [21:30:01]URL: /json_proto [21:30:01]Method is POST - this is cgi request [21:30:01]url: /json_proto [21:30:01]query_string will be loaded in cgi processing [21:30:01]execute_cgi json_proto POST (null) [21:30:01]execute_cgi path=json_proto method=POST [21:30:01]POST find Content-Length [21:30:01]Host: 172.17.38.133:8080 [21:30:01]Content-Length: 682 [21:30:01]Content-Type: application/json [21:30:01] [21:30:01]POST finish read [21:30:01]Found Content-Length = 682 [21:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:01]execute_script... [21:30: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)673439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:01]POST & json_proto [21:30:01]process_json_proto [21:30:01]json parsed OK: [21:30:01]protocol is kg_v1.0 [21:30:01]action value=close_receipt [21:30:01]process_action close_receipt [21:30:01]cmd_close_receipt [21:30:01]MH_GetDate [21:30:01]Write to MH i2c: F0 00 00 4E 03 40 [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: F0 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: F0 09 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: F0 09 00 4E 03 00 5A 9F 74 66 BD 8F 7C 64 48 [21:30:01]GetLastDocTimeStamp 1718918885 [21:30:01]current date 1718919002 [21:30:01]FM_GetShiftState [21:30:01]SAM_PROTO_GetShiftState [21:30:01]wFMCommunicate request_size=4 [21:30:01]MH_SAM_APDU [21:30:01]CAPDU: 80 13 01 00 [21:30:01]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [21:30:01]Write i2c OK [21:30:01]MH_I2C_Read... [21:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:01]Read from MH i2c: E2 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 0E 00 [21:30:01]MH_I2C_Read... [21:30:01]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1E [21:30:01]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:30:01]wFMCommunicate OK [21:30:01]SAM_PROTO_GetShiftState done [21:30:01]FM_GetShiftState done [21:30:01]opened in 1718843124 [21:30:01]opened+sec_in_day 1718929524 [21:30:01]quantity*price = 100064 [21:30:01]sum+1 = 100066 [21:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 243 20.06.2024 21:30 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104058 ФПД: 28212125755859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T213002&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104058&fm=28212125755859&tin=02508201610067®Number=0000000000092785&sum=100000 [21:30:02]StoreToDocumentArchive [21:30:02]shift 354 fd 104058 [21:30:02]save to /storage/0354/doc_00104058 [21:30:02]save last doc name /storage/0354/doc_00104058 to /storage/kkm_last_doc_name [21:30:02]save OK [21:30:02]Clear old archive folders... [21:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:30:02]tlvbuf is 011261B0 [21:30:02]SAM_PROTO_ClearQueue [21:30:02]wFMCommunicate request_size=4 [21:30:02]MH_SAM_APDU [21:30:02]CAPDU: 80 09 00 00 [21:30:02]Write to MH i2c: E2 08 00 5C 03 80 09 00 00 00 00 00 00 D1 [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:02]Read from MH i2c: E2 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [21:30:02]RAPDU: 90 00 [21:30:02]wFMCommunicate OK [21:30:02]SAM_PROTO_ClearQueue done [21:30:02]KKMCreateOFDPacket [21:30:02]OFDProtocolAddRootSTLVToBuf [21:30:02]FM_MakeSignedData [21:30:02]FM_MakeSignedData [21:30:02]SAM_PROTO_SignData [21:30:02]wFMCommunicate request_size=4 [21:30:02]MH_SAM_APDU [21:30:02]CAPDU: 80 0D 01 02 [21:30:02]Write to MH i2c: E2 08 00 5D 03 80 0D 01 02 00 00 00 00 D9 [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:02]Read from MH i2c: E2 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [21:30:02]RAPDU: 90 00 [21:30:02]wFMCommunicate OK [21:30:02]wFMCommunicate request_size=255 [21:30:02]MH_SAM_APDU [21:30: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 5A 9F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 96 01 00 35 04 06 00 19 [21:30:02]Write to MH i2c: E2 02 01 5E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 5A 9F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 96 01 00 35 04 06 00 19 00 00 36 [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:02]Read from MH i2c: E2 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [21:30:02]RAPDU: 90 00 [21:30:02]wFMCommunicate OK [21:30:02]wFMCommunicate request_size=10 [21:30:02]MH_SAM_APDU [21:30:02]CAPDU: 80 0D 02 02 05 A8 A5 BB E9 D3 [21:30:02]Write to MH i2c: E2 0D 00 5F 03 80 0D 02 02 05 00 A8 A5 BB E9 D3 00 00 AA [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:02]Read from MH i2c: E2 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 [21:30:02]MH_I2C_Read... [21:30:02]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [21:30:02]RAPDU: 90 00 [21:30:02]wFMCommunicate OK [21:30:02]wFMCommunicate request_size=4 [21:30:02]MH_SAM_APDU [21:30:02]CAPDU: 80 0D 03 02 [21:30:02]Write to MH i2c: E2 08 00 60 03 80 0D 03 02 00 00 00 00 DE [21:30:02]Write i2c OK [21:30:02]MH_I2C_Read... [21:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:03]Read from MH i2c: E2 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 0B 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 0B 00 60 03 00 E6 DC 66 02 61 F8 AD 11 90 00 20 [21:30:03]RAPDU: E6 DC 66 02 61 F8 AD 11 90 00 [21:30:03]wFMCommunicate OK [21:30:03]SAM_PROTO_SignData done [21:30:03]FM_MakeSignedData done [21:30:03]CreateOFDProtocolMessage [21:30:03]wFMCommunicate request_size=4 [21:30:03]MH_SAM_APDU [21:30:03]CAPDU: 80 11 00 00 [21:30:03]Write to MH i2c: E2 08 00 61 03 80 11 00 00 00 00 00 00 DE [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:03]Read from MH i2c: E2 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 17 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: E2 17 00 61 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 31 [21:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:30:03]wFMCommunicate OK [21:30:03]CreateOFDProtocolMessage done [21:30:03]OFDSenderStorePacket 104058 [21:30:03]StoreOFDPacket docnum=104058 [21:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C1 76 07 01 7B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 5A 9F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 96 01 00 35 04 06 00 19 A8 A5 BB E9 D3 E6 DC 66 02 61 F8 AD 11 [21:30:03]CheckFolder [21:30:03]dirname=/storage/ofd_packets [21:30:03]CheckFolder done [21:30:03]ProducePacketName [21:30:03]name=ofd_packets/00104058 [21:30:03]NVStorageSaveData ofd_packets/00104058 [21:30:03]File name is /storage/ofd_packets/00104058 [21:30:03]Write 301 bytes [21:30:03]NVStorageSaveData done [21:30:03]OFDSenderStorePacket done [21:30:03]KKMCreateOFDPacket done [21:30:03]NVStorageSaveData kkm_last_timestamp [21:30:03]File name is /storage/kkm_last_timestamp [21:30:03]Write 4 bytes [21:30:03]NVStorageSaveData done [21:30:03]ExternCall_PrintAddStr [21:30:03]wPrintStart [21:30:03]Write to MH i2c: 01 00 00 62 03 65 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 07 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 07 00 62 03 00 00 00 00 00 FF 0F 7A [21:30:03]RasterBufferAndPrint [21:30:03]line Счет N : (1)673439 [21:30:03]line ИНН: 02508201610067 [21:30:03]line Контрольно-Кассовый Чек [21:30:03]line ПРОДАЖА [21:30:03]line ТРК (МРК, ГНК) : 32 [21:30:03]line Товар: 2710124130 [21:30:03]line Аи-92-К-5 [21:30:03]line 15.070 * 66.40 [21:30:03]line = 1000.65 [21:30:03]line НДС 12% НСП 1% [21:30:03]line > о реализуемом товаре [21:30:03]line ОКРУГЛЕНИЕ: -0.65 [21:30:03]line ИТОГО: 1000.00 [21:30:03]line Внесено: 1000.00 [21:30:03]line СДАЧА: 0.00 [21:30:03]line НСП 1% : 8.85 [21:30:03]line НДС 12% : 106.26 [21:30:03]line Наличными: 1000.00 [21:30:03]line Безнал.: 0.00 [21:30:03]line Место: АЗС № 120 "Партнер Нефть" [21:30:03]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:30:03]line СНО: Общий режим [21:30:03]line Чек 243 20.06.2024 21:30 [21:30:03]line Смена: 354 ФФД: 1.0 [21:30:03]line ЗНМ: 0300000164 [21:30:03]line РНМ: 0000000000092785 [21:30:03]line Версия ККМ: 001 [21:30:03]line ФМ: 0000000000875093 [21:30:03]line ФД: 104058 [21:30:03]line ФПД: 28212125755859 [21:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T213002&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104058&fm=28212125755859&tin=02508201610067®Number=0000000000092785&sum=100000 [21:30:03]OFD Sender: Processing packet 104058 [packets to send 17, broken 16] [21:30:03]ProducePacketName [21:30:03]name=ofd_packets/00104058 [21:30:03]OFD Sender: To server: pG, [21:30:03]CommunicateWithHost lk.salyk.kg:30040 [21:30:03]ConnectInit lk.salyk.kg [21:30:03]written 0, free lines is 4095 [21:30:03]Connected sock=10 [21:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C1 76 07 01 7B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 5A 9F 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 96 01 00 35 04 06 00 19 A8 A5 BB E9 D3 E6 DC 66 02 61 F8 AD 11 [21:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 2C 61 47 00 4C 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7A 96 01 00 F4 03 04 00 DE 45 74 66 B6 04 01 00 00 FA 03 A0 07 5C 25 CB 93 [21:30:03]CommunicateWithHost err = 0 [21:30:03]CheckOFDResponse [21:30:03]1017 (14) - 77093643461234 [21:30:03]1041 (16) - 0000000000875093 [21:30:03]1040 (4) - 104058 [21:30:03]1012 (4) - 20.06.2024 15:08 [21:30:03]1206 (1) - 0 [21:30:03]OFD Sender: Remove packet 104058 [21:30:03]ProducePacketName [21:30:03]name=ofd_packets/00104058 [21:30:03]NVStorageDeleteData [21:30:03]Write to MH i2c: 01 00 00 8D 03 90 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 07 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 FA 0C 9D [21:30:03]RasterBufferAndPrint [21:30:03]line [21:30:03]line [21:30:03]line [21:30:03]line [21:30:03]line [21:30:03]written 0, free lines is 3328 [21:30:03]MH_Cut [21:30:03]Write to MH i2c: D1 01 00 94 03 01 69 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: D1 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: D1 01 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: D1 01 00 94 03 00 68 [21:30:03]Write to MH i2c: 01 00 00 95 03 98 [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:04]OFD Sender: No OFD packet to send [21:30:04]*** Cut start [21:30:04]*** Partial cut [21:30:04]*** CUTSNS_PIN = 1 [21:30:04]*** CUTSNS_PIN = 0 [21:30:04]*** Brake cut motor [21:30:05]Read from MH i2c: 01 [21:30:05]MH_I2C_Read... [21:30:05]*** Stop cut motor [21:30:05]*** Cut end [21:30:05]Read from MH i2c: 01 07 00 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [21:30:05]process_action close_receipt done [21:30:05]requested_data is exist [21:30:05]produce_requested_data [21:30:05]requested_item fm.sn is exist - process it [21:30:05]wFMCommunicate request_size=4 [21:30:05]MH_SAM_APDU [21:30:05]CAPDU: 80 11 00 00 [21:30:05]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [21:30:05]Write i2c OK [21:30:05]MH_I2C_Read... [21:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:05]Read from MH i2c: E2 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 17 00 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 66 [21:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:30:05]wFMCommunicate OK [21:30:05]requested_item fd.num is exist - process it [21:30:05]SAM_PROTO_GetFieldsCounters [21:30:05]wFMCommunicate request_size=4 [21:30:05]MH_SAM_APDU [21:30:05]CAPDU: 80 13 00 00 [21:30:05]Write to MH i2c: E2 08 00 97 03 80 13 00 00 00 00 00 00 16 [21:30:05]Write i2c OK [21:30:05]MH_I2C_Read... [21:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:05]Read from MH i2c: E2 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 62 00 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 62 00 97 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [21:30:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:05]wFMCommunicate OK [21:30:05]SAM_PROTO_GetFieldsCounters done [21:30:05]requested_item shift.num is exist - process it [21:30:05]requested_item shift.opened is exist - process it [21:30:05]req_shift_opened [21:30:05]FM_GetShiftState [21:30:05]SAM_PROTO_GetShiftState [21:30:05]wFMCommunicate request_size=4 [21:30:05]MH_SAM_APDU [21:30:05]CAPDU: 80 13 01 00 [21:30:05]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [21:30:05]Write i2c OK [21:30:05]MH_I2C_Read... [21:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:05]Read from MH i2c: E2 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 0E 00 [21:30:05]MH_I2C_Read... [21:30:05]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 67 [21:30:05]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:30:05]wFMCommunicate OK [21:30:05]SAM_PROTO_GetShiftState done [21:30:05]FM_GetShiftState done [21:30:05]req_shift_opened done [21:30:05]requested_item shift.open_date is exist - process it [21:30:05]req_shift_open_date [21:30:05]req_shift_open_date done [21:30:05]produce_requested_data done [21:30:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104058,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:30:05]process_action_free close_receipt [21:30:05]json_value_free [21:30:05]json_value_free done [21:30:05]process_json_proto returns [21:30:05]Send response to host [21:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104058,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:30:05]free response buf [21:30:05]execute_script done [21:30:05]execute_script returns [21:30:05]free content buf [21:30:05]Sock 7.Close socket [21:30:05]Sock 7.Thread stoped [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]accept exits with 9 [21:42:04]New connection [21:42:04]New thread 3066858852 created [21:42:04]Thread 3066715492 joined [21:42:04]Waiting for new connection... [21:42:04] Sock 9.Parse request [21:42:04]Sock 9.Check first char [21:42:04]Sock 9.First char is OK [21:42:04]request: POST /json_proto HTTP/1.0 [21:42:04]Method: POST [21:42:04]URL: /json_proto [21:42:04]Method is POST - this is cgi request [21:42:04]url: /json_proto [21:42:04]query_string will be loaded in cgi processing [21:42:04]execute_cgi json_proto POST (null) [21:42:04]execute_cgi path=json_proto method=POST [21:42:04]POST find Content-Length [21:42:04]Host: 172.17.38.133:8080 [21:42:04]Content-Length: 1169 [21:42:04]Content-Type: application/json [21:42:04] [21:42:04]POST finish read [21:42:04]Found Content-Length = 1169 [21:42: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673440\u000A20.06.2024 21:19\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 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085999\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:04]execute_script... [21:42: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673440\u000A20.06.2024 21:19\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 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085999\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:04]POST & json_proto [21:42:04]process_json_proto [21:42:04]json parsed OK: [21:42:04]protocol is kg_v1.0 [21:42:04]action value=print_text [21:42:04]process_action print_text [21:42:04]cmd_print_text [21:42:04]ExternCall_PrintAddStr [21:42:04]wPrintStart [21:42:04]Write to MH i2c: 01 00 00 99 03 9C [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: 01 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: 01 07 00 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [21:42:04]RasterBufferAndPrint [21:42:04]line *****ТОВАРНЫЙ ЧЕК***** [21:42:04]line АЗС 120 [21:42:04]line Партнер нефть [21:42:04]line 02508201610067 [21:42:04]line Кассир : Дуйшенбиев А. [21:42:04]line Счет N : (1)673440 [21:42:04]line 20.06.2024 21:19 [21:42:04]line ПРОДАЖА [21:42:04]line ТРК (МРК, ГНК): 42 [21:42:04]line Вид ГСМ : 2710124130 [21:42:04]line Аи-92-К-5 [21:42:04]line 30.000 x 66.40 [21:42:04]line ИТОГ: 1992.00 [21:42:04]line Тип оплаты: Талоны: ТК ГПНА Online [21:42:04]line 30085999 [21:42:04]line ______________________ [21:42:04]line (подпись) [21:42:04]written 0, free lines is 4095 [21:42:04]Write to MH i2c: 01 00 00 AD 03 B0 [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: 01 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: 01 07 00 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 12 0E D7 [21:42:04]RasterBufferAndPrint [21:42:04]line [21:42:04]line [21:42:04]line [21:42:04]line [21:42:04]line [21:42:04]written 0, free lines is 3604 [21:42:04]MH_Cut [21:42:04]Write to MH i2c: D1 01 00 B4 03 01 89 [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: D1 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: D1 01 00 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: D1 01 00 B4 03 00 88 [21:42:04]Write to MH i2c: 01 00 00 B5 03 B8 [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:04]*** Cut start [21:42:04]*** Partial cut [21:42:04]*** CUTSNS_PIN = 1 [21:42:04]OFD Sender: No OFD packet to send [21:42:04]*** CUTSNS_PIN = 0 [21:42:05]*** Brake cut motor [21:42:05]Read from MH i2c: 01 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: 01 07 00 [21:42:05]MH_I2C_Read... [21:42:05]*** Stop cut motor [21:42:05]*** Cut end [21:42:05]Read from MH i2c: 01 07 00 B5 03 00 00 00 00 00 FF 0F CD [21:42:05]process_action print_text done [21:42:05]requested_data is exist [21:42:05]produce_requested_data [21:42:05]requested_item fm.sn is exist - process it [21:42:05]wFMCommunicate request_size=4 [21:42:05]MH_SAM_APDU [21:42:05]CAPDU: 80 11 00 00 [21:42:05]Write to MH i2c: E2 08 00 B6 03 80 11 00 00 00 00 00 00 33 [21:42:05]Write i2c OK [21:42:05]MH_I2C_Read... [21:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:05]Read from MH i2c: E2 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 17 00 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 17 00 B6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 86 [21:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:42:05]wFMCommunicate OK [21:42:05]requested_item fd.num is exist - process it [21:42:05]SAM_PROTO_GetFieldsCounters [21:42:05]wFMCommunicate request_size=4 [21:42:05]MH_SAM_APDU [21:42:05]CAPDU: 80 13 00 00 [21:42:05]Write to MH i2c: E2 08 00 B7 03 80 13 00 00 00 00 00 00 36 [21:42:05]Write i2c OK [21:42:05]MH_I2C_Read... [21:42:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:05]Read from MH i2c: E2 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 62 00 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 62 00 B7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [21:42:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:05]wFMCommunicate OK [21:42:05]SAM_PROTO_GetFieldsCounters done [21:42:05]requested_item shift.num is exist - process it [21:42:05]requested_item shift.opened is exist - process it [21:42:05]req_shift_opened [21:42:05]FM_GetShiftState [21:42:05]SAM_PROTO_GetShiftState [21:42:05]wFMCommunicate request_size=4 [21:42:05]MH_SAM_APDU [21:42:05]CAPDU: 80 13 01 00 [21:42:05]Write to MH i2c: E2 08 00 B8 03 80 13 01 00 00 00 00 00 38 [21:42:05]Write i2c OK [21:42:05]MH_I2C_Read... [21:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:05]Read from MH i2c: E2 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 0E 00 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 0E 00 B8 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 87 [21:42:05]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:42:05]wFMCommunicate OK [21:42:05]SAM_PROTO_GetShiftState done [21:42:05]FM_GetShiftState done [21:42:05]req_shift_opened done [21:42:05]requested_item shift.open_date is exist - process it [21:42:05]req_shift_open_date [21:42:05]req_shift_open_date done [21:42:05]produce_requested_data done [21:42:05]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104058,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:42:05]process_action_free print_text [21:42:05]json_value_free [21:42:05]json_value_free done [21:42:05]process_json_proto returns [21:42:05]Send response to host [21:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104058,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:42:05]free response buf [21:42:05]execute_script done [21:42:05]execute_script returns [21:42:05]free content buf [21:42:05]Sock 9.Close socket [21:42:05]Sock 9.Thread stoped [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:06]accept exits with 7 [21:49:06]New connection [21:49:06]New thread 3066715492 created [21:49:06]Thread 3066858852 joined [21:49:06]Waiting for new connection... [21:49:06] Sock 7.Parse request [21:49:06]Sock 7.Check first char [21:49:06]Sock 7.First char is OK [21:49:06]request: POST /json_proto HTTP/1.0 [21:49:06]Method: POST [21:49:06]URL: /json_proto [21:49:06]Method is POST - this is cgi request [21:49:06]url: /json_proto [21:49:06]query_string will be loaded in cgi processing [21:49:06]execute_cgi json_proto POST (null) [21:49:06]execute_cgi path=json_proto method=POST [21:49:06]POST find Content-Length [21:49:06]Host: 172.17.38.133:8080 [21:49:06]Content-Length: 678 [21:49:06]Content-Type: application/json [21:49:06] [21:49:06]POST finish read [21:49:06]Found Content-Length = 678 [21:49:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673441", "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" : 73.90, "quantity" : 12.180, "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" ] } } [21:49:06]execute_script... [21:49: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)673441", "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" : 73.90, "quantity" : 12.180, "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" ] } } [21:49:06]POST & json_proto [21:49:06]process_json_proto [21:49:06]json parsed OK: [21:49:06]protocol is kg_v1.0 [21:49:06]action value=close_receipt [21:49:06]process_action close_receipt [21:49:06]cmd_close_receipt [21:49:06]MH_GetDate [21:49:06]Write to MH i2c: F0 00 00 B9 03 AB [21:49:06]Write i2c OK [21:49:06]MH_I2C_Read... [21:49:06]Read from MH i2c: F0 [21:49:06]MH_I2C_Read... [21:49:06]Read from MH i2c: F0 09 00 [21:49:06]MH_I2C_Read... [21:49:06]Read from MH i2c: F0 09 00 B9 03 00 D3 A3 74 66 BD 8F 7C 64 30 [21:49:06]GetLastDocTimeStamp 1718919002 [21:49:06]current date 1718920147 [21:49:06]FM_GetShiftState [21:49:06]SAM_PROTO_GetShiftState [21:49:06]wFMCommunicate request_size=4 [21:49:06]MH_SAM_APDU [21:49:06]CAPDU: 80 13 01 00 [21:49:06]Write to MH i2c: E2 08 00 BA 03 80 13 01 00 00 00 00 00 3A [21:49:06]Write i2c OK [21:49:06]MH_I2C_Read... [21:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:06]Read from MH i2c: E2 [21:49:06]MH_I2C_Read... [21:49:06]Read from MH i2c: E2 0E 00 [21:49:06]MH_I2C_Read... [21:49:06]Read from MH i2c: E2 0E 00 BA 03 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 89 [21:49:06]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:49:06]wFMCommunicate OK [21:49:06]SAM_PROTO_GetShiftState done [21:49:06]FM_GetShiftState done [21:49:06]opened in 1718843124 [21:49:06]opened+sec_in_day 1718929524 [21:49:06]quantity*price = 90010 [21:49:06]sum+1 = 90011 [21:49:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 244 20.06.2024 21:49 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104059 ФПД: 55095165339667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T214907&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104059&fm=55095165339667&tin=02508201610067®Number=0000000000092785&sum=90000 [21:49:07]StoreToDocumentArchive [21:49:07]shift 354 fd 104059 [21:49:07]save to /storage/0354/doc_00104059 [21:49:07]save last doc name /storage/0354/doc_00104059 to /storage/kkm_last_doc_name [21:49:07]save OK [21:49:07]Clear old archive folders... [21:49:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:07]tlvbuf is 01120980 [21:49:07]SAM_PROTO_ClearQueue [21:49:07]wFMCommunicate request_size=4 [21:49:07]MH_SAM_APDU [21:49:07]CAPDU: 80 09 00 00 [21:49:07]Write to MH i2c: E2 08 00 C7 03 80 09 00 00 00 00 00 00 3C [21:49:07]Write i2c OK [21:49:07]MH_I2C_Read... [21:49:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:07]Read from MH i2c: E2 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [21:49:07]RAPDU: 90 00 [21:49:07]wFMCommunicate OK [21:49:07]SAM_PROTO_ClearQueue done [21:49:07]KKMCreateOFDPacket [21:49:07]OFDProtocolAddRootSTLVToBuf [21:49:07]FM_MakeSignedData [21:49:07]FM_MakeSignedData [21:49:07]SAM_PROTO_SignData [21:49:07]wFMCommunicate request_size=4 [21:49:07]MH_SAM_APDU [21:49:07]CAPDU: 80 0D 01 02 [21:49:07]Write to MH i2c: E2 08 00 C8 03 80 0D 01 02 00 00 00 00 44 [21:49:07]Write i2c OK [21:49:07]MH_I2C_Read... [21:49:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:07]Read from MH i2c: E2 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 [21:49:07]MH_I2C_Read... [21:49:07]Read from MH i2c: E2 03 00 C8 03 00 90 00 3F [21:49:07]RAPDU: 90 00 [21:49:07]wFMCommunicate OK [21:49:07]wFMCommunicate request_size=255 [21:49:07]MH_SAM_APDU [21:49: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 94 2F 00 00 00 00 00 37 04 06 00 DE 1C 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 F4 00 00 00 F4 03 04 00 D3 A3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 96 01 00 35 04 06 00 32 [21:49:07]Write to MH i2c: E2 02 01 C9 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 94 2F 00 00 00 00 00 37 04 06 00 DE 1C 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 F4 00 00 00 F4 03 04 00 D3 A3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 96 01 00 35 04 06 00 32 00 00 75 [21:49:07]Write i2c OK [21:49:07]MH_I2C_Read... [21:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:08]Read from MH i2c: E2 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: E2 03 00 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: E2 03 00 C9 03 00 90 00 40 [21:49:08]RAPDU: 90 00 [21:49:08]wFMCommunicate OK [21:49:08]wFMCommunicate request_size=10 [21:49:08]MH_SAM_APDU [21:49:08]CAPDU: 80 0D 02 02 05 1B D7 C2 48 13 [21:49:08]Write to MH i2c: E2 0D 00 CA 03 80 0D 02 02 05 00 1B D7 C2 48 13 00 00 60 [21:49:08]Write i2c OK [21:49:08]MH_I2C_Read... [21:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:08]Read from MH i2c: E2 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: E2 03 00 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: E2 03 00 CA 03 00 90 00 41 [21:49:08]RAPDU: 90 00 [21:49:08]wFMCommunicate OK [21:49:08]wFMCommunicate request_size=4 [21:49:08]MH_SAM_APDU [21:49:08]CAPDU: 80 0D 03 02 [21:49:08]Write to MH i2c: E2 08 00 CB 03 80 0D 03 02 00 00 00 00 49 [21:49:08]Write i2c OK [21:49:08]MH_I2C_Read... [21:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:08]Read from MH i2c: E2 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: E2 0B 00 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: E2 0B 00 CB 03 00 2A 6C FC 41 CA 8D 07 62 90 00 DD [21:49:08]RAPDU: 2A 6C FC 41 CA 8D 07 62 90 00 [21:49:08]wFMCommunicate OK [21:49:08]SAM_PROTO_SignData done [21:49:08]FM_MakeSignedData done [21:49:08]CreateOFDProtocolMessage [21:49:08]wFMCommunicate request_size=4 [21:49:08]MH_SAM_APDU [21:49:08]CAPDU: 80 11 00 00 [21:49:08]Write to MH i2c: E2 08 00 CC 03 80 11 00 00 00 00 00 00 49 [21:49:08]Write i2c OK [21:49:08]MH_I2C_Read... [21:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:08]Read from MH i2c: E2 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: E2 17 00 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: E2 17 00 CC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9C [21:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:49:08]wFMCommunicate OK [21:49:08]CreateOFDProtocolMessage done [21:49:08]OFDSenderStorePacket 104059 [21:49:08]StoreOFDPacket docnum=104059 [21:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B1 D8 07 01 57 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 94 2F 00 00 00 00 00 37 04 06 00 DE 1C 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 F4 00 00 00 F4 03 04 00 D3 A3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 96 01 00 35 04 06 00 32 1B D7 C2 48 13 2A 6C FC 41 CA 8D 07 62 [21:49:08]CheckFolder [21:49:08]dirname=/storage/ofd_packets [21:49:08]CheckFolder done [21:49:08]ProducePacketName [21:49:08]name=ofd_packets/00104059 [21:49:08]NVStorageSaveData ofd_packets/00104059 [21:49:08]File name is /storage/ofd_packets/00104059 [21:49:08]Write 301 bytes [21:49:08]NVStorageSaveData done [21:49:08]OFDSenderStorePacket done [21:49:08]KKMCreateOFDPacket done [21:49:08]NVStorageSaveData kkm_last_timestamp [21:49:08]File name is /storage/kkm_last_timestamp [21:49:08]Write 4 bytes [21:49:08]NVStorageSaveData done [21:49:08]ExternCall_PrintAddStr [21:49:08]wPrintStart [21:49:08]Write to MH i2c: 01 00 00 CD 03 D0 [21:49:08]Write i2c OK [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: 01 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: 01 07 00 [21:49:08]MH_I2C_Read... [21:49:08]Read from MH i2c: 01 07 00 CD 03 00 00 00 00 00 FF 0F E5 [21:49:08]RasterBufferAndPrint [21:49:08]line Счет N : (1)673441 [21:49:08]line ИНН: 02508201610067 [21:49:08]line Контрольно-Кассовый Чек [21:49:08]line ПРОДАЖА [21:49:08]line ТРК (МРК, ГНК) : 31 [21:49:08]line Товар: 2710124500 [21:49:08]line Аи-95-К-5 [21:49:08]line 12.180 * 73.90 [21:49:08]line = 900.10 [21:49:08]line НДС 12% НСП 1% [21:49:08]line > о реализуемом товаре [21:49:08]line ОКРУГЛЕНИЕ: -0.10 [21:49:08]line ИТОГО: 900.00 [21:49:08]line Внесено: 900.00 [21:49:08]line СДАЧА: 0.00 [21:49:08]line НСП 1% : 7.96 [21:49:08]line НДС 12% : 95.59 [21:49:08]line Наличными: 900.00 [21:49:08]line Безнал.: 0.00 [21:49:08]line Место: АЗС № 120 "Партнер Нефть" [21:49:08]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:49:08]line СНО: Общий режим [21:49:08]line Чек 244 20.06.2024 21:49 [21:49:08]line Смена: 354 ФФД: 1.0 [21:49:08]line ЗНМ: 0300000164 [21:49:08]line РНМ: 0000000000092785 [21:49:08]line Версия ККМ: 001 [21:49:08]line ФМ: 0000000000875093 [21:49:08]line ФД: 104059 [21:49:08]line ФПД: 55095165339667 [21:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T214907&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104059&fm=55095165339667&tin=02508201610067®Number=0000000000092785&sum=90000 [21:49:08]OFD Sender: Processing packet 104059 [packets to send 17, broken 16] [21:49:08]ProducePacketName [21:49:08]name=ofd_packets/00104059 [21:49:08]OFD Sender: To server: pG, [21:49:08]CommunicateWithHost lk.salyk.kg:30040 [21:49:08]ConnectInit lk.salyk.kg [21:49:08]written 0, free lines is 4095 [21:49:08]Connected sock=10 [21:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 B1 D8 07 01 57 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 94 2F 00 00 00 00 00 37 04 06 00 DE 1C 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 F4 00 00 00 F4 03 04 00 D3 A3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7B 96 01 00 35 04 06 00 32 1B D7 C2 48 13 2A 6C FC 41 CA 8D 07 62 [21:49:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F5 F9 47 00 ED 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 35 30 39 33 10 04 04 00 7B 96 01 00 F4 03 04 00 58 4A 74 66 B6 04 01 00 00 1E D4 AA CC 2C E8 AC 40 [21:49:09]CommunicateWithHost err = 0 [21:49:09]CheckOFDResponse [21:49:09]1017 (14) - 77093643461234 [21:49:09]1041 (16) - 0000000000875093 [21:49:09]1040 (4) - 104059 [21:49:09]1012 (4) - 20.06.2024 15:27 [21:49:09]1206 (1) - 0 [21:49:09]OFD Sender: Remove packet 104059 [21:49:09]ProducePacketName [21:49:09]name=ofd_packets/00104059 [21:49:09]NVStorageDeleteData [21:49:09]Write to MH i2c: 01 00 00 F8 03 FB [21:49:09]Write i2c OK [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: 01 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: 01 07 00 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: 01 07 00 F8 03 00 00 00 00 00 E4 0C F2 [21:49:09]RasterBufferAndPrint [21:49:09]line [21:49:09]line [21:49:09]line [21:49:09]line [21:49:09]line [21:49:09]written 0, free lines is 3306 [21:49:09]MH_Cut [21:49:09]Write to MH i2c: D1 01 00 FF 03 01 D4 [21:49:09]Write i2c OK [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: D1 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: D1 01 00 [21:49:09]MH_I2C_Read... [21:49:09]Read from MH i2c: D1 01 00 FF 03 00 D3 [21:49:09]Write to MH i2c: 01 00 00 00 04 04 [21:49:09]Write i2c OK [21:49:09]MH_I2C_Read... [21:49:09]OFD Sender: No OFD packet to send [21:49:09]*** Cut start [21:49:09]*** Partial cut [21:49:09]*** CUTSNS_PIN = 1 [21:49:09]*** CUTSNS_PIN = 0 [21:49:10]*** Brake cut motor [21:49:10]Read from MH i2c: 01 [21:49:10]MH_I2C_Read... [21:49:10]*** Stop cut motor [21:49:10]*** Cut end [21:49:10]Read from MH i2c: 01 07 00 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: 01 07 00 00 04 00 00 00 00 00 FF 0F 19 [21:49:10]process_action close_receipt done [21:49:10]requested_data is exist [21:49:10]produce_requested_data [21:49:10]requested_item fm.sn is exist - process it [21:49:10]wFMCommunicate request_size=4 [21:49:10]MH_SAM_APDU [21:49:10]CAPDU: 80 11 00 00 [21:49:10]Write to MH i2c: E2 08 00 01 04 80 11 00 00 00 00 00 00 7F [21:49:10]Write i2c OK [21:49:10]MH_I2C_Read... [21:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:10]Read from MH i2c: E2 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: E2 17 00 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: E2 17 00 01 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 D2 [21:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:49:10]wFMCommunicate OK [21:49:10]requested_item fd.num is exist - process it [21:49:10]SAM_PROTO_GetFieldsCounters [21:49:10]wFMCommunicate request_size=4 [21:49:10]MH_SAM_APDU [21:49:10]CAPDU: 80 13 00 00 [21:49:10]Write to MH i2c: E2 08 00 02 04 80 13 00 00 00 00 00 00 82 [21:49:10]Write i2c OK [21:49:10]MH_I2C_Read... [21:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:10]Read from MH i2c: E2 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: E2 62 00 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: E2 62 00 02 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [21:49:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:10]wFMCommunicate OK [21:49:10]SAM_PROTO_GetFieldsCounters done [21:49:10]requested_item shift.num is exist - process it [21:49:10]requested_item shift.opened is exist - process it [21:49:10]req_shift_opened [21:49:10]FM_GetShiftState [21:49:10]SAM_PROTO_GetShiftState [21:49:10]wFMCommunicate request_size=4 [21:49:10]MH_SAM_APDU [21:49:10]CAPDU: 80 13 01 00 [21:49:10]Write to MH i2c: E2 08 00 03 04 80 13 01 00 00 00 00 00 84 [21:49:10]Write i2c OK [21:49:10]MH_I2C_Read... [21:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:10]Read from MH i2c: E2 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: E2 0E 00 [21:49:10]MH_I2C_Read... [21:49:10]Read from MH i2c: E2 0E 00 03 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D3 [21:49:10]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:49:10]wFMCommunicate OK [21:49:10]SAM_PROTO_GetShiftState done [21:49:10]FM_GetShiftState done [21:49:10]req_shift_opened done [21:49:10]requested_item shift.open_date is exist - process it [21:49:10]req_shift_open_date [21:49:10]req_shift_open_date done [21:49:10]produce_requested_data done [21:49:10]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104059,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:49:10]process_action_free close_receipt [21:49:10]json_value_free [21:49:10]json_value_free done [21:49:10]process_json_proto returns [21:49:10]Send response to host [21:49:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104059,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:49:10]free response buf [21:49:10]execute_script done [21:49:10]execute_script returns [21:49:10]free content buf [21:49:10]Sock 7.Close socket [21:49:10]Sock 7.Thread stoped [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:23]accept exits with 9 [21:53:23]New connection [21:53:23]New thread 3066858852 created [21:53:23]Thread 3066715492 joined [21:53:23]Waiting for new connection... [21:53:23] Sock 9.Parse request [21:53:23]Sock 9.Check first char [21:53:23]Sock 9.First char is OK [21:53:23]request: POST /json_proto HTTP/1.0 [21:53:23]Method: POST [21:53:23]URL: /json_proto [21:53:23]Method is POST - this is cgi request [21:53:23]url: /json_proto [21:53:23]query_string will be loaded in cgi processing [21:53:23]execute_cgi json_proto POST (null) [21:53:23]execute_cgi path=json_proto method=POST [21:53:23]POST find Content-Length [21:53:23]Host: 172.17.38.133:8080 [21:53:23]Content-Length: 682 [21:53:23]Content-Type: application/json [21:53:23] [21:53:23]POST finish read [21:53:23]Found Content-Length = 682 [21:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:23]execute_script... [21:53: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)673442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:23]POST & json_proto [21:53:23]process_json_proto [21:53:23]json parsed OK: [21:53:23]protocol is kg_v1.0 [21:53:23]action value=close_receipt [21:53:23]process_action close_receipt [21:53:23]cmd_close_receipt [21:53:23]MH_GetDate [21:53:23]Write to MH i2c: F0 00 00 04 04 F7 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: F0 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: F0 09 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: F0 09 00 04 04 00 D4 A4 74 66 BD 8F 7C 64 7E [21:53:23]GetLastDocTimeStamp 1718920147 [21:53:23]current date 1718920404 [21:53:23]FM_GetShiftState [21:53:23]SAM_PROTO_GetShiftState [21:53:23]wFMCommunicate request_size=4 [21:53:23]MH_SAM_APDU [21:53:23]CAPDU: 80 13 01 00 [21:53:23]Write to MH i2c: E2 08 00 05 04 80 13 01 00 00 00 00 00 86 [21:53:23]Write i2c OK [21:53:23]MH_I2C_Read... [21:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:23]Read from MH i2c: E2 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 0E 00 [21:53:23]MH_I2C_Read... [21:53:23]Read from MH i2c: E2 0E 00 05 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 D5 [21:53:23]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:53:23]wFMCommunicate OK [21:53:23]SAM_PROTO_GetShiftState done [21:53:23]FM_GetShiftState done [21:53:23]opened in 1718843124 [21:53:23]opened+sec_in_day 1718929524 [21:53:23]quantity*price = 100064 [21:53:23]sum+1 = 100066 [21:53:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 245 20.06.2024 21:53 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104060 ФПД: 201877323169021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T215324&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104060&fm=201877323169021&tin=02508201610067®Number=0000000000092785&sum=100000 [21:53:24]StoreToDocumentArchive [21:53:24]shift 354 fd 104060 [21:53:24]save to /storage/0354/doc_00104060 [21:53:24]save last doc name /storage/0354/doc_00104060 to /storage/kkm_last_doc_name [21:53:24]save OK [21:53:24]Clear old archive folders... [21:53:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:24]tlvbuf is 01124E80 [21:53:24]SAM_PROTO_ClearQueue [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 09 00 00 [21:53:24]Write to MH i2c: E2 08 00 12 04 80 09 00 00 00 00 00 00 88 [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 03 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 03 00 12 04 00 90 00 8A [21:53:24]RAPDU: 90 00 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_ClearQueue done [21:53:24]KKMCreateOFDPacket [21:53:24]OFDProtocolAddRootSTLVToBuf [21:53:24]FM_MakeSignedData [21:53:24]FM_MakeSignedData [21:53:24]SAM_PROTO_SignData [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 0D 01 02 [21:53:24]Write to MH i2c: E2 08 00 13 04 80 0D 01 02 00 00 00 00 90 [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 03 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 03 00 13 04 00 90 00 8B [21:53:24]RAPDU: 90 00 [21:53:24]wFMCommunicate OK [21:53:24]wFMCommunicate request_size=255 [21:53:24]MH_SAM_APDU [21:53: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 D4 A4 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 96 01 00 35 04 06 00 B7 [21:53:24]Write to MH i2c: E2 02 01 14 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 D4 A4 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 96 01 00 35 04 06 00 B7 00 00 0E [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 03 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 03 00 14 04 00 90 00 8C [21:53:24]RAPDU: 90 00 [21:53:24]wFMCommunicate OK [21:53:24]wFMCommunicate request_size=10 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 0D 02 02 05 9B 3A 22 BC FD [21:53:24]Write to MH i2c: E2 0D 00 15 04 80 0D 02 02 05 00 9B 3A 22 BC FD 00 00 4D [21:53:24]OFD Sender: No OFD packet to send [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 03 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 03 00 15 04 00 90 00 8D [21:53:24]RAPDU: 90 00 [21:53:24]wFMCommunicate OK [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 0D 03 02 [21:53:24]Write to MH i2c: E2 08 00 16 04 80 0D 03 02 00 00 00 00 95 [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0B 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0B 00 16 04 00 7C 3F A9 7A 75 CC F8 FA 90 00 A7 [21:53:24]RAPDU: 7C 3F A9 7A 75 CC F8 FA 90 00 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_SignData done [21:53:24]FM_MakeSignedData done [21:53:24]CreateOFDProtocolMessage [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 11 00 00 [21:53:24]Write to MH i2c: E2 08 00 17 04 80 11 00 00 00 00 00 00 95 [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 17 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 17 00 17 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E8 [21:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:53:24]wFMCommunicate OK [21:53:24]CreateOFDProtocolMessage done [21:53:24]OFDSenderStorePacket 104060 [21:53:24]StoreOFDPacket docnum=104060 [21:53:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 18 B7 07 01 53 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 D4 A4 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 96 01 00 35 04 06 00 B7 9B 3A 22 BC FD 7C 3F A9 7A 75 CC F8 FA [21:53:24]CheckFolder [21:53:24]dirname=/storage/ofd_packets [21:53:24]CheckFolder done [21:53:24]ProducePacketName [21:53:24]name=ofd_packets/00104060 [21:53:24]NVStorageSaveData ofd_packets/00104060 [21:53:24]File name is /storage/ofd_packets/00104060 [21:53:24]Write 301 bytes [21:53:24]NVStorageSaveData done [21:53:24]OFDSenderStorePacket done [21:53:24]KKMCreateOFDPacket done [21:53:24]NVStorageSaveData kkm_last_timestamp [21:53:24]File name is /storage/kkm_last_timestamp [21:53:24]Write 4 bytes [21:53:24]NVStorageSaveData done [21:53:24]ExternCall_PrintAddStr [21:53:24]wPrintStart [21:53:24]Write to MH i2c: 01 00 00 18 04 1C [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: 01 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: 01 07 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: 01 07 00 18 04 00 00 00 00 00 FF 0F 31 [21:53:24]RasterBufferAndPrint [21:53:24]line Счет N : (1)673442 [21:53:24]line ИНН: 02508201610067 [21:53:24]line Контрольно-Кассовый Чек [21:53:24]line ПРОДАЖА [21:53:24]line ТРК (МРК, ГНК) : 32 [21:53:24]line Товар: 2710124130 [21:53:24]line Аи-92-К-5 [21:53:24]line 15.070 * 66.40 [21:53:24]line = 1000.65 [21:53:24]line НДС 12% НСП 1% [21:53:24]line > о реализуемом товаре [21:53:24]line ОКРУГЛЕНИЕ: -0.65 [21:53:24]line ИТОГО: 1000.00 [21:53:24]line Внесено: 1000.00 [21:53:24]line СДАЧА: 0.00 [21:53:24]line НСП 1% : 8.85 [21:53:24]line НДС 12% : 106.26 [21:53:24]line Наличными: 1000.00 [21:53:24]line Безнал.: 0.00 [21:53:24]line Место: АЗС № 120 "Партнер Нефть" [21:53:24]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [21:53:24]line СНО: Общий режим [21:53:24]line Чек 245 20.06.2024 21:53 [21:53:24]line Смена: 354 ФФД: 1.0 [21:53:25]line ЗНМ: 0300000164 [21:53:25]line РНМ: 0000000000092785 [21:53:25]line Версия ККМ: 001 [21:53:25]line ФМ: 0000000000875093 [21:53:25]line ФД: 104060 [21:53:25]line ФПД: 201877323169021 [21:53:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T215324&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104060&fm=201877323169021&tin=02508201610067®Number=0000000000092785&sum=100000 [21:53:25]OFD Sender: Processing packet 104060 [packets to send 17, broken 16] [21:53:25]ProducePacketName [21:53:25]name=ofd_packets/00104060 [21:53:25]OFD Sender: To server: pG, [21:53:25]CommunicateWithHost lk.salyk.kg:30040 [21:53:25]ConnectInit lk.salyk.kg [21:53:25]written 0, free lines is 4095 [21:53:25]Connected sock=10 [21:53:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 18 B7 07 01 53 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 D4 A4 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 96 01 00 35 04 06 00 B7 9B 3A 22 BC FD 7C 3F A9 7A 75 CC F8 FA [21:53:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 AB 4C 47 00 4E 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7C 96 01 00 F4 03 04 00 58 4B 74 66 B6 04 01 00 00 DC FB 4C F7 52 F9 B3 96 [21:53:25]CommunicateWithHost err = 0 [21:53:25]CheckOFDResponse [21:53:25]1017 (14) - 77093643461234 [21:53:25]1041 (16) - 0000000000875093 [21:53:25]1040 (4) - 104060 [21:53:25]1012 (4) - 20.06.2024 15:31 [21:53:25]1206 (1) - 0 [21:53:25]OFD Sender: Remove packet 104060 [21:53:25]ProducePacketName [21:53:25]name=ofd_packets/00104060 [21:53:25]NVStorageDeleteData [21:53:25]Write to MH i2c: 01 00 00 43 04 47 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: 01 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: 01 07 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: 01 07 00 43 04 00 00 00 00 00 E4 0C 3E [21:53:25]RasterBufferAndPrint [21:53:25]line [21:53:25]line [21:53:25]line [21:53:25]line [21:53:25]line [21:53:25]written 0, free lines is 3306 [21:53:25]MH_Cut [21:53:25]Write to MH i2c: D1 01 00 4A 04 01 20 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: D1 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: D1 01 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: D1 01 00 4A 04 00 1F [21:53:25]Write to MH i2c: 01 00 00 4B 04 4F [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:26]OFD Sender: No OFD packet to send [21:53:26]*** Cut start [21:53:26]*** Partial cut [21:53:26]*** CUTSNS_PIN = 1 [21:53:26]*** CUTSNS_PIN = 0 [21:53:26]*** Brake cut motor [21:53:27]Read from MH i2c: 01 [21:53:27]MH_I2C_Read... [21:53:27]*** Stop cut motor [21:53:27]*** Cut end [21:53:27]Read from MH i2c: 01 07 00 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: 01 07 00 4B 04 00 00 00 00 00 FF 0F 64 [21:53:27]process_action close_receipt done [21:53:27]requested_data is exist [21:53:27]produce_requested_data [21:53:27]requested_item fm.sn is exist - process it [21:53:27]wFMCommunicate request_size=4 [21:53:27]MH_SAM_APDU [21:53:27]CAPDU: 80 11 00 00 [21:53:27]Write to MH i2c: E2 08 00 4C 04 80 11 00 00 00 00 00 00 CA [21:53:27]Write i2c OK [21:53:27]MH_I2C_Read... [21:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:27]Read from MH i2c: E2 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: E2 17 00 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: E2 17 00 4C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1D [21:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [21:53:27]wFMCommunicate OK [21:53:27]requested_item fd.num is exist - process it [21:53:27]SAM_PROTO_GetFieldsCounters [21:53:27]wFMCommunicate request_size=4 [21:53:27]MH_SAM_APDU [21:53:27]CAPDU: 80 13 00 00 [21:53:27]Write to MH i2c: E2 08 00 4D 04 80 13 00 00 00 00 00 00 CD [21:53:27]Write i2c OK [21:53:27]MH_I2C_Read... [21:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:27]Read from MH i2c: E2 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: E2 62 00 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: E2 62 00 4D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [21:53:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:27]wFMCommunicate OK [21:53:27]SAM_PROTO_GetFieldsCounters done [21:53:27]requested_item shift.num is exist - process it [21:53:27]requested_item shift.opened is exist - process it [21:53:27]req_shift_opened [21:53:27]FM_GetShiftState [21:53:27]SAM_PROTO_GetShiftState [21:53:27]wFMCommunicate request_size=4 [21:53:27]MH_SAM_APDU [21:53:27]CAPDU: 80 13 01 00 [21:53:27]Write to MH i2c: E2 08 00 4E 04 80 13 01 00 00 00 00 00 CF [21:53:27]Write i2c OK [21:53:27]MH_I2C_Read... [21:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:27]Read from MH i2c: E2 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: E2 0E 00 [21:53:27]MH_I2C_Read... [21:53:27]Read from MH i2c: E2 0E 00 4E 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1E [21:53:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [21:53:27]wFMCommunicate OK [21:53:27]SAM_PROTO_GetShiftState done [21:53:27]FM_GetShiftState done [21:53:27]req_shift_opened done [21:53:27]requested_item shift.open_date is exist - process it [21:53:27]req_shift_open_date [21:53:27]req_shift_open_date done [21:53:27]produce_requested_data done [21:53:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104060,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [21:53:27]process_action_free close_receipt [21:53:27]json_value_free [21:53:27]json_value_free done [21:53:27]process_json_proto returns [21:53:27]Send response to host [21:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104060,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [21:53:27]free response buf [21:53:27]execute_script done [21:53:27]execute_script returns [21:53:27]free content buf [21:53:27]Sock 9.Close socket [21:53:27]Sock 9.Thread stoped [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:37]ConnectInit Can't connect to host [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:03]accept exits with 7 [22:02:03]New connection [22:02:03]New thread 3066715492 created [22:02:03]Thread 3066858852 joined [22:02:03]Waiting for new connection... [22:02:03] Sock 7.Parse request [22:02:03]Sock 7.Check first char [22:02:03]Sock 7.First char is OK [22:02:03]request: POST /json_proto HTTP/1.0 [22:02:03]Method: POST [22:02:03]URL: /json_proto [22:02:03]Method is POST - this is cgi request [22:02:03]url: /json_proto [22:02:03]query_string will be loaded in cgi processing [22:02:03]execute_cgi json_proto POST (null) [22:02:03]execute_cgi path=json_proto method=POST [22:02:03]POST find Content-Length [22:02:03]Host: 172.17.38.133:8080 [22:02:03]Content-Length: 811 [22:02:03]Content-Type: application/json [22:02:03] [22:02:03]POST finish read [22:02:03]Found Content-Length = 811 [22:02:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:03]execute_script... [22:02: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)673443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 137.180, "sum" : 10000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 10000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:03]POST & json_proto [22:02:03]process_json_proto [22:02:03]json parsed OK: [22:02:03]protocol is kg_v1.0 [22:02:03]action value=close_receipt [22:02:03]process_action close_receipt [22:02:03]cmd_close_receipt [22:02:03]MH_GetDate [22:02:03]Write to MH i2c: F0 00 00 4F 04 42 [22:02:03]Write i2c OK [22:02:03]MH_I2C_Read... [22:02:03]Read from MH i2c: F0 [22:02:03]MH_I2C_Read... [22:02:03]Read from MH i2c: F0 09 00 [22:02:03]MH_I2C_Read... [22:02:03]Read from MH i2c: F0 09 00 4F 04 00 DC A6 74 66 BD 8F 7C 64 D3 [22:02:03]GetLastDocTimeStamp 1718920404 [22:02:03]current date 1718920924 [22:02:03]FM_GetShiftState [22:02:03]SAM_PROTO_GetShiftState [22:02:03]wFMCommunicate request_size=4 [22:02:03]MH_SAM_APDU [22:02:03]CAPDU: 80 13 01 00 [22:02:03]Write to MH i2c: E2 08 00 50 04 80 13 01 00 00 00 00 00 D1 [22:02:03]Write i2c OK [22:02:03]MH_I2C_Read... [22:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:03]Read from MH i2c: E2 [22:02:03]MH_I2C_Read... [22:02:03]Read from MH i2c: E2 0E 00 [22:02:03]MH_I2C_Read... [22:02:03]Read from MH i2c: E2 0E 00 50 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 20 [22:02:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:02:03]wFMCommunicate OK [22:02:03]SAM_PROTO_GetShiftState done [22:02:03]FM_GetShiftState done [22:02:03]opened in 1718843124 [22:02:03]opened+sec_in_day 1718929524 [22:02:03]quantity*price = 1000042 [22:02:03]sum+1 = 1000043 [22:02:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10000.42 НСП 1% : 88.50 НДС 12% : 1061.99 Наличными: 0.00 Безнал.: 10000.42 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 246 20.06.2024 22:02 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104061 ФПД: 161685252510734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220204&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104061&fm=161685252510734&tin=02508201610067®Number=0000000000092785&sum=1000042 [22:02:04]StoreToDocumentArchive [22:02:04]shift 354 fd 104061 [22:02:04]save to /storage/0354/doc_00104061 [22:02:04]save last doc name /storage/0354/doc_00104061 to /storage/kkm_last_doc_name [22:02:04]save OK [22:02:04]Clear old archive folders... [22:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:02:04]tlvbuf is 010EB5F0 [22:02:04]SAM_PROTO_ClearQueue [22:02:04]wFMCommunicate request_size=4 [22:02:04]MH_SAM_APDU [22:02:04]CAPDU: 80 09 00 00 [22:02:04]Write to MH i2c: E2 08 00 5D 04 80 09 00 00 00 00 00 00 D3 [22:02:04]Write i2c OK [22:02:04]MH_I2C_Read... [22:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:04]Read from MH i2c: E2 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 03 00 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 03 00 5D 04 00 90 00 D5 [22:02:04]RAPDU: 90 00 [22:02:04]wFMCommunicate OK [22:02:04]SAM_PROTO_ClearQueue done [22:02:04]KKMCreateOFDPacket [22:02:04]OFDProtocolAddRootSTLVToBuf [22:02:04]FM_MakeSignedData [22:02:04]FM_MakeSignedData [22:02:04]SAM_PROTO_SignData [22:02:04]wFMCommunicate request_size=4 [22:02:04]MH_SAM_APDU [22:02:04]CAPDU: 80 0D 01 02 [22:02:04]Write to MH i2c: E2 08 00 5E 04 80 0D 01 02 00 00 00 00 DB [22:02:04]Write i2c OK [22:02:04]MH_I2C_Read... [22:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:04]Read from MH i2c: E2 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 03 00 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 03 00 5E 04 00 90 00 D6 [22:02:04]RAPDU: 90 00 [22:02:04]wFMCommunicate OK [22:02:04]wFMCommunicate request_size=255 [22:02:04]MH_SAM_APDU [22:02: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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 DC A6 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 96 01 00 35 04 06 00 [22:02:04]Write to MH i2c: E2 02 01 5F 04 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 DC A6 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 96 01 00 35 04 06 00 00 00 D5 [22:02:04]Write i2c OK [22:02:04]MH_I2C_Read... [22:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:04]Read from MH i2c: E2 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 03 00 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 03 00 5F 04 00 90 00 D7 [22:02:04]RAPDU: 90 00 [22:02:04]wFMCommunicate OK [22:02:04]wFMCommunicate request_size=11 [22:02:04]MH_SAM_APDU [22:02:04]CAPDU: 80 0D 02 02 06 93 0D 48 0A 94 0E [22:02:04]Write to MH i2c: E2 0E 00 60 04 80 0D 02 02 06 00 93 0D 48 0A 94 0E 00 00 7E [22:02:04]Write i2c OK [22:02:04]MH_I2C_Read... [22:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:04]Read from MH i2c: E2 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 03 00 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 03 00 60 04 00 90 00 D8 [22:02:04]RAPDU: 90 00 [22:02:04]wFMCommunicate OK [22:02:04]wFMCommunicate request_size=4 [22:02:04]MH_SAM_APDU [22:02:04]CAPDU: 80 0D 03 02 [22:02:04]Write to MH i2c: E2 08 00 61 04 80 0D 03 02 00 00 00 00 E0 [22:02:04]Write i2c OK [22:02:04]MH_I2C_Read... [22:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:04]Read from MH i2c: E2 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 0B 00 [22:02:04]MH_I2C_Read... [22:02:04]Read from MH i2c: E2 0B 00 61 04 00 6B D4 BD 70 C1 CD 0E F9 90 00 E2 [22:02:04]RAPDU: 6B D4 BD 70 C1 CD 0E F9 90 00 [22:02:04]wFMCommunicate OK [22:02:04]SAM_PROTO_SignData done [22:02:04]FM_MakeSignedData done [22:02:04]CreateOFDProtocolMessage [22:02:04]wFMCommunicate request_size=4 [22:02:04]MH_SAM_APDU [22:02:04]CAPDU: 80 11 00 00 [22:02:04]Write to MH i2c: E2 08 00 62 04 80 11 00 00 00 00 00 00 E0 [22:02:04]Write i2c OK [22:02:04]MH_I2C_Read... [22:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:05]Read from MH i2c: E2 [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: E2 17 00 [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: E2 17 00 62 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 33 [22:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:02:05]wFMCommunicate OK [22:02:05]CreateOFDProtocolMessage done [22:02:05]OFDSenderStorePacket 104061 [22:02:05]StoreOFDPacket docnum=104061 [22:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 A2 21 08 01 81 C1 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 DC A6 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 96 01 00 35 04 06 00 93 0D 48 0A 94 0E 6B D4 BD 70 C1 CD 0E F9 [22:02:05]CheckFolder [22:02:05]dirname=/storage/ofd_packets [22:02:05]CheckFolder done [22:02:05]ProducePacketName [22:02:05]name=ofd_packets/00104061 [22:02:05]NVStorageSaveData ofd_packets/00104061 [22:02:05]File name is /storage/ofd_packets/00104061 [22:02:05]Write 302 bytes [22:02:05]NVStorageSaveData done [22:02:05]OFDSenderStorePacket done [22:02:05]KKMCreateOFDPacket done [22:02:05]NVStorageSaveData kkm_last_timestamp [22:02:05]File name is /storage/kkm_last_timestamp [22:02:05]Write 4 bytes [22:02:05]NVStorageSaveData done [22:02:05]ExternCall_PrintAddStr [22:02:05]wPrintStart [22:02:05]Write to MH i2c: 01 00 00 63 04 67 [22:02:05]Write i2c OK [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: 01 [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: 01 07 00 [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: 01 07 00 63 04 00 00 00 00 00 FF 0F 7C [22:02:05]RasterBufferAndPrint [22:02:05]line Счет N : (1)673443 [22:02:05]line ИНН: 02508201610067 [22:02:05]line Контрольно-Кассовый Чек [22:02:05]line ПРОДАЖА [22:02:05]line ТРК (МРК, ГНК) : 11 [22:02:05]line Товар: 2710194210 [22:02:05]line ДТ(л)-К-5 [22:02:05]line 137.180 * 72.90 [22:02:05]line = 10000.42 [22:02:05]line НДС 12% НСП 1% [22:02:05]line > о реализуемом товаре [22:02:05]line ИТОГО: 10000.42 [22:02:05]line НСП 1% : 88.50 [22:02:05]line НДС 12% : 1061.99 [22:02:05]line Наличными: 0.00 [22:02:05]line Безнал.: 10000.42 [22:02:05]line Место: АЗС № 120 "Партнер Нефть" [22:02:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:02:05]line СНО: Общий режим [22:02:05]line Чек 246 20.06.2024 22:02 [22:02:05]line Смена: 354 ФФД: 1.0 [22:02:05]line ЗНМ: 0300000164 [22:02:05]line РНМ: 0000000000092785 [22:02:05]line Версия ККМ: 001 [22:02:05]line Платежная система: O! деньги [22:02:05]line ФМ: 0000000000875093 [22:02:05]line ФД: 104061 [22:02:05]line ФПД: 161685252510734 [22:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220204&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104061&fm=161685252510734&tin=02508201610067®Number=0000000000092785&sum=1000042 [22:02:05]OFD Sender: Processing packet 104061 [packets to send 17, broken 16] [22:02:05]ProducePacketName [22:02:05]name=ofd_packets/00104061 [22:02:05]OFD Sender: To server: pG, [22:02:05]CommunicateWithHost lk.salyk.kg:30040 [22:02:05]ConnectInit lk.salyk.kg [22:02:05]written 0, free lines is 4095 [22:02:05]Connected sock=10 [22:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 A2 21 08 01 81 C1 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 DC 17 02 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A 42 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 DC A6 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 96 01 00 35 04 06 00 93 0D 48 0A 94 0E 6B D4 BD 70 C1 CD 0E F9 [22:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 CA 8E 47 00 E2 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7D 96 01 00 F4 03 04 00 60 4D 74 66 B6 04 01 00 00 2C 9F 72 4A E1 F0 23 CE [22:02:05]CommunicateWithHost err = 0 [22:02:05]CheckOFDResponse [22:02:05]1017 (14) - 77093643461234 [22:02:05]1041 (16) - 0000000000875093 [22:02:05]1040 (4) - 104061 [22:02:05]1012 (4) - 20.06.2024 15:40 [22:02:05]1206 (1) - 0 [22:02:05]OFD Sender: Remove packet 104061 [22:02:05]ProducePacketName [22:02:05]name=ofd_packets/00104061 [22:02:05]NVStorageDeleteData [22:02:05]Write to MH i2c: 01 00 00 8D 04 91 [22:02:05]Write i2c OK [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: 01 [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: 01 07 00 [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: 01 07 00 8D 04 00 00 00 00 00 F0 0C 94 [22:02:05]RasterBufferAndPrint [22:02:05]line [22:02:05]line [22:02:05]line [22:02:05]line [22:02:05]line [22:02:05]written 0, free lines is 3317 [22:02:05]MH_Cut [22:02:05]Write to MH i2c: D1 01 00 94 04 01 6A [22:02:05]Write i2c OK [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: D1 [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: D1 01 00 [22:02:05]MH_I2C_Read... [22:02:05]Read from MH i2c: D1 01 00 94 04 00 69 [22:02:05]Write to MH i2c: 01 00 00 95 04 99 [22:02:05]Write i2c OK [22:02:05]MH_I2C_Read... [22:02:06]OFD Sender: No OFD packet to send [22:02:06]*** Cut start [22:02:06]*** Partial cut [22:02:06]*** CUTSNS_PIN = 1 [22:02:06]*** CUTSNS_PIN = 0 [22:02:06]*** Brake cut motor [22:02:07]Read from MH i2c: 01 [22:02:07]MH_I2C_Read... [22:02:07]*** Stop cut motor [22:02:07]*** Cut end [22:02:07]Read from MH i2c: 01 07 00 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 FF 0F AE [22:02:07]process_action close_receipt done [22:02:07]requested_data is exist [22:02:07]produce_requested_data [22:02:07]requested_item fm.sn is exist - process it [22:02:07]wFMCommunicate request_size=4 [22:02:07]MH_SAM_APDU [22:02:07]CAPDU: 80 11 00 00 [22:02:07]Write to MH i2c: E2 08 00 96 04 80 11 00 00 00 00 00 00 14 [22:02:07]Write i2c OK [22:02:07]MH_I2C_Read... [22:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:07]Read from MH i2c: E2 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: E2 17 00 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: E2 17 00 96 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 67 [22:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:02:07]wFMCommunicate OK [22:02:07]requested_item fd.num is exist - process it [22:02:07]SAM_PROTO_GetFieldsCounters [22:02:07]wFMCommunicate request_size=4 [22:02:07]MH_SAM_APDU [22:02:07]CAPDU: 80 13 00 00 [22:02:07]Write to MH i2c: E2 08 00 97 04 80 13 00 00 00 00 00 00 17 [22:02:07]Write i2c OK [22:02:07]MH_I2C_Read... [22:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:07]Read from MH i2c: E2 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: E2 62 00 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: E2 62 00 97 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [22:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:07]wFMCommunicate OK [22:02:07]SAM_PROTO_GetFieldsCounters done [22:02:07]requested_item shift.num is exist - process it [22:02:07]requested_item shift.opened is exist - process it [22:02:07]req_shift_opened [22:02:07]FM_GetShiftState [22:02:07]SAM_PROTO_GetShiftState [22:02:07]wFMCommunicate request_size=4 [22:02:07]MH_SAM_APDU [22:02:07]CAPDU: 80 13 01 00 [22:02:07]Write to MH i2c: E2 08 00 98 04 80 13 01 00 00 00 00 00 19 [22:02:07]Write i2c OK [22:02:07]MH_I2C_Read... [22:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:07]Read from MH i2c: E2 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: E2 0E 00 [22:02:07]MH_I2C_Read... [22:02:07]Read from MH i2c: E2 0E 00 98 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 68 [22:02:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:02:07]wFMCommunicate OK [22:02:07]SAM_PROTO_GetShiftState done [22:02:07]FM_GetShiftState done [22:02:07]req_shift_opened done [22:02:07]requested_item shift.open_date is exist - process it [22:02:07]req_shift_open_date [22:02:07]req_shift_open_date done [22:02:07]produce_requested_data done [22:02:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104061,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [22:02:07]process_action_free close_receipt [22:02:07]json_value_free [22:02:07]json_value_free done [22:02:07]process_json_proto returns [22:02:07]Send response to host [22:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104061,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [22:02:07]free response buf [22:02:07]execute_script done [22:02:07]execute_script returns [22:02:07]free content buf [22:02:07]Sock 7.Close socket [22:02:07]Sock 7.Thread stoped [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:44]accept exits with 9 [22:03:44]New connection [22:03:44]New thread 3066858852 created [22:03:44]Thread 3066715492 joined [22:03:44]Waiting for new connection... [22:03:44] Sock 9.Parse request [22:03:44]Sock 9.Check first char [22:03:44]Sock 9.First char is OK [22:03:44]request: POST /json_proto HTTP/1.0 [22:03:44]Method: POST [22:03:44]URL: /json_proto [22:03:44]Method is POST - this is cgi request [22:03:44]url: /json_proto [22:03:44]query_string will be loaded in cgi processing [22:03:44]execute_cgi json_proto POST (null) [22:03:44]execute_cgi path=json_proto method=POST [22:03:44]POST find Content-Length [22:03:44]Host: 172.17.38.133:8080 [22:03:44]Content-Length: 1196 [22:03:44]Content-Type: application/json [22:03:44] [22:03:44]POST finish read [22:03:44]Found Content-Length = 1196 [22: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673445\u000A20.06.2024 21:40\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 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.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\u000A3890296\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:44]execute_script... [22: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673445\u000A20.06.2024 21:40\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 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.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\u000A3890296\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:44]POST & json_proto [22:03:44]process_json_proto [22:03:44]json parsed OK: [22:03:44]protocol is kg_v1.0 [22:03:44]action value=print_text [22:03:44]process_action print_text [22:03:44]cmd_print_text [22:03:44]ExternCall_PrintAddStr [22:03:44]wPrintStart [22:03:44]Write to MH i2c: 01 00 00 99 04 9D [22:03:44]Write i2c OK [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: 01 [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: 01 07 00 [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: 01 07 00 99 04 00 00 00 00 00 FF 0F B2 [22:03:44]RasterBufferAndPrint [22:03:44]line *****ТОВАРНЫЙ ЧЕК***** [22:03:44]line АЗС 120 [22:03:44]line Партнер нефть [22:03:44]line 02508201610067 [22:03:44]line Кассир : Дуйшенбиев А. [22:03:44]line Счет N : (1)673445 [22:03:44]line 20.06.2024 21:40 [22:03:44]line ПРОДАЖА [22:03:44]line ТРК (МРК, ГНК): 32 [22:03:44]line Вид ГСМ : 2710124130 [22:03:44]line Аи-92-К-5 [22:03:44]line 10.000 x 66.40 [22:03:44]line ИТОГ: 664.00 [22:03:44]line Тип оплаты: Талоны: Партнер нефть [22:03:44]line 3890296 [22:03:44]line ______________________ [22:03:44]line (подпись) [22:03:44]written 0, free lines is 4095 [22:03:44]Write to MH i2c: 01 00 00 AD 04 B1 [22:03:44]Write i2c OK [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: 01 [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: 01 07 00 [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: 01 07 00 AD 04 00 00 00 00 00 13 0E D9 [22:03:44]RasterBufferAndPrint [22:03:44]line [22:03:44]line [22:03:44]line [22:03:44]line [22:03:44]line [22:03:44]written 0, free lines is 3605 [22:03:44]MH_Cut [22:03:44]Write to MH i2c: D1 01 00 B4 04 01 8A [22:03:44]Write i2c OK [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: D1 [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: D1 01 00 [22:03:44]MH_I2C_Read... [22:03:44]Read from MH i2c: D1 01 00 B4 04 00 89 [22:03:44]Write to MH i2c: 01 00 00 B5 04 B9 [22:03:44]Write i2c OK [22:03:44]MH_I2C_Read... [22:03:45]*** Cut start [22:03:45]*** Partial cut [22:03:45]*** CUTSNS_PIN = 1 [22:03:45]*** CUTSNS_PIN = 0 [22:03:45]*** Brake cut motor [22:03:46]Read from MH i2c: 01 [22:03:46]MH_I2C_Read... [22:03:46]*** Stop cut motor [22:03:46]*** Cut end [22:03:46]Read from MH i2c: 01 07 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: 01 07 00 B5 04 00 00 00 00 00 FF 0F CE [22:03:46]process_action print_text done [22:03:46]requested_data is exist [22:03:46]produce_requested_data [22:03:46]requested_item fm.sn is exist - process it [22:03:46]wFMCommunicate request_size=4 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 11 00 00 [22:03:46]Write to MH i2c: E2 08 00 B6 04 80 11 00 00 00 00 00 00 34 [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 17 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 17 00 B6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [22:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:03:46]wFMCommunicate OK [22:03:46]requested_item fd.num is exist - process it [22:03:46]SAM_PROTO_GetFieldsCounters [22:03:46]wFMCommunicate request_size=4 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 13 00 00 [22:03:46]Write to MH i2c: E2 08 00 B7 04 80 13 00 00 00 00 00 00 37 [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 62 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 62 00 B7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [22:03:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:46]wFMCommunicate OK [22:03:46]SAM_PROTO_GetFieldsCounters done [22:03:46]requested_item shift.num is exist - process it [22:03:46]requested_item shift.opened is exist - process it [22:03:46]req_shift_opened [22:03:46]FM_GetShiftState [22:03:46]SAM_PROTO_GetShiftState [22:03:46]wFMCommunicate request_size=4 [22:03:46]MH_SAM_APDU [22:03:46]CAPDU: 80 13 01 00 [22:03:46]Write to MH i2c: E2 08 00 B8 04 80 13 01 00 00 00 00 00 39 [22:03:46]Write i2c OK [22:03:46]MH_I2C_Read... [22:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:46]Read from MH i2c: E2 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 0E 00 [22:03:46]MH_I2C_Read... [22:03:46]Read from MH i2c: E2 0E 00 B8 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 88 [22:03:46]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:03:46]wFMCommunicate OK [22:03:46]SAM_PROTO_GetShiftState done [22:03:46]FM_GetShiftState done [22:03:46]req_shift_opened done [22:03:46]requested_item shift.open_date is exist - process it [22:03:46]req_shift_open_date [22:03:46]req_shift_open_date done [22:03:46]produce_requested_data done [22:03:46]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104061,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [22:03:46]process_action_free print_text [22:03:46]json_value_free [22:03:46]json_value_free done [22:03:46]process_json_proto returns [22:03:46]Send response to host [22:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104061,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [22:03:46]free response buf [22:03:46]execute_script done [22:03:46]execute_script returns [22:03:46]free content buf [22:03:46]Sock 9.Close socket [22:03:46]Sock 9.Thread stoped [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:50]accept exits with 7 [22:04:50]New connection [22:04:50]New thread 3066715492 created [22:04:50]Thread 3066858852 joined [22:04:50]Waiting for new connection... [22:04:50] Sock 7.Parse request [22:04:50]Sock 7.Check first char [22:04:50]Sock 7.First char is OK [22:04:50]request: POST /json_proto HTTP/1.0 [22:04:50]Method: POST [22:04:50]URL: /json_proto [22:04:50]Method is POST - this is cgi request [22:04:50]url: /json_proto [22:04:50]query_string will be loaded in cgi processing [22:04:50]execute_cgi json_proto POST (null) [22:04:50]execute_cgi path=json_proto method=POST [22:04:50]POST find Content-Length [22:04:50]Host: 172.17.38.133:8080 [22:04:50]Content-Length: 1212 [22:04:50]Content-Type: application/json [22:04:50] [22:04:50]POST finish read [22:04:50]Found Content-Length = 1212 [22:04: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673444\u000A20.06.2024 21:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.21\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\u000A76492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:50]execute_script... [22:04: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673444\u000A20.06.2024 21:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 68.590 x 72.90\u000A\u0418\u0422\u041E\u0413: 5000.21\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\u000A76492\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:50]POST & json_proto [22:04:50]process_json_proto [22:04:50]json parsed OK: [22:04:50]protocol is kg_v1.0 [22:04:50]action value=print_text [22:04:50]process_action print_text [22:04:50]cmd_print_text [22:04:50]ExternCall_PrintAddStr [22:04:50]wPrintStart [22:04:50]Write to MH i2c: 01 00 00 B9 04 BD [22:04:50]Write i2c OK [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 07 00 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 FF 0F D2 [22:04:50]RasterBufferAndPrint [22:04:50]line *****ТОВАРНЫЙ ЧЕК***** [22:04:50]line АЗС 120 [22:04:50]line Партнер нефть [22:04:50]line 02508201610067 [22:04:50]line Кассир : Дуйшенбиев А. [22:04:50]line Счет N : (1)673444 [22:04:50]line 20.06.2024 21:42 [22:04:50]line ПРОДАЖА [22:04:50]line ТРК (МРК, ГНК): 11 [22:04:50]line Вид ГСМ : 2710194210 [22:04:50]line ДТ(л)-К-5 [22:04:50]line 68.590 x 72.90 [22:04:50]line ИТОГ: 5000.21 [22:04:50]line Тип оплаты: Талоны: Топливная Карта [22:04:50]line 76492 [22:04:50]line ______________________ [22:04:50]line (подпись) [22:04:50]written 0, free lines is 4095 [22:04:50]Write to MH i2c: 01 00 00 CD 04 D1 [22:04:50]Write i2c OK [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 07 00 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 07 00 CD 04 00 00 00 00 00 11 0E F7 [22:04:50]RasterBufferAndPrint [22:04:50]line [22:04:50]line [22:04:50]line [22:04:50]line [22:04:50]line [22:04:50]written 0, free lines is 3602 [22:04:50]MH_Cut [22:04:50]Write to MH i2c: D1 01 00 D4 04 01 AA [22:04:50]Write i2c OK [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: D1 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: D1 01 00 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: D1 01 00 D4 04 00 A9 [22:04:50]Write to MH i2c: 01 00 00 D5 04 D9 [22:04:50]Write i2c OK [22:04:50]MH_I2C_Read... [22:04:51]OFD Sender: No OFD packet to send [22:04:51]*** Cut start [22:04:51]*** Partial cut [22:04:51]*** CUTSNS_PIN = 1 [22:04:51]*** CUTSNS_PIN = 0 [22:04:51]*** Brake cut motor [22:04:51]Read from MH i2c: 01 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: 01 07 00 [22:04:51]MH_I2C_Read... [22:04:51]*** Stop cut motor [22:04:51]*** Cut end [22:04:51]Read from MH i2c: 01 07 00 D5 04 00 00 00 00 00 FF 0F EE [22:04:51]process_action print_text done [22:04:51]requested_data is exist [22:04:51]produce_requested_data [22:04:51]requested_item fm.sn is exist - process it [22:04:51]wFMCommunicate request_size=4 [22:04:51]MH_SAM_APDU [22:04:52]CAPDU: 80 11 00 00 [22:04:52]Write to MH i2c: E2 08 00 D6 04 80 11 00 00 00 00 00 00 54 [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 17 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 17 00 D6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A7 [22:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:04:52]wFMCommunicate OK [22:04:52]requested_item fd.num is exist - process it [22:04:52]SAM_PROTO_GetFieldsCounters [22:04:52]wFMCommunicate request_size=4 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 13 00 00 [22:04:52]Write to MH i2c: E2 08 00 D7 04 80 13 00 00 00 00 00 00 57 [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 62 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 62 00 D7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [22:04:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:52]wFMCommunicate OK [22:04:52]SAM_PROTO_GetFieldsCounters done [22:04:52]requested_item shift.num is exist - process it [22:04:52]requested_item shift.opened is exist - process it [22:04:52]req_shift_opened [22:04:52]FM_GetShiftState [22:04:52]SAM_PROTO_GetShiftState [22:04:52]wFMCommunicate request_size=4 [22:04:52]MH_SAM_APDU [22:04:52]CAPDU: 80 13 01 00 [22:04:52]Write to MH i2c: E2 08 00 D8 04 80 13 01 00 00 00 00 00 59 [22:04:52]Write i2c OK [22:04:52]MH_I2C_Read... [22:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:52]Read from MH i2c: E2 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 0E 00 [22:04:52]MH_I2C_Read... [22:04:52]Read from MH i2c: E2 0E 00 D8 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A8 [22:04:52]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:04:52]wFMCommunicate OK [22:04:52]SAM_PROTO_GetShiftState done [22:04:52]FM_GetShiftState done [22:04:52]req_shift_opened done [22:04:52]requested_item shift.open_date is exist - process it [22:04:52]req_shift_open_date [22:04:52]req_shift_open_date done [22:04:52]produce_requested_data done [22:04:52]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104061,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [22:04:52]process_action_free print_text [22:04:52]json_value_free [22:04:52]json_value_free done [22:04:52]process_json_proto returns [22:04:52]Send response to host [22:04:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104061,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [22:04:52]free response buf [22:04:52]execute_script done [22:04:52]execute_script returns [22:04:52]free content buf [22:04:52]Sock 7.Close socket [22:04:52]Sock 7.Thread stoped [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:13]accept exits with 9 [22:07:13]New connection [22:07:13]New thread 3066858852 created [22:07:13]Thread 3066715492 joined [22:07:13]Waiting for new connection... [22:07:13] Sock 9.Parse request [22:07:13]Sock 9.Check first char [22:07:13]Sock 9.First char is OK [22:07:13]request: POST /json_proto HTTP/1.0 [22:07:13]Method: POST [22:07:13]URL: /json_proto [22:07:13]Method is POST - this is cgi request [22:07:13]url: /json_proto [22:07:13]query_string will be loaded in cgi processing [22:07:13]execute_cgi json_proto POST (null) [22:07:13]execute_cgi path=json_proto method=POST [22:07:13]POST find Content-Length [22:07:13]Host: 172.17.38.133:8080 [22:07:13]Content-Length: 1212 [22:07:13]Content-Type: application/json [22:07:13] [22:07:13]POST finish read [22:07:13]Found Content-Length = 1212 [22:07: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673446\u000A20.06.2024 21:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 54.870 x 72.90\u000A\u0418\u0422\u041E\u0413: 4000.02\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\u000A76490\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:13]execute_script... [22:07: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673446\u000A20.06.2024 21:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 54.870 x 72.90\u000A\u0418\u0422\u041E\u0413: 4000.02\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\u000A76490\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:13]POST & json_proto [22:07:13]process_json_proto [22:07:13]json parsed OK: [22:07:13]protocol is kg_v1.0 [22:07:13]action value=print_text [22:07:13]process_action print_text [22:07:13]cmd_print_text [22:07:13]ExternCall_PrintAddStr [22:07:13]wPrintStart [22:07:13]Write to MH i2c: 01 00 00 D9 04 DD [22:07:13]Write i2c OK [22:07:13]MH_I2C_Read... [22:07:13]Read from MH i2c: 01 [22:07:13]MH_I2C_Read... [22:07:13]Read from MH i2c: 01 07 00 [22:07:13]MH_I2C_Read... [22:07:13]Read from MH i2c: 01 07 00 D9 04 00 00 00 00 00 FF 0F F2 [22:07:13]RasterBufferAndPrint [22:07:13]line *****ТОВАРНЫЙ ЧЕК***** [22:07:13]line АЗС 120 [22:07:13]line Партнер нефть [22:07:13]line 02508201610067 [22:07:13]line Кассир : Дуйшенбиев А. [22:07:13]line Счет N : (1)673446 [22:07:13]line 20.06.2024 21:44 [22:07:13]line ПРОДАЖА [22:07:13]line ТРК (МРК, ГНК): 11 [22:07:13]line Вид ГСМ : 2710194210 [22:07:13]line ДТ(л)-К-5 [22:07:13]line 54.870 x 72.90 [22:07:13]line ИТОГ: 4000.02 [22:07:13]line Тип оплаты: Талоны: Топливная Карта [22:07:13]line 76490 [22:07:13]line ______________________ [22:07:13]line (подпись) [22:07:13]written 0, free lines is 4095 [22:07:14]Write to MH i2c: 01 00 00 ED 04 F1 [22:07:14]Write i2c OK [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: 01 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: 01 07 00 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: 01 07 00 ED 04 00 00 00 00 00 11 0E 17 [22:07:14]RasterBufferAndPrint [22:07:14]line [22:07:14]line [22:07:14]line [22:07:14]line [22:07:14]line [22:07:14]written 0, free lines is 3603 [22:07:14]MH_Cut [22:07:14]Write to MH i2c: D1 01 00 F4 04 01 CA [22:07:14]Write i2c OK [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: D1 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: D1 01 00 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: D1 01 00 F4 04 00 C9 [22:07:14]Write to MH i2c: 01 00 00 F5 04 F9 [22:07:14]Write i2c OK [22:07:14]MH_I2C_Read... [22:07:14]*** Cut start [22:07:14]*** Partial cut [22:07:14]*** CUTSNS_PIN = 1 [22:07:14]*** CUTSNS_PIN = 0 [22:07:14]*** Brake cut motor [22:07:15]Read from MH i2c: 01 [22:07:15]MH_I2C_Read... [22:07:15]*** Stop cut motor [22:07:15]*** Cut end [22:07:15]Read from MH i2c: 01 07 00 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: 01 07 00 F5 04 00 00 00 00 00 FF 0F 0E [22:07:15]process_action print_text done [22:07:15]requested_data is exist [22:07:15]produce_requested_data [22:07:15]requested_item fm.sn is exist - process it [22:07:15]wFMCommunicate request_size=4 [22:07:15]MH_SAM_APDU [22:07:15]CAPDU: 80 11 00 00 [22:07:15]Write to MH i2c: E2 08 00 F6 04 80 11 00 00 00 00 00 00 74 [22:07:15]Write i2c OK [22:07:15]MH_I2C_Read... [22:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:15]Read from MH i2c: E2 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: E2 17 00 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: E2 17 00 F6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C7 [22:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:07:15]wFMCommunicate OK [22:07:15]requested_item fd.num is exist - process it [22:07:15]SAM_PROTO_GetFieldsCounters [22:07:15]wFMCommunicate request_size=4 [22:07:15]MH_SAM_APDU [22:07:15]CAPDU: 80 13 00 00 [22:07:15]Write to MH i2c: E2 08 00 F7 04 80 13 00 00 00 00 00 00 77 [22:07:15]Write i2c OK [22:07:15]MH_I2C_Read... [22:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:15]Read from MH i2c: E2 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: E2 62 00 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: E2 62 00 F7 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [22:07:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7D 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:15]wFMCommunicate OK [22:07:15]SAM_PROTO_GetFieldsCounters done [22:07:15]requested_item shift.num is exist - process it [22:07:15]requested_item shift.opened is exist - process it [22:07:15]req_shift_opened [22:07:15]FM_GetShiftState [22:07:15]SAM_PROTO_GetShiftState [22:07:15]wFMCommunicate request_size=4 [22:07:15]MH_SAM_APDU [22:07:15]CAPDU: 80 13 01 00 [22:07:15]Write to MH i2c: E2 08 00 F8 04 80 13 01 00 00 00 00 00 79 [22:07:15]Write i2c OK [22:07:15]MH_I2C_Read... [22:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:15]Read from MH i2c: E2 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: E2 0E 00 [22:07:15]MH_I2C_Read... [22:07:15]Read from MH i2c: E2 0E 00 F8 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 C8 [22:07:15]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:07:15]wFMCommunicate OK [22:07:15]SAM_PROTO_GetShiftState done [22:07:15]FM_GetShiftState done [22:07:15]req_shift_opened done [22:07:15]requested_item shift.open_date is exist - process it [22:07:15]req_shift_open_date [22:07:15]req_shift_open_date done [22:07:15]produce_requested_data done [22:07:15]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104061,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [22:07:15]process_action_free print_text [22:07:15]json_value_free [22:07:15]json_value_free done [22:07:15]process_json_proto returns [22:07:15]Send response to host [22:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104061,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [22:07:15]free response buf [22:07:15]execute_script done [22:07:15]execute_script returns [22:07:15]free content buf [22:07:15]Sock 9.Close socket [22:07:15]Sock 9.Thread stoped [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:23]accept exits with 7 [22:09:23]New connection [22:09:23]New thread 3066715492 created [22:09:23]Thread 3066858852 joined [22:09:23]Waiting for new connection... [22:09:23] Sock 7.Parse request [22:09:23]Sock 7.Check first char [22:09:23]Sock 7.First char is OK [22:09:23]request: POST /json_proto HTTP/1.0 [22:09:23]Method: POST [22:09:23]URL: /json_proto [22:09:23]Method is POST - this is cgi request [22:09:23]url: /json_proto [22:09:23]query_string will be loaded in cgi processing [22:09:23]execute_cgi json_proto POST (null) [22:09:23]execute_cgi path=json_proto method=POST [22:09:23]POST find Content-Length [22:09:23]Host: 172.17.38.133:8080 [22:09:23]Content-Length: 678 [22:09:23]Content-Type: application/json [22:09:23] [22:09:23]POST finish read [22:09:23]Found Content-Length = 678 [22:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673447", "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" : 73.90, "quantity" : 10.830, "sum" : 800.34, "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" ] } } [22:09:23]execute_script... [22:09: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)673447", "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" : 73.90, "quantity" : 10.830, "sum" : 800.34, "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" ] } } [22:09:23]POST & json_proto [22:09:23]process_json_proto [22:09:23]json parsed OK: [22:09:23]protocol is kg_v1.0 [22:09:23]action value=close_receipt [22:09:23]process_action close_receipt [22:09:23]cmd_close_receipt [22:09:23]MH_GetDate [22:09:23]Write to MH i2c: F0 00 00 F9 04 EC [22:09:23]Write i2c OK [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: F0 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: F0 09 00 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: F0 09 00 F9 04 00 94 A8 74 66 BD 8F 7C 64 37 [22:09:23]GetLastDocTimeStamp 1718920924 [22:09:23]current date 1718921364 [22:09:23]FM_GetShiftState [22:09:23]SAM_PROTO_GetShiftState [22:09:23]wFMCommunicate request_size=4 [22:09:23]MH_SAM_APDU [22:09:23]CAPDU: 80 13 01 00 [22:09:23]Write to MH i2c: E2 08 00 FA 04 80 13 01 00 00 00 00 00 7B [22:09:23]Write i2c OK [22:09:23]MH_I2C_Read... [22:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:23]Read from MH i2c: E2 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: E2 0E 00 [22:09:23]MH_I2C_Read... [22:09:23]Read from MH i2c: E2 0E 00 FA 04 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CA [22:09:23]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:09:23]wFMCommunicate OK [22:09:23]SAM_PROTO_GetShiftState done [22:09:23]FM_GetShiftState done [22:09:23]opened in 1718843124 [22:09:23]opened+sec_in_day 1718929524 [22:09:23]quantity*price = 80033 [22:09:23]sum+1 = 80035 [22:09:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.99 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 247 20.06.2024 22:09 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104062 ФПД: 212068689031898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220924&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104062&fm=212068689031898&tin=02508201610067®Number=0000000000092785&sum=80000 [22:09:24]StoreToDocumentArchive [22:09:24]shift 354 fd 104062 [22:09:24]save to /storage/0354/doc_00104062 [22:09:24]save last doc name /storage/0354/doc_00104062 to /storage/kkm_last_doc_name [22:09:24]save OK [22:09:24]Clear old archive folders... [22:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:09:24]tlvbuf is 010ECC30 [22:09:24]SAM_PROTO_ClearQueue [22:09:24]wFMCommunicate request_size=4 [22:09:24]MH_SAM_APDU [22:09:24]CAPDU: 80 09 00 00 [22:09:24]Write to MH i2c: E2 08 00 07 05 80 09 00 00 00 00 00 00 7E [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:24]Read from MH i2c: E2 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 03 00 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [22:09:24]RAPDU: 90 00 [22:09:24]wFMCommunicate OK [22:09:24]SAM_PROTO_ClearQueue done [22:09:24]KKMCreateOFDPacket [22:09:24]OFDProtocolAddRootSTLVToBuf [22:09:24]FM_MakeSignedData [22:09:24]FM_MakeSignedData [22:09:24]SAM_PROTO_SignData [22:09:24]wFMCommunicate request_size=4 [22:09:24]MH_SAM_APDU [22:09:24]CAPDU: 80 0D 01 02 [22:09:24]Write to MH i2c: E2 08 00 08 05 80 0D 01 02 00 00 00 00 86 [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:24]Read from MH i2c: E2 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 03 00 [22:09:24]MH_I2C_Read... [22:09:24]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [22:09:24]RAPDU: 90 00 [22:09:24]wFMCommunicate OK [22:09:24]wFMCommunicate request_size=255 [22:09:24]MH_SAM_APDU [22:09:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 F7 00 00 00 F4 03 04 00 94 A8 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 96 01 00 35 04 06 00 C0 [22:09:24]Write to MH i2c: E2 02 01 09 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 F7 00 00 00 F4 03 04 00 94 A8 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 96 01 00 35 04 06 00 C0 00 00 B8 [22:09:24]Write i2c OK [22:09:24]MH_I2C_Read... [22:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:25]Read from MH i2c: E2 [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: E2 03 00 [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: E2 03 00 09 05 00 90 00 82 [22:09:25]RAPDU: 90 00 [22:09:25]wFMCommunicate OK [22:09:25]wFMCommunicate request_size=10 [22:09:25]MH_SAM_APDU [22:09:25]CAPDU: 80 0D 02 02 05 E0 16 E0 B2 DA [22:09:25]Write to MH i2c: E2 0D 00 0A 05 80 0D 02 02 05 00 E0 16 E0 B2 DA 00 00 F5 [22:09:25]Write i2c OK [22:09:25]MH_I2C_Read... [22:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:25]Read from MH i2c: E2 [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: E2 03 00 [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: E2 03 00 0A 05 00 90 00 83 [22:09:25]RAPDU: 90 00 [22:09:25]wFMCommunicate OK [22:09:25]wFMCommunicate request_size=4 [22:09:25]MH_SAM_APDU [22:09:25]CAPDU: 80 0D 03 02 [22:09:25]Write to MH i2c: E2 08 00 0B 05 80 0D 03 02 00 00 00 00 8B [22:09:25]Write i2c OK [22:09:25]MH_I2C_Read... [22:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:25]Read from MH i2c: E2 [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: E2 0B 00 [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: E2 0B 00 0B 05 00 A4 B6 E7 C4 61 1F 1F 31 90 00 61 [22:09:25]RAPDU: A4 B6 E7 C4 61 1F 1F 31 90 00 [22:09:25]wFMCommunicate OK [22:09:25]SAM_PROTO_SignData done [22:09:25]FM_MakeSignedData done [22:09:25]CreateOFDProtocolMessage [22:09:25]wFMCommunicate request_size=4 [22:09:25]MH_SAM_APDU [22:09:25]CAPDU: 80 11 00 00 [22:09:25]Write to MH i2c: E2 08 00 0C 05 80 11 00 00 00 00 00 00 8B [22:09:25]Write i2c OK [22:09:25]MH_I2C_Read... [22:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:25]Read from MH i2c: E2 [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: E2 17 00 [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: E2 17 00 0C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 DE [22:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:09:25]wFMCommunicate OK [22:09:25]CreateOFDProtocolMessage done [22:09:25]OFDSenderStorePacket 104062 [22:09:25]StoreOFDPacket docnum=104062 [22:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F8 2C 07 01 92 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 F7 00 00 00 F4 03 04 00 94 A8 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 96 01 00 35 04 06 00 C0 E0 16 E0 B2 DA A4 B6 E7 C4 61 1F 1F 31 [22:09:25]CheckFolder [22:09:25]dirname=/storage/ofd_packets [22:09:25]CheckFolder done [22:09:25]ProducePacketName [22:09:25]name=ofd_packets/00104062 [22:09:25]NVStorageSaveData ofd_packets/00104062 [22:09:25]File name is /storage/ofd_packets/00104062 [22:09:25]Write 301 bytes [22:09:25]NVStorageSaveData done [22:09:25]OFDSenderStorePacket done [22:09:25]KKMCreateOFDPacket done [22:09:25]NVStorageSaveData kkm_last_timestamp [22:09:25]File name is /storage/kkm_last_timestamp [22:09:25]Write 4 bytes [22:09:25]NVStorageSaveData done [22:09:25]ExternCall_PrintAddStr [22:09:25]wPrintStart [22:09:25]Write to MH i2c: 01 00 00 0D 05 12 [22:09:25]Write i2c OK [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: 01 [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: 01 07 00 [22:09:25]MH_I2C_Read... [22:09:25]Read from MH i2c: 01 07 00 0D 05 00 00 00 00 00 FF 0F 27 [22:09:25]RasterBufferAndPrint [22:09:25]line Счет N : (1)673447 [22:09:25]line ИНН: 02508201610067 [22:09:25]line Контрольно-Кассовый Чек [22:09:25]line ПРОДАЖА [22:09:25]line ТРК (МРК, ГНК) : 41 [22:09:25]line Товар: 2710124500 [22:09:25]line Аи-95-К-5 [22:09:25]line 10.830 * 73.90 [22:09:25]line = 800.34 [22:09:25]line НДС 12% НСП 1% [22:09:25]line > о реализуемом товаре [22:09:25]line ОКРУГЛЕНИЕ: -0.34 [22:09:25]line ИТОГО: 800.00 [22:09:25]line Внесено: 800.00 [22:09:25]line СДАЧА: 0.00 [22:09:25]line НСП 1% : 7.08 [22:09:25]line НДС 12% : 84.99 [22:09:25]line Наличными: 800.00 [22:09:25]line Безнал.: 0.00 [22:09:25]line Место: АЗС № 120 "Партнер Нефть" [22:09:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:09:25]line СНО: Общий режим [22:09:25]line Чек 247 20.06.2024 22:09 [22:09:25]line Смена: 354 ФФД: 1.0 [22:09:25]line ЗНМ: 0300000164 [22:09:25]line РНМ: 0000000000092785 [22:09:25]line Версия ККМ: 001 [22:09:25]line ФМ: 0000000000875093 [22:09:25]line ФД: 104062 [22:09:25]line ФПД: 212068689031898 [22:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220924&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104062&fm=212068689031898&tin=02508201610067®Number=0000000000092785&sum=80000 [22:09:25]OFD Sender: Processing packet 104062 [packets to send 17, broken 16] [22:09:25]ProducePacketName [22:09:25]name=ofd_packets/00104062 [22:09:25]OFD Sender: To server: pG, [22:09:25]CommunicateWithHost lk.salyk.kg:30040 [22:09:25]ConnectInit lk.salyk.kg [22:09:25]written 0, free lines is 4095 [22:09:25]Connected sock=10 [22:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F8 2C 07 01 92 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A2 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 33 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 F7 00 00 00 F4 03 04 00 94 A8 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 96 01 00 35 04 06 00 C0 E0 16 E0 B2 DA A4 B6 E7 C4 61 1F 1F 31 [22:09:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 87 D7 47 00 B7 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7E 96 01 00 F4 03 04 00 19 4F 74 66 B6 04 01 00 00 6C 63 01 11 DB EB 3A F1 [22:09:26]CommunicateWithHost err = 0 [22:09:26]CheckOFDResponse [22:09:26]1017 (14) - 77093643461234 [22:09:26]1041 (16) - 0000000000875093 [22:09:26]1040 (4) - 104062 [22:09:26]1012 (4) - 20.06.2024 15:47 [22:09:26]1206 (1) - 0 [22:09:26]OFD Sender: Remove packet 104062 [22:09:26]ProducePacketName [22:09:26]name=ofd_packets/00104062 [22:09:26]NVStorageDeleteData [22:09:26]Write to MH i2c: 01 00 00 38 05 3D [22:09:26]Write i2c OK [22:09:26]MH_I2C_Read... [22:09:26]Read from MH i2c: 01 [22:09:26]MH_I2C_Read... [22:09:26]Read from MH i2c: 01 07 00 [22:09:26]MH_I2C_Read... [22:09:26]Read from MH i2c: 01 07 00 38 05 00 00 00 00 00 ED 0C 3D [22:09:26]RasterBufferAndPrint [22:09:26]line [22:09:26]line [22:09:26]line [22:09:26]line [22:09:26]line [22:09:26]written 0, free lines is 3315 [22:09:26]MH_Cut [22:09:26]Write to MH i2c: D1 01 00 3F 05 01 16 [22:09:26]Write i2c OK [22:09:26]MH_I2C_Read... [22:09:26]Read from MH i2c: D1 [22:09:26]MH_I2C_Read... [22:09:26]Read from MH i2c: D1 01 00 [22:09:26]MH_I2C_Read... [22:09:26]Read from MH i2c: D1 01 00 3F 05 00 15 [22:09:26]Write to MH i2c: 01 00 00 40 05 45 [22:09:26]Write i2c OK [22:09:26]MH_I2C_Read... [22:09:26]OFD Sender: No OFD packet to send [22:09:26]*** Cut start [22:09:26]*** Partial cut [22:09:26]*** CUTSNS_PIN = 1 [22:09:26]*** CUTSNS_PIN = 0 [22:09:27]*** Brake cut motor [22:09:27]Read from MH i2c: 01 [22:09:27]MH_I2C_Read... [22:09:27]*** Stop cut motor [22:09:27]*** Cut end [22:09:27]Read from MH i2c: 01 07 00 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: 01 07 00 40 05 00 00 00 00 00 FF 0F 5A [22:09:27]process_action close_receipt done [22:09:27]requested_data is exist [22:09:27]produce_requested_data [22:09:27]requested_item fm.sn is exist - process it [22:09:27]wFMCommunicate request_size=4 [22:09:27]MH_SAM_APDU [22:09:27]CAPDU: 80 11 00 00 [22:09:27]Write to MH i2c: E2 08 00 41 05 80 11 00 00 00 00 00 00 C0 [22:09:27]Write i2c OK [22:09:27]MH_I2C_Read... [22:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:27]Read from MH i2c: E2 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: E2 17 00 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: E2 17 00 41 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 13 [22:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:09:27]wFMCommunicate OK [22:09:27]requested_item fd.num is exist - process it [22:09:27]SAM_PROTO_GetFieldsCounters [22:09:27]wFMCommunicate request_size=4 [22:09:27]MH_SAM_APDU [22:09:27]CAPDU: 80 13 00 00 [22:09:27]Write to MH i2c: E2 08 00 42 05 80 13 00 00 00 00 00 00 C3 [22:09:27]Write i2c OK [22:09:27]MH_I2C_Read... [22:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:27]Read from MH i2c: E2 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: E2 62 00 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: E2 62 00 42 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [22:09:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7E 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:27]wFMCommunicate OK [22:09:27]SAM_PROTO_GetFieldsCounters done [22:09:27]requested_item shift.num is exist - process it [22:09:27]requested_item shift.opened is exist - process it [22:09:27]req_shift_opened [22:09:27]FM_GetShiftState [22:09:27]SAM_PROTO_GetShiftState [22:09:27]wFMCommunicate request_size=4 [22:09:27]MH_SAM_APDU [22:09:27]CAPDU: 80 13 01 00 [22:09:27]Write to MH i2c: E2 08 00 43 05 80 13 01 00 00 00 00 00 C5 [22:09:27]Write i2c OK [22:09:27]MH_I2C_Read... [22:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:27]Read from MH i2c: E2 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: E2 0E 00 [22:09:27]MH_I2C_Read... [22:09:27]Read from MH i2c: E2 0E 00 43 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 14 [22:09:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:09:27]wFMCommunicate OK [22:09:27]SAM_PROTO_GetShiftState done [22:09:27]FM_GetShiftState done [22:09:27]req_shift_opened done [22:09:27]requested_item shift.open_date is exist - process it [22:09:27]req_shift_open_date [22:09:27]req_shift_open_date done [22:09:27]produce_requested_data done [22:09:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104062,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [22:09:27]process_action_free close_receipt [22:09:27]json_value_free [22:09:27]json_value_free done [22:09:27]process_json_proto returns [22:09:27]Send response to host [22:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104062,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [22:09:27]free response buf [22:09:27]execute_script done [22:09:27]execute_script returns [22:09:27]free content buf [22:09:27]Sock 7.Close socket [22:09:27]Sock 7.Thread stoped [22:09:28]accept exits with 9 [22:09:28]New connection [22:09:28]New thread 3066858852 created [22:09:28]Thread 3066715492 joined [22:09:28]Waiting for new connection... [22:09:28] Sock 9.Parse request [22:09:28]Sock 9.Check first char [22:09:28]Sock 9.First char is OK [22:09:28]request: POST /json_proto HTTP/1.0 [22:09:28]Method: POST [22:09:28]URL: /json_proto [22:09:28]Method is POST - this is cgi request [22:09:28]url: /json_proto [22:09:28]query_string will be loaded in cgi processing [22:09:28]execute_cgi json_proto POST (null) [22:09:28]execute_cgi path=json_proto method=POST [22:09:28]POST find Content-Length [22:09:28]Host: 172.17.38.133:8080 [22:09:28]Content-Length: 819 [22:09:28]Content-Type: application/json [22:09:28] [22:09:28]POST finish read [22:09:28]Found Content-Length = 819 [22:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673448", "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" : 73.90, "quantity" : 20.000, "sum" : 1478.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" : 1478.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:28]execute_script... [22:09:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673448", "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" : 73.90, "quantity" : 20.000, "sum" : 1478.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" : 1478.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:28]POST & json_proto [22:09:28]process_json_proto [22:09:28]json parsed OK: [22:09:28]protocol is kg_v1.0 [22:09:28]action value=close_receipt [22:09:28]process_action close_receipt [22:09:28]cmd_close_receipt [22:09:28]MH_GetDate [22:09:28]Write to MH i2c: F0 00 00 44 05 38 [22:09:28]Write i2c OK [22:09:28]MH_I2C_Read... [22:09:28]Read from MH i2c: F0 [22:09:28]MH_I2C_Read... [22:09:28]Read from MH i2c: F0 09 00 [22:09:28]MH_I2C_Read... [22:09:28]Read from MH i2c: F0 09 00 44 05 00 99 A8 74 66 BD 8F 7C 64 88 [22:09:28]GetLastDocTimeStamp 1718921364 [22:09:28]current date 1718921369 [22:09:28]FM_GetShiftState [22:09:28]SAM_PROTO_GetShiftState [22:09:28]wFMCommunicate request_size=4 [22:09:28]MH_SAM_APDU [22:09:28]CAPDU: 80 13 01 00 [22:09:28]Write to MH i2c: E2 08 00 45 05 80 13 01 00 00 00 00 00 C7 [22:09:28]Write i2c OK [22:09:28]MH_I2C_Read... [22:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:28]Read from MH i2c: E2 [22:09:28]MH_I2C_Read... [22:09:28]Read from MH i2c: E2 0E 00 [22:09:28]MH_I2C_Read... [22:09:28]Read from MH i2c: E2 0E 00 45 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 16 [22:09:28]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:09:28]wFMCommunicate OK [22:09:28]SAM_PROTO_GetShiftState done [22:09:28]FM_GetShiftState done [22:09:28]opened in 1718843124 [22:09:28]opened+sec_in_day 1718929524 [22:09:28]quantity*price = 147800 [22:09:28]sum+1 = 147801 [22:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1478.00 НСП 1% : 13.08 НДС 12% : 156.96 Наличными: 0.00 Безнал.: 1478.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 248 20.06.2024 22:09 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104063 ФПД: 218826917626257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220929&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104063&fm=218826917626257&tin=02508201610067®Number=0000000000092785&sum=147800 [22:09:29]StoreToDocumentArchive [22:09:29]shift 354 fd 104063 [22:09:29]save to /storage/0354/doc_00104063 [22:09:29]save last doc name /storage/0354/doc_00104063 to /storage/kkm_last_doc_name [22:09:29]save OK [22:09:29]Clear old archive folders... [22:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:09:29]tlvbuf is 01108710 [22:09:29]SAM_PROTO_ClearQueue [22:09:29]wFMCommunicate request_size=4 [22:09:29]MH_SAM_APDU [22:09:29]CAPDU: 80 09 00 00 [22:09:29]Write to MH i2c: E2 08 00 52 05 80 09 00 00 00 00 00 00 C9 [22:09:29]Write i2c OK [22:09:29]MH_I2C_Read... [22:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:29]Read from MH i2c: E2 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 52 05 00 90 00 CB [22:09:29]RAPDU: 90 00 [22:09:29]wFMCommunicate OK [22:09:29]SAM_PROTO_ClearQueue done [22:09:29]KKMCreateOFDPacket [22:09:29]OFDProtocolAddRootSTLVToBuf [22:09:29]FM_MakeSignedData [22:09:29]FM_MakeSignedData [22:09:29]SAM_PROTO_SignData [22:09:29]wFMCommunicate request_size=4 [22:09:29]MH_SAM_APDU [22:09:29]CAPDU: 80 0D 01 02 [22:09:29]Write to MH i2c: E2 08 00 53 05 80 0D 01 02 00 00 00 00 D1 [22:09:29]Write i2c OK [22:09:29]MH_I2C_Read... [22:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:29]Read from MH i2c: E2 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 53 05 00 90 00 CC [22:09:29]RAPDU: 90 00 [22:09:29]wFMCommunicate OK [22:09:29]wFMCommunicate request_size=255 [22:09:29]MH_SAM_APDU [22:09:29]CAPDU: 80 0D 02 02 FA 03 00 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 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 58 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 41 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 99 A8 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 96 01 00 35 04 06 00 C7 [22:09:29]Write to MH i2c: E2 02 01 54 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 58 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 41 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 99 A8 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 96 01 00 35 04 06 00 C7 00 00 1F [22:09:29]Write i2c OK [22:09:29]MH_I2C_Read... [22:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:29]Read from MH i2c: E2 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 54 05 00 90 00 CD [22:09:29]RAPDU: 90 00 [22:09:29]wFMCommunicate OK [22:09:29]wFMCommunicate request_size=10 [22:09:29]MH_SAM_APDU [22:09:29]CAPDU: 80 0D 02 02 05 05 9C B1 41 91 [22:09:29]Write to MH i2c: E2 0D 00 55 05 80 0D 02 02 05 00 05 9C B1 41 91 00 00 02 [22:09:29]Write i2c OK [22:09:29]MH_I2C_Read... [22:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:29]Read from MH i2c: E2 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 [22:09:29]MH_I2C_Read... [22:09:29]Read from MH i2c: E2 03 00 55 05 00 90 00 CE [22:09:29]RAPDU: 90 00 [22:09:29]wFMCommunicate OK [22:09:29]wFMCommunicate request_size=4 [22:09:29]MH_SAM_APDU [22:09:29]CAPDU: 80 0D 03 02 [22:09:29]Write to MH i2c: E2 08 00 56 05 80 0D 03 02 00 00 00 00 D6 [22:09:29]Write i2c OK [22:09:29]MH_I2C_Read... [22:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:30]Read from MH i2c: E2 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 0B 00 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 0B 00 56 05 00 45 89 B9 C0 6C 3C B2 3A 90 00 B2 [22:09:30]RAPDU: 45 89 B9 C0 6C 3C B2 3A 90 00 [22:09:30]wFMCommunicate OK [22:09:30]SAM_PROTO_SignData done [22:09:30]FM_MakeSignedData done [22:09:30]CreateOFDProtocolMessage [22:09:30]wFMCommunicate request_size=4 [22:09:30]MH_SAM_APDU [22:09:30]CAPDU: 80 11 00 00 [22:09:30]Write to MH i2c: E2 08 00 57 05 80 11 00 00 00 00 00 00 D6 [22:09:30]Write i2c OK [22:09:30]MH_I2C_Read... [22:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:30]Read from MH i2c: E2 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 17 00 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: E2 17 00 57 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 29 [22:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:09:30]wFMCommunicate OK [22:09:30]CreateOFDProtocolMessage done [22:09:30]OFDSenderStorePacket 104063 [22:09:30]StoreOFDPacket docnum=104063 [22:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F7 F8 07 01 D9 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 58 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 41 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 99 A8 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 96 01 00 35 04 06 00 C7 05 9C B1 41 91 45 89 B9 C0 6C 3C B2 3A [22:09:30]CheckFolder [22:09:30]dirname=/storage/ofd_packets [22:09:30]CheckFolder done [22:09:30]ProducePacketName [22:09:30]name=ofd_packets/00104063 [22:09:30]NVStorageSaveData ofd_packets/00104063 [22:09:30]File name is /storage/ofd_packets/00104063 [22:09:30]Write 301 bytes [22:09:30]NVStorageSaveData done [22:09:30]OFDSenderStorePacket done [22:09:30]KKMCreateOFDPacket done [22:09:30]NVStorageSaveData kkm_last_timestamp [22:09:30]File name is /storage/kkm_last_timestamp [22:09:30]Write 4 bytes [22:09:30]NVStorageSaveData done [22:09:30]ExternCall_PrintAddStr [22:09:30]wPrintStart [22:09:30]Write to MH i2c: 01 00 00 58 05 5D [22:09:30]Write i2c OK [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: 01 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: 01 07 00 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: 01 07 00 58 05 00 00 00 00 00 FF 0F 72 [22:09:30]RasterBufferAndPrint [22:09:30]line Счет N : (1)673448 [22:09:30]line ИНН: 02508201610067 [22:09:30]line Контрольно-Кассовый Чек [22:09:30]line ПРОДАЖА [22:09:30]line ТРК (МРК, ГНК) : 31 [22:09:30]line Товар: 2710124500 [22:09:30]line Аи-95-К-5 [22:09:30]line 20.000 * 73.90 [22:09:30]line = 1478.00 [22:09:30]line НДС 12% НСП 1% [22:09:30]line > о реализуемом товаре [22:09:30]line ИТОГО: 1478.00 [22:09:30]line НСП 1% : 13.08 [22:09:30]line НДС 12% : 156.96 [22:09:30]line Наличными: 0.00 [22:09:30]line Безнал.: 1478.00 [22:09:30]line Место: АЗС № 120 "Партнер Нефть" [22:09:30]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:09:30]line СНО: Общий режим [22:09:30]line Чек 248 20.06.2024 22:09 [22:09:30]line Смена: 354 ФФД: 1.0 [22:09:30]line ЗНМ: 0300000164 [22:09:30]line РНМ: 0000000000092785 [22:09:30]line Версия ККМ: 001 [22:09:30]line Платежная система: Бакай Банк [22:09:30]line ФМ: 0000000000875093 [22:09:30]line ФД: 104063 [22:09:30]line ФПД: 218826917626257 [22:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T220929&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104063&fm=218826917626257&tin=02508201610067®Number=0000000000092785&sum=147800 [22:09:30]OFD Sender: Processing packet 104063 [packets to send 17, broken 16] [22:09:30]ProducePacketName [22:09:30]name=ofd_packets/00104063 [22:09:30]OFD Sender: To server: pG, [22:09:30]CommunicateWithHost lk.salyk.kg:30040 [22:09:30]ConnectInit lk.salyk.kg [22:09:30]written 0, free lines is 4095 [22:09:30]Connected sock=11 [22:09:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 F7 F8 07 01 D9 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4E 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 58 41 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 41 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 3D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 41 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 99 A8 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 7F 96 01 00 35 04 06 00 C7 05 9C B1 41 91 45 89 B9 C0 6C 3C B2 3A [22:09:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 50 9A 47 00 C8 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 35 30 39 33 10 04 04 00 7F 96 01 00 F4 03 04 00 1D 4F 74 66 B6 04 01 00 00 61 AC AE E0 C0 F5 A7 26 [22:09:30]CommunicateWithHost err = 0 [22:09:30]CheckOFDResponse [22:09:30]1017 (14) - 77093643461234 [22:09:30]1041 (16) - 0000000000875093 [22:09:30]1040 (4) - 104063 [22:09:30]1012 (4) - 20.06.2024 15:47 [22:09:30]1206 (1) - 0 [22:09:30]OFD Sender: Remove packet 104063 [22:09:30]ProducePacketName [22:09:30]name=ofd_packets/00104063 [22:09:30]NVStorageDeleteData [22:09:30]Write to MH i2c: 01 00 00 82 05 87 [22:09:30]Write i2c OK [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: 01 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: 01 07 00 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FC 0C 96 [22:09:30]RasterBufferAndPrint [22:09:30]line [22:09:30]line [22:09:30]line [22:09:30]line [22:09:30]line [22:09:30]written 0, free lines is 3333 [22:09:30]MH_Cut [22:09:30]Write to MH i2c: D1 01 00 89 05 01 60 [22:09:30]Write i2c OK [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: D1 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: D1 01 00 [22:09:30]MH_I2C_Read... [22:09:30]Read from MH i2c: D1 01 00 89 05 00 5F [22:09:30]Write to MH i2c: 01 00 00 8A 05 8F [22:09:30]Write i2c OK [22:09:30]MH_I2C_Read... [22:09:31]OFD Sender: No OFD packet to send [22:09:31]*** Cut start [22:09:31]*** Partial cut [22:09:31]*** CUTSNS_PIN = 1 [22:09:31]*** CUTSNS_PIN = 0 [22:09:31]*** Brake cut motor [22:09:32]Read from MH i2c: 01 [22:09:32]MH_I2C_Read... [22:09:32]*** Stop cut motor [22:09:32]*** Cut end [22:09:32]Read from MH i2c: 01 07 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: 01 07 00 8A 05 00 00 00 00 00 FF 0F A4 [22:09:32]process_action close_receipt done [22:09:32]requested_data is exist [22:09:32]produce_requested_data [22:09:32]requested_item fm.sn is exist - process it [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 11 00 00 [22:09:32]Write to MH i2c: E2 08 00 8B 05 80 11 00 00 00 00 00 00 0A [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 17 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 17 00 8B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 5D [22:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:09:32]wFMCommunicate OK [22:09:32]requested_item fd.num is exist - process it [22:09:32]SAM_PROTO_GetFieldsCounters [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 13 00 00 [22:09:32]Write to MH i2c: E2 08 00 8C 05 80 13 00 00 00 00 00 00 0D [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 62 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 62 00 8C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [22:09:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 7F 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:32]wFMCommunicate OK [22:09:32]SAM_PROTO_GetFieldsCounters done [22:09:32]requested_item shift.num is exist - process it [22:09:32]requested_item shift.opened is exist - process it [22:09:32]req_shift_opened [22:09:32]FM_GetShiftState [22:09:32]SAM_PROTO_GetShiftState [22:09:32]wFMCommunicate request_size=4 [22:09:32]MH_SAM_APDU [22:09:32]CAPDU: 80 13 01 00 [22:09:32]Write to MH i2c: E2 08 00 8D 05 80 13 01 00 00 00 00 00 0F [22:09:32]Write i2c OK [22:09:32]MH_I2C_Read... [22:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:32]Read from MH i2c: E2 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 0E 00 [22:09:32]MH_I2C_Read... [22:09:32]Read from MH i2c: E2 0E 00 8D 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 5E [22:09:32]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:09:32]wFMCommunicate OK [22:09:32]SAM_PROTO_GetShiftState done [22:09:32]FM_GetShiftState done [22:09:32]req_shift_opened done [22:09:32]requested_item shift.open_date is exist - process it [22:09:32]req_shift_open_date [22:09:32]req_shift_open_date done [22:09:32]produce_requested_data done [22:09:32]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104063,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [22:09:32]process_action_free close_receipt [22:09:32]json_value_free [22:09:32]json_value_free done [22:09:32]process_json_proto returns [22:09:32]Send response to host [22:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104063,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [22:09:32]free response buf [22:09:32]execute_script done [22:09:32]execute_script returns [22:09:32]free content buf [22:09:32]Sock 9.Close socket [22:09:32]Sock 9.Thread stoped [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:44]accept exits with 7 [22:16:44]New connection [22:16:44]New thread 3066715492 created [22:16:44]Thread 3066858852 joined [22:16:44]Waiting for new connection... [22:16:44] Sock 7.Parse request [22:16:44]Sock 7.Check first char [22:16:44]Sock 7.First char is OK [22:16:44]request: POST /json_proto HTTP/1.0 [22:16:44]Method: POST [22:16:44]URL: /json_proto [22:16:44]Method is POST - this is cgi request [22:16:44]url: /json_proto [22:16:44]query_string will be loaded in cgi processing [22:16:44]execute_cgi json_proto POST (null) [22:16:44]execute_cgi path=json_proto method=POST [22:16:44]POST find Content-Length [22:16:44]Host: 172.17.38.133:8080 [22:16:44]Content-Length: 687 [22:16:44]Content-Type: application/json [22:16:44] [22:16:44]POST finish read [22:16:44]Found Content-Length = 687 [22:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "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" ] } } [22:16:44]execute_script... [22:16: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)673449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "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" ] } } [22:16:44]POST & json_proto [22:16:44]process_json_proto [22:16:44]json parsed OK: [22:16:44]protocol is kg_v1.0 [22:16:44]action value=close_receipt [22:16:44]process_action close_receipt [22:16:44]cmd_close_receipt [22:16:44]MH_GetDate [22:16:44]Write to MH i2c: F0 00 00 8E 05 82 [22:16:44]Write i2c OK [22:16:44]MH_I2C_Read... [22:16:44]Read from MH i2c: F0 [22:16:44]MH_I2C_Read... [22:16:44]Read from MH i2c: F0 09 00 [22:16:44]MH_I2C_Read... [22:16:44]Read from MH i2c: F0 09 00 8E 05 00 4D AA 74 66 BD 8F 7C 64 88 [22:16:44]GetLastDocTimeStamp 1718921369 [22:16:44]current date 1718921805 [22:16:44]FM_GetShiftState [22:16:44]SAM_PROTO_GetShiftState [22:16:44]wFMCommunicate request_size=4 [22:16:44]MH_SAM_APDU [22:16:44]CAPDU: 80 13 01 00 [22:16:44]Write to MH i2c: E2 08 00 8F 05 80 13 01 00 00 00 00 00 11 [22:16:44]Write i2c OK [22:16:44]MH_I2C_Read... [22:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:44]Read from MH i2c: E2 [22:16:44]MH_I2C_Read... [22:16:44]Read from MH i2c: E2 0E 00 [22:16:44]MH_I2C_Read... [22:16:44]Read from MH i2c: E2 0E 00 8F 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 60 [22:16:44]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:16:44]wFMCommunicate OK [22:16:44]SAM_PROTO_GetShiftState done [22:16:44]FM_GetShiftState done [22:16:44]opened in 1718843124 [22:16:44]opened+sec_in_day 1718929524 [22:16:44]quantity*price = 500021 [22:16:44]sum+1 = 500022 [22:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 249 20.06.2024 22:16 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104064 ФПД: 159059440506693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T221645&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104064&fm=159059440506693&tin=02508201610067®Number=0000000000092785&sum=500000 [22:16:45]StoreToDocumentArchive [22:16:45]shift 354 fd 104064 [22:16:45]save to /storage/0354/doc_00104064 [22:16:45]save last doc name /storage/0354/doc_00104064 to /storage/kkm_last_doc_name [22:16:45]save OK [22:16:45]Clear old archive folders... [22:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:16:45]tlvbuf is 010EBC30 [22:16:45]SAM_PROTO_ClearQueue [22:16:45]wFMCommunicate request_size=4 [22:16:45]MH_SAM_APDU [22:16:45]CAPDU: 80 09 00 00 [22:16:45]Write to MH i2c: E2 08 00 9C 05 80 09 00 00 00 00 00 00 13 [22:16:45]Write i2c OK [22:16:45]MH_I2C_Read... [22:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:45]Read from MH i2c: E2 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 9C 05 00 90 00 15 [22:16:45]RAPDU: 90 00 [22:16:45]wFMCommunicate OK [22:16:45]SAM_PROTO_ClearQueue done [22:16:45]KKMCreateOFDPacket [22:16:45]OFDProtocolAddRootSTLVToBuf [22:16:45]FM_MakeSignedData [22:16:45]FM_MakeSignedData [22:16:45]SAM_PROTO_SignData [22:16:45]wFMCommunicate request_size=4 [22:16:45]MH_SAM_APDU [22:16:45]CAPDU: 80 0D 01 02 [22:16:45]Write to MH i2c: E2 08 00 9D 05 80 0D 01 02 00 00 00 00 1B [22:16:45]Write i2c OK [22:16:45]MH_I2C_Read... [22:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:45]Read from MH i2c: E2 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 9D 05 00 90 00 16 [22:16:45]RAPDU: 90 00 [22:16:45]wFMCommunicate OK [22:16:45]wFMCommunicate request_size=255 [22:16:45]MH_SAM_APDU [22:16:45]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 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 6C 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 F9 00 00 00 F4 03 04 00 4D AA 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 96 01 00 35 04 06 00 [22:16:45]Write to MH i2c: E2 02 01 9E 05 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 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 6C 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 F9 00 00 00 F4 03 04 00 4D AA 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 96 01 00 35 04 06 00 00 00 3C [22:16:45]Write i2c OK [22:16:45]MH_I2C_Read... [22:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:45]Read from MH i2c: E2 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 [22:16:45]MH_I2C_Read... [22:16:45]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [22:16:45]RAPDU: 90 00 [22:16:45]wFMCommunicate OK [22:16:45]wFMCommunicate request_size=11 [22:16:45]MH_SAM_APDU [22:16:45]CAPDU: 80 0D 02 02 06 90 A9 E9 73 17 45 [22:16:45]Write to MH i2c: E2 0E 00 9F 05 80 0D 02 02 06 00 90 A9 E9 73 17 45 00 00 1B [22:16:45]Write i2c OK [22:16:45]MH_I2C_Read... [22:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:46]Read from MH i2c: E2 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: E2 03 00 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: E2 03 00 9F 05 00 90 00 18 [22:16:46]RAPDU: 90 00 [22:16:46]wFMCommunicate OK [22:16:46]wFMCommunicate request_size=4 [22:16:46]MH_SAM_APDU [22:16:46]CAPDU: 80 0D 03 02 [22:16:46]Write to MH i2c: E2 08 00 A0 05 80 0D 03 02 00 00 00 00 20 [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:46]Read from MH i2c: E2 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: E2 0B 00 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: E2 0B 00 A0 05 00 15 DB 80 F5 92 02 06 FE 90 00 1E [22:16:46]RAPDU: 15 DB 80 F5 92 02 06 FE 90 00 [22:16:46]wFMCommunicate OK [22:16:46]SAM_PROTO_SignData done [22:16:46]FM_MakeSignedData done [22:16:46]CreateOFDProtocolMessage [22:16:46]wFMCommunicate request_size=4 [22:16:46]MH_SAM_APDU [22:16:46]CAPDU: 80 11 00 00 [22:16:46]Write to MH i2c: E2 08 00 A1 05 80 11 00 00 00 00 00 00 20 [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:46]Read from MH i2c: E2 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: E2 17 00 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: E2 17 00 A1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 73 [22:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:16:46]wFMCommunicate OK [22:16:46]CreateOFDProtocolMessage done [22:16:46]OFDSenderStorePacket 104064 [22:16:46]StoreOFDPacket docnum=104064 [22:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 71 80 08 01 BE C8 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 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 6C 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 F9 00 00 00 F4 03 04 00 4D AA 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 96 01 00 35 04 06 00 90 A9 E9 73 17 45 15 DB 80 F5 92 02 06 FE [22:16:46]CheckFolder [22:16:46]dirname=/storage/ofd_packets [22:16:46]CheckFolder done [22:16:46]ProducePacketName [22:16:46]name=ofd_packets/00104064 [22:16:46]NVStorageSaveData ofd_packets/00104064 [22:16:46]File name is /storage/ofd_packets/00104064 [22:16:46]Write 302 bytes [22:16:46]NVStorageSaveData done [22:16:46]OFDSenderStorePacket done [22:16:46]KKMCreateOFDPacket done [22:16:46]NVStorageSaveData kkm_last_timestamp [22:16:46]File name is /storage/kkm_last_timestamp [22:16:46]Write 4 bytes [22:16:46]NVStorageSaveData done [22:16:46]ExternCall_PrintAddStr [22:16:46]wPrintStart [22:16:46]Write to MH i2c: 01 00 00 A2 05 A7 [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: 01 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: 01 07 00 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: 01 07 00 A2 05 00 00 00 00 00 FF 0F BC [22:16:46]RasterBufferAndPrint [22:16:46]line Счет N : (1)673449 [22:16:46]line ИНН: 02508201610067 [22:16:46]line Контрольно-Кассовый Чек [22:16:46]line ПРОДАЖА [22:16:46]line ТРК (МРК, ГНК) : 11 [22:16:46]line Товар: 2710194210 [22:16:46]line ДТ(л)-К-5 [22:16:46]line 68.590 * 72.90 [22:16:46]line = 5000.21 [22:16:46]line НДС 12% НСП 1% [22:16:46]line > о реализуемом товаре [22:16:46]line ОКРУГЛЕНИЕ: -0.21 [22:16:46]line ИТОГО: 5000.00 [22:16:46]line Внесено: 5000.00 [22:16:46]line СДАЧА: 0.00 [22:16:46]line НСП 1% : 44.25 [22:16:46]line НДС 12% : 531.00 [22:16:46]line Наличными: 5000.00 [22:16:46]line Безнал.: 0.00 [22:16:46]line Место: АЗС № 120 "Партнер Нефть" [22:16:46]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:16:46]line СНО: Общий режим [22:16:46]line Чек 249 20.06.2024 22:16 [22:16:46]line Смена: 354 ФФД: 1.0 [22:16:46]line ЗНМ: 0300000164 [22:16:46]line РНМ: 0000000000092785 [22:16:46]line Версия ККМ: 001 [22:16:46]line ФМ: 0000000000875093 [22:16:46]line ФД: 104064 [22:16:46]line ФПД: 159059440506693 [22:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T221645&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104064&fm=159059440506693&tin=02508201610067®Number=0000000000092785&sum=500000 [22:16:46]OFD Sender: Processing packet 104064 [packets to send 17, broken 16] [22:16:46]ProducePacketName [22:16:46]name=ofd_packets/00104064 [22:16:46]OFD Sender: To server: pG, [22:16:46]CommunicateWithHost lk.salyk.kg:30040 [22:16:46]ConnectInit lk.salyk.kg [22:16:46]written 0, free lines is 4095 [22:16:46]Connected sock=10 [22:16:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 71 80 08 01 BE C8 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 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 6C 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 F9 00 00 00 F4 03 04 00 4D AA 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 96 01 00 35 04 06 00 90 A9 E9 73 17 45 15 DB 80 F5 92 02 06 FE [22:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 92 D0 47 00 17 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 80 96 01 00 F4 03 04 00 D1 50 74 66 B6 04 01 00 00 8B 86 37 E3 2B A0 65 D5 [22:16:46]CommunicateWithHost err = 0 [22:16:46]CheckOFDResponse [22:16:46]1017 (14) - 77093643461234 [22:16:46]1041 (16) - 0000000000875093 [22:16:46]1040 (4) - 104064 [22:16:46]1012 (4) - 20.06.2024 15:54 [22:16:46]1206 (1) - 0 [22:16:46]OFD Sender: Remove packet 104064 [22:16:46]ProducePacketName [22:16:46]name=ofd_packets/00104064 [22:16:46]NVStorageDeleteData [22:16:46]Write to MH i2c: 01 00 00 CD 05 D2 [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: 01 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: 01 07 00 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: 01 07 00 CD 05 00 00 00 00 00 E4 0C C9 [22:16:46]RasterBufferAndPrint [22:16:46]line [22:16:46]line [22:16:46]line [22:16:46]line [22:16:46]line [22:16:46]written 0, free lines is 3306 [22:16:46]MH_Cut [22:16:46]Write to MH i2c: D1 01 00 D4 05 01 AB [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: D1 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: D1 01 00 [22:16:46]MH_I2C_Read... [22:16:46]Read from MH i2c: D1 01 00 D4 05 00 AA [22:16:46]Write to MH i2c: 01 00 00 D5 05 DA [22:16:46]Write i2c OK [22:16:46]MH_I2C_Read... [22:16:47]OFD Sender: No OFD packet to send [22:16:47]*** Cut start [22:16:47]*** Partial cut [22:16:47]*** CUTSNS_PIN = 1 [22:16:47]*** CUTSNS_PIN = 0 [22:16:47]*** Brake cut motor [22:16:48]Read from MH i2c: 01 [22:16:48]MH_I2C_Read... [22:16:48]*** Stop cut motor [22:16:48]*** Cut end [22:16:48]Read from MH i2c: 01 07 00 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: 01 07 00 D5 05 00 00 00 00 00 FF 0F EF [22:16:48]process_action close_receipt done [22:16:48]requested_data is exist [22:16:48]produce_requested_data [22:16:48]requested_item fm.sn is exist - process it [22:16:48]wFMCommunicate request_size=4 [22:16:48]MH_SAM_APDU [22:16:48]CAPDU: 80 11 00 00 [22:16:48]Write to MH i2c: E2 08 00 D6 05 80 11 00 00 00 00 00 00 55 [22:16:48]Write i2c OK [22:16:48]MH_I2C_Read... [22:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:48]Read from MH i2c: E2 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: E2 17 00 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: E2 17 00 D6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A8 [22:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:16:48]wFMCommunicate OK [22:16:48]requested_item fd.num is exist - process it [22:16:48]SAM_PROTO_GetFieldsCounters [22:16:48]wFMCommunicate request_size=4 [22:16:48]MH_SAM_APDU [22:16:48]CAPDU: 80 13 00 00 [22:16:48]Write to MH i2c: E2 08 00 D7 05 80 13 00 00 00 00 00 00 58 [22:16:48]Write i2c OK [22:16:48]MH_I2C_Read... [22:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:48]Read from MH i2c: E2 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: E2 62 00 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: E2 62 00 D7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 80 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [22:16:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 80 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:48]wFMCommunicate OK [22:16:48]SAM_PROTO_GetFieldsCounters done [22:16:48]requested_item shift.num is exist - process it [22:16:48]requested_item shift.opened is exist - process it [22:16:48]req_shift_opened [22:16:48]FM_GetShiftState [22:16:48]SAM_PROTO_GetShiftState [22:16:48]wFMCommunicate request_size=4 [22:16:48]MH_SAM_APDU [22:16:48]CAPDU: 80 13 01 00 [22:16:48]Write to MH i2c: E2 08 00 D8 05 80 13 01 00 00 00 00 00 5A [22:16:48]Write i2c OK [22:16:48]MH_I2C_Read... [22:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:48]Read from MH i2c: E2 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: E2 0E 00 [22:16:48]MH_I2C_Read... [22:16:48]Read from MH i2c: E2 0E 00 D8 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 A9 [22:16:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:16:48]wFMCommunicate OK [22:16:48]SAM_PROTO_GetShiftState done [22:16:48]FM_GetShiftState done [22:16:48]req_shift_opened done [22:16:48]requested_item shift.open_date is exist - process it [22:16:48]req_shift_open_date [22:16:48]req_shift_open_date done [22:16:48]produce_requested_data done [22:16:48]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104064,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [22:16:48]process_action_free close_receipt [22:16:48]json_value_free [22:16:48]json_value_free done [22:16:48]process_json_proto returns [22:16:48]Send response to host [22:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104064,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [22:16:48]free response buf [22:16:48]execute_script done [22:16:48]execute_script returns [22:16:48]free content buf [22:16:48]Sock 7.Close socket [22:16:48]Sock 7.Thread stoped [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:14]accept exits with 9 [22:22:14]New connection [22:22:14]New thread 3066858852 created [22:22:14]Thread 3066715492 joined [22:22:14]Waiting for new connection... [22:22:14] Sock 9.Parse request [22:22:14]Sock 9.Check first char [22:22:14]Sock 9.First char is OK [22:22:14]request: POST /json_proto HTTP/1.0 [22:22:14]Method: POST [22:22:14]URL: /json_proto [22:22:14]Method is POST - this is cgi request [22:22:14]url: /json_proto [22:22:14]query_string will be loaded in cgi processing [22:22:14]execute_cgi json_proto POST (null) [22:22:14]execute_cgi path=json_proto method=POST [22:22:14]POST find Content-Length [22:22:14]Host: 172.17.38.133:8080 [22:22:14]Content-Length: 687 [22:22:14]Content-Type: application/json [22:22:14] [22:22:14]POST finish read [22:22:14]Found Content-Length = 687 [22:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:14]execute_script... [22:22: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)673450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:22:14]POST & json_proto [22:22:14]process_json_proto [22:22:14]json parsed OK: [22:22:14]protocol is kg_v1.0 [22:22:14]action value=close_receipt [22:22:14]process_action close_receipt [22:22:14]cmd_close_receipt [22:22:14]MH_GetDate [22:22:14]Write to MH i2c: F0 00 00 D9 05 CD [22:22:14]Write i2c OK [22:22:14]MH_I2C_Read... [22:22:14]Read from MH i2c: F0 [22:22:14]MH_I2C_Read... [22:22:14]Read from MH i2c: F0 09 00 [22:22:14]MH_I2C_Read... [22:22:14]Read from MH i2c: F0 09 00 D9 05 00 97 AB 74 66 BD 8F 7C 64 1E [22:22:14]GetLastDocTimeStamp 1718921805 [22:22:14]current date 1718922135 [22:22:14]FM_GetShiftState [22:22:14]SAM_PROTO_GetShiftState [22:22:14]wFMCommunicate request_size=4 [22:22:14]MH_SAM_APDU [22:22:14]CAPDU: 80 13 01 00 [22:22:14]Write to MH i2c: E2 08 00 DA 05 80 13 01 00 00 00 00 00 5C [22:22:14]Write i2c OK [22:22:14]MH_I2C_Read... [22:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:14]Read from MH i2c: E2 [22:22:14]MH_I2C_Read... [22:22:14]Read from MH i2c: E2 0E 00 [22:22:14]MH_I2C_Read... [22:22:14]Read from MH i2c: E2 0E 00 DA 05 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AB [22:22:14]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:22:14]wFMCommunicate OK [22:22:14]SAM_PROTO_GetShiftState done [22:22:14]FM_GetShiftState done [22:22:14]opened in 1718843124 [22:22:14]opened+sec_in_day 1718929524 [22:22:14]quantity*price = 100018 [22:22:14]sum+1 = 100020 [22:22:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 250 20.06.2024 22:22 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104065 ФПД: 126782635509093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T222215&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104065&fm=126782635509093&tin=02508201610067®Number=0000000000092785&sum=100000 [22:22:15]StoreToDocumentArchive [22:22:15]shift 354 fd 104065 [22:22:15]save to /storage/0354/doc_00104065 [22:22:15]save last doc name /storage/0354/doc_00104065 to /storage/kkm_last_doc_name [22:22:15]save OK [22:22:15]Clear old archive folders... [22:22:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:22:15]tlvbuf is 010EDF50 [22:22:15]SAM_PROTO_ClearQueue [22:22:15]wFMCommunicate request_size=4 [22:22:15]MH_SAM_APDU [22:22:15]CAPDU: 80 09 00 00 [22:22:15]Write to MH i2c: E2 08 00 E7 05 80 09 00 00 00 00 00 00 5E [22:22:15]Write i2c OK [22:22:15]MH_I2C_Read... [22:22:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:15]Read from MH i2c: E2 [22:22:15]MH_I2C_Read... [22:22:15]Read from MH i2c: E2 03 00 [22:22:15]MH_I2C_Read... [22:22:15]Read from MH i2c: E2 03 00 E7 05 00 90 00 60 [22:22:15]RAPDU: 90 00 [22:22:15]wFMCommunicate OK [22:22:15]SAM_PROTO_ClearQueue done [22:22:15]KKMCreateOFDPacket [22:22:15]OFDProtocolAddRootSTLVToBuf [22:22:15]FM_MakeSignedData [22:22:15]FM_MakeSignedData [22:22:15]SAM_PROTO_SignData [22:22:15]wFMCommunicate request_size=4 [22:22:15]MH_SAM_APDU [22:22:15]CAPDU: 80 0D 01 02 [22:22:15]Write to MH i2c: E2 08 00 E8 05 80 0D 01 02 00 00 00 00 66 [22:22:15]Write i2c OK [22:22:15]MH_I2C_Read... [22:22:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:15]Read from MH i2c: E2 [22:22:15]MH_I2C_Read... [22:22:15]Read from MH i2c: E2 03 00 [22:22:15]MH_I2C_Read... [22:22:15]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [22:22:15]RAPDU: 90 00 [22:22:15]wFMCommunicate OK [22:22:15]wFMCommunicate request_size=255 [22:22:15]MH_SAM_APDU [22:22:15]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FA 00 00 00 F4 03 04 00 97 AB 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 96 01 00 35 04 06 00 [22:22:15]Write to MH i2c: E2 02 01 E9 05 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FA 00 00 00 F4 03 04 00 97 AB 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 96 01 00 35 04 06 00 00 00 4B [22:22:15]Write i2c OK [22:22:15]MH_I2C_Read... [22:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:16]Read from MH i2c: E2 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: E2 03 00 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [22:22:16]RAPDU: 90 00 [22:22:16]wFMCommunicate OK [22:22:16]wFMCommunicate request_size=11 [22:22:16]MH_SAM_APDU [22:22:16]CAPDU: 80 0D 02 02 06 73 4E E1 F4 05 65 [22:22:16]Write to MH i2c: E2 0E 00 EA 05 80 0D 02 02 06 00 73 4E E1 F4 05 65 00 00 75 [22:22:16]Write i2c OK [22:22:16]MH_I2C_Read... [22:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:16]Read from MH i2c: E2 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: E2 03 00 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [22:22:16]RAPDU: 90 00 [22:22:16]wFMCommunicate OK [22:22:16]wFMCommunicate request_size=4 [22:22:16]MH_SAM_APDU [22:22:16]CAPDU: 80 0D 03 02 [22:22:16]Write to MH i2c: E2 08 00 EB 05 80 0D 03 02 00 00 00 00 6B [22:22:16]Write i2c OK [22:22:16]MH_I2C_Read... [22:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:16]Read from MH i2c: E2 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: E2 0B 00 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: E2 0B 00 EB 05 00 13 69 5E 59 19 92 9D 4D 90 00 34 [22:22:16]RAPDU: 13 69 5E 59 19 92 9D 4D 90 00 [22:22:16]wFMCommunicate OK [22:22:16]SAM_PROTO_SignData done [22:22:16]FM_MakeSignedData done [22:22:16]CreateOFDProtocolMessage [22:22:16]wFMCommunicate request_size=4 [22:22:16]MH_SAM_APDU [22:22:16]CAPDU: 80 11 00 00 [22:22:16]Write to MH i2c: E2 08 00 EC 05 80 11 00 00 00 00 00 00 6B [22:22:16]Write i2c OK [22:22:16]MH_I2C_Read... [22:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:16]Read from MH i2c: E2 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: E2 17 00 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: E2 17 00 EC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 BE [22:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:22:16]wFMCommunicate OK [22:22:16]CreateOFDProtocolMessage done [22:22:16]OFDSenderStorePacket 104065 [22:22:16]StoreOFDPacket docnum=104065 [22:22:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 90 51 08 01 4B DD 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FA 00 00 00 F4 03 04 00 97 AB 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 96 01 00 35 04 06 00 73 4E E1 F4 05 65 13 69 5E 59 19 92 9D 4D [22:22:16]CheckFolder [22:22:16]dirname=/storage/ofd_packets [22:22:16]CheckFolder done [22:22:16]ProducePacketName [22:22:16]name=ofd_packets/00104065 [22:22:16]NVStorageSaveData ofd_packets/00104065 [22:22:16]File name is /storage/ofd_packets/00104065 [22:22:16]Write 302 bytes [22:22:16]NVStorageSaveData done [22:22:16]OFDSenderStorePacket done [22:22:16]KKMCreateOFDPacket done [22:22:16]NVStorageSaveData kkm_last_timestamp [22:22:16]File name is /storage/kkm_last_timestamp [22:22:16]Write 4 bytes [22:22:16]NVStorageSaveData done [22:22:16]ExternCall_PrintAddStr [22:22:16]wPrintStart [22:22:16]Write to MH i2c: 01 00 00 ED 05 F2 [22:22:16]Write i2c OK [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: 01 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: 01 07 00 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: 01 07 00 ED 05 00 00 00 00 00 FF 0F 07 [22:22:16]RasterBufferAndPrint [22:22:16]line Счет N : (1)673450 [22:22:16]line ИНН: 02508201610067 [22:22:16]line Контрольно-Кассовый Чек [22:22:16]line ПРОДАЖА [22:22:16]line ТРК (МРК, ГНК) : 21 [22:22:16]line Товар: 2710194210 [22:22:16]line ДТ(л)-К-5 [22:22:16]line 13.720 * 72.90 [22:22:16]line = 1000.19 [22:22:16]line НДС 12% НСП 1% [22:22:16]line > о реализуемом товаре [22:22:16]line ОКРУГЛЕНИЕ: -0.19 [22:22:16]line ИТОГО: 1000.00 [22:22:16]line Внесено: 1000.00 [22:22:16]line СДАЧА: 0.00 [22:22:16]line НСП 1% : 8.85 [22:22:16]line НДС 12% : 106.21 [22:22:16]line Наличными: 1000.00 [22:22:16]line Безнал.: 0.00 [22:22:16]line Место: АЗС № 120 "Партнер Нефть" [22:22:16]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:22:16]line СНО: Общий режим [22:22:16]line Чек 250 20.06.2024 22:22 [22:22:16]line Смена: 354 ФФД: 1.0 [22:22:16]line ЗНМ: 0300000164 [22:22:16]line РНМ: 0000000000092785 [22:22:16]line Версия ККМ: 001 [22:22:16]line ФМ: 0000000000875093 [22:22:16]line ФД: 104065 [22:22:16]line ФПД: 126782635509093 [22:22:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T222215&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104065&fm=126782635509093&tin=02508201610067®Number=0000000000092785&sum=100000 [22:22:16]OFD Sender: Processing packet 104065 [packets to send 17, broken 16] [22:22:16]ProducePacketName [22:22:16]name=ofd_packets/00104065 [22:22:16]OFD Sender: To server: pG, [22:22:16]CommunicateWithHost lk.salyk.kg:30040 [22:22:16]ConnectInit lk.salyk.kg [22:22:16]written 0, free lines is 4095 [22:22:16]Connected sock=10 [22:22:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 90 51 08 01 4B DD 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FA 00 00 00 F4 03 04 00 97 AB 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 81 96 01 00 35 04 06 00 73 4E E1 F4 05 65 13 69 5E 59 19 92 9D 4D [22:22:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 EC E0 47 00 44 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 35 30 39 33 10 04 04 00 81 96 01 00 F4 03 04 00 1C 52 74 66 B6 04 01 00 00 AF 7E D3 C8 D8 D2 FF 7C [22:22:16]CommunicateWithHost err = 0 [22:22:16]CheckOFDResponse [22:22:16]1017 (14) - 77093643461234 [22:22:16]1041 (16) - 0000000000875093 [22:22:16]1040 (4) - 104065 [22:22:16]1012 (4) - 20.06.2024 16:00 [22:22:16]1206 (1) - 0 [22:22:16]OFD Sender: Remove packet 104065 [22:22:16]ProducePacketName [22:22:16]name=ofd_packets/00104065 [22:22:16]NVStorageDeleteData [22:22:16]Write to MH i2c: 01 00 00 18 06 1E [22:22:16]Write i2c OK [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: 01 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: 01 07 00 [22:22:16]MH_I2C_Read... [22:22:16]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 EA 0C 1B [22:22:16]RasterBufferAndPrint [22:22:16]line [22:22:16]line [22:22:16]line [22:22:16]line [22:22:16]line [22:22:16]written 0, free lines is 3312 [22:22:17]MH_Cut [22:22:17]Write to MH i2c: D1 01 00 1F 06 01 F7 [22:22:17]Write i2c OK [22:22:17]MH_I2C_Read... [22:22:17]Read from MH i2c: D1 [22:22:17]MH_I2C_Read... [22:22:17]Read from MH i2c: D1 01 00 [22:22:17]MH_I2C_Read... [22:22:17]Read from MH i2c: D1 01 00 1F 06 00 F6 [22:22:17]Write to MH i2c: 01 00 00 20 06 26 [22:22:17]Write i2c OK [22:22:17]MH_I2C_Read... [22:22:17]OFD Sender: No OFD packet to send [22:22:17]*** Cut start [22:22:17]*** Partial cut [22:22:17]*** CUTSNS_PIN = 1 [22:22:17]*** CUTSNS_PIN = 0 [22:22:17]*** Brake cut motor [22:22:18]Read from MH i2c: 01 [22:22:18]MH_I2C_Read... [22:22:18]*** Stop cut motor [22:22:18]*** Cut end [22:22:18]Read from MH i2c: 01 07 00 [22:22:18]MH_I2C_Read... [22:22:18]Read from MH i2c: 01 07 00 20 06 00 00 00 00 00 FF 0F 3B [22:22:18]process_action close_receipt done [22:22:18]requested_data is exist [22:22:18]produce_requested_data [22:22:18]requested_item fm.sn is exist - process it [22:22:18]wFMCommunicate request_size=4 [22:22:18]MH_SAM_APDU [22:22:18]CAPDU: 80 11 00 00 [22:22:18]Write to MH i2c: E2 08 00 21 06 80 11 00 00 00 00 00 00 A1 [22:22:18]Write i2c OK [22:22:18]MH_I2C_Read... [22:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:18]Read from MH i2c: E2 [22:22:18]MH_I2C_Read... [22:22:18]Read from MH i2c: E2 17 00 [22:22:18]MH_I2C_Read... [22:22:18]Read from MH i2c: E2 17 00 21 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F4 [22:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:22:18]wFMCommunicate OK [22:22:18]requested_item fd.num is exist - process it [22:22:18]SAM_PROTO_GetFieldsCounters [22:22:18]wFMCommunicate request_size=4 [22:22:18]MH_SAM_APDU [22:22:18]CAPDU: 80 13 00 00 [22:22:18]Write to MH i2c: E2 08 00 22 06 80 13 00 00 00 00 00 00 A4 [22:22:18]Write i2c OK [22:22:18]MH_I2C_Read... [22:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:18]Read from MH i2c: E2 [22:22:18]MH_I2C_Read... [22:22:18]Read from MH i2c: E2 62 00 [22:22:18]MH_I2C_Read... [22:22:18]Read from MH i2c: E2 62 00 22 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 81 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [22:22:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 81 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:22:18]wFMCommunicate OK [22:22:18]SAM_PROTO_GetFieldsCounters done [22:22:18]requested_item shift.num is exist - process it [22:22:18]requested_item shift.opened is exist - process it [22:22:18]req_shift_opened [22:22:18]FM_GetShiftState [22:22:18]SAM_PROTO_GetShiftState [22:22:18]wFMCommunicate request_size=4 [22:22:18]MH_SAM_APDU [22:22:18]CAPDU: 80 13 01 00 [22:22:18]Write to MH i2c: E2 08 00 23 06 80 13 01 00 00 00 00 00 A6 [22:22:18]Write i2c OK [22:22:18]MH_I2C_Read... [22:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:18]Read from MH i2c: E2 [22:22:18]MH_I2C_Read... [22:22:18]Read from MH i2c: E2 0E 00 [22:22:18]MH_I2C_Read... [22:22:18]Read from MH i2c: E2 0E 00 23 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F5 [22:22:18]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:22:18]wFMCommunicate OK [22:22:18]SAM_PROTO_GetShiftState done [22:22:18]FM_GetShiftState done [22:22:18]req_shift_opened done [22:22:18]requested_item shift.open_date is exist - process it [22:22:18]req_shift_open_date [22:22:18]req_shift_open_date done [22:22:18]produce_requested_data done [22:22:18]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104065,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [22:22:18]process_action_free close_receipt [22:22:18]json_value_free [22:22:18]json_value_free done [22:22:18]process_json_proto returns [22:22:18]Send response to host [22:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104065,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [22:22:18]free response buf [22:22:18]execute_script done [22:22:18]execute_script returns [22:22:18]free content buf [22:22:18]Sock 9.Close socket [22:22:18]Sock 9.Thread stoped [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:24]accept exits with 7 [22:25:24]New connection [22:25:24]New thread 3066715492 created [22:25:24]Thread 3066858852 joined [22:25:24]Waiting for new connection... [22:25:24] Sock 7.Parse request [22:25:24]Sock 7.Check first char [22:25:24]Sock 7.First char is OK [22:25:24]request: POST /json_proto HTTP/1.0 [22:25:24]Method: POST [22:25:24]URL: /json_proto [22:25:24]Method is POST - this is cgi request [22:25:24]url: /json_proto [22:25:24]query_string will be loaded in cgi processing [22:25:24]execute_cgi json_proto POST (null) [22:25:24]execute_cgi path=json_proto method=POST [22:25:24]POST find Content-Length [22:25:24]Host: 172.17.38.133:8080 [22:25:24]Content-Length: 682 [22:25:24]Content-Type: application/json [22:25:24] [22:25:24]POST finish read [22:25:24]Found Content-Length = 682 [22:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 3.430, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:24]execute_script... [22:25: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)673452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 3.430, "sum" : 250.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:24]POST & json_proto [22:25:24]process_json_proto [22:25:24]json parsed OK: [22:25:24]protocol is kg_v1.0 [22:25:24]action value=close_receipt [22:25:24]process_action close_receipt [22:25:24]cmd_close_receipt [22:25:24]MH_GetDate [22:25:24]Write to MH i2c: F0 00 00 24 06 19 [22:25:24]Write i2c OK [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: F0 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: F0 09 00 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: F0 09 00 24 06 00 56 AC 74 66 BD 8F 7C 64 2A [22:25:24]GetLastDocTimeStamp 1718922135 [22:25:24]current date 1718922326 [22:25:24]FM_GetShiftState [22:25:24]SAM_PROTO_GetShiftState [22:25:24]wFMCommunicate request_size=4 [22:25:24]MH_SAM_APDU [22:25:24]CAPDU: 80 13 01 00 [22:25:24]Write to MH i2c: E2 08 00 25 06 80 13 01 00 00 00 00 00 A8 [22:25:24]Write i2c OK [22:25:24]MH_I2C_Read... [22:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:24]Read from MH i2c: E2 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: E2 0E 00 [22:25:24]MH_I2C_Read... [22:25:24]Read from MH i2c: E2 0E 00 25 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F7 [22:25:24]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:25:24]wFMCommunicate OK [22:25:24]SAM_PROTO_GetShiftState done [22:25:24]FM_GetShiftState done [22:25:24]opened in 1718843124 [22:25:24]opened+sec_in_day 1718929524 [22:25:24]quantity*price = 25004 [22:25:24]sum+1 = 25006 [22:25:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 251 20.06.2024 22:25 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104066 ФПД: 167987216499019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T222526&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104066&fm=167987216499019&tin=02508201610067®Number=0000000000092785&sum=25000 [22:25:26]StoreToDocumentArchive [22:25:26]shift 354 fd 104066 [22:25:26]save to /storage/0354/doc_00104066 [22:25:26]save last doc name /storage/0354/doc_00104066 to /storage/kkm_last_doc_name [22:25:26]save OK [22:25:26]Clear old archive folders... [22:25:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:25:26]tlvbuf is 0115ABB0 [22:25:26]SAM_PROTO_ClearQueue [22:25:26]wFMCommunicate request_size=4 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 09 00 00 [22:25:26]Write to MH i2c: E2 08 00 32 06 80 09 00 00 00 00 00 00 AA [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]SAM_PROTO_ClearQueue done [22:25:26]KKMCreateOFDPacket [22:25:26]OFDProtocolAddRootSTLVToBuf [22:25:26]FM_MakeSignedData [22:25:26]FM_MakeSignedData [22:25:26]SAM_PROTO_SignData [22:25:26]wFMCommunicate request_size=4 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 0D 01 02 [22:25:26]Write to MH i2c: E2 08 00 33 06 80 0D 01 02 00 00 00 00 B2 [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]wFMCommunicate request_size=255 [22:25:26]MH_SAM_APDU [22:25:26]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 56 AC 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 96 01 00 35 04 06 00 [22:25:26]Write to MH i2c: E2 02 01 34 06 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 56 AC 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 96 01 00 35 04 06 00 00 00 BF [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]wFMCommunicate request_size=11 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 0D 02 02 06 98 C8 92 5D C1 4B [22:25:26]Write to MH i2c: E2 0E 00 35 06 80 0D 02 02 06 00 98 C8 92 5D C1 4B 00 00 1C [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [22:25:26]RAPDU: 90 00 [22:25:26]wFMCommunicate OK [22:25:26]wFMCommunicate request_size=4 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 0D 03 02 [22:25:26]Write to MH i2c: E2 08 00 36 06 80 0D 03 02 00 00 00 00 B7 [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 0B 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 0B 00 36 06 00 ED D7 30 65 F7 CB 27 53 90 00 4D [22:25:26]RAPDU: ED D7 30 65 F7 CB 27 53 90 00 [22:25:26]wFMCommunicate OK [22:25:26]SAM_PROTO_SignData done [22:25:26]FM_MakeSignedData done [22:25:26]CreateOFDProtocolMessage [22:25:26]wFMCommunicate request_size=4 [22:25:26]MH_SAM_APDU [22:25:26]CAPDU: 80 11 00 00 [22:25:26]Write to MH i2c: E2 08 00 37 06 80 11 00 00 00 00 00 00 B7 [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:26]Read from MH i2c: E2 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 17 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: E2 17 00 37 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0A [22:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:25:26]wFMCommunicate OK [22:25:26]CreateOFDProtocolMessage done [22:25:26]OFDSenderStorePacket 104066 [22:25:26]StoreOFDPacket docnum=104066 [22:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 D0 7E 08 01 15 40 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 56 AC 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 96 01 00 35 04 06 00 98 C8 92 5D C1 4B ED D7 30 65 F7 CB 27 53 [22:25:26]CheckFolder [22:25:26]dirname=/storage/ofd_packets [22:25:26]CheckFolder done [22:25:26]ProducePacketName [22:25:26]name=ofd_packets/00104066 [22:25:26]NVStorageSaveData ofd_packets/00104066 [22:25:26]File name is /storage/ofd_packets/00104066 [22:25:26]Write 302 bytes [22:25:26]NVStorageSaveData done [22:25:26]OFDSenderStorePacket done [22:25:26]KKMCreateOFDPacket done [22:25:26]NVStorageSaveData kkm_last_timestamp [22:25:26]File name is /storage/kkm_last_timestamp [22:25:26]Write 4 bytes [22:25:26]NVStorageSaveData done [22:25:26]ExternCall_PrintAddStr [22:25:26]wPrintStart [22:25:26]Write to MH i2c: 01 00 00 38 06 3E [22:25:26]Write i2c OK [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: 01 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: 01 07 00 [22:25:26]MH_I2C_Read... [22:25:26]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [22:25:26]RasterBufferAndPrint [22:25:26]line Счет N : (1)673452 [22:25:26]line ИНН: 02508201610067 [22:25:26]line Контрольно-Кассовый Чек [22:25:26]line ПРОДАЖА [22:25:26]line ТРК (МРК, ГНК) : 21 [22:25:26]line Товар: 2710194210 [22:25:26]line ДТ(л)-К-5 [22:25:26]line 3.430 * 72.90 [22:25:26]line = 250.05 [22:25:26]line НДС 12% НСП 1% [22:25:26]line > о реализуемом товаре [22:25:26]line ОКРУГЛЕНИЕ: -0.05 [22:25:26]line ИТОГО: 250.00 [22:25:26]line Внесено: 250.00 [22:25:26]line СДАЧА: 0.00 [22:25:26]line НСП 1% : 2.21 [22:25:26]line НДС 12% : 26.55 [22:25:26]line Наличными: 250.00 [22:25:26]line Безнал.: 0.00 [22:25:26]line Место: АЗС № 120 "Партнер Нефть" [22:25:26]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:25:26]line СНО: Общий режим [22:25:26]line Чек 251 20.06.2024 22:25 [22:25:26]line Смена: 354 ФФД: 1.0 [22:25:26]line ЗНМ: 0300000164 [22:25:26]line РНМ: 0000000000092785 [22:25:26]line Версия ККМ: 001 [22:25:26]line ФМ: 0000000000875093 [22:25:26]line ФД: 104066 [22:25:26]line ФПД: 167987216499019 [22:25:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T222526&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104066&fm=167987216499019&tin=02508201610067®Number=0000000000092785&sum=25000 [22:25:26]OFD Sender: Processing packet 104066 [packets to send 17, broken 16] [22:25:26]ProducePacketName [22:25:26]name=ofd_packets/00104066 [22:25:26]OFD Sender: To server: pG, [22:25:26]CommunicateWithHost lk.salyk.kg:30040 [22:25:26]ConnectInit lk.salyk.kg [22:25:26]written 0, free lines is 4095 [22:25:27]Connected sock=10 [22:25:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 D0 7E 08 01 15 40 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 66 0D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 AD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 56 AC 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 96 01 00 35 04 06 00 98 C8 92 5D C1 4B ED D7 30 65 F7 CB 27 53 [22:25:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 05 56 47 00 4F 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 82 96 01 00 F4 03 04 00 DA 52 74 66 B6 04 01 00 00 8F BA CB 65 C9 74 91 41 [22:25:27]CommunicateWithHost err = 0 [22:25:27]CheckOFDResponse [22:25:27]1017 (14) - 77093643461234 [22:25:27]1041 (16) - 0000000000875093 [22:25:27]1040 (4) - 104066 [22:25:27]1012 (4) - 20.06.2024 16:03 [22:25:27]1206 (1) - 0 [22:25:27]OFD Sender: Remove packet 104066 [22:25:27]ProducePacketName [22:25:27]name=ofd_packets/00104066 [22:25:27]NVStorageDeleteData [22:25:27]Write to MH i2c: 01 00 00 63 06 69 [22:25:27]Write i2c OK [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: 01 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: 01 07 00 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 E5 0C 61 [22:25:27]RasterBufferAndPrint [22:25:27]line [22:25:27]line [22:25:27]line [22:25:27]line [22:25:27]line [22:25:27]written 0, free lines is 3307 [22:25:27]MH_Cut [22:25:27]Write to MH i2c: D1 01 00 6A 06 01 42 [22:25:27]Write i2c OK [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: D1 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: D1 01 00 [22:25:27]MH_I2C_Read... [22:25:27]Read from MH i2c: D1 01 00 6A 06 00 41 [22:25:27]Write to MH i2c: 01 00 00 6B 06 71 [22:25:27]Write i2c OK [22:25:27]MH_I2C_Read... [22:25:27]OFD Sender: No OFD packet to send [22:25:28]*** Cut start [22:25:28]*** Partial cut [22:25:28]*** CUTSNS_PIN = 1 [22:25:28]*** CUTSNS_PIN = 0 [22:25:28]*** Brake cut motor [22:25:28]Read from MH i2c: 01 [22:25:28]MH_I2C_Read... [22:25:28]*** Stop cut motor [22:25:28]*** Cut end [22:25:28]Read from MH i2c: 01 07 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: 01 07 00 6B 06 00 00 00 00 00 FF 0F 86 [22:25:28]process_action close_receipt done [22:25:28]requested_data is exist [22:25:28]produce_requested_data [22:25:28]requested_item fm.sn is exist - process it [22:25:28]wFMCommunicate request_size=4 [22:25:28]MH_SAM_APDU [22:25:28]CAPDU: 80 11 00 00 [22:25:28]Write to MH i2c: E2 08 00 6C 06 80 11 00 00 00 00 00 00 EC [22:25:28]Write i2c OK [22:25:28]MH_I2C_Read... [22:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:28]Read from MH i2c: E2 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 17 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 17 00 6C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3F [22:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:25:28]wFMCommunicate OK [22:25:28]requested_item fd.num is exist - process it [22:25:28]SAM_PROTO_GetFieldsCounters [22:25:28]wFMCommunicate request_size=4 [22:25:28]MH_SAM_APDU [22:25:28]CAPDU: 80 13 00 00 [22:25:28]Write to MH i2c: E2 08 00 6D 06 80 13 00 00 00 00 00 00 EF [22:25:28]Write i2c OK [22:25:28]MH_I2C_Read... [22:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:28]Read from MH i2c: E2 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 62 00 [22:25:28]MH_I2C_Read... [22:25:28]Read from MH i2c: E2 62 00 6D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 82 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [22:25:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 82 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:28]wFMCommunicate OK [22:25:28]SAM_PROTO_GetFieldsCounters done [22:25:28]requested_item shift.num is exist - process it [22:25:28]requested_item shift.opened is exist - process it [22:25:28]req_shift_opened [22:25:28]FM_GetShiftState [22:25:28]SAM_PROTO_GetShiftState [22:25:28]wFMCommunicate request_size=4 [22:25:28]MH_SAM_APDU [22:25:28]CAPDU: 80 13 01 00 [22:25:28]Write to MH i2c: E2 08 00 6E 06 80 13 01 00 00 00 00 00 F1 [22:25:28]Write i2c OK [22:25:28]MH_I2C_Read... [22:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:29]Read from MH i2c: E2 [22:25:29]MH_I2C_Read... [22:25:29]Read from MH i2c: E2 0E 00 [22:25:29]MH_I2C_Read... [22:25:29]Read from MH i2c: E2 0E 00 6E 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 40 [22:25:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:25:29]wFMCommunicate OK [22:25:29]SAM_PROTO_GetShiftState done [22:25:29]FM_GetShiftState done [22:25:29]req_shift_opened done [22:25:29]requested_item shift.open_date is exist - process it [22:25:29]req_shift_open_date [22:25:29]req_shift_open_date done [22:25:29]produce_requested_data done [22:25:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104066,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [22:25:29]process_action_free close_receipt [22:25:29]json_value_free [22:25:29]json_value_free done [22:25:29]process_json_proto returns [22:25:29]Send response to host [22:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104066,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [22:25:29]free response buf [22:25:29]execute_script done [22:25:29]execute_script returns [22:25:29]free content buf [22:25:29]Sock 7.Close socket [22:25:29]Sock 7.Thread stoped [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:51]accept exits with 9 [22:25:51]New connection [22:25:51]New thread 3066858852 created [22:25:51]Thread 3066715492 joined [22:25:51]Waiting for new connection... [22:25:51] Sock 9.Parse request [22:25:51]Sock 9.Check first char [22:25:51]Sock 9.First char is OK [22:25:51]request: POST /json_proto HTTP/1.0 [22:25:51]Method: POST [22:25:51]URL: /json_proto [22:25:51]Method is POST - this is cgi request [22:25:51]url: /json_proto [22:25:51]query_string will be loaded in cgi processing [22:25:51]execute_cgi json_proto POST (null) [22:25:51]execute_cgi path=json_proto method=POST [22:25:51]POST find Content-Length [22:25:51]Host: 172.17.38.133:8080 [22:25:51]Content-Length: 803 [22:25:51]Content-Type: application/json [22:25:51] [22:25:51]POST finish read [22:25:51]Found Content-Length = 803 [22:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 27.110, "sum" : 1800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:51]execute_script... [22:25: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)673451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 27.110, "sum" : 1800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:51]POST & json_proto [22:25:51]process_json_proto [22:25:51]json parsed OK: [22:25:51]protocol is kg_v1.0 [22:25:51]action value=close_receipt [22:25:51]process_action close_receipt [22:25:51]cmd_close_receipt [22:25:51]MH_GetDate [22:25:51]Write to MH i2c: F0 00 00 6F 06 64 [22:25:51]Write i2c OK [22:25:51]MH_I2C_Read... [22:25:51]Read from MH i2c: F0 [22:25:51]MH_I2C_Read... [22:25:51]Read from MH i2c: F0 09 00 [22:25:51]MH_I2C_Read... [22:25:51]Read from MH i2c: F0 09 00 6F 06 00 70 AC 74 66 BD 8F 7C 64 8F [22:25:51]GetLastDocTimeStamp 1718922326 [22:25:51]current date 1718922352 [22:25:51]FM_GetShiftState [22:25:51]SAM_PROTO_GetShiftState [22:25:51]wFMCommunicate request_size=4 [22:25:51]MH_SAM_APDU [22:25:51]CAPDU: 80 13 01 00 [22:25:51]Write to MH i2c: E2 08 00 70 06 80 13 01 00 00 00 00 00 F3 [22:25:51]Write i2c OK [22:25:51]MH_I2C_Read... [22:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:51]Read from MH i2c: E2 [22:25:51]MH_I2C_Read... [22:25:51]Read from MH i2c: E2 0E 00 [22:25:51]MH_I2C_Read... [22:25:51]Read from MH i2c: E2 0E 00 70 06 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 42 [22:25:51]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:25:51]wFMCommunicate OK [22:25:51]SAM_PROTO_GetShiftState done [22:25:51]FM_GetShiftState done [22:25:51]opened in 1718843124 [22:25:51]opened+sec_in_day 1718929524 [22:25:51]quantity*price = 180010 [22:25:51]sum+1 = 180011 [22:25:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 254 20.06.2024 22:53 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104069 ФПД: 238794403773351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T225355&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104069&fm=238794403773351&tin=02508201610067®Number=0000000000092785&sum=50000 [22:53:54]StoreToDocumentArchive [22:53:54]shift 354 fd 104069 [22:53:54]save to /storage/0354/doc_00104069 [22:53:54]save last doc name /storage/0354/doc_00104069 to /storage/kkm_last_doc_name [22:53:54]save OK [22:53:54]Clear old archive folders... [22:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:53:54]tlvbuf is 01120980 [22:53:54]SAM_PROTO_ClearQueue [22:53:54]wFMCommunicate request_size=4 [22:53:54]MH_SAM_APDU [22:53:54]CAPDU: 80 09 00 00 [22:53:54]Write to MH i2c: E2 08 00 32 07 80 09 00 00 00 00 00 00 AB [22:53:54]Write i2c OK [22:53:54]MH_I2C_Read... [22:53:54]Read from MH i2c: E2 [22:53:54]MH_I2C_Read... [22:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:54]Read from MH i2c: E2 03 00 [22:53:54]MH_I2C_Read... [22:53:54]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [22:53:54]RAPDU: 90 00 [22:53:54]wFMCommunicate OK [22:53:54]SAM_PROTO_ClearQueue done [22:53:54]KKMCreateOFDPacket [22:53:54]OFDProtocolAddRootSTLVToBuf [22:53:54]FM_MakeSignedData [22:53:54]FM_MakeSignedData [22:53:54]SAM_PROTO_SignData [22:53:54]wFMCommunicate request_size=4 [22:53:54]MH_SAM_APDU [22:53:54]CAPDU: 80 0D 01 02 [22:53:54]Write to MH i2c: E2 08 00 33 07 80 0D 01 02 00 00 00 00 B3 [22:53:54]Write i2c OK [22:53:54]MH_I2C_Read... [22:53:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:55]Read from MH i2c: E2 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 03 00 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [22:53:55]RAPDU: 90 00 [22:53:55]wFMCommunicate OK [22:53:55]wFMCommunicate request_size=255 [22:53:55]MH_SAM_APDU [22:53: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 03 B3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 96 01 00 35 04 06 00 D9 [22:53:55]Write to MH i2c: E2 02 01 34 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 03 B3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 96 01 00 35 04 06 00 D9 00 00 53 [22:53:55]Write i2c OK [22:53:55]MH_I2C_Read... [22:53:55]OFD Sender: No OFD packet to send [22:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:55]Read from MH i2c: E2 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 03 00 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [22:53:55]RAPDU: 90 00 [22:53:55]wFMCommunicate OK [22:53:55]wFMCommunicate request_size=10 [22:53:55]MH_SAM_APDU [22:53:55]CAPDU: 80 0D 02 02 05 2E A7 9C 7B A7 [22:53:55]Write to MH i2c: E2 0D 00 35 07 80 0D 02 02 05 00 2E A7 9C 7B A7 00 00 53 [22:53:55]Write i2c OK [22:53:55]MH_I2C_Read... [22:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:55]Read from MH i2c: E2 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 03 00 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [22:53:55]RAPDU: 90 00 [22:53:55]wFMCommunicate OK [22:53:55]wFMCommunicate request_size=4 [22:53:55]MH_SAM_APDU [22:53:55]CAPDU: 80 0D 03 02 [22:53:55]Write to MH i2c: E2 08 00 36 07 80 0D 03 02 00 00 00 00 B8 [22:53:55]Write i2c OK [22:53:55]MH_I2C_Read... [22:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:55]Read from MH i2c: E2 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 0B 00 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 0B 00 36 07 00 10 F2 55 27 87 6B 15 5C 90 00 9A [22:53:55]RAPDU: 10 F2 55 27 87 6B 15 5C 90 00 [22:53:55]wFMCommunicate OK [22:53:55]SAM_PROTO_SignData done [22:53:55]FM_MakeSignedData done [22:53:55]CreateOFDProtocolMessage [22:53:55]wFMCommunicate request_size=4 [22:53:55]MH_SAM_APDU [22:53:55]CAPDU: 80 11 00 00 [22:53:55]Write to MH i2c: E2 08 00 37 07 80 11 00 00 00 00 00 00 B8 [22:53:55]Write i2c OK [22:53:55]MH_I2C_Read... [22:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:55]Read from MH i2c: E2 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 17 00 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: E2 17 00 37 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0B [22:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:53:55]wFMCommunicate OK [22:53:55]CreateOFDProtocolMessage done [22:53:55]OFDSenderStorePacket 104069 [22:53:55]StoreOFDPacket docnum=104069 [22:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 18 4B 07 01 40 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 03 B3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 96 01 00 35 04 06 00 D9 2E A7 9C 7B A7 10 F2 55 27 87 6B 15 5C [22:53:55]CheckFolder [22:53:55]dirname=/storage/ofd_packets [22:53:55]CheckFolder done [22:53:55]ProducePacketName [22:53:55]name=ofd_packets/00104069 [22:53:55]NVStorageSaveData ofd_packets/00104069 [22:53:55]File name is /storage/ofd_packets/00104069 [22:53:55]Write 301 bytes [22:53:55]NVStorageSaveData done [22:53:55]OFDSenderStorePacket done [22:53:55]KKMCreateOFDPacket done [22:53:55]NVStorageSaveData kkm_last_timestamp [22:53:55]File name is /storage/kkm_last_timestamp [22:53:55]Write 4 bytes [22:53:55]NVStorageSaveData done [22:53:55]ExternCall_PrintAddStr [22:53:55]wPrintStart [22:53:55]Write to MH i2c: 01 00 00 38 07 3F [22:53:55]Write i2c OK [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: 01 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: 01 07 00 [22:53:55]MH_I2C_Read... [22:53:55]Read from MH i2c: 01 07 00 38 07 00 00 00 00 00 FF 0F 54 [22:53:55]RasterBufferAndPrint [22:53:55]line Счет N : (1)673455 [22:53:55]line ИНН: 02508201610067 [22:53:55]line Контрольно-Кассовый Чек [22:53:55]line ПРОДАЖА [22:53:55]line ТРК (МРК, ГНК) : 42 [22:53:55]line Товар: 2710124130 [22:53:55]line Аи-92-К-5 [22:53:55]line 7.540 * 66.40 [22:53:55]line = 500.66 [22:53:55]line НДС 12% НСП 1% [22:53:55]line > о реализуемом товаре [22:53:55]line ОКРУГЛЕНИЕ: -0.66 [22:53:55]line ИТОГО: 500.00 [22:53:55]line Внесено: 500.00 [22:53:55]line СДАЧА: 0.00 [22:53:55]line НСП 1% : 4.43 [22:53:55]line НДС 12% : 53.17 [22:53:55]line Наличными: 500.00 [22:53:55]line Безнал.: 0.00 [22:53:55]line Место: АЗС № 120 "Партнер Нефть" [22:53:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [22:53:55]line СНО: Общий режим [22:53:55]line Чек 254 20.06.2024 22:53 [22:53:55]line Смена: 354 ФФД: 1.0 [22:53:55]line ЗНМ: 0300000164 [22:53:55]line РНМ: 0000000000092785 [22:53:55]line Версия ККМ: 001 [22:53:55]line ФМ: 0000000000875093 [22:53:55]line ФД: 104069 [22:53:55]line ФПД: 238794403773351 [22:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T225355&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104069&fm=238794403773351&tin=02508201610067®Number=0000000000092785&sum=50000 [22:53:55]OFD Sender: Processing packet 104069 [packets to send 17, broken 16] [22:53:55]ProducePacketName [22:53:55]name=ofd_packets/00104069 [22:53:55]OFD Sender: To server: pG, [22:53:55]CommunicateWithHost lk.salyk.kg:30040 [22:53:55]ConnectInit lk.salyk.kg [22:53:55]written 0, free lines is 4095 [22:53:55]Connected sock=10 [22:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 18 4B 07 01 40 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 03 B3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 96 01 00 35 04 06 00 D9 2E A7 9C 7B A7 10 F2 55 27 87 6B 15 5C [22:53:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 73 4F 47 00 28 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 85 96 01 00 F4 03 04 00 87 59 74 66 B6 04 01 00 00 95 C1 71 8C 72 92 2C 86 [22:53:56]CommunicateWithHost err = 0 [22:53:56]CheckOFDResponse [22:53:56]1017 (14) - 77093643461234 [22:53:56]1041 (16) - 0000000000875093 [22:53:56]1040 (4) - 104069 [22:53:56]1012 (4) - 20.06.2024 16:32 [22:53:56]1206 (1) - 0 [22:53:56]OFD Sender: Remove packet 104069 [22:53:56]ProducePacketName [22:53:56]name=ofd_packets/00104069 [22:53:56]NVStorageDeleteData [22:53:56]Write to MH i2c: 01 00 00 63 07 6A [22:53:56]Write i2c OK [22:53:56]MH_I2C_Read... [22:53:56]Read from MH i2c: 01 [22:53:56]MH_I2C_Read... [22:53:56]Read from MH i2c: 01 07 00 [22:53:56]MH_I2C_Read... [22:53:56]Read from MH i2c: 01 07 00 63 07 00 00 00 00 00 EB 0C 68 [22:53:56]RasterBufferAndPrint [22:53:56]line [22:53:56]line [22:53:56]line [22:53:56]line [22:53:56]line [22:53:56]written 0, free lines is 3313 [22:53:56]MH_Cut [22:53:56]Write to MH i2c: D1 01 00 6A 07 01 43 [22:53:56]Write i2c OK [22:53:56]MH_I2C_Read... [22:53:56]Read from MH i2c: D1 [22:53:56]MH_I2C_Read... [22:53:56]Read from MH i2c: D1 01 00 [22:53:56]MH_I2C_Read... [22:53:56]Read from MH i2c: D1 01 00 6A 07 00 42 [22:53:56]Write to MH i2c: 01 00 00 6B 07 72 [22:53:56]Write i2c OK [22:53:56]MH_I2C_Read... [22:53:56]OFD Sender: No OFD packet to send [22:53:56]*** Cut start [22:53:56]*** Partial cut [22:53:56]*** CUTSNS_PIN = 1 [22:53:57]*** CUTSNS_PIN = 0 [22:53:57]*** Brake cut motor [22:53:57]Read from MH i2c: 01 [22:53:57]MH_I2C_Read... [22:53:57]*** Stop cut motor [22:53:57]*** Cut end [22:53:57]Read from MH i2c: 01 07 00 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: 01 07 00 6B 07 00 00 00 00 00 FF 0F 87 [22:53:57]process_action close_receipt done [22:53:57]requested_data is exist [22:53:57]produce_requested_data [22:53:57]requested_item fm.sn is exist - process it [22:53:57]wFMCommunicate request_size=4 [22:53:57]MH_SAM_APDU [22:53:57]CAPDU: 80 11 00 00 [22:53:57]Write to MH i2c: E2 08 00 6C 07 80 11 00 00 00 00 00 00 ED [22:53:57]Write i2c OK [22:53:57]MH_I2C_Read... [22:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:57]Read from MH i2c: E2 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 17 00 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 17 00 6C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 40 [22:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [22:53:57]wFMCommunicate OK [22:53:57]requested_item fd.num is exist - process it [22:53:57]SAM_PROTO_GetFieldsCounters [22:53:57]wFMCommunicate request_size=4 [22:53:57]MH_SAM_APDU [22:53:57]CAPDU: 80 13 00 00 [22:53:57]Write to MH i2c: E2 08 00 6D 07 80 13 00 00 00 00 00 00 F0 [22:53:57]Write i2c OK [22:53:57]MH_I2C_Read... [22:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:57]Read from MH i2c: E2 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 62 00 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 62 00 6D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [22:53:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 85 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:53:57]wFMCommunicate OK [22:53:57]SAM_PROTO_GetFieldsCounters done [22:53:57]requested_item shift.num is exist - process it [22:53:57]requested_item shift.opened is exist - process it [22:53:57]req_shift_opened [22:53:57]FM_GetShiftState [22:53:57]SAM_PROTO_GetShiftState [22:53:57]wFMCommunicate request_size=4 [22:53:57]MH_SAM_APDU [22:53:57]CAPDU: 80 13 01 00 [22:53:57]Write to MH i2c: E2 08 00 6E 07 80 13 01 00 00 00 00 00 F2 [22:53:57]Write i2c OK [22:53:57]MH_I2C_Read... [22:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:57]Read from MH i2c: E2 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 0E 00 [22:53:57]MH_I2C_Read... [22:53:57]Read from MH i2c: E2 0E 00 6E 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 41 [22:53:57]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [22:53:57]wFMCommunicate OK [22:53:57]SAM_PROTO_GetShiftState done [22:53:57]FM_GetShiftState done [22:53:57]req_shift_opened done [22:53:57]requested_item shift.open_date is exist - process it [22:53:57]req_shift_open_date [22:53:57]req_shift_open_date done [22:53:57]produce_requested_data done [22:53:57]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104069,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [22:53:57]process_action_free close_receipt [22:53:57]json_value_free [22:53:57]json_value_free done [22:53:57]process_json_proto returns [22:53:57]Send response to host [22:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104069,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [22:53:57]free response buf [22:53:57]execute_script done [22:53:57]execute_script returns [22:53:57]free content buf [22:53:57]Sock 9.Close socket [22:53:57]Sock 9.Thread stoped [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:25]accept exits with 7 [23:08:25]New connection [23:08:25]New thread 3066858852 created [23:08:25]Thread 3066715492 joined [23:08:25]Waiting for new connection... [23:08:25] Sock 7.Parse request [23:08:25]Sock 7.Check first char [23:08:25]Sock 7.First char is OK [23:08:25]request: POST /json_proto HTTP/1.0 [23:08:25]Method: POST [23:08:25]URL: /json_proto [23:08:25]Method is POST - this is cgi request [23:08:25]url: /json_proto [23:08:25]query_string will be loaded in cgi processing [23:08:25]execute_cgi json_proto POST (null) [23:08:25]execute_cgi path=json_proto method=POST [23:08:25]POST find Content-Length [23:08:25]Host: 172.17.38.133:8080 [23:08:25]Content-Length: 677 [23:08:25]Content-Type: application/json [23:08:25] [23:08:25]POST finish read [23:08:25]Found Content-Length = 677 [23:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:25]execute_script... [23:08:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:25]POST & json_proto [23:08:25]process_json_proto [23:08:25]json parsed OK: [23:08:25]protocol is kg_v1.0 [23:08:25]action value=close_receipt [23:08:25]process_action close_receipt [23:08:25]cmd_close_receipt [23:08:25]MH_GetDate [23:08:25]Write to MH i2c: F0 00 00 6F 07 65 [23:08:25]Write i2c OK [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: F0 [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: F0 09 00 [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: F0 09 00 6F 07 00 6B B6 74 66 BD 8F 7C 64 95 [23:08:25]GetLastDocTimeStamp 1718924035 [23:08:25]current date 1718924907 [23:08:25]FM_GetShiftState [23:08:25]SAM_PROTO_GetShiftState [23:08:25]wFMCommunicate request_size=4 [23:08:25]MH_SAM_APDU [23:08:25]CAPDU: 80 13 01 00 [23:08:25]Write to MH i2c: E2 08 00 70 07 80 13 01 00 00 00 00 00 F4 [23:08:25]Write i2c OK [23:08:25]MH_I2C_Read... [23:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:26]Read from MH i2c: E2 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 0E 00 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 0E 00 70 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 43 [23:08:26]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:08:26]wFMCommunicate OK [23:08:26]SAM_PROTO_GetShiftState done [23:08:26]FM_GetShiftState done [23:08:26]opened in 1718843124 [23:08:26]opened+sec_in_day 1718929524 [23:08:26]quantity*price = 50065 [23:08:26]sum+1 = 50067 [23:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 255 20.06.2024 23:08 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104070 ФПД: 229655426425826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T230827&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104070&fm=229655426425826&tin=02508201610067®Number=0000000000092785&sum=50000 [23:08:27]StoreToDocumentArchive [23:08:27]shift 354 fd 104070 [23:08:27]save to /storage/0354/doc_00104070 [23:08:27]save last doc name /storage/0354/doc_00104070 to /storage/kkm_last_doc_name [23:08:27]save OK [23:08:27]Clear old archive folders... [23:08:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:08:27]tlvbuf is 010FC800 [23:08:27]SAM_PROTO_ClearQueue [23:08:27]wFMCommunicate request_size=4 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 09 00 00 [23:08:27]Write to MH i2c: E2 08 00 7D 07 80 09 00 00 00 00 00 00 F6 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [23:08:27]RAPDU: 90 00 [23:08:27]wFMCommunicate OK [23:08:27]SAM_PROTO_ClearQueue done [23:08:27]KKMCreateOFDPacket [23:08:27]OFDProtocolAddRootSTLVToBuf [23:08:27]FM_MakeSignedData [23:08:27]FM_MakeSignedData [23:08:27]SAM_PROTO_SignData [23:08:27]wFMCommunicate request_size=4 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 0D 01 02 [23:08:27]Write to MH i2c: E2 08 00 7E 07 80 0D 01 02 00 00 00 00 FE [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [23:08:27]RAPDU: 90 00 [23:08:27]wFMCommunicate OK [23:08:27]wFMCommunicate request_size=255 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 6B B6 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 96 01 00 35 04 06 00 D0 [23:08:27]Write to MH i2c: E2 02 01 7F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 6B B6 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 96 01 00 35 04 06 00 D0 00 00 02 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]OFD Sender: No OFD packet to send [23:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [23:08:27]RAPDU: 90 00 [23:08:27]wFMCommunicate OK [23:08:27]wFMCommunicate request_size=10 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 0D 02 02 05 DE D2 1C E3 E2 [23:08:27]Write to MH i2c: E2 0D 00 80 07 80 0D 02 02 05 00 DE D2 1C E3 E2 00 00 9C [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 80 07 00 90 00 FB [23:08:27]RAPDU: 90 00 [23:08:27]wFMCommunicate OK [23:08:27]wFMCommunicate request_size=4 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 0D 03 02 [23:08:27]Write to MH i2c: E2 08 00 81 07 80 0D 03 02 00 00 00 00 03 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 0B 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 0B 00 81 07 00 BF FB 6A D6 0E EB 6B 71 90 00 D3 [23:08:27]RAPDU: BF FB 6A D6 0E EB 6B 71 90 00 [23:08:27]wFMCommunicate OK [23:08:27]SAM_PROTO_SignData done [23:08:27]FM_MakeSignedData done [23:08:27]CreateOFDProtocolMessage [23:08:27]wFMCommunicate request_size=4 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 11 00 00 [23:08:27]Write to MH i2c: E2 08 00 82 07 80 11 00 00 00 00 00 00 03 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 17 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 17 00 82 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 56 [23:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:08:27]wFMCommunicate OK [23:08:27]CreateOFDProtocolMessage done [23:08:27]OFDSenderStorePacket 104070 [23:08:27]StoreOFDPacket docnum=104070 [23:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7C 13 07 01 1B 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 6B B6 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 96 01 00 35 04 06 00 D0 DE D2 1C E3 E2 BF FB 6A D6 0E EB 6B 71 [23:08:27]CheckFolder [23:08:27]dirname=/storage/ofd_packets [23:08:27]CheckFolder done [23:08:27]ProducePacketName [23:08:27]name=ofd_packets/00104070 [23:08:27]NVStorageSaveData ofd_packets/00104070 [23:08:27]File name is /storage/ofd_packets/00104070 [23:08:27]Write 301 bytes [23:08:27]NVStorageSaveData done [23:08:27]OFDSenderStorePacket done [23:08:27]KKMCreateOFDPacket done [23:08:27]NVStorageSaveData kkm_last_timestamp [23:08:27]File name is /storage/kkm_last_timestamp [23:08:27]Write 4 bytes [23:08:27]NVStorageSaveData done [23:08:27]ExternCall_PrintAddStr [23:08:27]wPrintStart [23:08:27]Write to MH i2c: 01 00 00 83 07 8A [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: 01 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: 01 07 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: 01 07 00 83 07 00 00 00 00 00 FF 0F 9F [23:08:27]RasterBufferAndPrint [23:08:27]line Счет N : (1)673456 [23:08:27]line ИНН: 02508201610067 [23:08:27]line Контрольно-Кассовый Чек [23:08:27]line ПРОДАЖА [23:08:27]line ТРК (МРК, ГНК) : 32 [23:08:27]line Товар: 2710124130 [23:08:27]line Аи-92-К-5 [23:08:27]line 7.540 * 66.40 [23:08:27]line = 500.66 [23:08:27]line НДС 12% НСП 1% [23:08:27]line > о реализуемом товаре [23:08:27]line ОКРУГЛЕНИЕ: -0.66 [23:08:27]line ИТОГО: 500.00 [23:08:27]line Внесено: 500.00 [23:08:27]line СДАЧА: 0.00 [23:08:27]line НСП 1% : 4.43 [23:08:27]line НДС 12% : 53.17 [23:08:27]line Наличными: 500.00 [23:08:27]line Безнал.: 0.00 [23:08:27]line Место: АЗС № 120 "Партнер Нефть" [23:08:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:08:27]line СНО: Общий режим [23:08:27]line Чек 255 20.06.2024 23:08 [23:08:27]line Смена: 354 ФФД: 1.0 [23:08:27]line ЗНМ: 0300000164 [23:08:27]line РНМ: 0000000000092785 [23:08:27]line Версия ККМ: 001 [23:08:27]line ФМ: 0000000000875093 [23:08:27]line ФД: 104070 [23:08:27]line ФПД: 229655426425826 [23:08:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T230827&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104070&fm=229655426425826&tin=02508201610067®Number=0000000000092785&sum=50000 [23:08:28]OFD Sender: Processing packet 104070 [packets to send 17, broken 16] [23:08:28]ProducePacketName [23:08:28]name=ofd_packets/00104070 [23:08:28]OFD Sender: To server: pG, [23:08:28]CommunicateWithHost lk.salyk.kg:30040 [23:08:28]ConnectInit lk.salyk.kg [23:08:28]written 0, free lines is 4095 [23:08:28]Connected sock=10 [23:08:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 7C 13 07 01 1B 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 6B B6 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 86 96 01 00 35 04 06 00 D0 DE D2 1C E3 E2 BF FB 6A D6 0E EB 6B 71 [23:08:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 35 F6 47 00 3F 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 35 30 39 33 10 04 04 00 86 96 01 00 F4 03 04 00 EF 5C 74 66 B6 04 01 00 00 FF 30 0C 0A F3 CC C5 D6 [23:08:28]CommunicateWithHost err = 0 [23:08:28]CheckOFDResponse [23:08:28]1017 (14) - 77093643461234 [23:08:28]1041 (16) - 0000000000875093 [23:08:28]1040 (4) - 104070 [23:08:28]1012 (4) - 20.06.2024 16:46 [23:08:28]1206 (1) - 0 [23:08:28]OFD Sender: Remove packet 104070 [23:08:28]ProducePacketName [23:08:28]name=ofd_packets/00104070 [23:08:28]NVStorageDeleteData [23:08:28]Write to MH i2c: 01 00 00 AE 07 B5 [23:08:28]Write i2c OK [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: 01 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: 01 07 00 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 E0 0C A8 [23:08:28]RasterBufferAndPrint [23:08:28]line [23:08:28]line [23:08:28]line [23:08:28]line [23:08:28]line [23:08:28]written 0, free lines is 3302 [23:08:28]MH_Cut [23:08:28]Write to MH i2c: D1 01 00 B5 07 01 8E [23:08:28]Write i2c OK [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: D1 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: D1 01 00 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: D1 01 00 B5 07 00 8D [23:08:28]Write to MH i2c: 01 00 00 B6 07 BD [23:08:28]Write i2c OK [23:08:28]MH_I2C_Read... [23:08:28]OFD Sender: No OFD packet to send [23:08:29]*** Cut start [23:08:29]*** Partial cut [23:08:29]*** CUTSNS_PIN = 1 [23:08:29]*** CUTSNS_PIN = 0 [23:08:29]*** Brake cut motor [23:08:29]Read from MH i2c: 01 [23:08:29]MH_I2C_Read... [23:08:29]*** Stop cut motor [23:08:29]*** Cut end [23:08:29]Read from MH i2c: 01 07 00 [23:08:29]MH_I2C_Read... [23:08:29]Read from MH i2c: 01 07 00 B6 07 00 00 00 00 00 FF 0F D2 [23:08:29]process_action close_receipt done [23:08:29]requested_data is exist [23:08:29]produce_requested_data [23:08:29]requested_item fm.sn is exist - process it [23:08:29]wFMCommunicate request_size=4 [23:08:29]MH_SAM_APDU [23:08:29]CAPDU: 80 11 00 00 [23:08:29]Write to MH i2c: E2 08 00 B7 07 80 11 00 00 00 00 00 00 38 [23:08:29]Write i2c OK [23:08:29]MH_I2C_Read... [23:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:29]Read from MH i2c: E2 [23:08:29]MH_I2C_Read... [23:08:29]Read from MH i2c: E2 17 00 [23:08:29]MH_I2C_Read... [23:08:29]Read from MH i2c: E2 17 00 B7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 8B [23:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:08:29]wFMCommunicate OK [23:08:29]requested_item fd.num is exist - process it [23:08:29]SAM_PROTO_GetFieldsCounters [23:08:29]wFMCommunicate request_size=4 [23:08:29]MH_SAM_APDU [23:08:29]CAPDU: 80 13 00 00 [23:08:29]Write to MH i2c: E2 08 00 B8 07 80 13 00 00 00 00 00 00 3B [23:08:29]Write i2c OK [23:08:29]MH_I2C_Read... [23:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:30]Read from MH i2c: E2 [23:08:30]MH_I2C_Read... [23:08:30]Read from MH i2c: E2 62 00 [23:08:30]MH_I2C_Read... [23:08:30]Read from MH i2c: E2 62 00 B8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 86 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [23:08:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 86 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:30]wFMCommunicate OK [23:08:30]SAM_PROTO_GetFieldsCounters done [23:08:30]requested_item shift.num is exist - process it [23:08:30]requested_item shift.opened is exist - process it [23:08:30]req_shift_opened [23:08:30]FM_GetShiftState [23:08:30]SAM_PROTO_GetShiftState [23:08:30]wFMCommunicate request_size=4 [23:08:30]MH_SAM_APDU [23:08:30]CAPDU: 80 13 01 00 [23:08:30]Write to MH i2c: E2 08 00 B9 07 80 13 01 00 00 00 00 00 3D [23:08:30]Write i2c OK [23:08:30]MH_I2C_Read... [23:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:30]Read from MH i2c: E2 [23:08:30]MH_I2C_Read... [23:08:30]Read from MH i2c: E2 0E 00 [23:08:30]MH_I2C_Read... [23:08:30]Read from MH i2c: E2 0E 00 B9 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 8C [23:08:30]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:08:30]wFMCommunicate OK [23:08:30]SAM_PROTO_GetShiftState done [23:08:30]FM_GetShiftState done [23:08:30]req_shift_opened done [23:08:30]requested_item shift.open_date is exist - process it [23:08:30]req_shift_open_date [23:08:30]req_shift_open_date done [23:08:30]produce_requested_data done [23:08:30]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104070,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [23:08:30]process_action_free close_receipt [23:08:30]json_value_free [23:08:30]json_value_free done [23:08:30]process_json_proto returns [23:08:30]Send response to host [23:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104070,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [23:08:30]free response buf [23:08:30]execute_script done [23:08:30]execute_script returns [23:08:30]free content buf [23:08:30]Sock 7.Close socket [23:08:30]Sock 7.Thread stoped [23:08:33]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:17:59]OFD Sender: No OFD packet to send [23:18:04]OFD Sender: No OFD packet to send [23:18:09]OFD Sender: No OFD packet to send [23:18:14]OFD Sender: No OFD packet to send [23:18:19]OFD Sender: No OFD packet to send [23:18:24]OFD Sender: No OFD packet to send [23:18:29]OFD Sender: No OFD packet to send [23:18:34]OFD Sender: No OFD packet to send [23:18:39]OFD Sender: No OFD packet to send [23:18:44]OFD Sender: No OFD packet to send [23:18:49]OFD Sender: No OFD packet to send [23:18:54]OFD Sender: No OFD packet to send [23:18:59]OFD Sender: No OFD packet to send [23:19:04]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:20]accept exits with 9 [23:26:20]New connection [23:26:20]New thread 3066715492 created [23:26:20]Thread 3066858852 joined [23:26:20]Waiting for new connection... [23:26:20] Sock 9.Parse request [23:26:20]Sock 9.Check first char [23:26:20]Sock 9.First char is OK [23:26:20]request: POST /json_proto HTTP/1.0 [23:26:20]Method: POST [23:26:20]URL: /json_proto [23:26:20]Method is POST - this is cgi request [23:26:20]url: /json_proto [23:26:20]query_string will be loaded in cgi processing [23:26:20]execute_cgi json_proto POST (null) [23:26:20]execute_cgi path=json_proto method=POST [23:26:20]POST find Content-Length [23:26:20]Host: 172.17.38.133:8080 [23:26:20]Content-Length: 1176 [23:26:20]Content-Type: application/json [23:26:20] [23:26:20]POST finish read [23:26:20]Found Content-Length = 1176 [23:26: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673457\u000A20.06.2024 23:03\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 200.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 14580.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139564\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:20]execute_script... [23:26: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673457\u000A20.06.2024 23:03\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 200.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 14580.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139564\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:26:20]POST & json_proto [23:26:20]process_json_proto [23:26:20]json parsed OK: [23:26:20]protocol is kg_v1.0 [23:26:20]action value=print_text [23:26:20]process_action print_text [23:26:20]cmd_print_text [23:26:20]ExternCall_PrintAddStr [23:26:20]wPrintStart [23:26:20]Write to MH i2c: 01 00 00 BA 07 C1 [23:26:20]Write i2c OK [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: 01 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: 01 07 00 [23:26:20]MH_I2C_Read... [23:26:20]Read from MH i2c: 01 07 00 BA 07 00 00 00 00 00 FF 0F D6 [23:26:20]RasterBufferAndPrint [23:26:20]line *****ТОВАРНЫЙ ЧЕК***** [23:26:20]line АЗС 120 [23:26:20]line Партнер нефть [23:26:20]line 02508201610067 [23:26:20]line Кассир : Дуйшенбиев А. [23:26:20]line Счет N : (1)673457 [23:26:20]line 20.06.2024 23:03 [23:26:20]line ПРОДАЖА [23:26:20]line ТРК (МРК, ГНК): 21 [23:26:20]line Вид ГСМ : 2710194210 [23:26:20]line ДТ(л)-К-5 [23:26:20]line 200.000 x 72.90 [23:26:20]line ИТОГ: 14580.00 [23:26:20]line Тип оплаты: Талоны: ТК ГПНА Online [23:26:20]line 30139564 [23:26:20]line ______________________ [23:26:20]line (подпись) [23:26:20]written 0, free lines is 4095 [23:26:21]Write to MH i2c: 01 00 00 CE 07 D5 [23:26:21]Write i2c OK [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: 01 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: 01 07 00 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 11 0E FB [23:26:21]RasterBufferAndPrint [23:26:21]line [23:26:21]line [23:26:21]line [23:26:21]line [23:26:21]line [23:26:21]written 0, free lines is 3602 [23:26:21]MH_Cut [23:26:21]Write to MH i2c: D1 01 00 D5 07 01 AE [23:26:21]Write i2c OK [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: D1 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: D1 01 00 [23:26:21]MH_I2C_Read... [23:26:21]Read from MH i2c: D1 01 00 D5 07 00 AD [23:26:21]Write to MH i2c: 01 00 00 D6 07 DD [23:26:21]Write i2c OK [23:26:21]MH_I2C_Read... [23:26:21]*** Cut start [23:26:21]*** Partial cut [23:26:21]*** CUTSNS_PIN = 1 [23:26:21]*** CUTSNS_PIN = 0 [23:26:21]*** Brake cut motor [23:26:22]Read from MH i2c: 01 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: 01 07 00 [23:26:22]MH_I2C_Read... [23:26:22]*** Stop cut motor [23:26:22]*** Cut end [23:26:22]Read from MH i2c: 01 07 00 D6 07 00 00 00 00 00 FF 0F F2 [23:26:22]process_action print_text done [23:26:22]requested_data is exist [23:26:22]produce_requested_data [23:26:22]requested_item fm.sn is exist - process it [23:26:22]wFMCommunicate request_size=4 [23:26:22]MH_SAM_APDU [23:26:22]CAPDU: 80 11 00 00 [23:26:22]Write to MH i2c: E2 08 00 D7 07 80 11 00 00 00 00 00 00 58 [23:26:22]Write i2c OK [23:26:22]MH_I2C_Read... [23:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:22]Read from MH i2c: E2 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 17 00 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 17 00 D7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AB [23:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:26:22]wFMCommunicate OK [23:26:22]requested_item fd.num is exist - process it [23:26:22]SAM_PROTO_GetFieldsCounters [23:26:22]wFMCommunicate request_size=4 [23:26:22]MH_SAM_APDU [23:26:22]CAPDU: 80 13 00 00 [23:26:22]Write to MH i2c: E2 08 00 D8 07 80 13 00 00 00 00 00 00 5B [23:26:22]Write i2c OK [23:26:22]MH_I2C_Read... [23:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:22]Read from MH i2c: E2 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 62 00 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 62 00 D8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 86 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [23:26:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 86 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:26:22]wFMCommunicate OK [23:26:22]SAM_PROTO_GetFieldsCounters done [23:26:22]requested_item shift.num is exist - process it [23:26:22]requested_item shift.opened is exist - process it [23:26:22]req_shift_opened [23:26:22]FM_GetShiftState [23:26:22]SAM_PROTO_GetShiftState [23:26:22]wFMCommunicate request_size=4 [23:26:22]MH_SAM_APDU [23:26:22]CAPDU: 80 13 01 00 [23:26:22]Write to MH i2c: E2 08 00 D9 07 80 13 01 00 00 00 00 00 5D [23:26:22]Write i2c OK [23:26:22]MH_I2C_Read... [23:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:22]Read from MH i2c: E2 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 0E 00 [23:26:22]MH_I2C_Read... [23:26:22]Read from MH i2c: E2 0E 00 D9 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AC [23:26:22]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:26:22]wFMCommunicate OK [23:26:22]SAM_PROTO_GetShiftState done [23:26:22]FM_GetShiftState done [23:26:22]req_shift_opened done [23:26:22]requested_item shift.open_date is exist - process it [23:26:22]req_shift_open_date [23:26:22]req_shift_open_date done [23:26:22]produce_requested_data done [23:26:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104070,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [23:26:22]process_action_free print_text [23:26:22]json_value_free [23:26:22]json_value_free done [23:26:22]process_json_proto returns [23:26:22]Send response to host [23:26:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104070,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [23:26:22]free response buf [23:26:22]execute_script done [23:26:22]execute_script returns [23:26:22]free content buf [23:26:22]Sock 9.Close socket [23:26:22]Sock 9.Thread stoped [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]accept exits with 7 [23:27:54]New connection [23:27:54]New thread 3066858852 created [23:27:54]Thread 3066715492 joined [23:27:54]Waiting for new connection... [23:27:54] Sock 7.Parse request [23:27:54]Sock 7.Check first char [23:27:54]Sock 7.First char is OK [23:27:54]request: POST /json_proto HTTP/1.0 [23:27:54]Method: POST [23:27:54]URL: /json_proto [23:27:54]Method is POST - this is cgi request [23:27:54]url: /json_proto [23:27:54]query_string will be loaded in cgi processing [23:27:54]execute_cgi json_proto POST (null) [23:27:54]execute_cgi path=json_proto method=POST [23:27:54]POST find Content-Length [23:27:54]Host: 172.17.38.133:8080 [23:27:54]Content-Length: 687 [23:27:54]Content-Type: application/json [23:27:54] [23:27:54]POST finish read [23:27:54]Found Content-Length = 687 [23:27:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 28.810, "sum" : 2100.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:54]execute_script... [23:27: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)673458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 28.810, "sum" : 2100.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:54]POST & json_proto [23:27:54]process_json_proto [23:27:54]json parsed OK: [23:27:54]protocol is kg_v1.0 [23:27:54]action value=close_receipt [23:27:54]process_action close_receipt [23:27:54]cmd_close_receipt [23:27:54]MH_GetDate [23:27:54]Write to MH i2c: F0 00 00 DA 07 D0 [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: F0 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: F0 09 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: F0 09 00 DA 07 00 FB BA 74 66 BD 8F 7C 64 94 [23:27:54]GetLastDocTimeStamp 1718924907 [23:27:54]current date 1718926075 [23:27:54]FM_GetShiftState [23:27:54]SAM_PROTO_GetShiftState [23:27:54]wFMCommunicate request_size=4 [23:27:54]MH_SAM_APDU [23:27:54]CAPDU: 80 13 01 00 [23:27:54]Write to MH i2c: E2 08 00 DB 07 80 13 01 00 00 00 00 00 5F [23:27:54]Write i2c OK [23:27:54]MH_I2C_Read... [23:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:54]Read from MH i2c: E2 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: E2 0E 00 [23:27:54]MH_I2C_Read... [23:27:54]Read from MH i2c: E2 0E 00 DB 07 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AE [23:27:54]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:27:54]wFMCommunicate OK [23:27:54]SAM_PROTO_GetShiftState done [23:27:54]FM_GetShiftState done [23:27:54]opened in 1718843124 [23:27:54]opened+sec_in_day 1718929524 [23:27:54]quantity*price = 210024 [23:27:54]sum+1 = 210026 [23:27:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2100.00 Внесено: 2100.00 СДАЧА: 0.00 НСП 1% : 18.59 НДС 12% : 223.03 Наличными: 2100.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 256 20.06.2024 23:27 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104071 ФПД: 118916313795524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T232755&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104071&fm=118916313795524&tin=02508201610067®Number=0000000000092785&sum=210000 [23:27:55]StoreToDocumentArchive [23:27:55]shift 354 fd 104071 [23:27:55]save to /storage/0354/doc_00104071 [23:27:55]save last doc name /storage/0354/doc_00104071 to /storage/kkm_last_doc_name [23:27:55]save OK [23:27:55]Clear old archive folders... [23:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:27:55]tlvbuf is 01123B20 [23:27:55]SAM_PROTO_ClearQueue [23:27:55]wFMCommunicate request_size=4 [23:27:55]MH_SAM_APDU [23:27:55]CAPDU: 80 09 00 00 [23:27:55]Write to MH i2c: E2 08 00 E8 07 80 09 00 00 00 00 00 00 61 [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:55]Read from MH i2c: E2 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 03 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 03 00 E8 07 00 90 00 63 [23:27:55]RAPDU: 90 00 [23:27:55]wFMCommunicate OK [23:27:55]SAM_PROTO_ClearQueue done [23:27:55]KKMCreateOFDPacket [23:27:55]OFDProtocolAddRootSTLVToBuf [23:27:55]FM_MakeSignedData [23:27:55]FM_MakeSignedData [23:27:55]SAM_PROTO_SignData [23:27:55]wFMCommunicate request_size=4 [23:27:55]MH_SAM_APDU [23:27:55]CAPDU: 80 0D 01 02 [23:27:55]Write to MH i2c: E2 08 00 E9 07 80 0D 01 02 00 00 00 00 69 [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:55]Read from MH i2c: E2 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 03 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [23:27:55]RAPDU: 90 00 [23:27:55]wFMCommunicate OK [23:27:55]wFMCommunicate request_size=255 [23:27:55]MH_SAM_APDU [23:27:55]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 70 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 69 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FB BA 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 96 01 00 35 04 06 00 [23:27:55]Write to MH i2c: E2 02 01 EA 07 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 70 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 69 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FB BA 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 96 01 00 35 04 06 00 00 00 C3 [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:55]Read from MH i2c: E2 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 03 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [23:27:55]RAPDU: 90 00 [23:27:55]wFMCommunicate OK [23:27:55]wFMCommunicate request_size=11 [23:27:55]MH_SAM_APDU [23:27:55]CAPDU: 80 0D 02 02 06 6C 27 5C A4 4B C4 [23:27:55]Write to MH i2c: E2 0E 00 EB 07 80 0D 02 02 06 00 6C 27 5C A4 4B C4 00 00 1A [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:55]Read from MH i2c: E2 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 03 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 03 00 EB 07 00 90 00 66 [23:27:55]RAPDU: 90 00 [23:27:55]wFMCommunicate OK [23:27:55]wFMCommunicate request_size=4 [23:27:55]MH_SAM_APDU [23:27:55]CAPDU: 80 0D 03 02 [23:27:55]Write to MH i2c: E2 08 00 EC 07 80 0D 03 02 00 00 00 00 6E [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:55]Read from MH i2c: E2 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 0B 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 0B 00 EC 07 00 70 72 37 B0 18 5C 19 29 90 00 EE [23:27:55]RAPDU: 70 72 37 B0 18 5C 19 29 90 00 [23:27:55]wFMCommunicate OK [23:27:55]SAM_PROTO_SignData done [23:27:55]FM_MakeSignedData done [23:27:55]CreateOFDProtocolMessage [23:27:55]wFMCommunicate request_size=4 [23:27:55]MH_SAM_APDU [23:27:55]CAPDU: 80 11 00 00 [23:27:55]Write to MH i2c: E2 08 00 ED 07 80 11 00 00 00 00 00 00 6E [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:55]Read from MH i2c: E2 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 17 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: E2 17 00 ED 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 C1 [23:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:27:55]wFMCommunicate OK [23:27:55]CreateOFDProtocolMessage done [23:27:55]OFDSenderStorePacket 104071 [23:27:55]StoreOFDPacket docnum=104071 [23:27:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 75 1D 08 01 82 3F 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 70 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 69 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FB BA 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 96 01 00 35 04 06 00 6C 27 5C A4 4B C4 70 72 37 B0 18 5C 19 29 [23:27:55]CheckFolder [23:27:55]dirname=/storage/ofd_packets [23:27:55]CheckFolder done [23:27:55]ProducePacketName [23:27:55]name=ofd_packets/00104071 [23:27:55]NVStorageSaveData ofd_packets/00104071 [23:27:55]File name is /storage/ofd_packets/00104071 [23:27:55]Write 302 bytes [23:27:55]NVStorageSaveData done [23:27:55]OFDSenderStorePacket done [23:27:55]KKMCreateOFDPacket done [23:27:55]NVStorageSaveData kkm_last_timestamp [23:27:55]File name is /storage/kkm_last_timestamp [23:27:55]Write 4 bytes [23:27:55]NVStorageSaveData done [23:27:55]ExternCall_PrintAddStr [23:27:55]wPrintStart [23:27:55]Write to MH i2c: 01 00 00 EE 07 F5 [23:27:55]Write i2c OK [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: 01 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: 01 07 00 [23:27:55]MH_I2C_Read... [23:27:55]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 FF 0F 0A [23:27:55]RasterBufferAndPrint [23:27:55]line Счет N : (1)673458 [23:27:55]line ИНН: 02508201610067 [23:27:55]line Контрольно-Кассовый Чек [23:27:55]line ПРОДАЖА [23:27:55]line ТРК (МРК, ГНК) : 11 [23:27:55]line Товар: 2710194210 [23:27:55]line ДТ(л)-К-5 [23:27:55]line 28.810 * 72.90 [23:27:55]line = 2100.25 [23:27:55]line НДС 12% НСП 1% [23:27:55]line > о реализуемом товаре [23:27:55]line ОКРУГЛЕНИЕ: -0.25 [23:27:55]line ИТОГО: 2100.00 [23:27:55]line Внесено: 2100.00 [23:27:55]line СДАЧА: 0.00 [23:27:55]line НСП 1% : 18.59 [23:27:55]line НДС 12% : 223.03 [23:27:55]line Наличными: 2100.00 [23:27:55]line Безнал.: 0.00 [23:27:55]line Место: АЗС № 120 "Партнер Нефть" [23:27:55]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:27:55]line СНО: Общий режим [23:27:55]line Чек 256 20.06.2024 23:27 [23:27:55]line Смена: 354 ФФД: 1.0 [23:27:55]line ЗНМ: 0300000164 [23:27:55]line РНМ: 0000000000092785 [23:27:55]line Версия ККМ: 001 [23:27:55]line ФМ: 0000000000875093 [23:27:55]line ФД: 104071 [23:27:55]line ФПД: 118916313795524 [23:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T232755&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104071&fm=118916313795524&tin=02508201610067®Number=0000000000092785&sum=210000 [23:27:56]OFD Sender: Processing packet 104071 [packets to send 17, broken 16] [23:27:56]ProducePacketName [23:27:56]name=ofd_packets/00104071 [23:27:56]OFD Sender: To server: pG, [23:27:56]CommunicateWithHost lk.salyk.kg:30040 [23:27:56]ConnectInit lk.salyk.kg [23:27:56]written 0, free lines is 4095 [23:27:56]Connected sock=10 [23:27:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 75 1D 08 01 82 3F 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8A 70 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 69 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 FB BA 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 96 01 00 35 04 06 00 6C 27 5C A4 4B C4 70 72 37 B0 18 5C 19 29 [23:27:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 80 49 47 00 41 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 87 96 01 00 F4 03 04 00 7F 61 74 66 B6 04 01 00 00 7A 1D 11 DB 4E E1 8C F9 [23:27:56]CommunicateWithHost err = 0 [23:27:56]CheckOFDResponse [23:27:56]1017 (14) - 77093643461234 [23:27:56]1041 (16) - 0000000000875093 [23:27:56]1040 (4) - 104071 [23:27:56]1012 (4) - 20.06.2024 17:06 [23:27:56]1206 (1) - 0 [23:27:56]OFD Sender: Remove packet 104071 [23:27:56]ProducePacketName [23:27:56]name=ofd_packets/00104071 [23:27:56]NVStorageDeleteData [23:27:56]Write to MH i2c: 01 00 00 19 08 21 [23:27:56]Write i2c OK [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: 01 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: 01 07 00 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: 01 07 00 19 08 00 00 00 00 00 D7 0C 0B [23:27:56]RasterBufferAndPrint [23:27:56]line [23:27:56]line [23:27:56]line [23:27:56]line [23:27:56]line [23:27:56]written 0, free lines is 3294 [23:27:56]MH_Cut [23:27:56]Write to MH i2c: D1 01 00 20 08 01 FA [23:27:56]Write i2c OK [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: D1 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: D1 01 00 [23:27:56]MH_I2C_Read... [23:27:56]Read from MH i2c: D1 01 00 20 08 00 F9 [23:27:56]Write to MH i2c: 01 00 00 21 08 29 [23:27:56]Write i2c OK [23:27:56]MH_I2C_Read... [23:27:57]OFD Sender: No OFD packet to send [23:27:57]*** Cut start [23:27:57]*** Partial cut [23:27:57]*** CUTSNS_PIN = 1 [23:27:57]*** CUTSNS_PIN = 0 [23:27:57]*** Brake cut motor [23:27:58]Read from MH i2c: 01 [23:27:58]MH_I2C_Read... [23:27:58]*** Stop cut motor [23:27:58]*** Cut end [23:27:58]Read from MH i2c: 01 07 00 [23:27:58]MH_I2C_Read... [23:27:58]Read from MH i2c: 01 07 00 21 08 00 00 00 00 00 FF 0F 3E [23:27:58]process_action close_receipt done [23:27:58]requested_data is exist [23:27:58]produce_requested_data [23:27:58]requested_item fm.sn is exist - process it [23:27:58]wFMCommunicate request_size=4 [23:27:58]MH_SAM_APDU [23:27:58]CAPDU: 80 11 00 00 [23:27:58]Write to MH i2c: E2 08 00 22 08 80 11 00 00 00 00 00 00 A4 [23:27:58]Write i2c OK [23:27:58]MH_I2C_Read... [23:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:58]Read from MH i2c: E2 [23:27:58]MH_I2C_Read... [23:27:58]Read from MH i2c: E2 17 00 [23:27:58]MH_I2C_Read... [23:27:58]Read from MH i2c: E2 17 00 22 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 F7 [23:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:27:58]wFMCommunicate OK [23:27:58]requested_item fd.num is exist - process it [23:27:58]SAM_PROTO_GetFieldsCounters [23:27:58]wFMCommunicate request_size=4 [23:27:58]MH_SAM_APDU [23:27:58]CAPDU: 80 13 00 00 [23:27:58]Write to MH i2c: E2 08 00 23 08 80 13 00 00 00 00 00 00 A7 [23:27:58]Write i2c OK [23:27:58]MH_I2C_Read... [23:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:58]Read from MH i2c: E2 [23:27:58]MH_I2C_Read... [23:27:58]Read from MH i2c: E2 62 00 [23:27:58]MH_I2C_Read... [23:27:58]Read from MH i2c: E2 62 00 23 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 87 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [23:27:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 87 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:58]wFMCommunicate OK [23:27:58]SAM_PROTO_GetFieldsCounters done [23:27:58]requested_item shift.num is exist - process it [23:27:58]requested_item shift.opened is exist - process it [23:27:58]req_shift_opened [23:27:58]FM_GetShiftState [23:27:58]SAM_PROTO_GetShiftState [23:27:58]wFMCommunicate request_size=4 [23:27:58]MH_SAM_APDU [23:27:58]CAPDU: 80 13 01 00 [23:27:58]Write to MH i2c: E2 08 00 24 08 80 13 01 00 00 00 00 00 A9 [23:27:58]Write i2c OK [23:27:58]MH_I2C_Read... [23:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:58]Read from MH i2c: E2 [23:27:58]MH_I2C_Read... [23:27:58]Read from MH i2c: E2 0E 00 [23:27:58]MH_I2C_Read... [23:27:58]Read from MH i2c: E2 0E 00 24 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F8 [23:27:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:27:58]wFMCommunicate OK [23:27:58]SAM_PROTO_GetShiftState done [23:27:58]FM_GetShiftState done [23:27:58]req_shift_opened done [23:27:58]requested_item shift.open_date is exist - process it [23:27:58]req_shift_open_date [23:27:58]req_shift_open_date done [23:27:58]produce_requested_data done [23:27:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104071,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [23:27:58]process_action_free close_receipt [23:27:58]json_value_free [23:27:58]json_value_free done [23:27:58]process_json_proto returns [23:27:58]Send response to host [23:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104071,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [23:27:58]free response buf [23:27:58]execute_script done [23:27:58]execute_script returns [23:27:58]free content buf [23:27:58]Sock 7.Close socket [23:27:58]Sock 7.Thread stoped [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:03]accept exits with 9 [23:31:03]New connection [23:31:03]New thread 3066715492 created [23:31:03]Thread 3066858852 joined [23:31:03]Waiting for new connection... [23:31:03] Sock 9.Parse request [23:31:03]Sock 9.Check first char [23:31:03]Sock 9.First char is OK [23:31:03]request: POST /json_proto HTTP/1.0 [23:31:03]Method: POST [23:31:03]URL: /json_proto [23:31:03]Method is POST - this is cgi request [23:31:03]url: /json_proto [23:31:03]query_string will be loaded in cgi processing [23:31:03]execute_cgi json_proto POST (null) [23:31:03]execute_cgi path=json_proto method=POST [23:31:03]POST find Content-Length [23:31:03]Host: 172.17.38.133:8080 [23:31:03]Content-Length: 677 [23:31:03]Content-Type: application/json [23:31:03] [23:31:03]POST finish read [23:31:03]Found Content-Length = 677 [23:31:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [23:31:03]execute_script... [23:31: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)673460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [23:31:03]POST & json_proto [23:31:03]process_json_proto [23:31:03]json parsed OK: [23:31:03]protocol is kg_v1.0 [23:31:03]action value=close_receipt [23:31:03]process_action close_receipt [23:31:03]cmd_close_receipt [23:31:03]MH_GetDate [23:31:03]Write to MH i2c: F0 00 00 25 08 1C [23:31:03]Write i2c OK [23:31:03]MH_I2C_Read... [23:31:03]Read from MH i2c: F0 [23:31:03]MH_I2C_Read... [23:31:03]Read from MH i2c: F0 09 00 [23:31:03]MH_I2C_Read... [23:31:03]Read from MH i2c: F0 09 00 25 08 00 B9 BB 74 66 BD 8F 7C 64 9F [23:31:03]GetLastDocTimeStamp 1718926075 [23:31:03]current date 1718926265 [23:31:03]FM_GetShiftState [23:31:03]SAM_PROTO_GetShiftState [23:31:03]wFMCommunicate request_size=4 [23:31:03]MH_SAM_APDU [23:31:03]CAPDU: 80 13 01 00 [23:31:03]Write to MH i2c: E2 08 00 26 08 80 13 01 00 00 00 00 00 AB [23:31:03]Write i2c OK [23:31:03]MH_I2C_Read... [23:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:03]Read from MH i2c: E2 [23:31:03]MH_I2C_Read... [23:31:03]Read from MH i2c: E2 0E 00 [23:31:03]MH_I2C_Read... [23:31:03]Read from MH i2c: E2 0E 00 26 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 FA [23:31:03]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:31:03]wFMCommunicate OK [23:31:03]SAM_PROTO_GetShiftState done [23:31:03]FM_GetShiftState done [23:31:03]opened in 1718843124 [23:31:03]opened+sec_in_day 1718929524 [23:31:03]quantity*price = 60025 [23:31:03]sum+1 = 60027 [23:31:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 257 20.06.2024 23:31 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104072 ФПД: 45167703709256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T233105&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104072&fm=45167703709256&tin=02508201610067®Number=0000000000092785&sum=60000 [23:31:04]StoreToDocumentArchive [23:31:04]shift 354 fd 104072 [23:31:04]save to /storage/0354/doc_00104072 [23:31:04]save last doc name /storage/0354/doc_00104072 to /storage/kkm_last_doc_name [23:31:04]save OK [23:31:04]Clear old archive folders... [23:31:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:31:04]tlvbuf is 01118970 [23:31:04]SAM_PROTO_ClearQueue [23:31:04]wFMCommunicate request_size=4 [23:31:04]MH_SAM_APDU [23:31:04]CAPDU: 80 09 00 00 [23:31:04]Write to MH i2c: E2 08 00 33 08 80 09 00 00 00 00 00 00 AD [23:31:04]Write i2c OK [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 [23:31:04]MH_I2C_Read... [23:31:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:04]Read from MH i2c: E2 03 00 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 33 08 00 90 00 AF [23:31:04]RAPDU: 90 00 [23:31:04]wFMCommunicate OK [23:31:04]SAM_PROTO_ClearQueue done [23:31:04]KKMCreateOFDPacket [23:31:04]OFDProtocolAddRootSTLVToBuf [23:31:04]FM_MakeSignedData [23:31:04]FM_MakeSignedData [23:31:04]SAM_PROTO_SignData [23:31:04]wFMCommunicate request_size=4 [23:31:04]MH_SAM_APDU [23:31:04]CAPDU: 80 0D 01 02 [23:31:04]Write to MH i2c: E2 08 00 34 08 80 0D 01 02 00 00 00 00 B5 [23:31:04]Write i2c OK [23:31:04]MH_I2C_Read... [23:31:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:04]Read from MH i2c: E2 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 [23:31:04]MH_I2C_Read... [23:31:04]Read from MH i2c: E2 03 00 34 08 00 90 00 B0 [23:31:04]RAPDU: 90 00 [23:31:04]wFMCommunicate OK [23:31:04]wFMCommunicate request_size=255 [23:31:04]MH_SAM_APDU [23:31:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 B9 BB 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 96 01 00 35 04 06 00 29 [23:31:04]Write to MH i2c: E2 02 01 35 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 B9 BB 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 96 01 00 35 04 06 00 29 00 00 47 [23:31:04]Write i2c OK [23:31:04]MH_I2C_Read... [23:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:05]Read from MH i2c: E2 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 03 00 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 03 00 35 08 00 90 00 B1 [23:31:05]RAPDU: 90 00 [23:31:05]wFMCommunicate OK [23:31:05]wFMCommunicate request_size=10 [23:31:05]MH_SAM_APDU [23:31:05]CAPDU: 80 0D 02 02 05 14 6C EF 56 48 [23:31:05]Write to MH i2c: E2 0D 00 36 08 80 0D 02 02 05 00 14 6C EF 56 48 00 00 CF [23:31:05]Write i2c OK [23:31:05]MH_I2C_Read... [23:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:05]Read from MH i2c: E2 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 03 00 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [23:31:05]RAPDU: 90 00 [23:31:05]wFMCommunicate OK [23:31:05]wFMCommunicate request_size=4 [23:31:05]MH_SAM_APDU [23:31:05]CAPDU: 80 0D 03 02 [23:31:05]Write to MH i2c: E2 08 00 37 08 80 0D 03 02 00 00 00 00 BA [23:31:05]Write i2c OK [23:31:05]MH_I2C_Read... [23:31:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:05]Read from MH i2c: E2 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 0B 00 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 0B 00 37 08 00 E9 7E 2C AC AE 03 FD 73 90 00 1B [23:31:05]RAPDU: E9 7E 2C AC AE 03 FD 73 90 00 [23:31:05]wFMCommunicate OK [23:31:05]SAM_PROTO_SignData done [23:31:05]FM_MakeSignedData done [23:31:05]CreateOFDProtocolMessage [23:31:05]wFMCommunicate request_size=4 [23:31:05]MH_SAM_APDU [23:31:05]CAPDU: 80 11 00 00 [23:31:05]Write to MH i2c: E2 08 00 38 08 80 11 00 00 00 00 00 00 BA [23:31:05]Write i2c OK [23:31:05]MH_I2C_Read... [23:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:05]Read from MH i2c: E2 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 17 00 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: E2 17 00 38 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 0D [23:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:31:05]wFMCommunicate OK [23:31:05]CreateOFDProtocolMessage done [23:31:05]OFDSenderStorePacket 104072 [23:31:05]StoreOFDPacket docnum=104072 [23:31:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BB F6 07 01 30 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 B9 BB 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 96 01 00 35 04 06 00 29 14 6C EF 56 48 E9 7E 2C AC AE 03 FD 73 [23:31:05]CheckFolder [23:31:05]dirname=/storage/ofd_packets [23:31:05]CheckFolder done [23:31:05]ProducePacketName [23:31:05]name=ofd_packets/00104072 [23:31:05]NVStorageSaveData ofd_packets/00104072 [23:31:05]File name is /storage/ofd_packets/00104072 [23:31:05]Write 301 bytes [23:31:05]NVStorageSaveData done [23:31:05]OFDSenderStorePacket done [23:31:05]KKMCreateOFDPacket done [23:31:05]NVStorageSaveData kkm_last_timestamp [23:31:05]File name is /storage/kkm_last_timestamp [23:31:05]Write 4 bytes [23:31:05]NVStorageSaveData done [23:31:05]ExternCall_PrintAddStr [23:31:05]wPrintStart [23:31:05]Write to MH i2c: 01 00 00 39 08 41 [23:31:05]Write i2c OK [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: 01 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: 01 07 00 [23:31:05]MH_I2C_Read... [23:31:05]Read from MH i2c: 01 07 00 39 08 00 00 00 00 00 FF 0F 56 [23:31:05]RasterBufferAndPrint [23:31:05]line Счет N : (1)673460 [23:31:05]line ИНН: 02508201610067 [23:31:05]line Контрольно-Кассовый Чек [23:31:05]line ПРОДАЖА [23:31:05]line ТРК (МРК, ГНК) : 42 [23:31:05]line Товар: 2710124130 [23:31:05]line Аи-92-К-5 [23:31:05]line 9.040 * 66.40 [23:31:05]line = 600.26 [23:31:05]line НДС 12% НСП 1% [23:31:05]line > о реализуемом товаре [23:31:05]line ОКРУГЛЕНИЕ: -0.26 [23:31:05]line ИТОГО: 600.00 [23:31:05]line Внесено: 600.00 [23:31:05]line СДАЧА: 0.00 [23:31:05]line НСП 1% : 5.31 [23:31:05]line НДС 12% : 63.74 [23:31:05]line Наличными: 600.00 [23:31:05]line Безнал.: 0.00 [23:31:05]line Место: АЗС № 120 "Партнер Нефть" [23:31:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:31:05]line СНО: Общий режим [23:31:05]line Чек 257 20.06.2024 23:31 [23:31:05]line Смена: 354 ФФД: 1.0 [23:31:05]line ЗНМ: 0300000164 [23:31:05]line РНМ: 0000000000092785 [23:31:05]line Версия ККМ: 001 [23:31:05]line ФМ: 0000000000875093 [23:31:05]line ФД: 104072 [23:31:05]line ФПД: 45167703709256 [23:31:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T233105&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104072&fm=45167703709256&tin=02508201610067®Number=0000000000092785&sum=60000 [23:31:05]OFD Sender: Processing packet 104072 [packets to send 17, broken 16] [23:31:05]ProducePacketName [23:31:05]name=ofd_packets/00104072 [23:31:05]OFD Sender: To server: pG, [23:31:05]CommunicateWithHost lk.salyk.kg:30040 [23:31:05]ConnectInit lk.salyk.kg [23:31:05]written 0, free lines is 4095 [23:31:06]Write to MH i2c: 01 00 00 64 08 6C [23:31:06]Write i2c OK [23:31:06]MH_I2C_Read... [23:31:06]Read from MH i2c: 01 [23:31:06]MH_I2C_Read... [23:31:06]Read from MH i2c: 01 07 00 [23:31:06]MH_I2C_Read... [23:31:06]Read from MH i2c: 01 07 00 64 08 00 00 00 00 00 D3 0C 52 [23:31:06]RasterBufferAndPrint [23:31:06]line [23:31:06]line [23:31:06]line [23:31:06]line [23:31:06]line [23:31:06]written 0, free lines is 3287 [23:31:06]MH_Cut [23:31:06]Write to MH i2c: D1 01 00 6B 08 01 45 [23:31:06]Write i2c OK [23:31:06]MH_I2C_Read... [23:31:06]Read from MH i2c: D1 [23:31:06]MH_I2C_Read... [23:31:06]Read from MH i2c: D1 01 00 [23:31:06]MH_I2C_Read... [23:31:06]Read from MH i2c: D1 01 00 6B 08 00 44 [23:31:06]Write to MH i2c: 01 00 00 6C 08 74 [23:31:06]Write i2c OK [23:31:06]MH_I2C_Read... [23:31:06]*** Cut start [23:31:06]*** Partial cut [23:31:06]*** CUTSNS_PIN = 1 [23:31:06]*** CUTSNS_PIN = 0 [23:31:07]*** Brake cut motor [23:31:07]Read from MH i2c: 01 [23:31:07]MH_I2C_Read... [23:31:07]*** Stop cut motor [23:31:07]*** Cut end [23:31:07]Read from MH i2c: 01 07 00 [23:31:07]MH_I2C_Read... [23:31:07]Read from MH i2c: 01 07 00 6C 08 00 00 00 00 00 FF 0F 89 [23:31:07]process_action close_receipt done [23:31:07]requested_data is exist [23:31:07]produce_requested_data [23:31:07]requested_item fm.sn is exist - process it [23:31:07]wFMCommunicate request_size=4 [23:31:07]MH_SAM_APDU [23:31:07]CAPDU: 80 11 00 00 [23:31:07]Write to MH i2c: E2 08 00 6D 08 80 11 00 00 00 00 00 00 EF [23:31:07]Write i2c OK [23:31:07]MH_I2C_Read... [23:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:07]Read from MH i2c: E2 [23:31:07]MH_I2C_Read... [23:31:07]Read from MH i2c: E2 17 00 [23:31:07]MH_I2C_Read... [23:31:07]Read from MH i2c: E2 17 00 6D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 42 [23:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:31:07]wFMCommunicate OK [23:31:07]requested_item fd.num is exist - process it [23:31:07]SAM_PROTO_GetFieldsCounters [23:31:07]wFMCommunicate request_size=4 [23:31:07]MH_SAM_APDU [23:31:07]CAPDU: 80 13 00 00 [23:31:07]Write to MH i2c: E2 08 00 6E 08 80 13 00 00 00 00 00 00 F2 [23:31:07]Write i2c OK [23:31:07]MH_I2C_Read... [23:31:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:07]Read from MH i2c: E2 [23:31:07]MH_I2C_Read... [23:31:07]Read from MH i2c: E2 62 00 [23:31:07]MH_I2C_Read... [23:31:07]Read from MH i2c: E2 62 00 6E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 88 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [23:31:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 88 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:07]wFMCommunicate OK [23:31:07]SAM_PROTO_GetFieldsCounters done [23:31:07]requested_item shift.num is exist - process it [23:31:07]requested_item shift.opened is exist - process it [23:31:07]req_shift_opened [23:31:07]FM_GetShiftState [23:31:07]SAM_PROTO_GetShiftState [23:31:07]wFMCommunicate request_size=4 [23:31:07]MH_SAM_APDU [23:31:07]CAPDU: 80 13 01 00 [23:31:07]Write to MH i2c: E2 08 00 6F 08 80 13 01 00 00 00 00 00 F4 [23:31:07]Write i2c OK [23:31:07]MH_I2C_Read... [23:31:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:07]Read from MH i2c: E2 [23:31:07]MH_I2C_Read... [23:31:07]Read from MH i2c: E2 0E 00 [23:31:07]MH_I2C_Read... [23:31:07]Read from MH i2c: E2 0E 00 6F 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 43 [23:31:07]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:31:07]wFMCommunicate OK [23:31:07]SAM_PROTO_GetShiftState done [23:31:07]FM_GetShiftState done [23:31:07]req_shift_opened done [23:31:07]requested_item shift.open_date is exist - process it [23:31:07]req_shift_open_date [23:31:07]req_shift_open_date done [23:31:07]produce_requested_data done [23:31:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104072,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [23:31:07]process_action_free close_receipt [23:31:07]json_value_free [23:31:07]json_value_free done [23:31:07]process_json_proto returns [23:31:07]Send response to host [23:31:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104072,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [23:31:07]free response buf [23:31:07]execute_script done [23:31:07]execute_script returns [23:31:07]free content buf [23:31:07]Sock 9.Close socket [23:31:07]Sock 9.Thread stoped [23:31:34]accept exits with 7 [23:31:34]New connection [23:31:34]New thread 3066858852 created [23:31:34]Thread 3066715492 joined [23:31:34]Waiting for new connection... [23:31:34] Sock 7.Parse request [23:31:34]Sock 7.Check first char [23:31:34]Sock 7.First char is OK [23:31:34]request: POST /json_proto HTTP/1.0 [23:31:34]Method: POST [23:31:34]URL: /json_proto [23:31:34]Method is POST - this is cgi request [23:31:34]url: /json_proto [23:31:34]query_string will be loaded in cgi processing [23:31:34]execute_cgi json_proto POST (null) [23:31:34]execute_cgi path=json_proto method=POST [23:31:34]POST find Content-Length [23:31:34]Host: 172.17.38.133:8080 [23:31:34]Content-Length: 1174 [23:31:34]Content-Type: application/json [23:31:34] [23:31:34]POST finish read [23:31:34]Found Content-Length = 1174 [23:31: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673459\u000A20.06.2024 23:08\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 76.110 x 72.90\u000A\u0418\u0422\u041E\u0413: 5548.42\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139564\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:34]execute_script... [23:31: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673459\u000A20.06.2024 23:08\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 76.110 x 72.90\u000A\u0418\u0422\u041E\u0413: 5548.42\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139564\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:34]POST & json_proto [23:31:34]process_json_proto [23:31:34]json parsed OK: [23:31:34]protocol is kg_v1.0 [23:31:34]action value=print_text [23:31:34]process_action print_text [23:31:34]cmd_print_text [23:31:34]ExternCall_PrintAddStr [23:31:34]wPrintStart [23:31:34]Write to MH i2c: 01 00 00 70 08 78 [23:31:34]Write i2c OK [23:31:34]MH_I2C_Read... [23:31:34]Read from MH i2c: 01 [23:31:34]MH_I2C_Read... [23:31:34]Read from MH i2c: 01 07 00 [23:31:34]MH_I2C_Read... [23:31:34]Read from MH i2c: 01 07 00 70 08 00 00 00 00 00 FF 0F 8D [23:31:34]RasterBufferAndPrint [23:31:34]line *****ТОВАРНЫЙ ЧЕК***** [23:31:34]line АЗС 120 [23:31:34]line Партнер нефть [23:31:34]line 02508201610067 [23:31:34]line Кассир : Дуйшенбиев А. [23:31:34]line Счет N : (1)673459 [23:31:34]line 20.06.2024 23:08 [23:31:34]line ПРОДАЖА [23:31:34]line ТРК (МРК, ГНК): 21 [23:31:34]line Вид ГСМ : 2710194210 [23:31:34]line ДТ(л)-К-5 [23:31:34]line 76.110 x 72.90 [23:31:34]line ИТОГ: 5548.42 [23:31:34]line Тип оплаты: Талоны: ТК ГПНА Online [23:31:34]line 30139564 [23:31:34]line ______________________ [23:31:34]line (подпись) [23:31:34]written 0, free lines is 4095 [23:31:34]Write to MH i2c: 01 00 00 84 08 8C [23:31:34]Write i2c OK [23:31:34]MH_I2C_Read... [23:31:34]Read from MH i2c: 01 [23:31:34]MH_I2C_Read... [23:31:34]Read from MH i2c: 01 07 00 [23:31:34]MH_I2C_Read... [23:31:34]Read from MH i2c: 01 07 00 84 08 00 00 00 00 00 11 0E B2 [23:31:34]RasterBufferAndPrint [23:31:34]line [23:31:34]line [23:31:34]line [23:31:34]line [23:31:34]line [23:31:34]written 0, free lines is 3602 [23:31:34]MH_Cut [23:31:34]Write to MH i2c: D1 01 00 8B 08 01 65 [23:31:34]Write i2c OK [23:31:34]MH_I2C_Read... [23:31:34]Read from MH i2c: D1 [23:31:34]MH_I2C_Read... [23:31:34]Read from MH i2c: D1 01 00 [23:31:34]MH_I2C_Read... [23:31:34]Read from MH i2c: D1 01 00 8B 08 00 64 [23:31:34]Write to MH i2c: 01 00 00 8C 08 94 [23:31:34]Write i2c OK [23:31:34]MH_I2C_Read... [23:31:35]*** Cut start [23:31:35]*** Partial cut [23:31:35]*** CUTSNS_PIN = 1 [23:31:35]*** CUTSNS_PIN = 0 [23:31:35]*** Brake cut motor [23:31:35]Read from MH i2c: 01 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: 01 07 00 [23:31:35]MH_I2C_Read... [23:31:35]*** Stop cut motor [23:31:35]*** Cut end [23:31:35]Read from MH i2c: 01 07 00 8C 08 00 00 00 00 00 FF 0F A9 [23:31:35]process_action print_text done [23:31:35]requested_data is exist [23:31:35]produce_requested_data [23:31:35]requested_item fm.sn is exist - process it [23:31:35]wFMCommunicate request_size=4 [23:31:35]MH_SAM_APDU [23:31:35]CAPDU: 80 11 00 00 [23:31:35]Write to MH i2c: E2 08 00 8D 08 80 11 00 00 00 00 00 00 0F [23:31:35]Write i2c OK [23:31:35]MH_I2C_Read... [23:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:35]Read from MH i2c: E2 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: E2 17 00 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: E2 17 00 8D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 62 [23:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:31:35]wFMCommunicate OK [23:31:35]requested_item fd.num is exist - process it [23:31:35]SAM_PROTO_GetFieldsCounters [23:31:35]wFMCommunicate request_size=4 [23:31:35]MH_SAM_APDU [23:31:35]CAPDU: 80 13 00 00 [23:31:35]Write to MH i2c: E2 08 00 8E 08 80 13 00 00 00 00 00 00 12 [23:31:35]Write i2c OK [23:31:35]MH_I2C_Read... [23:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:35]Read from MH i2c: E2 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: E2 62 00 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: E2 62 00 8E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 88 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [23:31:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 88 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:35]wFMCommunicate OK [23:31:35]SAM_PROTO_GetFieldsCounters done [23:31:35]requested_item shift.num is exist - process it [23:31:35]requested_item shift.opened is exist - process it [23:31:35]req_shift_opened [23:31:35]FM_GetShiftState [23:31:35]SAM_PROTO_GetShiftState [23:31:35]wFMCommunicate request_size=4 [23:31:35]MH_SAM_APDU [23:31:35]CAPDU: 80 13 01 00 [23:31:35]Write to MH i2c: E2 08 00 8F 08 80 13 01 00 00 00 00 00 14 [23:31:35]Write i2c OK [23:31:35]MH_I2C_Read... [23:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:35]Read from MH i2c: E2 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: E2 0E 00 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: E2 0E 00 8F 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 63 [23:31:35]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:31:35]wFMCommunicate OK [23:31:35]SAM_PROTO_GetShiftState done [23:31:35]FM_GetShiftState done [23:31:35]req_shift_opened done [23:31:35]requested_item shift.open_date is exist - process it [23:31:35]req_shift_open_date [23:31:35]req_shift_open_date done [23:31:35]produce_requested_data done [23:31:35]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104072,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [23:31:35]process_action_free print_text [23:31:35]json_value_free [23:31:35]json_value_free done [23:31:35]process_json_proto returns [23:31:35]Send response to host [23:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104072,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [23:31:35]free response buf [23:31:35]execute_script done [23:31:35]execute_script returns [23:31:35]free content buf [23:31:35]Sock 7.Close socket [23:31:35]Sock 7.Thread stoped [23:33:16]ConnectInit Can't connect to host [23:33:16]CommunicateWithHost connect error [23:33:16]CommunicateWithHost err = -1 [23:33:16]OFD Sender: Server communicate error [23:33:21]OFD Sender: Processing packet 104072 [packets to send 17, broken 16] [23:33:21]ProducePacketName [23:33:21]name=ofd_packets/00104072 [23:33:21]OFD Sender: To server: pG, [23:33:21]CommunicateWithHost lk.salyk.kg:30040 [23:33:21]ConnectInit lk.salyk.kg [23:33:22]Connected sock=7 [23:33:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 BB F6 07 01 30 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 B9 BB 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 96 01 00 35 04 06 00 29 14 6C EF 56 48 E9 7E 2C AC AE 03 FD 73 [23:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 E7 EE 47 00 42 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 88 96 01 00 F4 03 04 00 C5 62 74 66 B6 04 01 00 00 12 F2 02 00 F2 60 20 8B [23:33:22]CommunicateWithHost err = 0 [23:33:22]CheckOFDResponse [23:33:22]1017 (14) - 77093643461234 [23:33:22]1041 (16) - 0000000000875093 [23:33:22]1040 (4) - 104072 [23:33:22]1012 (4) - 20.06.2024 17:11 [23:33:22]1206 (1) - 0 [23:33:22]OFD Sender: Remove packet 104072 [23:33:22]ProducePacketName [23:33:22]name=ofd_packets/00104072 [23:33:22]NVStorageDeleteData [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:25]accept exits with 9 [23:35:25]New connection [23:35:25]New thread 3066715492 created [23:35:25]Thread 3066858852 joined [23:35:25]Waiting for new connection... [23:35:25] Sock 9.Parse request [23:35:25]Sock 9.Check first char [23:35:25]Sock 9.First char is OK [23:35:25]request: POST /json_proto HTTP/1.0 [23:35:25]Method: POST [23:35:25]URL: /json_proto [23:35:25]Method is POST - this is cgi request [23:35:25]url: /json_proto [23:35:25]query_string will be loaded in cgi processing [23:35:25]execute_cgi json_proto POST (null) [23:35:25]execute_cgi path=json_proto method=POST [23:35:25]POST find Content-Length [23:35:25]Host: 172.17.38.133:8080 [23:35:25]Content-Length: 677 [23:35:25]Content-Type: application/json [23:35:25] [23:35:25]POST finish read [23:35:25]Found Content-Length = 677 [23:35:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:25]execute_script... [23:35: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)673462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:25]POST & json_proto [23:35:25]process_json_proto [23:35:25]json parsed OK: [23:35:25]protocol is kg_v1.0 [23:35:25]action value=close_receipt [23:35:25]process_action close_receipt [23:35:25]cmd_close_receipt [23:35:25]MH_GetDate [23:35:25]Write to MH i2c: F0 00 00 90 08 87 [23:35:25]Write i2c OK [23:35:25]MH_I2C_Read... [23:35:25]Read from MH i2c: F0 [23:35:25]MH_I2C_Read... [23:35:25]Read from MH i2c: F0 09 00 [23:35:25]MH_I2C_Read... [23:35:25]Read from MH i2c: F0 09 00 90 08 00 BF BC 74 66 BD 8F 7C 64 11 [23:35:25]GetLastDocTimeStamp 1718926265 [23:35:25]current date 1718926527 [23:35:25]FM_GetShiftState [23:35:25]SAM_PROTO_GetShiftState [23:35:25]wFMCommunicate request_size=4 [23:35:25]MH_SAM_APDU [23:35:25]CAPDU: 80 13 01 00 [23:35:25]Write to MH i2c: E2 08 00 91 08 80 13 01 00 00 00 00 00 16 [23:35:25]Write i2c OK [23:35:25]MH_I2C_Read... [23:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:25]Read from MH i2c: E2 [23:35:25]MH_I2C_Read... [23:35:25]Read from MH i2c: E2 0E 00 [23:35:25]MH_I2C_Read... [23:35:25]Read from MH i2c: E2 0E 00 91 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 65 [23:35:25]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:35:25]wFMCommunicate OK [23:35:25]SAM_PROTO_GetShiftState done [23:35:25]FM_GetShiftState done [23:35:25]opened in 1718843124 [23:35:25]opened+sec_in_day 1718929524 [23:35:25]quantity*price = 30012 [23:35:25]sum+1 = 30014 [23:35:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 258 20.06.2024 23:35 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104073 ФПД: 100256899896924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T233527&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104073&fm=100256899896924&tin=02508201610067®Number=0000000000092785&sum=30000 [23:35:26]StoreToDocumentArchive [23:35:26]shift 354 fd 104073 [23:35:26]save to /storage/0354/doc_00104073 [23:35:26]save last doc name /storage/0354/doc_00104073 to /storage/kkm_last_doc_name [23:35:26]save OK [23:35:26]Clear old archive folders... [23:35:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:35:26]tlvbuf is 01109BF0 [23:35:26]SAM_PROTO_ClearQueue [23:35:26]wFMCommunicate request_size=4 [23:35:26]MH_SAM_APDU [23:35:26]CAPDU: 80 09 00 00 [23:35:26]Write to MH i2c: E2 08 00 9E 08 80 09 00 00 00 00 00 00 18 [23:35:26]Write i2c OK [23:35:26]MH_I2C_Read... [23:35:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:26]Read from MH i2c: E2 [23:35:26]MH_I2C_Read... [23:35:26]Read from MH i2c: E2 03 00 [23:35:26]MH_I2C_Read... [23:35:26]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [23:35:26]RAPDU: 90 00 [23:35:26]wFMCommunicate OK [23:35:26]SAM_PROTO_ClearQueue done [23:35:26]KKMCreateOFDPacket [23:35:26]OFDProtocolAddRootSTLVToBuf [23:35:26]FM_MakeSignedData [23:35:26]FM_MakeSignedData [23:35:26]SAM_PROTO_SignData [23:35:26]wFMCommunicate request_size=4 [23:35:26]MH_SAM_APDU [23:35:26]CAPDU: 80 0D 01 02 [23:35:26]Write to MH i2c: E2 08 00 9F 08 80 0D 01 02 00 00 00 00 20 [23:35:26]Write i2c OK [23:35:26]MH_I2C_Read... [23:35:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:26]Read from MH i2c: E2 [23:35:26]MH_I2C_Read... [23:35:26]Read from MH i2c: E2 03 00 [23:35:26]MH_I2C_Read... [23:35:26]Read from MH i2c: E2 03 00 9F 08 00 90 00 1B [23:35:26]RAPDU: 90 00 [23:35:26]wFMCommunicate OK [23:35:26]wFMCommunicate request_size=255 [23:35:26]MH_SAM_APDU [23:35: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 BF BC 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 96 01 00 35 04 06 00 5B [23:35:26]Write to MH i2c: E2 02 01 A0 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 BF BC 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 96 01 00 35 04 06 00 5B 00 00 AE [23:35:26]Write i2c OK [23:35:26]MH_I2C_Read... [23:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:27]Read from MH i2c: E2 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: E2 03 00 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: E2 03 00 A0 08 00 90 00 1C [23:35:27]RAPDU: 90 00 [23:35:27]wFMCommunicate OK [23:35:27]wFMCommunicate request_size=10 [23:35:27]MH_SAM_APDU [23:35:27]CAPDU: 80 0D 02 02 05 2E E0 E7 96 5C [23:35:27]Write to MH i2c: E2 0D 00 A1 08 80 0D 02 02 05 00 2E E0 E7 96 5C 00 00 14 [23:35:27]Write i2c OK [23:35:27]MH_I2C_Read... [23:35:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:27]Read from MH i2c: E2 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: E2 03 00 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [23:35:27]RAPDU: 90 00 [23:35:27]wFMCommunicate OK [23:35:27]wFMCommunicate request_size=4 [23:35:27]MH_SAM_APDU [23:35:27]CAPDU: 80 0D 03 02 [23:35:27]Write to MH i2c: E2 08 00 A2 08 80 0D 03 02 00 00 00 00 25 [23:35:27]Write i2c OK [23:35:27]MH_I2C_Read... [23:35:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:27]Read from MH i2c: E2 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: E2 0B 00 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: E2 0B 00 A2 08 00 24 80 FA F4 02 DE 41 13 90 00 EC [23:35:27]RAPDU: 24 80 FA F4 02 DE 41 13 90 00 [23:35:27]wFMCommunicate OK [23:35:27]SAM_PROTO_SignData done [23:35:27]FM_MakeSignedData done [23:35:27]CreateOFDProtocolMessage [23:35:27]wFMCommunicate request_size=4 [23:35:27]MH_SAM_APDU [23:35:27]CAPDU: 80 11 00 00 [23:35:27]Write to MH i2c: E2 08 00 A3 08 80 11 00 00 00 00 00 00 25 [23:35:27]Write i2c OK [23:35:27]MH_I2C_Read... [23:35:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:27]Read from MH i2c: E2 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: E2 17 00 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: E2 17 00 A3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 78 [23:35:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:35:27]wFMCommunicate OK [23:35:27]CreateOFDProtocolMessage done [23:35:27]OFDSenderStorePacket 104073 [23:35:27]StoreOFDPacket docnum=104073 [23:35:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6F E7 07 01 37 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 BF BC 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 96 01 00 35 04 06 00 5B 2E E0 E7 96 5C 24 80 FA F4 02 DE 41 13 [23:35:27]CheckFolder [23:35:27]dirname=/storage/ofd_packets [23:35:27]CheckFolder done [23:35:27]ProducePacketName [23:35:27]name=ofd_packets/00104073 [23:35:27]NVStorageSaveData ofd_packets/00104073 [23:35:27]File name is /storage/ofd_packets/00104073 [23:35:27]Write 301 bytes [23:35:27]NVStorageSaveData done [23:35:27]OFDSenderStorePacket done [23:35:27]KKMCreateOFDPacket done [23:35:27]NVStorageSaveData kkm_last_timestamp [23:35:27]File name is /storage/kkm_last_timestamp [23:35:27]Write 4 bytes [23:35:27]NVStorageSaveData done [23:35:27]ExternCall_PrintAddStr [23:35:27]wPrintStart [23:35:27]Write to MH i2c: 01 00 00 A4 08 AC [23:35:27]Write i2c OK [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: 01 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: 01 07 00 [23:35:27]MH_I2C_Read... [23:35:27]Read from MH i2c: 01 07 00 A4 08 00 00 00 00 00 FF 0F C1 [23:35:27]RasterBufferAndPrint [23:35:27]line Счет N : (1)673462 [23:35:27]line ИНН: 02508201610067 [23:35:27]line Контрольно-Кассовый Чек [23:35:27]line ПРОДАЖА [23:35:27]line ТРК (МРК, ГНК) : 32 [23:35:27]line Товар: 2710124130 [23:35:27]line Аи-92-К-5 [23:35:27]line 4.520 * 66.40 [23:35:27]line = 300.13 [23:35:27]line НДС 12% НСП 1% [23:35:27]line > о реализуемом товаре [23:35:27]line ОКРУГЛЕНИЕ: -0.13 [23:35:27]line ИТОГО: 300.00 [23:35:27]line Внесено: 300.00 [23:35:27]line СДАЧА: 0.00 [23:35:27]line НСП 1% : 2.66 [23:35:27]line НДС 12% : 31.87 [23:35:27]line Наличными: 300.00 [23:35:27]line Безнал.: 0.00 [23:35:27]line Место: АЗС № 120 "Партнер Нефть" [23:35:27]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:35:27]line СНО: Общий режим [23:35:27]line Чек 258 20.06.2024 23:35 [23:35:27]line Смена: 354 ФФД: 1.0 [23:35:27]line ЗНМ: 0300000164 [23:35:27]line РНМ: 0000000000092785 [23:35:27]line Версия ККМ: 001 [23:35:27]line ФМ: 0000000000875093 [23:35:27]line ФД: 104073 [23:35:27]line ФПД: 100256899896924 [23:35:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T233527&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104073&fm=100256899896924&tin=02508201610067®Number=0000000000092785&sum=30000 [23:35:27]OFD Sender: Processing packet 104073 [packets to send 17, broken 16] [23:35:27]ProducePacketName [23:35:27]name=ofd_packets/00104073 [23:35:27]OFD Sender: To server: pG, [23:35:27]CommunicateWithHost lk.salyk.kg:30040 [23:35:27]ConnectInit lk.salyk.kg [23:35:27]written 0, free lines is 4095 [23:35:27]Connected sock=7 [23:35:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 6F E7 07 01 37 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 BF BC 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 89 96 01 00 35 04 06 00 5B 2E E0 E7 96 5C 24 80 FA F4 02 DE 41 13 [23:35:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 9A 2B 47 00 10 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 35 30 39 33 10 04 04 00 89 96 01 00 F4 03 04 00 43 63 74 66 B6 04 01 00 00 82 AF F1 A4 8C B3 38 8A [23:35:28]CommunicateWithHost err = 0 [23:35:28]CheckOFDResponse [23:35:28]1017 (14) - 77093643461234 [23:35:28]1041 (16) - 0000000000875093 [23:35:28]1040 (4) - 104073 [23:35:28]1012 (4) - 20.06.2024 17:13 [23:35:28]1206 (1) - 0 [23:35:28]OFD Sender: Remove packet 104073 [23:35:28]ProducePacketName [23:35:28]name=ofd_packets/00104073 [23:35:28]NVStorageDeleteData [23:35:28]Write to MH i2c: 01 00 00 CF 08 D7 [23:35:28]Write i2c OK [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: 01 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: 01 07 00 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: 01 07 00 CF 08 00 00 00 00 00 D8 0C C2 [23:35:28]RasterBufferAndPrint [23:35:28]line [23:35:28]line [23:35:28]line [23:35:28]line [23:35:28]line [23:35:28]written 0, free lines is 3295 [23:35:28]MH_Cut [23:35:28]Write to MH i2c: D1 01 00 D6 08 01 B0 [23:35:28]Write i2c OK [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: D1 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: D1 01 00 [23:35:28]MH_I2C_Read... [23:35:28]Read from MH i2c: D1 01 00 D6 08 00 AF [23:35:28]Write to MH i2c: 01 00 00 D7 08 DF [23:35:28]Write i2c OK [23:35:28]MH_I2C_Read... [23:35:28]OFD Sender: No OFD packet to send [23:35:28]*** Cut start [23:35:28]*** Partial cut [23:35:28]*** CUTSNS_PIN = 1 [23:35:28]*** CUTSNS_PIN = 0 [23:35:29]*** Brake cut motor [23:35:29]Read from MH i2c: 01 [23:35:29]MH_I2C_Read... [23:35:29]*** Stop cut motor [23:35:29]*** Cut end [23:35:29]Read from MH i2c: 01 07 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 FF 0F F4 [23:35:29]process_action close_receipt done [23:35:29]requested_data is exist [23:35:29]produce_requested_data [23:35:29]requested_item fm.sn is exist - process it [23:35:29]wFMCommunicate request_size=4 [23:35:29]MH_SAM_APDU [23:35:29]CAPDU: 80 11 00 00 [23:35:29]Write to MH i2c: E2 08 00 D8 08 80 11 00 00 00 00 00 00 5A [23:35:29]Write i2c OK [23:35:29]MH_I2C_Read... [23:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:29]Read from MH i2c: E2 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 17 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 17 00 D8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AD [23:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:35:29]wFMCommunicate OK [23:35:29]requested_item fd.num is exist - process it [23:35:29]SAM_PROTO_GetFieldsCounters [23:35:29]wFMCommunicate request_size=4 [23:35:29]MH_SAM_APDU [23:35:29]CAPDU: 80 13 00 00 [23:35:29]Write to MH i2c: E2 08 00 D9 08 80 13 00 00 00 00 00 00 5D [23:35:29]Write i2c OK [23:35:29]MH_I2C_Read... [23:35:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:29]Read from MH i2c: E2 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 62 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 62 00 D9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 89 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 10 [23:35:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 89 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:35:29]wFMCommunicate OK [23:35:29]SAM_PROTO_GetFieldsCounters done [23:35:29]requested_item shift.num is exist - process it [23:35:29]requested_item shift.opened is exist - process it [23:35:29]req_shift_opened [23:35:29]FM_GetShiftState [23:35:29]SAM_PROTO_GetShiftState [23:35:29]wFMCommunicate request_size=4 [23:35:29]MH_SAM_APDU [23:35:29]CAPDU: 80 13 01 00 [23:35:29]Write to MH i2c: E2 08 00 DA 08 80 13 01 00 00 00 00 00 5F [23:35:29]Write i2c OK [23:35:29]MH_I2C_Read... [23:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:29]Read from MH i2c: E2 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 0E 00 [23:35:29]MH_I2C_Read... [23:35:29]Read from MH i2c: E2 0E 00 DA 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 AE [23:35:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:35:29]wFMCommunicate OK [23:35:29]SAM_PROTO_GetShiftState done [23:35:29]FM_GetShiftState done [23:35:29]req_shift_opened done [23:35:29]requested_item shift.open_date is exist - process it [23:35:29]req_shift_open_date [23:35:29]req_shift_open_date done [23:35:29]produce_requested_data done [23:35:29]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104073,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [23:35:29]process_action_free close_receipt [23:35:29]json_value_free [23:35:29]json_value_free done [23:35:29]process_json_proto returns [23:35:29]Send response to host [23:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104073,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [23:35:29]free response buf [23:35:29]execute_script done [23:35:29]execute_script returns [23:35:29]free content buf [23:35:29]Sock 9.Close socket [23:35:29]Sock 9.Thread stoped [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:11]accept exits with 10 [23:40:11]New connection [23:40:11]New thread 3066858852 created [23:40:11]Thread 3066715492 joined [23:40:11]Waiting for new connection... [23:40:11] Sock 10.Parse request [23:40:11]Sock 10.Check first char [23:40:11]Sock 10.First char is OK [23:40:11]request: POST /json_proto HTTP/1.0 [23:40:11]Method: POST [23:40:11]URL: /json_proto [23:40:11]Method is POST - this is cgi request [23:40:11]url: /json_proto [23:40:11]query_string will be loaded in cgi processing [23:40:11]execute_cgi json_proto POST (null) [23:40:11]execute_cgi path=json_proto method=POST [23:40:11]POST find Content-Length [23:40:11]Host: 172.17.38.133:8080 [23:40:11]Content-Length: 1207 [23:40:11]Content-Type: application/json [23:40:11] [23:40:11]POST finish read [23:40:11]Found Content-Length = 1207 [23:40:11]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673463\u000A20.06.2024 23:17\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 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.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\u000A54663\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:11]execute_script... [23:40:11]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673463\u000A20.06.2024 23:17\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 40.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 2656.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\u000A54663\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:11]POST & json_proto [23:40:11]process_json_proto [23:40:11]json parsed OK: [23:40:11]protocol is kg_v1.0 [23:40:11]action value=print_text [23:40:11]process_action print_text [23:40:11]cmd_print_text [23:40:11]ExternCall_PrintAddStr [23:40:11]wPrintStart [23:40:11]Write to MH i2c: 01 00 00 DB 08 E3 [23:40:11]Write i2c OK [23:40:11]MH_I2C_Read... [23:40:11]Read from MH i2c: 01 [23:40:11]MH_I2C_Read... [23:40:11]Read from MH i2c: 01 07 00 [23:40:11]MH_I2C_Read... [23:40:11]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 FF 0F F8 [23:40:11]RasterBufferAndPrint [23:40:11]line *****ТОВАРНЫЙ ЧЕК***** [23:40:11]line АЗС 120 [23:40:11]line Партнер нефть [23:40:11]line 02508201610067 [23:40:11]line Кассир : Дуйшенбиев А. [23:40:11]line Счет N : (1)673463 [23:40:11]line 20.06.2024 23:17 [23:40:11]line ПРОДАЖА [23:40:11]line ТРК (МРК, ГНК): 42 [23:40:11]line Вид ГСМ : 2710124130 [23:40:11]line Аи-92-К-5 [23:40:11]line 40.000 x 66.40 [23:40:11]line ИТОГ: 2656.00 [23:40:11]line Тип оплаты: Талоны: Топливная Карта [23:40:11]line 54663 [23:40:11]line ______________________ [23:40:11]line (подпись) [23:40:11]written 0, free lines is 4095 [23:40:11]Write to MH i2c: 01 00 00 EF 08 F7 [23:40:11]Write i2c OK [23:40:11]MH_I2C_Read... [23:40:11]Read from MH i2c: 01 [23:40:11]MH_I2C_Read... [23:40:11]Read from MH i2c: 01 07 00 [23:40:11]MH_I2C_Read... [23:40:11]Read from MH i2c: 01 07 00 EF 08 00 00 00 00 00 13 0E 1F [23:40:11]RasterBufferAndPrint [23:40:11]line [23:40:11]line [23:40:11]line [23:40:11]line [23:40:11]line [23:40:11]written 0, free lines is 3605 [23:40:11]MH_Cut [23:40:11]Write to MH i2c: D1 01 00 F6 08 01 D0 [23:40:11]Write i2c OK [23:40:11]MH_I2C_Read... [23:40:11]Read from MH i2c: D1 [23:40:11]MH_I2C_Read... [23:40:11]Read from MH i2c: D1 01 00 [23:40:11]MH_I2C_Read... [23:40:11]Read from MH i2c: D1 01 00 F6 08 00 CF [23:40:11]Write to MH i2c: 01 00 00 F7 08 FF [23:40:11]Write i2c OK [23:40:11]MH_I2C_Read... [23:40:11]*** Cut start [23:40:11]*** Partial cut [23:40:11]*** CUTSNS_PIN = 1 [23:40:11]*** CUTSNS_PIN = 0 [23:40:12]*** Brake cut motor [23:40:12]Read from MH i2c: 01 [23:40:12]MH_I2C_Read... [23:40:12]Read from MH i2c: 01 07 00 [23:40:12]MH_I2C_Read... [23:40:12]*** Stop cut motor [23:40:12]*** Cut end [23:40:12]Read from MH i2c: 01 07 00 F7 08 00 00 00 00 00 FF 0F 14 [23:40:12]process_action print_text done [23:40:12]requested_data is exist [23:40:12]produce_requested_data [23:40:12]requested_item fm.sn is exist - process it [23:40:12]wFMCommunicate request_size=4 [23:40:12]MH_SAM_APDU [23:40:12]CAPDU: 80 11 00 00 [23:40:12]Write to MH i2c: E2 08 00 F8 08 80 11 00 00 00 00 00 00 7A [23:40:12]Write i2c OK [23:40:12]MH_I2C_Read... [23:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:12]Read from MH i2c: E2 [23:40:12]MH_I2C_Read... [23:40:12]Read from MH i2c: E2 17 00 [23:40:12]MH_I2C_Read... [23:40:12]Read from MH i2c: E2 17 00 F8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CD [23:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:40:12]wFMCommunicate OK [23:40:12]requested_item fd.num is exist - process it [23:40:12]SAM_PROTO_GetFieldsCounters [23:40:12]wFMCommunicate request_size=4 [23:40:12]MH_SAM_APDU [23:40:12]CAPDU: 80 13 00 00 [23:40:12]Write to MH i2c: E2 08 00 F9 08 80 13 00 00 00 00 00 00 7D [23:40:12]Write i2c OK [23:40:12]MH_I2C_Read... [23:40:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:12]Read from MH i2c: E2 [23:40:12]MH_I2C_Read... [23:40:12]Read from MH i2c: E2 62 00 [23:40:12]MH_I2C_Read... [23:40:12]Read from MH i2c: E2 62 00 F9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 89 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [23:40:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 89 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:40:12]wFMCommunicate OK [23:40:12]SAM_PROTO_GetFieldsCounters done [23:40:12]requested_item shift.num is exist - process it [23:40:12]requested_item shift.opened is exist - process it [23:40:12]req_shift_opened [23:40:12]FM_GetShiftState [23:40:12]SAM_PROTO_GetShiftState [23:40:12]wFMCommunicate request_size=4 [23:40:12]MH_SAM_APDU [23:40:12]CAPDU: 80 13 01 00 [23:40:12]Write to MH i2c: E2 08 00 FA 08 80 13 01 00 00 00 00 00 7F [23:40:12]Write i2c OK [23:40:12]MH_I2C_Read... [23:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:12]Read from MH i2c: E2 [23:40:12]MH_I2C_Read... [23:40:12]Read from MH i2c: E2 0E 00 [23:40:12]MH_I2C_Read... [23:40:12]Read from MH i2c: E2 0E 00 FA 08 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 CE [23:40:12]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:40:12]wFMCommunicate OK [23:40:12]SAM_PROTO_GetShiftState done [23:40:12]FM_GetShiftState done [23:40:12]req_shift_opened done [23:40:12]requested_item shift.open_date is exist - process it [23:40:12]req_shift_open_date [23:40:12]req_shift_open_date done [23:40:12]produce_requested_data done [23:40:12]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104073,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [23:40:12]process_action_free print_text [23:40:12]json_value_free [23:40:12]json_value_free done [23:40:12]process_json_proto returns [23:40:12]Send response to host [23:40:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104073,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [23:40:12]free response buf [23:40:12]execute_script done [23:40:12]execute_script returns [23:40:12]free content buf [23:40:12]Sock 10.Close socket [23:40:12]Sock 10.Thread stoped [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:56]accept exits with 7 [23:41:56]New connection [23:41:56]New thread 3066715492 created [23:41:56]Thread 3066858852 joined [23:41:56]Waiting for new connection... [23:41:56] Sock 7.Parse request [23:41:56]Sock 7.Check first char [23:41:56]Sock 7.First char is OK [23:41:56]request: POST /json_proto HTTP/1.0 [23:41:56]Method: POST [23:41:56]URL: /json_proto [23:41:56]Method is POST - this is cgi request [23:41:56]url: /json_proto [23:41:56]query_string will be loaded in cgi processing [23:41:56]execute_cgi json_proto POST (null) [23:41:56]execute_cgi path=json_proto method=POST [23:41:56]POST find Content-Length [23:41:56]Host: 172.17.38.133:8080 [23:41:56]Content-Length: 1175 [23:41:56]Content-Type: application/json [23:41:56] [23:41:56]POST finish read [23:41:56]Found Content-Length = 1175 [23:41:56]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673461\u000A20.06.2024 23:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 123.890 x 72.90\u000A\u0418\u0422\u041E\u0413: 9031.58\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139564\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:56]execute_script... [23:41:56]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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)673461\u000A20.06.2024 23:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 123.890 x 72.90\u000A\u0418\u0422\u041E\u0413: 9031.58\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30139564\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:56]POST & json_proto [23:41:56]process_json_proto [23:41:56]json parsed OK: [23:41:56]protocol is kg_v1.0 [23:41:56]action value=print_text [23:41:56]process_action print_text [23:41:56]cmd_print_text [23:41:56]ExternCall_PrintAddStr [23:41:56]wPrintStart [23:41:56]Write to MH i2c: 01 00 00 FB 08 03 [23:41:56]Write i2c OK [23:41:56]MH_I2C_Read... [23:41:56]Read from MH i2c: 01 [23:41:56]MH_I2C_Read... [23:41:56]Read from MH i2c: 01 07 00 [23:41:56]MH_I2C_Read... [23:41:56]Read from MH i2c: 01 07 00 FB 08 00 00 00 00 00 FF 0F 18 [23:41:56]RasterBufferAndPrint [23:41:56]line *****ТОВАРНЫЙ ЧЕК***** [23:41:56]line АЗС 120 [23:41:56]line Партнер нефть [23:41:56]line 02508201610067 [23:41:56]line Кассир : Дуйшенбиев А. [23:41:56]line Счет N : (1)673461 [23:41:56]line 20.06.2024 23:19 [23:41:56]line ПРОДАЖА [23:41:56]line ТРК (МРК, ГНК): 11 [23:41:56]line Вид ГСМ : 2710194210 [23:41:56]line ДТ(л)-К-5 [23:41:56]line 123.890 x 72.90 [23:41:56]line ИТОГ: 9031.58 [23:41:56]line Тип оплаты: Талоны: ТК ГПНА Online [23:41:56]line 30139564 [23:41:56]line ______________________ [23:41:56]line (подпись) [23:41:56]written 0, free lines is 4095 [23:41:57]Write to MH i2c: 01 00 00 0F 09 18 [23:41:57]Write i2c OK [23:41:57]MH_I2C_Read... [23:41:57]Read from MH i2c: 01 [23:41:57]MH_I2C_Read... [23:41:57]Read from MH i2c: 01 07 00 [23:41:57]MH_I2C_Read... [23:41:57]Read from MH i2c: 01 07 00 0F 09 00 00 00 00 00 11 0E 3E [23:41:57]RasterBufferAndPrint [23:41:57]line [23:41:57]line [23:41:57]line [23:41:57]line [23:41:57]line [23:41:57]written 0, free lines is 3603 [23:41:57]MH_Cut [23:41:57]Write to MH i2c: D1 01 00 16 09 01 F1 [23:41:57]Write i2c OK [23:41:57]MH_I2C_Read... [23:41:57]Read from MH i2c: D1 [23:41:57]MH_I2C_Read... [23:41:57]Read from MH i2c: D1 01 00 [23:41:57]MH_I2C_Read... [23:41:57]Read from MH i2c: D1 01 00 16 09 00 F0 [23:41:57]Write to MH i2c: 01 00 00 17 09 20 [23:41:57]Write i2c OK [23:41:57]MH_I2C_Read... [23:41:57]*** Cut start [23:41:57]*** Partial cut [23:41:57]*** CUTSNS_PIN = 1 [23:41:57]*** CUTSNS_PIN = 0 [23:41:57]*** Brake cut motor [23:41:58]Read from MH i2c: 01 [23:41:58]MH_I2C_Read... [23:41:58]*** Stop cut motor [23:41:58]*** Cut end [23:41:58]Read from MH i2c: 01 07 00 [23:41:58]MH_I2C_Read... [23:41:58]Read from MH i2c: 01 07 00 17 09 00 00 00 00 00 FF 0F 35 [23:41:58]process_action print_text done [23:41:58]requested_data is exist [23:41:58]produce_requested_data [23:41:58]requested_item fm.sn is exist - process it [23:41:58]wFMCommunicate request_size=4 [23:41:58]MH_SAM_APDU [23:41:58]CAPDU: 80 11 00 00 [23:41:58]Write to MH i2c: E2 08 00 18 09 80 11 00 00 00 00 00 00 9B [23:41:58]Write i2c OK [23:41:58]MH_I2C_Read... [23:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:58]Read from MH i2c: E2 [23:41:58]MH_I2C_Read... [23:41:58]Read from MH i2c: E2 17 00 [23:41:58]MH_I2C_Read... [23:41:58]Read from MH i2c: E2 17 00 18 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EE [23:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:41:58]wFMCommunicate OK [23:41:58]requested_item fd.num is exist - process it [23:41:58]SAM_PROTO_GetFieldsCounters [23:41:58]wFMCommunicate request_size=4 [23:41:58]MH_SAM_APDU [23:41:58]CAPDU: 80 13 00 00 [23:41:58]Write to MH i2c: E2 08 00 19 09 80 13 00 00 00 00 00 00 9E [23:41:58]Write i2c OK [23:41:58]MH_I2C_Read... [23:41:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:58]Read from MH i2c: E2 [23:41:58]MH_I2C_Read... [23:41:58]Read from MH i2c: E2 62 00 [23:41:58]MH_I2C_Read... [23:41:58]Read from MH i2c: E2 62 00 19 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 89 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [23:41:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 89 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:41:58]wFMCommunicate OK [23:41:58]SAM_PROTO_GetFieldsCounters done [23:41:58]requested_item shift.num is exist - process it [23:41:58]requested_item shift.opened is exist - process it [23:41:58]req_shift_opened [23:41:58]FM_GetShiftState [23:41:58]SAM_PROTO_GetShiftState [23:41:58]wFMCommunicate request_size=4 [23:41:58]MH_SAM_APDU [23:41:58]CAPDU: 80 13 01 00 [23:41:58]Write to MH i2c: E2 08 00 1A 09 80 13 01 00 00 00 00 00 A0 [23:41:58]Write i2c OK [23:41:58]MH_I2C_Read... [23:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:58]Read from MH i2c: E2 [23:41:58]MH_I2C_Read... [23:41:58]Read from MH i2c: E2 0E 00 [23:41:58]MH_I2C_Read... [23:41:58]Read from MH i2c: E2 0E 00 1A 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 EF [23:41:58]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:41:58]wFMCommunicate OK [23:41:58]SAM_PROTO_GetShiftState done [23:41:58]FM_GetShiftState done [23:41:58]req_shift_opened done [23:41:58]requested_item shift.open_date is exist - process it [23:41:58]req_shift_open_date [23:41:58]req_shift_open_date done [23:41:58]produce_requested_data done [23:41:58]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104073,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [23:41:58]process_action_free print_text [23:41:58]json_value_free [23:41:58]json_value_free done [23:41:58]process_json_proto returns [23:41:58]Send response to host [23:41:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104073,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [23:41:58]free response buf [23:41:58]execute_script done [23:41:58]execute_script returns [23:41:58]free content buf [23:41:58]Sock 7.Close socket [23:41:58]Sock 7.Thread stoped [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:08]accept exits with 9 [23:57:08]New connection [23:57:08]New thread 3066858852 created [23:57:08]Thread 3066715492 joined [23:57:08]Waiting for new connection... [23:57:08] Sock 9.Parse request [23:57:08]Sock 9.Check first char [23:57:08]Sock 9.First char is OK [23:57:08]request: POST /json_proto HTTP/1.0 [23:57:08]Method: POST [23:57:08]URL: /json_proto [23:57:08]Method is POST - this is cgi request [23:57:08]url: /json_proto [23:57:08]query_string will be loaded in cgi processing [23:57:08]execute_cgi json_proto POST (null) [23:57:08]execute_cgi path=json_proto method=POST [23:57:08]POST find Content-Length [23:57:08]Host: 172.17.38.133:8080 [23:57:08]Content-Length: 677 [23:57:08]Content-Type: application/json [23:57:08] [23:57:08]POST finish read [23:57:08]Found Content-Length = 677 [23:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:08]execute_script... [23:57:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.320, "sum" : 220.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:08]POST & json_proto [23:57:08]process_json_proto [23:57:08]json parsed OK: [23:57:08]protocol is kg_v1.0 [23:57:08]action value=close_receipt [23:57:08]process_action close_receipt [23:57:08]cmd_close_receipt [23:57:08]MH_GetDate [23:57:08]Write to MH i2c: F0 00 00 1B 09 13 [23:57:09]Write i2c OK [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: F0 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: F0 09 00 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: F0 09 00 1B 09 00 D6 C1 74 66 BD 8F 7C 64 B9 [23:57:09]GetLastDocTimeStamp 1718926527 [23:57:09]current date 1718927830 [23:57:09]FM_GetShiftState [23:57:09]SAM_PROTO_GetShiftState [23:57:09]wFMCommunicate request_size=4 [23:57:09]MH_SAM_APDU [23:57:09]CAPDU: 80 13 01 00 [23:57:09]Write to MH i2c: E2 08 00 1C 09 80 13 01 00 00 00 00 00 A2 [23:57:09]Write i2c OK [23:57:09]MH_I2C_Read... [23:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:09]Read from MH i2c: E2 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: E2 0E 00 [23:57:09]MH_I2C_Read... [23:57:09]Read from MH i2c: E2 0E 00 1C 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 F1 [23:57:09]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:57:09]wFMCommunicate OK [23:57:09]SAM_PROTO_GetShiftState done [23:57:09]FM_GetShiftState done [23:57:09]opened in 1718843124 [23:57:09]opened+sec_in_day 1718929524 [23:57:09]quantity*price = 22044 [23:57:09]sum+1 = 22046 [23:57:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.41 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 259 20.06.2024 23:57 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104074 ФПД: 256992310212582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T235710&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104074&fm=256992310212582&tin=02508201610067®Number=0000000000092785&sum=22000 [23:57:10]StoreToDocumentArchive [23:57:10]shift 354 fd 104074 [23:57:10]save to /storage/0354/doc_00104074 [23:57:10]save last doc name /storage/0354/doc_00104074 to /storage/kkm_last_doc_name [23:57:10]save OK [23:57:10]Clear old archive folders... [23:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:57:10]tlvbuf is 010D2470 [23:57:10]SAM_PROTO_ClearQueue [23:57:10]wFMCommunicate request_size=4 [23:57:10]MH_SAM_APDU [23:57:10]CAPDU: 80 09 00 00 [23:57:10]Write to MH i2c: E2 08 00 29 09 80 09 00 00 00 00 00 00 A4 [23:57:10]Write i2c OK [23:57:10]MH_I2C_Read... [23:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:57:10]Read from MH i2c: E2 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 03 00 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [23:57:10]RAPDU: 90 00 [23:57:10]wFMCommunicate OK [23:57:10]SAM_PROTO_ClearQueue done [23:57:10]KKMCreateOFDPacket [23:57:10]OFDProtocolAddRootSTLVToBuf [23:57:10]FM_MakeSignedData [23:57:10]FM_MakeSignedData [23:57:10]SAM_PROTO_SignData [23:57:10]wFMCommunicate request_size=4 [23:57:10]MH_SAM_APDU [23:57:10]CAPDU: 80 0D 01 02 [23:57:10]Write to MH i2c: E2 08 00 2A 09 80 0D 01 02 00 00 00 00 AC [23:57:10]Write i2c OK [23:57:10]MH_I2C_Read... [23:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:57:10]Read from MH i2c: E2 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 03 00 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 03 00 2A 09 00 90 00 A7 [23:57:10]RAPDU: 90 00 [23:57:10]wFMCommunicate OK [23:57:10]wFMCommunicate request_size=255 [23:57:10]MH_SAM_APDU [23:57:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D6 C1 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 96 01 00 35 04 06 00 E9 [23:57:10]Write to MH i2c: E2 02 01 2B 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D6 C1 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 96 01 00 35 04 06 00 E9 00 00 99 [23:57:10]Write i2c OK [23:57:10]MH_I2C_Read... [23:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:10]Read from MH i2c: E2 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 03 00 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [23:57:10]RAPDU: 90 00 [23:57:10]wFMCommunicate OK [23:57:10]wFMCommunicate request_size=10 [23:57:10]MH_SAM_APDU [23:57:10]CAPDU: 80 0D 02 02 05 BB AF 5C 37 E6 [23:57:10]Write to MH i2c: E2 0D 00 2C 09 80 0D 02 02 05 00 BB AF 5C 37 E6 00 00 9C [23:57:10]Write i2c OK [23:57:10]MH_I2C_Read... [23:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:10]Read from MH i2c: E2 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 03 00 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 03 00 2C 09 00 90 00 A9 [23:57:10]RAPDU: 90 00 [23:57:10]wFMCommunicate OK [23:57:10]wFMCommunicate request_size=4 [23:57:10]MH_SAM_APDU [23:57:10]CAPDU: 80 0D 03 02 [23:57:10]Write to MH i2c: E2 08 00 2D 09 80 0D 03 02 00 00 00 00 B1 [23:57:10]Write i2c OK [23:57:10]MH_I2C_Read... [23:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:57:10]Read from MH i2c: E2 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 0B 00 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 0B 00 2D 09 00 D8 25 5F E5 D3 F7 27 20 90 00 04 [23:57:10]RAPDU: D8 25 5F E5 D3 F7 27 20 90 00 [23:57:10]wFMCommunicate OK [23:57:10]SAM_PROTO_SignData done [23:57:10]FM_MakeSignedData done [23:57:10]CreateOFDProtocolMessage [23:57:10]wFMCommunicate request_size=4 [23:57:10]MH_SAM_APDU [23:57:10]CAPDU: 80 11 00 00 [23:57:10]Write to MH i2c: E2 08 00 2E 09 80 11 00 00 00 00 00 00 B1 [23:57:10]Write i2c OK [23:57:10]MH_I2C_Read... [23:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:10]Read from MH i2c: E2 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 17 00 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: E2 17 00 2E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 04 [23:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:57:10]wFMCommunicate OK [23:57:10]CreateOFDProtocolMessage done [23:57:10]OFDSenderStorePacket 104074 [23:57:10]StoreOFDPacket docnum=104074 [23:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FA A0 07 01 D1 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D6 C1 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 96 01 00 35 04 06 00 E9 BB AF 5C 37 E6 D8 25 5F E5 D3 F7 27 20 [23:57:10]CheckFolder [23:57:10]dirname=/storage/ofd_packets [23:57:10]CheckFolder done [23:57:10]ProducePacketName [23:57:10]name=ofd_packets/00104074 [23:57:10]NVStorageSaveData ofd_packets/00104074 [23:57:10]File name is /storage/ofd_packets/00104074 [23:57:10]Write 301 bytes [23:57:10]NVStorageSaveData done [23:57:10]OFDSenderStorePacket done [23:57:10]KKMCreateOFDPacket done [23:57:10]NVStorageSaveData kkm_last_timestamp [23:57:10]File name is /storage/kkm_last_timestamp [23:57:10]Write 4 bytes [23:57:10]NVStorageSaveData done [23:57:10]ExternCall_PrintAddStr [23:57:10]wPrintStart [23:57:10]Write to MH i2c: 01 00 00 2F 09 38 [23:57:10]Write i2c OK [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: 01 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: 01 07 00 [23:57:10]MH_I2C_Read... [23:57:10]Read from MH i2c: 01 07 00 2F 09 00 00 00 00 00 FF 0F 4D [23:57:10]RasterBufferAndPrint [23:57:10]line Счет N : (1)673464 [23:57:10]line ИНН: 02508201610067 [23:57:10]line Контрольно-Кассовый Чек [23:57:10]line ПРОДАЖА [23:57:10]line ТРК (МРК, ГНК) : 42 [23:57:10]line Товар: 2710124130 [23:57:10]line Аи-92-К-5 [23:57:10]line 3.320 * 66.40 [23:57:10]line = 220.45 [23:57:10]line НДС 12% НСП 1% [23:57:10]line > о реализуемом товаре [23:57:10]line ОКРУГЛЕНИЕ: -0.45 [23:57:10]line ИТОГО: 220.00 [23:57:10]line Внесено: 220.00 [23:57:10]line СДАЧА: 0.00 [23:57:10]line НСП 1% : 1.95 [23:57:10]line НДС 12% : 23.41 [23:57:10]line Наличными: 220.00 [23:57:10]line Безнал.: 0.00 [23:57:10]line Место: АЗС № 120 "Партнер Нефть" [23:57:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [23:57:10]line СНО: Общий режим [23:57:10]line Чек 259 20.06.2024 23:57 [23:57:10]line Смена: 354 ФФД: 1.0 [23:57:10]line ЗНМ: 0300000164 [23:57:10]line РНМ: 0000000000092785 [23:57:10]line Версия ККМ: 001 [23:57:10]line ФМ: 0000000000875093 [23:57:10]line ФД: 104074 [23:57:10]line ФПД: 256992310212582 [23:57:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T235710&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104074&fm=256992310212582&tin=02508201610067®Number=0000000000092785&sum=22000 [23:57:11]OFD Sender: Processing packet 104074 [packets to send 17, broken 16] [23:57:11]ProducePacketName [23:57:11]name=ofd_packets/00104074 [23:57:11]OFD Sender: To server: pG, [23:57:11]CommunicateWithHost lk.salyk.kg:30040 [23:57:11]ConnectInit lk.salyk.kg [23:57:11]written 0, free lines is 4095 [23:57:11]Connected sock=10 [23:57:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 FA A0 07 01 D1 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 1D 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 25 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 D6 C1 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 96 01 00 35 04 06 00 E9 BB AF 5C 37 E6 D8 25 5F E5 D3 F7 27 20 [23:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 66 7B 47 00 10 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8A 96 01 00 F4 03 04 00 5A 68 74 66 B6 04 01 00 00 6F 9F 47 A8 A5 AA 90 69 [23:57:11]CommunicateWithHost err = 0 [23:57:11]CheckOFDResponse [23:57:11]1017 (14) - 77093643461234 [23:57:11]1041 (16) - 0000000000875093 [23:57:11]1040 (4) - 104074 [23:57:11]1012 (4) - 20.06.2024 17:35 [23:57:11]1206 (1) - 0 [23:57:11]OFD Sender: Remove packet 104074 [23:57:11]ProducePacketName [23:57:11]name=ofd_packets/00104074 [23:57:11]NVStorageDeleteData [23:57:11]Write to MH i2c: 01 00 00 5A 09 63 [23:57:11]Write i2c OK [23:57:11]MH_I2C_Read... [23:57:11]Read from MH i2c: 01 [23:57:11]MH_I2C_Read... [23:57:11]Read from MH i2c: 01 07 00 [23:57:11]MH_I2C_Read... [23:57:11]Read from MH i2c: 01 07 00 5A 09 00 00 00 00 00 D6 0C 4C [23:57:11]RasterBufferAndPrint [23:57:11]line [23:57:11]line [23:57:11]line [23:57:11]line [23:57:11]line [23:57:11]written 0, free lines is 3293 [23:57:11]MH_Cut [23:57:11]Write to MH i2c: D1 01 00 61 09 01 3C [23:57:11]Write i2c OK [23:57:11]MH_I2C_Read... [23:57:11]Read from MH i2c: D1 [23:57:11]MH_I2C_Read... [23:57:11]Read from MH i2c: D1 01 00 [23:57:11]MH_I2C_Read... [23:57:11]Read from MH i2c: D1 01 00 61 09 00 3B [23:57:11]Write to MH i2c: 01 00 00 62 09 6B [23:57:11]Write i2c OK [23:57:11]MH_I2C_Read... [23:57:11]OFD Sender: No OFD packet to send [23:57:12]*** Cut start [23:57:12]*** Partial cut [23:57:12]*** CUTSNS_PIN = 1 [23:57:12]*** CUTSNS_PIN = 0 [23:57:12]*** Brake cut motor [23:57:12]Read from MH i2c: 01 [23:57:12]MH_I2C_Read... [23:57:12]*** Stop cut motor [23:57:12]*** Cut end [23:57:12]Read from MH i2c: 01 07 00 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: 01 07 00 62 09 00 00 00 00 00 FF 0F 80 [23:57:12]process_action close_receipt done [23:57:12]requested_data is exist [23:57:12]produce_requested_data [23:57:12]requested_item fm.sn is exist - process it [23:57:12]wFMCommunicate request_size=4 [23:57:12]MH_SAM_APDU [23:57:12]CAPDU: 80 11 00 00 [23:57:12]Write to MH i2c: E2 08 00 63 09 80 11 00 00 00 00 00 00 E6 [23:57:12]Write i2c OK [23:57:12]MH_I2C_Read... [23:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:12]Read from MH i2c: E2 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: E2 17 00 [23:57:12]MH_I2C_Read... [23:57:12]Read from MH i2c: E2 17 00 63 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 39 [23:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [23:57:12]wFMCommunicate OK [23:57:12]requested_item fd.num is exist - process it [23:57:12]SAM_PROTO_GetFieldsCounters [23:57:12]wFMCommunicate request_size=4 [23:57:12]MH_SAM_APDU [23:57:12]CAPDU: 80 13 00 00 [23:57:12]Write to MH i2c: E2 08 00 64 09 80 13 00 00 00 00 00 00 E9 [23:57:12]Write i2c OK [23:57:12]MH_I2C_Read... [23:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:13]Read from MH i2c: E2 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 62 00 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 62 00 64 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [23:57:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8A 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:13]wFMCommunicate OK [23:57:13]SAM_PROTO_GetFieldsCounters done [23:57:13]requested_item shift.num is exist - process it [23:57:13]requested_item shift.opened is exist - process it [23:57:13]req_shift_opened [23:57:13]FM_GetShiftState [23:57:13]SAM_PROTO_GetShiftState [23:57:13]wFMCommunicate request_size=4 [23:57:13]MH_SAM_APDU [23:57:13]CAPDU: 80 13 01 00 [23:57:13]Write to MH i2c: E2 08 00 65 09 80 13 01 00 00 00 00 00 EB [23:57:13]Write i2c OK [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 [23:57:13]MH_I2C_Read... [23:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:13]Read from MH i2c: E2 0E 00 [23:57:13]MH_I2C_Read... [23:57:13]Read from MH i2c: E2 0E 00 65 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3A [23:57:13]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [23:57:13]wFMCommunicate OK [23:57:13]SAM_PROTO_GetShiftState done [23:57:13]FM_GetShiftState done [23:57:13]req_shift_opened done [23:57:13]requested_item shift.open_date is exist - process it [23:57:13]req_shift_open_date [23:57:13]req_shift_open_date done [23:57:13]produce_requested_data done [23:57:13]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104074,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [23:57:13]process_action_free close_receipt [23:57:13]json_value_free [23:57:13]json_value_free done [23:57:13]process_json_proto returns [23:57:13]Send response to host [23:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104074,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [23:57:13]free response buf [23:57:13]execute_script done [23:57:13]execute_script returns [23:57:13]free content buf [23:57:13]Sock 9.Close socket [23:57:13]Sock 9.Thread stoped [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:23]accept exits with 7 [00:02:23]New connection [00:02:23]New thread 3066715492 created [00:02:23]Thread 3066858852 joined [00:02:23]Waiting for new connection... [00:02:23] Sock 7.Parse request [00:02:23]Sock 7.Check first char [00:02:23]Sock 7.First char is OK [00:02:23]request: POST /json_proto HTTP/1.0 [00:02:23]Method: POST [00:02:23]URL: /json_proto [00:02:23]Method is POST - this is cgi request [00:02:23]url: /json_proto [00:02:23]query_string will be loaded in cgi processing [00:02:23]execute_cgi json_proto POST (null) [00:02:23]execute_cgi path=json_proto method=POST [00:02:23]POST find Content-Length [00:02:23]Host: 172.17.38.133:8080 [00:02:23]Content-Length: 677 [00:02:23]Content-Type: application/json [00:02:23] [00:02:23]POST finish read [00:02:23]Found Content-Length = 677 [00:02:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:23]execute_script... [00:02: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)673465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:23]POST & json_proto [00:02:23]process_json_proto [00:02:23]json parsed OK: [00:02:23]protocol is kg_v1.0 [00:02:23]action value=close_receipt [00:02:23]process_action close_receipt [00:02:23]cmd_close_receipt [00:02:23]MH_GetDate [00:02:23]Write to MH i2c: F0 00 00 66 09 5E [00:02:23]Write i2c OK [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: F0 [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: F0 09 00 [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: F0 09 00 66 09 00 11 C3 74 66 BD 8F 7C 64 41 [00:02:23]GetLastDocTimeStamp 1718927830 [00:02:23]current date 1718928145 [00:02:23]FM_GetShiftState [00:02:23]SAM_PROTO_GetShiftState [00:02:23]wFMCommunicate request_size=4 [00:02:23]MH_SAM_APDU [00:02:23]CAPDU: 80 13 01 00 [00:02:23]Write to MH i2c: E2 08 00 67 09 80 13 01 00 00 00 00 00 ED [00:02:23]Write i2c OK [00:02:23]MH_I2C_Read... [00:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:23]Read from MH i2c: E2 [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: E2 0E 00 [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: E2 0E 00 67 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 3C [00:02:23]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [00:02:23]wFMCommunicate OK [00:02:23]SAM_PROTO_GetShiftState done [00:02:23]FM_GetShiftState done [00:02:23]opened in 1718843124 [00:02:23]opened+sec_in_day 1718929524 [00:02:23]quantity*price = 25032 [00:02:23]sum+1 = 25034 [00:02:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 260 21.06.2024 00:02 Смена: 354 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104075 ФПД: 243965569549832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T000225&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104075&fm=243965569549832&tin=02508201610067®Number=0000000000092785&sum=25000 [00:02:24]StoreToDocumentArchive [00:02:24]shift 354 fd 104075 [00:02:24]save to /storage/0354/doc_00104075 [00:02:24]save last doc name /storage/0354/doc_00104075 to /storage/kkm_last_doc_name [00:02:24]save OK [00:02:24]Clear old archive folders... [00:02:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:02:24]tlvbuf is 01124700 [00:02:24]SAM_PROTO_ClearQueue [00:02:24]wFMCommunicate request_size=4 [00:02:24]MH_SAM_APDU [00:02:24]CAPDU: 80 09 00 00 [00:02:24]Write to MH i2c: E2 08 00 74 09 80 09 00 00 00 00 00 00 EF [00:02:24]Write i2c OK [00:02:24]MH_I2C_Read... [00:02:24]Read from MH i2c: E2 [00:02:24]MH_I2C_Read... [00:02:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:02:24]Read from MH i2c: E2 03 00 [00:02:24]MH_I2C_Read... [00:02:24]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [00:02:24]RAPDU: 90 00 [00:02:24]wFMCommunicate OK [00:02:24]SAM_PROTO_ClearQueue done [00:02:24]KKMCreateOFDPacket [00:02:24]OFDProtocolAddRootSTLVToBuf [00:02:24]FM_MakeSignedData [00:02:24]FM_MakeSignedData [00:02:24]SAM_PROTO_SignData [00:02:24]wFMCommunicate request_size=4 [00:02:24]MH_SAM_APDU [00:02:24]CAPDU: 80 0D 01 02 [00:02:24]Write to MH i2c: E2 08 00 75 09 80 0D 01 02 00 00 00 00 F7 [00:02:24]Write i2c OK [00:02:24]MH_I2C_Read... [00:02:25]Read from MH i2c: *** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:02:25]E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 03 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 03 00 75 09 00 90 00 F2 [00:02:25]RAPDU: 90 00 [00:02:25]wFMCommunicate OK [00:02:25]wFMCommunicate request_size=255 [00:02:25]MH_SAM_APDU [00:02: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 11 C3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 96 01 00 35 04 06 00 DD [00:02:25]Write to MH i2c: E2 02 01 76 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 11 C3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 96 01 00 35 04 06 00 DD 00 00 72 [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:25]Read from MH i2c: E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 03 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 03 00 76 09 00 90 00 F3 [00:02:25]RAPDU: 90 00 [00:02:25]wFMCommunicate OK [00:02:25]wFMCommunicate request_size=10 [00:02:25]MH_SAM_APDU [00:02:25]CAPDU: 80 0D 02 02 05 E2 A9 1C 46 08 [00:02:25]Write to MH i2c: E2 0D 00 77 09 80 0D 02 02 05 00 E2 A9 1C 46 08 00 00 F9 [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:02:25]Read from MH i2c: E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 03 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 03 00 77 09 00 90 00 F4 [00:02:25]RAPDU: 90 00 [00:02:25]wFMCommunicate OK [00:02:25]wFMCommunicate request_size=4 [00:02:25]MH_SAM_APDU [00:02:25]CAPDU: 80 0D 03 02 [00:02:25]Write to MH i2c: E2 08 00 78 09 80 0D 03 02 00 00 00 00 FC [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:02:25]Read from MH i2c: E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 0B 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 0B 00 78 09 00 47 AA 6F B7 4A 1C B2 11 90 00 3D [00:02:25]RAPDU: 47 AA 6F B7 4A 1C B2 11 90 00 [00:02:25]wFMCommunicate OK [00:02:25]SAM_PROTO_SignData done [00:02:25]FM_MakeSignedData done [00:02:25]CreateOFDProtocolMessage [00:02:25]wFMCommunicate request_size=4 [00:02:25]MH_SAM_APDU [00:02:25]CAPDU: 80 11 00 00 [00:02:25]Write to MH i2c: E2 08 00 79 09 80 11 00 00 00 00 00 00 FC [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:25]Read from MH i2c: E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 17 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 17 00 79 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4F [00:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:02:25]wFMCommunicate OK [00:02:25]CreateOFDProtocolMessage done [00:02:25]OFDSenderStorePacket 104075 [00:02:25]StoreOFDPacket docnum=104075 [00:02:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 73 94 07 01 F4 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 11 C3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 96 01 00 35 04 06 00 DD E2 A9 1C 46 08 47 AA 6F B7 4A 1C B2 11 [00:02:25]CheckFolder [00:02:25]dirname=/storage/ofd_packets [00:02:25]CheckFolder done [00:02:25]ProducePacketName [00:02:25]name=ofd_packets/00104075 [00:02:25]NVStorageSaveData ofd_packets/00104075 [00:02:25]File name is /storage/ofd_packets/00104075 [00:02:25]Write 301 bytes [00:02:25]NVStorageSaveData done [00:02:25]OFDSenderStorePacket done [00:02:25]KKMCreateOFDPacket done [00:02:25]NVStorageSaveData kkm_last_timestamp [00:02:25]File name is /storage/kkm_last_timestamp [00:02:25]Write 4 bytes [00:02:25]NVStorageSaveData done [00:02:25]ExternCall_PrintAddStr [00:02:25]wPrintStart [00:02:25]Write to MH i2c: 01 00 00 7A 09 83 [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: 01 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: 01 07 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: 01 07 00 7A 09 00 00 00 00 00 FF 0F 98 [00:02:25]RasterBufferAndPrint [00:02:25]line Счет N : (1)673465 [00:02:25]line ИНН: 02508201610067 [00:02:25]line Контрольно-Кассовый Чек [00:02:25]line ПРОДАЖА [00:02:25]line ТРК (МРК, ГНК) : 32 [00:02:25]line Товар: 2710124130 [00:02:25]line Аи-92-К-5 [00:02:25]line 3.770 * 66.40 [00:02:25]line = 250.33 [00:02:25]line НДС 12% НСП 1% [00:02:25]line > о реализуемом товаре [00:02:25]line ОКРУГЛЕНИЕ: -0.33 [00:02:25]line ИТОГО: 250.00 [00:02:25]line Внесено: 250.00 [00:02:25]line СДАЧА: 0.00 [00:02:25]line НСП 1% : 2.21 [00:02:25]line НДС 12% : 26.58 [00:02:25]line Наличными: 250.00 [00:02:25]line Безнал.: 0.00 [00:02:25]line Место: АЗС № 120 "Партнер Нефть" [00:02:25]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:02:25]line СНО: Общий режим [00:02:25]line Чек 260 21.06.2024 00:02 [00:02:25]line Смена: 354 ФФД: 1.0 [00:02:25]line ЗНМ: 0300000164 [00:02:25]line РНМ: 0000000000092785 [00:02:25]line Версия ККМ: 001 [00:02:25]line ФМ: 0000000000875093 [00:02:25]line ФД: 104075 [00:02:25]line ФПД: 243965569549832 [00:02:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T000225&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104075&fm=243965569549832&tin=02508201610067®Number=0000000000092785&sum=25000 [00:02:25]OFD Sender: Processing packet 104075 [packets to send 17, broken 16] [00:02:25]ProducePacketName [00:02:25]name=ofd_packets/00104075 [00:02:25]OFD Sender: To server: pG, [00:02:25]CommunicateWithHost lk.salyk.kg:30040 [00:02:25]ConnectInit lk.salyk.kg [00:02:25]written 0, free lines is 4095 [00:02:25]Connected sock=9 [00:02:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 73 94 07 01 F4 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 11 C3 74 66 0E 04 04 00 62 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 96 01 00 35 04 06 00 DD E2 A9 1C 46 08 47 AA 6F B7 4A 1C B2 11 [00:02:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 F9 DB 47 00 F6 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8B 96 01 00 F4 03 04 00 95 69 74 66 B6 04 01 00 00 03 AB F3 98 5D 08 B4 3F [00:02:26]CommunicateWithHost err = 0 [00:02:26]CheckOFDResponse [00:02:26]1017 (14) - 77093643461234 [00:02:26]1041 (16) - 0000000000875093 [00:02:26]1040 (4) - 104075 [00:02:26]1012 (4) - 20.06.2024 17:40 [00:02:26]1206 (1) - 0 [00:02:26]OFD Sender: Remove packet 104075 [00:02:26]ProducePacketName [00:02:26]name=ofd_packets/00104075 [00:02:26]NVStorageDeleteData [00:02:26]Write to MH i2c: 01 00 00 A5 09 AE [00:02:26]Write i2c OK [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: 01 [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: 01 07 00 [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: 01 07 00 A5 09 00 00 00 00 00 DC 0C 9D [00:02:26]RasterBufferAndPrint [00:02:26]line [00:02:26]line [00:02:26]line [00:02:26]line [00:02:26]line [00:02:26]written 0, free lines is 3298 [00:02:26]MH_Cut [00:02:26]Write to MH i2c: D1 01 00 AC 09 01 87 [00:02:26]Write i2c OK [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: D1 [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: D1 01 00 [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: D1 01 00 AC 09 00 86 [00:02:26]Write to MH i2c: 01 00 00 AD 09 B6 [00:02:26]Write i2c OK [00:02:26]MH_I2C_Read... [00:02:26]OFD Sender: No OFD packet to send [00:02:26]*** Cut start [00:02:26]*** Partial cut [00:02:26]*** CUTSNS_PIN = 1 [00:02:27]*** CUTSNS_PIN = 0 [00:02:27]*** Brake cut motor [00:02:27]Read from MH i2c: 01 [00:02:27]MH_I2C_Read... [00:02:27]*** Stop cut motor [00:02:27]*** Cut end [00:02:27]Read from MH i2c: 01 07 00 [00:02:27]MH_I2C_Read... [00:02:27]Read from MH i2c: 01 07 00 AD 09 00 00 00 00 00 FF 0F CB [00:02:27]process_action close_receipt done [00:02:27]requested_data is exist [00:02:27]produce_requested_data [00:02:27]requested_item fm.sn is exist - process it [00:02:27]wFMCommunicate request_size=4 [00:02:27]MH_SAM_APDU [00:02:27]CAPDU: 80 11 00 00 [00:02:27]Write to MH i2c: E2 08 00 AE 09 80 11 00 00 00 00 00 00 31 [00:02:27]Write i2c OK [00:02:27]MH_I2C_Read... [00:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:27]Read from MH i2c: E2 [00:02:27]MH_I2C_Read... [00:02:27]Read from MH i2c: E2 17 00 [00:02:27]MH_I2C_Read... [00:02:27]Read from MH i2c: E2 17 00 AE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [00:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:02:27]wFMCommunicate OK [00:02:27]requested_item fd.num is exist - process it [00:02:27]SAM_PROTO_GetFieldsCounters [00:02:27]wFMCommunicate request_size=4 [00:02:27]MH_SAM_APDU [00:02:27]CAPDU: 80 13 00 00 [00:02:27]Write to MH i2c: E2 08 00 AF 09 80 13 00 00 00 00 00 00 34 [00:02:27]Write i2c OK [00:02:27]MH_I2C_Read... [00:02:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:27]Read from MH i2c: E2 [00:02:27]MH_I2C_Read... [00:02:27]Read from MH i2c: E2 62 00 [00:02:27]MH_I2C_Read... [00:02:27]Read from MH i2c: E2 62 00 AF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [00:02:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:27]wFMCommunicate OK [00:02:27]SAM_PROTO_GetFieldsCounters done [00:02:27]requested_item shift.num is exist - process it [00:02:27]requested_item shift.opened is exist - process it [00:02:27]req_shift_opened [00:02:27]FM_GetShiftState [00:02:27]SAM_PROTO_GetShiftState [00:02:27]wFMCommunicate request_size=4 [00:02:27]MH_SAM_APDU [00:02:27]CAPDU: 80 13 01 00 [00:02:27]Write to MH i2c: E2 08 00 B0 09 80 13 01 00 00 00 00 00 36 [00:02:27]Write i2c OK [00:02:27]MH_I2C_Read... [00:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:27]Read from MH i2c: E2 [00:02:27]MH_I2C_Read... [00:02:27]Read from MH i2c: E2 0E 00 [00:02:27]MH_I2C_Read... [00:02:27]Read from MH i2c: E2 0E 00 B0 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 85 [00:02:27]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [00:02:27]wFMCommunicate OK [00:02:27]SAM_PROTO_GetShiftState done [00:02:27]FM_GetShiftState done [00:02:27]req_shift_opened done [00:02:27]requested_item shift.open_date is exist - process it [00:02:27]req_shift_open_date [00:02:27]req_shift_open_date done [00:02:27]produce_requested_data done [00:02:27]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104075,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [00:02:27]process_action_free close_receipt [00:02:27]json_value_free [00:02:27]json_value_free done [00:02:27]process_json_proto returns [00:02:27]Send response to host [00:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104075,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [00:02:27]free response buf [00:02:27]execute_script done [00:02:27]execute_script returns [00:02:27]free content buf [00:02:27]Sock 7.Close socket [00:02:27]Sock 7.Thread stoped [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:29]accept exits with 10 [00:07:29]New connection [00:07:29]New thread 3066858852 created [00:07:29]Thread 3066715492 joined [00:07:29]Waiting for new connection... [00:07:29] Sock 10.Parse request [00:07:29]Sock 10.Check first char [00:07:29]Sock 10.First char is OK [00:07:29]request: POST /json_proto HTTP/1.0 [00:07:29]Method: POST [00:07:29]URL: /json_proto [00:07:29]Method is POST - this is cgi request [00:07:29]url: /json_proto [00:07:29]query_string will be loaded in cgi processing [00:07:29]execute_cgi json_proto POST (null) [00:07:29]execute_cgi path=json_proto method=POST [00:07:29]POST find Content-Length [00:07:29]Host: 172.17.38.133:8080 [00:07:29]Content-Length: 215 [00:07:29]Content-Type: application/json [00:07:29] [00:07:29]POST finish read [00:07:29]Found Content-Length = 215 [00:07:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:29]execute_script... [00:07:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:29]POST & json_proto [00:07:29]process_json_proto [00:07:29]json parsed OK: [00:07:29]protocol is kg_v1.0 [00:07:29]action value=get_value [00:07:29]process_action get_value [00:07:29]cmd_get_value [00:07:29]process_action get_value done [00:07:29]requested_data is exist [00:07:29]produce_requested_data [00:07:29]requested_item kkm.sn is exist - process it [00:07:29]requested_item kkm.ver is exist - process it [00:07:29]requested_item fm.sn is exist - process it [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 11 00 00 [00:07:29]Write to MH i2c: E2 08 00 B1 09 80 11 00 00 00 00 00 00 34 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 17 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 17 00 B1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 87 [00:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:07:29]wFMCommunicate OK [00:07:29]requested_item fd.num is exist - process it [00:07:29]SAM_PROTO_GetFieldsCounters [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 13 00 00 [00:07:29]Write to MH i2c: E2 08 00 B2 09 80 13 00 00 00 00 00 00 37 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 62 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 62 00 B2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [00:07:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:29]wFMCommunicate OK [00:07:29]SAM_PROTO_GetFieldsCounters done [00:07:29]requested_item shift.num is exist - process it [00:07:29]requested_item shift.opened is exist - process it [00:07:29]req_shift_opened [00:07:29]FM_GetShiftState [00:07:29]SAM_PROTO_GetShiftState [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 13 01 00 [00:07:29]Write to MH i2c: E2 08 00 B3 09 80 13 01 00 00 00 00 00 39 [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:29]Read from MH i2c: E2 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 0E 00 [00:07:29]MH_I2C_Read... [00:07:29]Read from MH i2c: E2 0E 00 B3 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 88 [00:07:29]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [00:07:29]wFMCommunicate OK [00:07:29]SAM_PROTO_GetShiftState done [00:07:29]FM_GetShiftState done [00:07:29]req_shift_opened done [00:07:29]requested_item shift.open_date is exist - process it [00:07:29]req_shift_open_date [00:07:29]req_shift_open_date done [00:07:29]produce_requested_data done [00:07:29]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104075,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [00:07:29]process_action_free get_value [00:07:29]json_value_free [00:07:29]json_value_free done [00:07:29]process_json_proto returns [00:07:29]Send response to host [00:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104075,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [00:07:29]free response buf [00:07:29]execute_script done [00:07:29]execute_script returns [00:07:29]free content buf [00:07:29]Sock 10.Close socket [00:07:29]Sock 10.Thread stoped [00:07:29]accept exits with 7 [00:07:29]New connection [00:07:29]New thread 3066715492 created [00:07:29]Thread 3066858852 joined [00:07:29]Waiting for new connection... [00:07:29] Sock 7.Parse request [00:07:29]Sock 7.Check first char [00:07:29]Sock 7.First char is OK [00:07:29]request: POST /json_proto HTTP/1.0 [00:07:29]Method: POST [00:07:29]URL: /json_proto [00:07:29]Method is POST - this is cgi request [00:07:29]url: /json_proto [00:07:29]query_string will be loaded in cgi processing [00:07:29]execute_cgi json_proto POST (null) [00:07:29]execute_cgi path=json_proto method=POST [00:07:29]POST find Content-Length [00:07:29]Host: 172.17.38.133:8080 [00:07:29]Content-Length: 331 [00:07:29]Content-Type: application/json [00:07:29] [00:07:29]POST finish read [00:07:29]Found Content-Length = 331 [00:07:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:29]execute_script... [00:07:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:29]POST & json_proto [00:07:29]process_json_proto [00:07:29]json parsed OK: [00:07:29]protocol is kg_v1.0 [00:07:29]action value=get_value [00:07:29]process_action get_value [00:07:29]cmd_get_value [00:07:29]process_action get_value done [00:07:29]requested_data is exist [00:07:29]produce_requested_data [00:07:29]requested_item fm.sale.total is exist - process it [00:07:29]SAM_PROTO_GetFMData [00:07:29]wFMCommunicate request_size=4 [00:07:29]MH_SAM_APDU [00:07:29]CAPDU: 80 13 03 00 [00:07:29]Write to MH i2c: E2 08 00 B4 09 80 13 03 00 00 00 00 00 3C [00:07:29]Write i2c OK [00:07:29]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 B4 09 00 C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 2A [00:07:30]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 [00:07:30]wFMCommunicate OK [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 17 00 00 [00:07:30]Write to MH i2c: E2 08 00 B5 09 80 17 00 00 00 00 00 00 3E [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 B5 09 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 14 [00:07:30]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:30]wFMCommunicate OK [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 17 00 00 [00:07:30]Write to MH i2c: E2 08 00 B6 09 80 17 00 00 00 00 00 00 3F [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 B6 09 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 51 [00:07:30]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:30]wFMCommunicate OK [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 17 00 00 [00:07:30]Write to MH i2c: E2 08 00 B7 09 80 17 00 00 00 00 00 00 40 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:30]Read from MH i2c: E2 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 [00:07:30]MH_I2C_Read... [00:07:30]Read from MH i2c: E2 FD 00 B7 09 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 CC [00:07:30]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:30]wFMCommunicate OK [00:07:30]wFMCommunicate request_size=4 [00:07:30]MH_SAM_APDU [00:07:30]CAPDU: 80 17 00 00 [00:07:30]Write to MH i2c: E2 08 00 B8 09 80 17 00 00 00 00 00 00 41 [00:07:30]Write i2c OK [00:07:30]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 E2 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 E2 00 B8 09 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1F [00:07:31]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:31]wFMCommunicate OK [00:07:31]SAM_PROTO_GetFMData done [00:07:31]requested_item fm.sale_refund.total is exist - process it [00:07:31]requested_item fm.buy.total is exist - process it [00:07:31]requested_item shift.sale.total is exist - process it [00:07:31]SAM_PROTO_GetShiftData [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 13 02 00 [00:07:31]Write to MH i2c: E2 08 00 B9 09 80 13 02 00 00 00 00 00 40 [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 B9 09 00 BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 75 [00:07:31]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:07:31]wFMCommunicate OK [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 17 00 00 [00:07:31]Write to MH i2c: E2 08 00 BA 09 80 17 00 00 00 00 00 00 43 [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 FD 00 BA 09 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 7B [00:07:31]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:07:31]wFMCommunicate OK [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 17 00 00 [00:07:31]Write to MH i2c: E2 08 00 BB 09 80 17 00 00 00 00 00 00 44 [00:07:31]OFD Sender: No OFD packet to send [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 BB 09 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 6D [00:07:32]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 17 00 00 [00:07:32]Write to MH i2c: E2 08 00 BC 09 80 17 00 00 00 00 00 00 45 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 FD 00 BC 09 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 C6 [00:07:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 17 00 00 [00:07:32]Write to MH i2c: E2 08 00 BD 09 80 17 00 00 00 00 00 00 46 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 D9 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 D9 00 BD 09 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 25 [00:07:32]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:32]wFMCommunicate OK [00:07:32]SAM_PROTO_GetShiftData done [00:07:32]requested_item shift.sale.total_cash is exist - process it [00:07:32]requested_item shift.sale_refund.total is exist - process it [00:07:32]requested_item shift.sale_refund.total_cash is exist - process it [00:07:32]requested_item shift.buy.total is exist - process it [00:07:32]requested_item shift.buy.total_cash is exist - process it [00:07:32]produce_requested_data done [00:07:32]produce_requested_data return {"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":464499.72,"shift.sale.total_cash":337851.00,"shift.sale_refund.total":12839.00,"shift.sale_refund.total_cash":12839.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:32]process_action_free get_value [00:07:32]json_value_free [00:07:32]json_value_free done [00:07:32]process_json_proto returns [00:07:32]Send response to host [00:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":464499.72,"shift.sale.total_cash":337851.00,"shift.sale_refund.total":12839.00,"shift.sale_refund.total_cash":12839.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:32]free response buf [00:07:32]execute_script done [00:07:32]execute_script returns [00:07:32]free content buf [00:07:32]Sock 7.Close socket [00:07:32]Sock 7.Thread stoped [00:07:33]accept exits with 9 [00:07:33]New connection [00:07:33]New thread 3066858852 created [00:07:33]Thread 3066715492 joined [00:07:33]Waiting for new connection... [00:07:33] Sock 9.Parse request [00:07:33]Sock 9.Check first char [00:07:33]Sock 9.First char is OK [00:07:33]request: POST /json_proto HTTP/1.0 [00:07:33]Method: POST [00:07:33]URL: /json_proto [00:07:33]Method is POST - this is cgi request [00:07:33]url: /json_proto [00:07:33]query_string will be loaded in cgi processing [00:07:33]execute_cgi json_proto POST (null) [00:07:33]execute_cgi path=json_proto method=POST [00:07:33]POST find Content-Length [00:07:33]Host: 172.17.38.133:8080 [00:07:33]Content-Length: 331 [00:07:33]Content-Type: application/json [00:07:33] [00:07:33]POST finish read [00:07:33]Found Content-Length = 331 [00:07: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" ] } } [00:07:33]execute_script... [00:07: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" ] } } [00:07:33]POST & json_proto [00:07:33]process_json_proto [00:07:33]json parsed OK: [00:07:33]protocol is kg_v1.0 [00:07:33]action value=get_value [00:07:33]process_action get_value [00:07:33]cmd_get_value [00:07:33]process_action get_value done [00:07:33]requested_data is exist [00:07:33]produce_requested_data [00:07:33]requested_item fm.sale.total is exist - process it [00:07:33]SAM_PROTO_GetFMData [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 13 03 00 [00:07:33]Write to MH i2c: E2 08 00 BE 09 80 13 03 00 00 00 00 00 46 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:33]Read from MH i2c: E2 FD 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 BE 09 00 C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 34 [00:07:33]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 [00:07:33]wFMCommunicate OK [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 17 00 00 [00:07:33]Write to MH i2c: E2 08 00 BF 09 80 17 00 00 00 00 00 00 48 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:33]Read from MH i2c: E2 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: E2 FD 00 BF 09 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 1E [00:07:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:33]wFMCommunicate OK [00:07:33]wFMCommunicate request_size=4 [00:07:33]MH_SAM_APDU [00:07:33]CAPDU: 80 17 00 00 [00:07:33]Write to MH i2c: E2 08 00 C0 09 80 17 00 00 00 00 00 00 49 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 C0 09 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 5B [00:07:34]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:34]wFMCommunicate OK [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 17 00 00 [00:07:34]Write to MH i2c: E2 08 00 C1 09 80 17 00 00 00 00 00 00 4A [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 FD 00 C1 09 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D6 [00:07:34]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:34]wFMCommunicate OK [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 17 00 00 [00:07:34]Write to MH i2c: E2 08 00 C2 09 80 17 00 00 00 00 00 00 4B [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 E2 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 E2 00 C2 09 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 29 [00:07:34]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:34]wFMCommunicate OK [00:07:34]SAM_PROTO_GetFMData done [00:07:34]requested_item fm.sale_refund.total is exist - process it [00:07:34]requested_item fm.buy.total is exist - process it [00:07:34]requested_item shift.sale.total is exist - process it [00:07:34]SAM_PROTO_GetShiftData [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 13 02 00 [00:07:34]Write to MH i2c: E2 08 00 C3 09 80 13 02 00 00 00 00 00 4A [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 C3 09 00 BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 7F [00:07:35]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:07:35]wFMCommunicate OK [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 C4 09 80 17 00 00 00 00 00 00 4D [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 FD 00 C4 09 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 85 [00:07:35]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:07:35]wFMCommunicate OK [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 17 00 00 [00:07:35]Write to MH i2c: E2 08 00 C5 09 80 17 00 00 00 00 00 00 4E [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 C5 09 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 77 [00:07:36]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:07:36]wFMCommunicate OK [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 17 00 00 [00:07:36]Write to MH i2c: E2 08 00 C6 09 80 17 00 00 00 00 00 00 4F [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:36]Read from MH i2c: E2 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 [00:07:36]MH_I2C_Read... [00:07:36]Read from MH i2c: E2 FD 00 C6 09 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 D0 [00:07:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:07:36]wFMCommunicate OK [00:07:36]wFMCommunicate request_size=4 [00:07:36]MH_SAM_APDU [00:07:36]CAPDU: 80 17 00 00 [00:07:36]Write to MH i2c: E2 08 00 C7 09 80 17 00 00 00 00 00 00 50 [00:07:36]Write i2c OK [00:07:36]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 D9 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 D9 00 C7 09 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2F [00:07:37]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 OFD Sender: No OFD packet to send [00:07:37]00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:37]wFMCommunicate OK [00:07:37]SAM_PROTO_GetShiftData done [00:07:37]requested_item shift.sale.total_cash is exist - process it [00:07:37]requested_item shift.sale_refund.total is exist - process it [00:07:37]requested_item shift.sale_refund.total_cash is exist - process it [00:07:37]requested_item shift.buy.total is exist - process it [00:07:37]requested_item shift.buy.total_cash is exist - process it [00:07:37]produce_requested_data done [00:07:37]produce_requested_data return {"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":464499.72,"shift.sale.total_cash":337851.00,"shift.sale_refund.total":12839.00,"shift.sale_refund.total_cash":12839.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:37]process_action_free get_value [00:07:37]json_value_free [00:07:37]json_value_free done [00:07:37]process_json_proto returns [00:07:37]Send response to host [00:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":464499.72,"shift.sale.total_cash":337851.00,"shift.sale_refund.total":12839.00,"shift.sale_refund.total_cash":12839.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:37]free response buf [00:07:37]execute_script done [00:07:37]execute_script returns [00:07:37]free content buf [00:07:37]Sock 9.Close socket [00:07:37]Sock 9.Thread stoped [00:07:37]accept exits with 7 [00:07:37]New connection [00:07:37]New thread 3066715492 created [00:07:37]Thread 3066858852 joined [00:07:37]Waiting for new connection... [00:07:37] Sock 7.Parse request [00:07:37]Sock 7.Check first char [00:07:37]Sock 7.First char is OK [00:07:37]request: POST /json_proto HTTP/1.0 [00:07:37]Method: POST [00:07:37]URL: /json_proto [00:07:37]Method is POST - this is cgi request [00:07:37]url: /json_proto [00:07:37]query_string will be loaded in cgi processing [00:07:37]execute_cgi json_proto POST (null) [00:07:37]execute_cgi path=json_proto method=POST [00:07:37]POST find Content-Length [00:07:37]Host: 172.17.38.133:8080 [00:07:37]Content-Length: 269 [00:07:37]Content-Type: application/json [00:07:37] [00:07:37]POST finish read [00:07:37]Found Content-Length = 269 [00:07:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:37]execute_script... [00:07:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:37]POST & json_proto [00:07:37]process_json_proto [00:07:37]json parsed OK: [00:07:37]protocol is kg_v1.0 [00:07:37]action value=x_report [00:07:37]process_action x_report [00:07:37]cmd_x_report [00:07:37]MH_GetDate [00:07:37]Write to MH i2c: F0 00 00 C8 09 C0 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 09 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 09 00 C8 09 00 4A C4 74 66 BD 8F 7C 64 DD [00:07:37]GetLastDocTimeStamp 1718928145 [00:07:37]current date 1718928458 [00:07:37]FM_GetShiftState [00:07:37]SAM_PROTO_GetShiftState [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 13 01 00 [00:07:37]Write to MH i2c: E2 08 00 C9 09 80 13 01 00 00 00 00 00 4F [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 0E 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 0E 00 C9 09 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 9E [00:07:37]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [00:07:37]wFMCommunicate OK [00:07:37]SAM_PROTO_GetShiftState done [00:07:37]FM_GetShiftState done [00:07:37]KKMCreateXReportDocument [00:07:37]Load OK [00:07:37]Malloc new data [00:07:37]MH_GetDate [00:07:37]Write to MH i2c: F0 00 00 CA 09 C2 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 09 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: F0 09 00 CA 09 00 4A C4 74 66 BD 8F 7C 64 DF [00:07:37]Malloc new data [00:07:37]Malloc new data [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 11 00 00 [00:07:37]Write to MH i2c: E2 08 00 CB 09 80 11 00 00 00 00 00 00 4E [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 17 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 17 00 CB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 A1 [00:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:07:37]wFMCommunicate OK [00:07:37]SAM_PROTO_GetFieldsCounters [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 13 00 00 [00:07:37]Write to MH i2c: E2 08 00 CC 09 80 13 00 00 00 00 00 00 51 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:37]Read from MH i2c: E2 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 62 00 [00:07:37]MH_I2C_Read... [00:07:37]Read from MH i2c: E2 62 00 CC 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [00:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:37]wFMCommunicate OK [00:07:37]SAM_PROTO_GetFieldsCounters done [00:07:37]Malloc new data [00:07:37]Malloc new data [00:07:37]Malloc new data [00:07:37]KKMCreateXReportDocument OK [00:07:37]KKMSetXReportData OK [00:07:37]KKMPrepareXReportFMData [00:07:37]SAM_PROTO_GetShiftData [00:07:37]wFMCommunicate request_size=4 [00:07:37]MH_SAM_APDU [00:07:37]CAPDU: 80 13 02 00 [00:07:37]Write to MH i2c: E2 08 00 CD 09 80 13 02 00 00 00 00 00 54 [00:07:37]Write i2c OK [00:07:37]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 CD 09 00 BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 89 [00:07:38]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 17 00 00 [00:07:38]Write to MH i2c: E2 08 00 CE 09 80 17 00 00 00 00 00 00 57 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:38]Read from MH i2c: E2 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 [00:07:38]MH_I2C_Read... [00:07:38]Read from MH i2c: E2 FD 00 CE 09 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 8F [00:07:38]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:07:38]wFMCommunicate OK [00:07:38]wFMCommunicate request_size=4 [00:07:38]MH_SAM_APDU [00:07:38]CAPDU: 80 17 00 00 [00:07:38]Write to MH i2c: E2 08 00 CF 09 80 17 00 00 00 00 00 00 58 [00:07:38]Write i2c OK [00:07:38]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 CF 09 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 81 [00:07:39]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:07:39]wFMCommunicate OK [00:07:39]wFMCommunicate request_size=4 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 17 00 00 [00:07:39]Write to MH i2c: E2 08 00 D0 09 80 17 00 00 00 00 00 00 59 [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 FD 00 D0 09 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 DA [00:07:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:07:39]wFMCommunicate OK [00:07:39]wFMCommunicate request_size=4 [00:07:39]MH_SAM_APDU [00:07:39]CAPDU: 80 17 00 00 [00:07:39]Write to MH i2c: E2 08 00 D1 09 80 17 00 00 00 00 00 00 5A [00:07:39]Write i2c OK [00:07:39]MH_I2C_Read... [00:07:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:07:39]Read from MH i2c: E2 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 D9 00 [00:07:39]MH_I2C_Read... [00:07:39]Read from MH i2c: E2 D9 00 D1 09 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 39 [00:07:40]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:40]wFMCommunicate OK [00:07:40]SAM_PROTO_GetShiftData done [00:07:40]1194 (1208) - счетчики итогов смены [00:07:40] 1134 (4) - 260 - количество чеков со всеми признаками расчетов [00:07:40] 1129 (158) - счетчики операций «приход» [00:07:40] 1135 (4) - 256 - количество чеков по признаку расчетов [00:07:40] 1201 (4) - 464499.72 - общая итоговая сумма в чеках [00:07:40] 1136 (4) - 337851.00 - итоговая сумма в чеках наличными [00:07:40] 1138 (3) - 126648.72 - итоговая сумма в чеках безналичными [00:07:40] 1024 (123) - суммы налогов [00:07:40] 1006 (9) - суммы НДС [00:07:40] 1010 (1) - 0% - код ставки НДС [00:07:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:40] 1006 (12) - суммы НДС [00:07:40] 1010 (1) - 12% - код ставки НДС [00:07:40] 1011 (3) - 49337.09 - сумма НДС по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 0% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (12) - суммы НСП [00:07:40] 1014 (1) - 1% - код ставки НСП [00:07:40] 1015 (3) - 4111.14 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 2% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 3% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 5% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 0,50% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 1,50% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1130 (152) - счетчики операций «возврат прихода» [00:07:40] 1135 (4) - 4 - количество чеков по признаку расчетов [00:07:40] 1201 (3) - 12839.00 - общая итоговая сумма в чеках [00:07:40] 1136 (3) - 12839.00 - итоговая сумма в чеках наличными [00:07:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:40] 1024 (122) - суммы налогов [00:07:40] 1006 (9) - суммы НДС [00:07:40] 1010 (1) - 0% - код ставки НДС [00:07:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:40] 1006 (12) - суммы НДС [00:07:40] 1010 (1) - 12% - код ставки НДС [00:07:40] 1011 (3) - 1363.54 - сумма НДС по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 0% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (11) - суммы НСП [00:07:40] 1014 (1) - 1% - код ставки НСП [00:07:40] 1015 (2) - 113.62 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 2% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 3% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 5% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 0,50% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 1,50% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1131 (141) - счетчики операций «расход» [00:07:40] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:40] 1024 (117) - суммы налогов [00:07:40] 1006 (9) - суммы НДС [00:07:40] 1010 (1) - 0% - код ставки НДС [00:07:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:40] 1006 (9) - суммы НДС [00:07:40] 1010 (1) - 12% - код ставки НДС [00:07:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 0% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 1% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 2% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 3% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 5% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 0,50% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 1,50% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1132 (141) - счетчики операций «возврат расхода» [00:07:40] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:40] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:40] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:40] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:40] 1024 (117) - суммы налогов [00:07:40] 1006 (9) - суммы НДС [00:07:40] 1010 (1) - 0% - код ставки НДС [00:07:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:40] 1006 (9) - суммы НДС [00:07:40] 1010 (1) - 12% - код ставки НДС [00:07:40] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 0% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 1% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 2% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 3% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 5% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 0,50% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1007 (9) - суммы НСП [00:07:40] 1014 (1) - 1,50% - код ставки НСП [00:07:40] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:40] 1133 (588) - - счетчики коррекции - не используются [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1194 (04AA) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1134 (046E) [00:07:40]Malloc new data [00:07:40]Processing tag 1129 (0469) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1135 (046F) [00:07:40]Malloc new data [00:07:40]Processing tag 1201 (04B1) [00:07:40]Malloc new data [00:07:40]Processing tag 1136 (0470) [00:07:40]Malloc new data [00:07:40]Processing tag 1138 (0472) [00:07:40]Malloc new data [00:07:40]Processing tag 1024 (0400) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1006 (03EE) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1010 (03F2) [00:07:40]Malloc new data [00:07:40]Processing tag 1011 (03F3) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1006 (03EE) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1010 (03F2) [00:07:40]Malloc new data [00:07:40]Processing tag 1011 (03F3) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]SetTLVBufToDocument err=0 [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1130 (046A) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1135 (046F) [00:07:40]Malloc new data [00:07:40]Processing tag 1201 (04B1) [00:07:40]Malloc new data [00:07:40]Processing tag 1136 (0470) [00:07:40]Malloc new data [00:07:40]Processing tag 1138 (0472) [00:07:40]Malloc new data [00:07:40]Processing tag 1024 (0400) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1006 (03EE) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1010 (03F2) [00:07:40]Malloc new data [00:07:40]Processing tag 1011 (03F3) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1006 (03EE) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1010 (03F2) [00:07:40]Malloc new data [00:07:40]Processing tag 1011 (03F3) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]SetTLVBufToDocument err=0 [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1131 (046B) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1135 (046F) [00:07:40]Malloc new data [00:07:40]Processing tag 1201 (04B1) [00:07:40]Malloc new data [00:07:40]Processing tag 1136 (0470) [00:07:40]Malloc new data [00:07:40]Processing tag 1138 (0472) [00:07:40]Malloc new data [00:07:40]Processing tag 1024 (0400) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1006 (03EE) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1010 (03F2) [00:07:40]Malloc new data [00:07:40]Processing tag 1011 (03F3) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1006 (03EE) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1010 (03F2) [00:07:40]Malloc new data [00:07:40]Processing tag 1011 (03F3) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:40]Processing tag 1014 (03F6) [00:07:40]Malloc new data [00:07:40]Processing tag 1015 (03F7) [00:07:40]Malloc new data [00:07:40]SetTLVBufToDocument err=0 [00:07:40]Processing tag 1007 (03EF) [00:07:40]Load OK [00:07:40]SetTLVBufToDocument [00:07:41]Processing tag 1014 (03F6) [00:07:41]Malloc new data [00:07:41]Processing tag 1015 (03F7) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1007 (03EF) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1014 (03F6) [00:07:41]Malloc new data [00:07:41]Processing tag 1015 (03F7) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]SetTLVBufToDocument err=0 [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1132 (046C) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1135 (046F) [00:07:41]Malloc new data [00:07:41]Processing tag 1201 (04B1) [00:07:41]Malloc new data [00:07:41]Processing tag 1136 (0470) [00:07:41]Malloc new data [00:07:41]Processing tag 1138 (0472) [00:07:41]Malloc new data [00:07:41]Processing tag 1024 (0400) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1006 (03EE) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1010 (03F2) [00:07:41]Malloc new data [00:07:41]Processing tag 1011 (03F3) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1006 (03EE) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1010 (03F2) [00:07:41]Malloc new data [00:07:41]Processing tag 1011 (03F3) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1007 (03EF) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1014 (03F6) [00:07:41]Malloc new data [00:07:41]Processing tag 1015 (03F7) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1007 (03EF) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1014 (03F6) [00:07:41]Malloc new data [00:07:41]Processing tag 1015 (03F7) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1007 (03EF) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1014 (03F6) [00:07:41]Malloc new data [00:07:41]Processing tag 1015 (03F7) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1007 (03EF) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1014 (03F6) [00:07:41]Malloc new data [00:07:41]Processing tag 1015 (03F7) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1007 (03EF) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1014 (03F6) [00:07:41]Malloc new data [00:07:41]Processing tag 1015 (03F7) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1007 (03EF) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1014 (03F6) [00:07:41]Malloc new data [00:07:41]Processing tag 1015 (03F7) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1007 (03EF) [00:07:41]Load OK [00:07:41]SetTLVBufToDocument [00:07:41]Processing tag 1014 (03F6) [00:07:41]Malloc new data [00:07:41]Processing tag 1015 (03F7) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]SetTLVBufToDocument err=0 [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Processing tag 1133 (046D) [00:07:41]Malloc new data [00:07:41]SetTLVBufToDocument err=0 [00:07:41]SetTLVBufToDocument err=0 [00:07:41]Malloc new data [00:07:41]SAM_PROTO_GetFMData [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 13 03 00 [00:07:41]Write to MH i2c: E2 08 00 D2 09 80 13 03 00 00 00 00 00 5A [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 D2 09 00 C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 48 [00:07:41]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 [00:07:41]wFMCommunicate OK [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 17 00 00 [00:07:41]Write to MH i2c: E2 08 00 D3 09 80 17 00 00 00 00 00 00 5C [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 D3 09 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 32 [00:07:42]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 OFD Sender: No OFD packet to send [00:07:42]00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 17 00 00 [00:07:42]Write to MH i2c: E2 08 00 D4 09 80 17 00 00 00 00 00 00 5D [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 D4 09 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 6F [00:07:43]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 D5 09 80 17 00 00 00 00 00 00 5E [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 D5 09 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 EA [00:07:43]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 D6 09 80 17 00 00 00 00 00 00 5F [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 E2 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 E2 00 D6 09 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [00:07:44]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:44]wFMCommunicate OK [00:07:44]SAM_PROTO_GetFMData done [00:07:44]FM_GetFMData:85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 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 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:44]oper:6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:45]total:CD C1 68 3F 04 [00:07:45]Malloc new data [00:07:45]oper:6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 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 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:45]total:94 31 22 18 [00:07:45]Malloc new data [00:07:45]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:45]total: [00:07:45]Malloc new data [00:07:45]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:45]total: [00:07:45]Malloc new data [00:07:45]KKMPrepareXReportFMData err=0 [00:07:45]Х отчет ИНН: 02508201610067 Кассир: Дуйшенбиев А. 21.06.2024 00:07 Смена: 266 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Всего чеков: 260 ИТОГИ ПРИХОД Чеков: 256 Общий итог: 464499.72 Итого наличными: 337851.00 Итого безнал.: 126648.72 НДС 0% : 0.00 НДС 12% : 49337.09 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4111.14 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 12839.00 Итого наличными: 12839.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1363.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 113.62 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 325012.00 НС Приход: 182436991.49 НС Возвр.Прихода: 4048941.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875093 [00:07:45]StoreToDocumentArchive [00:07:45]MH_GetDate [00:07:45]Write to MH i2c: F0 00 00 D7 09 CF [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: F0 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: F0 09 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: F0 09 00 D7 09 00 52 C4 74 66 BD 8F 7C 64 F4 [00:07:45]shift 266 fd 1718928466 [00:07:45]Create dir for shift 0266 [00:07:45]save to /storage/0266/doc_1718928466 [00:07:45]save last doc name /storage/0266/doc_1718928466 to /storage/kkm_last_doc_name [00:07:45]save OK [00:07:45]Clear old archive folders... [00:07:45]NVStorageSaveData kkm_last_timestamp [00:07:45]File name is /storage/kkm_last_timestamp [00:07:45]Write 4 bytes [00:07:45]NVStorageSaveData done [00:07:45]ExternCall_PrintAddStr [00:07:45]wPrintStart [00:07:45]Write to MH i2c: 01 00 00 D8 09 E1 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: 01 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: 01 07 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: 01 07 00 D8 09 00 00 00 00 00 FF 0F F6 [00:07:45]RasterBufferAndPrint [00:07:45]line Х отчет [00:07:45]line ИНН: 02508201610067 [00:07:45]line Кассир: Дуйшенбиев А. [00:07:45]line 21.06.2024 00:07 [00:07:45]line Смена: 266 [00:07:45]line РНМ: 0000000000092785 [00:07:45]line ЗНМ: 0300000164 [00:07:45]line СНО: Общий режим [00:07:45]line Всего чеков: 260 [00:07:45]line ИТОГИ ПРИХОД [00:07:45]line Чеков: 256 [00:07:45]line Общий итог: 464499.72 [00:07:45]line Итого наличными: 337851.00 [00:07:45]line Итого безнал.: 126648.72 [00:07:45]line НДС 0% : 0.00 [00:07:45]line НДС 12% : 49337.09 [00:07:45]line НСП 0% : 0.00 [00:07:45]line НСП 1,50% : 0.00 [00:07:45]line НСП 0,50% : 0.00 [00:07:45]line НСП 5% : 0.00 [00:07:45]line НСП 3% : 0.00 [00:07:45]line НСП 2% : 0.00 [00:07:45]line НСП 1% : 4111.14 [00:07:45]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:45]line Чеков: 4 [00:07:45]line Общий итог: 12839.00 [00:07:45]line Итого наличными: 12839.00 [00:07:45]line Итого безнал.: 0.00 [00:07:45]line НДС 0% : 0.00 [00:07:45]line НДС 12% : 1363.54 [00:07:45]line НСП 0% : 0.00 [00:07:45]line НСП 1,50% : 0.00 [00:07:45]line НСП 0,50% : 0.00 [00:07:45]line НСП 5% : 0.00 [00:07:45]line НСП 3% : 0.00 [00:07:45]line НСП 2% : 0.00 [00:07:45]line НСП 1% : 113.62 [00:07:45]line ИТОГИ РАСХОД [00:07:45]line Чеков: 0 [00:07:45]line Общий итог: 0.00 [00:07:45]line Итого наличными: 0.00 [00:07:45]line Итого безнал.: 0.00 [00:07:45]line НДС 0% : 0.00 [00:07:45]line НДС 12% : 0.00 [00:07:45]line НСП 0% : 0.00 [00:07:45]line НСП 1,50% : 0.00 [00:07:45]line НСП 0,50% : 0.00 [00:07:45]line НСП 5% : 0.00 [00:07:45]line НСП 3% : 0.00 [00:07:45]line НСП 2% : 0.00 [00:07:45]line НСП 1% : 0.00 [00:07:45]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:45]line Чеков: 0 [00:07:45]line Общий итог: 0.00 [00:07:45]line Итого наличными: 0.00 [00:07:45]line Итого безнал.: 0.00 [00:07:45]line НДС 0% : 0.00 [00:07:45]line НДС 12% : 0.00 [00:07:45]line НСП 0% : 0.00 [00:07:45]line НСП 1,50% : 0.00 [00:07:45]line НСП 0,50% : 0.00 [00:07:45]line НСП 5% : 0.00 [00:07:45]line НСП 3% : 0.00 [00:07:45]line НСП 2% : 0.00 [00:07:45]line НСП 1% : 0.00 [00:07:45]line Сумма внесений: 0.00 [00:07:45]line Сумма выплат: 0.00 [00:07:45]line Нал. в кассе: 325012.00 [00:07:45]line НС Приход: 182436991.49 [00:07:45]line НС Возвр.Прихода: 4048941.00 [00:07:45]line НС Расход: 0.00 [00:07:45]line НС Возвр.Расхода: 0.00 [00:07:45]line ФМ: 0000000000875093 [00:07:45]written 0, free lines is 4095 [00:07:46]Write to MH i2c: 01 00 00 23 0A 2D [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: 01 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: 01 07 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 D4 0A 12 [00:07:46]RasterBufferAndPrint [00:07:46]line [00:07:46]line [00:07:46]line [00:07:46]line [00:07:46]line [00:07:46]written 0, free lines is 2805 [00:07:46]MH_Cut [00:07:46]Write to MH i2c: D1 01 00 2A 0A 01 06 [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: D1 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: D1 01 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: D1 01 00 2A 0A 00 05 [00:07:46]Write to MH i2c: 01 00 00 2B 0A 35 [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:47]*** Cut start [00:07:47]*** Partial cut [00:07:47]*** CUTSNS_PIN = 1 [00:07:47]*** CUTSNS_PIN = 0 [00:07:47]*** Brake cut motor [00:07:47]OFD Sender: No OFD packet to send [00:07:47]Read from MH i2c: 01 [00:07:47]MH_I2C_Read... [00:07:47]*** Stop cut motor [00:07:47]*** Cut end [00:07:47]Read from MH i2c: 01 07 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: 01 07 00 2B 0A 00 00 00 00 00 FF 0F 4A [00:07:47]process_action x_report done [00:07:47]requested_data is exist [00:07:47]produce_requested_data [00:07:47]requested_item fd.num is exist - process it [00:07:47]SAM_PROTO_GetFieldsCounters [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 13 00 00 [00:07:47]Write to MH i2c: E2 08 00 2C 0A 80 13 00 00 00 00 00 00 B2 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 62 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 62 00 2C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [00:07:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:48]wFMCommunicate OK [00:07:48]SAM_PROTO_GetFieldsCounters done [00:07:48]requested_item shift.num is exist - process it [00:07:48]requested_item shift.opened is exist - process it [00:07:48]req_shift_opened [00:07:48]FM_GetShiftState [00:07:48]SAM_PROTO_GetShiftState [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 13 01 00 [00:07:48]Write to MH i2c: E2 08 00 2D 0A 80 13 01 00 00 00 00 00 B4 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 0E 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 0E 00 2D 0A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 03 [00:07:48]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [00:07:48]wFMCommunicate OK [00:07:48]SAM_PROTO_GetShiftState done [00:07:48]FM_GetShiftState done [00:07:48]req_shift_opened done [00:07:48]requested_item shift.open_date is exist - process it [00:07:48]req_shift_open_date [00:07:48]req_shift_open_date done [00:07:48]produce_requested_data done [00:07:48]produce_requested_data return {"fd.num":104075,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [00:07:48]process_action_free x_report [00:07:48]json_value_free [00:07:48]json_value_free done [00:07:48]process_json_proto returns [00:07:48]Send response to host [00:07:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":104075,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [00:07:48]free response buf [00:07:48]execute_script done [00:07:48]execute_script returns [00:07:48]free content buf [00:07:48]Sock 7.Close socket [00:07:48]Sock 7.Thread stoped [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:11]accept exits with 9 [00:08:11]New connection [00:08:11]New thread 3066858852 created [00:08:11]Thread 3066715492 joined [00:08:11]Waiting for new connection... [00:08:11] Sock 9.Parse request [00:08:11]Sock 9.Check first char [00:08:11]Sock 9.First char is OK [00:08:11]request: POST /json_proto HTTP/1.0 [00:08:11]Method: POST [00:08:11]URL: /json_proto [00:08:11]Method is POST - this is cgi request [00:08:11]url: /json_proto [00:08:11]query_string will be loaded in cgi processing [00:08:11]execute_cgi json_proto POST (null) [00:08:11]execute_cgi path=json_proto method=POST [00:08:11]POST find Content-Length [00:08:11]Host: 172.17.38.133:8080 [00:08:11]Content-Length: 215 [00:08:11]Content-Type: application/json [00:08:11] [00:08:11]POST finish read [00:08:11]Found Content-Length = 215 [00:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:11]execute_script... [00:08:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:11]POST & json_proto [00:08:11]process_json_proto [00:08:11]json parsed OK: [00:08:11]protocol is kg_v1.0 [00:08:11]action value=get_value [00:08:11]process_action get_value [00:08:11]cmd_get_value [00:08:11]process_action get_value done [00:08:11]requested_data is exist [00:08:11]produce_requested_data [00:08:11]requested_item kkm.sn is exist - process it [00:08:11]requested_item kkm.ver is exist - process it [00:08:11]requested_item fm.sn is exist - process it [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 11 00 00 [00:08:11]Write to MH i2c: E2 08 00 2E 0A 80 11 00 00 00 00 00 00 B2 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 17 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 17 00 2E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 05 [00:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:08:11]wFMCommunicate OK [00:08:11]requested_item fd.num is exist - process it [00:08:11]SAM_PROTO_GetFieldsCounters [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 13 00 00 [00:08:11]Write to MH i2c: E2 08 00 2F 0A 80 13 00 00 00 00 00 00 B5 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 62 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 62 00 2F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [00:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8B 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:11]wFMCommunicate OK [00:08:11]SAM_PROTO_GetFieldsCounters done [00:08:11]requested_item shift.num is exist - process it [00:08:11]requested_item shift.opened is exist - process it [00:08:11]req_shift_opened [00:08:11]FM_GetShiftState [00:08:11]SAM_PROTO_GetShiftState [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 13 01 00 [00:08:11]Write to MH i2c: E2 08 00 30 0A 80 13 01 00 00 00 00 00 B7 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 0E 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 0E 00 30 0A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 06 [00:08:12]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [00:08:12]wFMCommunicate OK [00:08:12]SAM_PROTO_GetShiftState done [00:08:12]FM_GetShiftState done [00:08:12]req_shift_opened done [00:08:12]requested_item shift.open_date is exist - process it [00:08:12]req_shift_open_date [00:08:12]req_shift_open_date done [00:08:12]produce_requested_data done [00:08:12]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104075,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124} [00:08:12]process_action_free get_value [00:08:12]json_value_free [00:08:12]json_value_free done [00:08:12]process_json_proto returns [00:08:12]Send response to host [00:08:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104075,"shift.num":354,"shift.opened":1,"shift.open_date":1718843124}}} [00:08:12]free response buf [00:08:12]execute_script done [00:08:12]execute_script returns [00:08:12]free content buf [00:08:12]Sock 9.Close socket [00:08:12]Sock 9.Thread stoped [00:08:12]accept exits with 7 [00:08:12]New connection [00:08:12]New thread 3066715492 created [00:08:12]Thread 3066858852 joined [00:08:12]Waiting for new connection... [00:08:12] Sock 7.Parse request [00:08:12]Sock 7.Check first char [00:08:12]Sock 7.First char is OK [00:08:12]request: POST /json_proto HTTP/1.0 [00:08:12]Method: POST [00:08:12]URL: /json_proto [00:08:12]Method is POST - this is cgi request [00:08:12]url: /json_proto [00:08:12]query_string will be loaded in cgi processing [00:08:12]execute_cgi json_proto POST (null) [00:08:12]execute_cgi path=json_proto method=POST [00:08:12]POST find Content-Length [00:08:12]Host: 172.17.38.133:8080 [00:08:12]Content-Length: 331 [00:08:12]Content-Type: application/json [00:08:12] [00:08:12]POST finish read [00:08:12]Found Content-Length = 331 [00:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:12]execute_script... [00:08:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:12]POST & json_proto [00:08:12]process_json_proto [00:08:12]json parsed OK: [00:08:12]protocol is kg_v1.0 [00:08:12]action value=get_value [00:08:12]process_action get_value [00:08:12]cmd_get_value [00:08:12]process_action get_value done [00:08:12]requested_data is exist [00:08:12]produce_requested_data [00:08:12]requested_item fm.sale.total is exist - process it [00:08:12]SAM_PROTO_GetFMData [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 13 03 00 [00:08:12]Write to MH i2c: E2 08 00 31 0A 80 13 03 00 00 00 00 00 BA [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 FD 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 FD 00 31 0A 00 C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 A8 [00:08:12]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 17 00 00 [00:08:12]Write to MH i2c: E2 08 00 32 0A 80 17 00 00 00 00 00 00 BC [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]OFD Sender: No OFD packet to send [00:08:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 FD 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 FD 00 32 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 92 [00:08:12]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 17 00 00 [00:08:12]Write to MH i2c: E2 08 00 33 0A 80 17 00 00 00 00 00 00 BD [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:13]Read from MH i2c: E2 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 33 0A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 CF [00:08:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:13]wFMCommunicate OK [00:08:13]wFMCommunicate request_size=4 [00:08:13]MH_SAM_APDU [00:08:13]CAPDU: 80 17 00 00 [00:08:13]Write to MH i2c: E2 08 00 34 0A 80 17 00 00 00 00 00 00 BE [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:13]Read from MH i2c: E2 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 34 0A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 4A [00:08:13]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:08:13]wFMCommunicate OK [00:08:13]wFMCommunicate request_size=4 [00:08:13]MH_SAM_APDU [00:08:13]CAPDU: 80 17 00 00 [00:08:13]Write to MH i2c: E2 08 00 35 0A 80 17 00 00 00 00 00 00 BF [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 E2 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 E2 00 35 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9D [00:08:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:14]wFMCommunicate OK [00:08:14]SAM_PROTO_GetFMData done [00:08:14]requested_item fm.sale_refund.total is exist - process it [00:08:14]requested_item fm.buy.total is exist - process it [00:08:14]requested_item shift.sale.total is exist - process it [00:08:14]SAM_PROTO_GetShiftData [00:08:14]wFMCommunicate request_size=4 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 13 02 00 [00:08:14]Write to MH i2c: E2 08 00 36 0A 80 13 02 00 00 00 00 00 BE [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 36 0A 00 BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 F3 [00:08:14]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:08:14]wFMCommunicate OK [00:08:14]wFMCommunicate request_size=4 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 17 00 00 [00:08:14]Write to MH i2c: E2 08 00 37 0A 80 17 00 00 00 00 00 00 C1 [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 37 0A 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 F9 [00:08:15]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:08:15]wFMCommunicate OK [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 17 00 00 [00:08:15]Write to MH i2c: E2 08 00 38 0A 80 17 00 00 00 00 00 00 C2 [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 38 0A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 EB [00:08:15]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:08:15]wFMCommunicate OK [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 17 00 00 [00:08:15]Write to MH i2c: E2 08 00 39 0A 80 17 00 00 00 00 00 00 C3 [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 39 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 44 [00:08:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:08:16]wFMCommunicate OK [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 17 00 00 [00:08:16]Write to MH i2c: E2 08 00 3A 0A 80 17 00 00 00 00 00 00 C4 [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 D9 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 D9 00 3A 0A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A3 [00:08:16]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:16]wFMCommunicate OK [00:08:16]SAM_PROTO_GetShiftData done [00:08:16]requested_item shift.sale.total_cash is exist - process it [00:08:16]requested_item shift.sale_refund.total is exist - process it [00:08:16]requested_item shift.sale_refund.total_cash is exist - process it [00:08:16]requested_item shift.buy.total is exist - process it [00:08:16]requested_item shift.buy.total_cash is exist - process it [00:08:16]produce_requested_data done [00:08:16]produce_requested_data return {"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":464499.72,"shift.sale.total_cash":337851.00,"shift.sale_refund.total":12839.00,"shift.sale_refund.total_cash":12839.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:16]process_action_free get_value [00:08:16]json_value_free [00:08:16]json_value_free done [00:08:16]process_json_proto returns [00:08:16]Send response to host [00:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":464499.72,"shift.sale.total_cash":337851.00,"shift.sale_refund.total":12839.00,"shift.sale_refund.total_cash":12839.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:16]free response buf [00:08:16]execute_script done [00:08:16]execute_script returns [00:08:16]free content buf [00:08:16]Sock 7.Close socket [00:08:16]Sock 7.Thread stoped [00:08:16]accept exits with 9 [00:08:16]New connection [00:08:16]New thread 3066858852 created [00:08:16]Thread 3066715492 joined [00:08:16]Waiting for new connection... [00:08:16] Sock 9.Parse request [00:08:16]Sock 9.Check first char [00:08:16]Sock 9.First char is OK [00:08:16]request: POST /json_proto HTTP/1.0 [00:08:16]Method: POST [00:08:16]URL: /json_proto [00:08:16]Method is POST - this is cgi request [00:08:16]url: /json_proto [00:08:16]query_string will be loaded in cgi processing [00:08:16]execute_cgi json_proto POST (null) [00:08:16]execute_cgi path=json_proto method=POST [00:08:16]POST find Content-Length [00:08:16]Host: 172.17.38.133:8080 [00:08:16]Content-Length: 331 [00:08:16]Content-Type: application/json [00:08:16] [00:08:16]POST finish read [00:08:16]Found Content-Length = 331 [00:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:16]execute_script... [00:08:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:16]POST & json_proto [00:08:16]process_json_proto [00:08:16]json parsed OK: [00:08:16]protocol is kg_v1.0 [00:08:16]action value=get_value [00:08:16]process_action get_value [00:08:16]cmd_get_value [00:08:16]process_action get_value done [00:08:16]requested_data is exist [00:08:16]produce_requested_data [00:08:16]requested_item fm.sale.total is exist - process it [00:08:16]SAM_PROTO_GetFMData [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 13 03 00 [00:08:16]Write to MH i2c: E2 08 00 3B 0A 80 13 03 00 00 00 00 00 C4 [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:17]Read from MH i2c: E2 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 3B 0A 00 C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 B2 [00:08:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 [00:08:17]wFMCommunicate OK [00:08:17]wFMCommunicate request_size=4 [00:08:17]MH_SAM_APDU [00:08:17]CAPDU: 80 17 00 00 [00:08:17]OFD Sender: No OFD packet to send [00:08:17]Write to MH i2c: E2 08 00 3C 0A 80 17 00 00 00 00 00 00 C6 [00:08:17]Write i2c OK [00:08:17]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 3C 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 9C [00:08:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:08:18]wFMCommunicate OK [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 17 00 00 [00:08:18]Write to MH i2c: E2 08 00 3D 0A 80 17 00 00 00 00 00 00 C7 [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 3D 0A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 D9 [00:08:18]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:18]wFMCommunicate OK [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 17 00 00 [00:08:18]Write to MH i2c: E2 08 00 3E 0A 80 17 00 00 00 00 00 00 C8 [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:19]Read from MH i2c: E2 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 FD 00 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 FD 00 3E 0A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 54 [00:08:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:08:19]wFMCommunicate OK [00:08:19]wFMCommunicate request_size=4 [00:08:19]MH_SAM_APDU [00:08:19]CAPDU: 80 17 00 00 [00:08:19]Write to MH i2c: E2 08 00 3F 0A 80 17 00 00 00 00 00 00 C9 [00:08:19]Write i2c OK [00:08:19]MH_I2C_Read... [00:08:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:19]Read from MH i2c: E2 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 E2 00 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 E2 00 3F 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A7 [00:08:19]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:19]wFMCommunicate OK [00:08:19]SAM_PROTO_GetFMData done [00:08:19]requested_item fm.sale_refund.total is exist - process it [00:08:19]requested_item fm.buy.total is exist - process it [00:08:19]requested_item shift.sale.total is exist - process it [00:08:19]SAM_PROTO_GetShiftData [00:08:19]wFMCommunicate request_size=4 [00:08:19]MH_SAM_APDU [00:08:19]CAPDU: 80 13 02 00 [00:08:19]Write to MH i2c: E2 08 00 40 0A 80 13 02 00 00 00 00 00 C8 [00:08:19]Write i2c OK [00:08:19]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 FD 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 FD 00 40 0A 00 BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 FD [00:08:20]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:08:20]wFMCommunicate OK [00:08:20]wFMCommunicate request_size=4 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 17 00 00 [00:08:20]Write to MH i2c: E2 08 00 41 0A 80 17 00 00 00 00 00 00 CB [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 FD 00 [00:08:20]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 FD 00 41 0A 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 03 [00:08:21]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:08:21]wFMCommunicate OK [00:08:21]wFMCommunicate request_size=4 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 17 00 00 [00:08:21]Write to MH i2c: E2 08 00 42 0A 80 17 00 00 00 00 00 00 CC [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 FD 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 FD 00 42 0A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 F5 [00:08:21]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:08:21]wFMCommunicate OK [00:08:21]wFMCommunicate request_size=4 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 17 00 00 [00:08:21]Write to MH i2c: E2 08 00 43 0A 80 17 00 00 00 00 00 00 CD [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 FD 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 FD 00 43 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 4E [00:08:22]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:08:22]wFMCommunicate OK [00:08:22]wFMCommunicate request_size=4 [00:08:22]MH_SAM_APDU [00:08:22]CAPDU: 80 17 00 00 [00:08:22]Write to MH i2c: E2 08 00 44 0A 80 17 00 00 00 00 00 00 CE [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 D9 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 D9 00 44 0A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AD [00:08:22]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 OFD Sender: No OFD packet to send [00:08:23]01 00 06 F7 03 00 00 90 00 [00:08:23]wFMCommunicate OK [00:08:23]SAM_PROTO_GetShiftData done [00:08:23]requested_item shift.sale.total_cash is exist - process it [00:08:23]requested_item shift.sale_refund.total is exist - process it [00:08:23]requested_item shift.sale_refund.total_cash is exist - process it [00:08:23]requested_item shift.buy.total is exist - process it [00:08:23]requested_item shift.buy.total_cash is exist - process it [00:08:23]produce_requested_data done [00:08:23]produce_requested_data return {"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":464499.72,"shift.sale.total_cash":337851.00,"shift.sale_refund.total":12839.00,"shift.sale_refund.total_cash":12839.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:23]process_action_free get_value [00:08:23]json_value_free [00:08:23]json_value_free done [00:08:23]process_json_proto returns [00:08:23]Send response to host [00:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":464499.72,"shift.sale.total_cash":337851.00,"shift.sale_refund.total":12839.00,"shift.sale_refund.total_cash":12839.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:23]free response buf [00:08:23]execute_script done [00:08:23]execute_script returns [00:08:23]free content buf [00:08:23]Sock 9.Close socket [00:08:23]Sock 9.Thread stoped [00:08:23]accept exits with 7 [00:08:23]New connection [00:08:23]New thread 3066715492 created [00:08:23]Thread 3066858852 joined [00:08:23]Waiting for new connection... [00:08:23] Sock 7.Parse request [00:08:23]Sock 7.Check first char [00:08:23]Sock 7.First char is OK [00:08:23]request: POST /json_proto HTTP/1.0 [00:08:23]Method: POST [00:08:23]URL: /json_proto [00:08:23]Method is POST - this is cgi request [00:08:23]url: /json_proto [00:08:23]query_string will be loaded in cgi processing [00:08:23]execute_cgi json_proto POST (null) [00:08:23]execute_cgi path=json_proto method=POST [00:08:23]POST find Content-Length [00:08:23]Host: 172.17.38.133:8080 [00:08:23]Content-Length: 272 [00:08:23]Content-Type: application/json [00:08:23] [00:08:23]POST finish read [00:08:23]Found Content-Length = 272 [00:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:23]execute_script... [00:08:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0438\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:23]POST & json_proto [00:08:23]process_json_proto [00:08:23]json parsed OK: [00:08:23]protocol is kg_v1.0 [00:08:23]action value=close_shift [00:08:23]process_action close_shift [00:08:23]cmd_close_shift [00:08:23]MH_GetDate [00:08:23]Write to MH i2c: F0 00 00 45 0A 3E [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: F0 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: F0 09 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: F0 09 00 45 0A 00 78 C4 74 66 BD 8F 7C 64 89 [00:08:23]GetLastDocTimeStamp 1718928458 [00:08:23]current date 1718928504 [00:08:23]FM_GetShiftState [00:08:23]SAM_PROTO_GetShiftState [00:08:23]wFMCommunicate request_size=4 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 13 01 00 [00:08:23]Write to MH i2c: E2 08 00 46 0A 80 13 01 00 00 00 00 00 CD [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 0E 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 0E 00 46 0A 00 09 00 01 F4 76 73 66 00 00 00 00 90 00 1C [00:08:23]RAPDU: 09 00 01 F4 76 73 66 00 00 00 00 90 00 [00:08:23]wFMCommunicate OK [00:08:23]SAM_PROTO_GetShiftState done [00:08:23]FM_GetShiftState done [00:08:23]KKMCreateCloseShiftDocument [00:08:23]Load OK [00:08:23]Malloc new data [00:08:23]MH_GetDate [00:08:23]Write to MH i2c: F0 00 00 47 0A 40 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: F0 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: F0 09 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: F0 09 00 47 0A 00 78 C4 74 66 BD 8F 7C 64 8B [00:08:23]Malloc new data [00:08:23]Malloc new data [00:08:23]Malloc new data [00:08:23]Malloc new data [00:08:23]KKMCreateCloseShiftDocument OK [00:08:23]KKMSetCloseShiftData OK [00:08:23]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:08:23]tlvbuf is 01162EE0 [00:08:23]KKMLoadAndSignCloseShiftData [00:08:23]SAM_PROTO_ProcessDocument [00:08:23]wFMCommunicate request_size=9 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:08:23]Write to MH i2c: E2 0C 00 48 0A 80 15 01 00 04 00 05 00 4B 00 00 00 29 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 48 0A 00 90 00 C6 [00:08:23]RAPDU: 90 00 [00:08:23]wFMCommunicate OK [00:08:23]wFMCommunicate request_size=23 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:08:23]Write to MH i2c: E2 1A 00 49 0A 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 C8 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 49 0A 00 90 00 C7 [00:08:23]RAPDU: 90 00 [00:08:23]wFMCommunicate OK [00:08:23]wFMCommunicate request_size=34 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 [00:08:23]Write to MH i2c: E2 25 00 4A 0A 80 15 02 00 1D 00 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 00 00 B1 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [00:08:23]RAPDU: 90 00 [00:08:23]wFMCommunicate OK [00:08:23]wFMCommunicate request_size=13 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 15 02 00 08 F4 03 04 00 78 C4 74 66 [00:08:23]Write to MH i2c: E2 10 00 4B 0A 80 15 02 00 08 00 F4 03 04 00 78 C4 74 66 00 00 F6 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [00:08:23]RAPDU: 90 00 [00:08:23]wFMCommunicate OK [00:08:23]wFMCommunicate request_size=25 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 [00:08:23]Write to MH i2c: E2 1C 00 4C 0A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 00 00 3E [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 03 00 4C 0A 00 90 00 CA [00:08:23]RAPDU: 90 00 [00:08:23]wFMCommunicate OK [00:08:23]wFMCommunicate request_size=4 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 15 03 00 [00:08:23]Write to MH i2c: E2 08 00 4D 0A 80 15 03 00 00 00 00 00 D8 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:24]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:08:24]Read from MH i2c: E2 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 FD 00 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 FD 00 4D 0A 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 96 01 00 0E 04 04 00 62 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 06 01 00 00 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 90 00 61 [00:08:24]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 96 01 00 0E 04 04 00 62 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 06 01 00 00 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 90 00 [00:08:24]wFMCommunicate OK [00:08:24]SAM_PROTO_ProcessDocument answer len = 1279 [00:08:24]SAM_PROTO_ProcessDocument remain to read = 1031 [00:08:24]wFMCommunicate request_size=4 [00:08:24]MH_SAM_APDU [00:08:24]CAPDU: 80 17 00 00 [00:08:24]Write to MH i2c: E2 08 00 4E 0A 80 17 00 00 00 00 00 00 D8 [00:08:24]Write i2c OK [00:08:24]MH_I2C_Read... [00:08:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:24]Read from MH i2c: E2 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 FD 00 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 FD 00 4E 0A 00 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 87 [00:08:25]RAPDU: 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:08:25]wFMCommunicate OK [00:08:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:25]SAM_PROTO_ProcessDocument remain to read = 781 [00:08:25]wFMCommunicate request_size=4 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 17 00 00 [00:08:25]Write to MH i2c: E2 08 00 4F 0A 80 17 00 00 00 00 00 00 D9 [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:25]Read from MH i2c: E2 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 FD 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 FD 00 4F 0A 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 3F [00:08:25]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:08:25]wFMCommunicate OK [00:08:25]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:25]SAM_PROTO_ProcessDocument remain to read = 531 [00:08:25]wFMCommunicate request_size=4 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 17 00 00 [00:08:25]Write to MH i2c: E2 08 00 50 0A 80 17 00 00 00 00 00 00 DA [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:26]Read from MH i2c: E2 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 FD 00 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 FD 00 50 0A 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [00:08:26]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:26]wFMCommunicate OK [00:08:26]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:26]SAM_PROTO_ProcessDocument remain to read = 281 [00:08:26]wFMCommunicate request_size=4 [00:08:26]MH_SAM_APDU [00:08:26]CAPDU: 80 17 00 00 [00:08:26]Write to MH i2c: E2 08 00 51 0A 80 17 00 00 00 00 00 00 DB [00:08:26]Write i2c OK [00:08:26]MH_I2C_Read... [00:08:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:26]Read from MH i2c: E2 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 FD 00 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 FD 00 51 0A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 87 [00:08:26]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [00:08:27]wFMCommunicate OK [00:08:27]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:27]SAM_PROTO_ProcessDocument remain to read = 31 [00:08:27]wFMCommunicate request_size=4 [00:08:27]MH_SAM_APDU [00:08:27]CAPDU: 80 17 00 00 [00:08:27]Write to MH i2c: E2 08 00 52 0A 80 17 00 00 00 00 00 00 DC [00:08:27]Write i2c OK [00:08:27]MH_I2C_Read... [00:08:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:08:27]Read from MH i2c: E2 [00:08:27]MH_I2C_Read... [00:08:27]Read from MH i2c: E2 22 00 [00:08:27]MH_I2C_Read... [00:08:27]Read from MH i2c: E2 22 00 52 0A 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 1E 2C 4B C1 D5 BF 90 00 10 [00:08:27]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 1E 2C 4B C1 D5 BF 90 00 [00:08:27]wFMCommunicate OK [00:08:27]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:08:27]SAM_PROTO_ProcessDocument done [00:08:27]1209 (1) - 1.0 - номер версии ФФД [00:08:27]1041 (16) - 0000000000875093 - номер ФМ [00:08:27]1040 (4) - 104076 - номер ФД [00:08:27]1038 (4) - 354 - номер смены [00:08:27]1118 (4) - 260 - количество кассовых чеков за смену [00:08:27]1111 (4) - 262 - общее количество ФД за смену [00:08:27]1194 (1208) - счетчики итогов смены [00:08:27] 1134 (4) - 260 - количество чеков со всеми признаками расчетов [00:08:27] 1129 (158) - счетчики операций «приход» [00:08:27] 1135 (4) - 256 - количество чеков по признаку расчетов [00:08:27] 1201 (4) - 464499.72 - общая итоговая сумма в чеках [00:08:27] 1136 (4) - 337851.00 - итоговая сумма в чеках наличными [00:08:27] 1138 (3) - 126648.72 - итоговая сумма в чеках безналичными [00:08:27] 1024 (123) - суммы налогов [00:08:27] 1006 (9) - суммы НДС [00:08:27] 1010 (1) - 0% - код ставки НДС [00:08:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:27] 1006 (12) - суммы НДС [00:08:27] 1010 (1) - 12% - код ставки НДС [00:08:27] 1011 (3) - 49337.09 - сумма НДС по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 0% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (12) - суммы НСП [00:08:27] 1014 (1) - 1% - код ставки НСП [00:08:27] 1015 (3) - 4111.14 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 2% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 3% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 5% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 0,50% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 1,50% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1130 (152) - счетчики операций «возврат прихода» [00:08:27] 1135 (4) - 4 - количество чеков по признаку расчетов [00:08:27] 1201 (3) - 12839.00 - общая итоговая сумма в чеках [00:08:27] 1136 (3) - 12839.00 - итоговая сумма в чеках наличными [00:08:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:27] 1024 (122) - суммы налогов [00:08:27] 1006 (9) - суммы НДС [00:08:27] 1010 (1) - 0% - код ставки НДС [00:08:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:27] 1006 (12) - суммы НДС [00:08:27] 1010 (1) - 12% - код ставки НДС [00:08:27] 1011 (3) - 1363.54 - сумма НДС по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 0% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (11) - суммы НСП [00:08:27] 1014 (1) - 1% - код ставки НСП [00:08:27] 1015 (2) - 113.62 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 2% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 3% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 5% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 0,50% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 1,50% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1131 (141) - счетчики операций «расход» [00:08:27] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:27] 1024 (117) - суммы налогов [00:08:27] 1006 (9) - суммы НДС [00:08:27] 1010 (1) - 0% - код ставки НДС [00:08:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:27] 1006 (9) - суммы НДС [00:08:27] 1010 (1) - 12% - код ставки НДС [00:08:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 0% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 1% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 2% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 3% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 5% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 0,50% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 1,50% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1132 (141) - счетчики операций «возврат расхода» [00:08:27] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:27] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:27] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:27] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:27] 1024 (117) - суммы налогов [00:08:27] 1006 (9) - суммы НДС [00:08:27] 1010 (1) - 0% - код ставки НДС [00:08:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:27] 1006 (9) - суммы НДС [00:08:27] 1010 (1) - 12% - код ставки НДС [00:08:27] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 0% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 1% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 2% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 3% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 5% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 0,50% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1007 (9) - суммы НСП [00:08:27] 1014 (1) - 1,50% - код ставки НСП [00:08:27] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:27] 1133 (588) - - счетчики коррекции - не используются [00:08:27]1077 (6) - 33175598388671 - ФПД [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1209 (04B9) [00:08:27]Malloc new data [00:08:27]Processing tag 1041 (0411) [00:08:27]Processing tag 1040 (0410) [00:08:27]Malloc new data [00:08:27]Processing tag 1038 (040E) [00:08:27]Malloc new data [00:08:27]Processing tag 1118 (045E) [00:08:27]Malloc new data [00:08:27]Processing tag 1111 (0457) [00:08:27]Malloc new data [00:08:27]Processing tag 1194 (04AA) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1134 (046E) [00:08:27]Malloc new data [00:08:27]Processing tag 1129 (0469) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1135 (046F) [00:08:27]Malloc new data [00:08:27]Processing tag 1201 (04B1) [00:08:27]Malloc new data [00:08:27]Processing tag 1136 (0470) [00:08:27]Malloc new data [00:08:27]Processing tag 1138 (0472) [00:08:27]Malloc new data [00:08:27]Processing tag 1024 (0400) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1006 (03EE) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1010 (03F2) [00:08:27]Malloc new data [00:08:27]Processing tag 1011 (03F3) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1006 (03EE) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1010 (03F2) [00:08:27]Malloc new data [00:08:27]Processing tag 1011 (03F3) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]SetTLVBufToDocument err=0 [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1130 (046A) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1135 (046F) [00:08:27]Malloc new data [00:08:27]Processing tag 1201 (04B1) [00:08:27]Malloc new data [00:08:27]Processing tag 1136 (0470) [00:08:27]Malloc new data [00:08:27]Processing tag 1138 (0472) [00:08:27]Malloc new data [00:08:27]Processing tag 1024 (0400) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1006 (03EE) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1010 (03F2) [00:08:27]Malloc new data [00:08:27]Processing tag 1011 (03F3) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1006 (03EE) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1010 (03F2) [00:08:27]Malloc new data [00:08:27]Processing tag 1011 (03F3) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1007 (03EF) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1014 (03F6) [00:08:27]Malloc new data [00:08:27]Processing tag 1015 (03F7) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]SetTLVBufToDocument err=0 [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1131 (046B) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1135 (046F) [00:08:27]Malloc new data [00:08:27]Processing tag 1201 (04B1) [00:08:27]Malloc new data [00:08:27]Processing tag 1136 (0470) [00:08:27]Malloc new data [00:08:27]Processing tag 1138 (0472) [00:08:27]Malloc new data [00:08:27]Processing tag 1024 (0400) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1006 (03EE) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:27]Processing tag 1010 (03F2) [00:08:27]Malloc new data [00:08:27]Processing tag 1011 (03F3) [00:08:27]Malloc new data [00:08:27]SetTLVBufToDocument err=0 [00:08:27]Processing tag 1006 (03EE) [00:08:27]Load OK [00:08:27]SetTLVBufToDocument [00:08:28]Processing tag 1010 (03F2) [00:08:28]Malloc new data [00:08:28]Processing tag 1011 (03F3) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]OFD Sender: No OFD packet to send [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]SetTLVBufToDocument err=0 [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1132 (046C) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1135 (046F) [00:08:28]Malloc new data [00:08:28]Processing tag 1201 (04B1) [00:08:28]Malloc new data [00:08:28]Processing tag 1136 (0470) [00:08:28]Malloc new data [00:08:28]Processing tag 1138 (0472) [00:08:28]Malloc new data [00:08:28]Processing tag 1024 (0400) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1006 (03EE) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1010 (03F2) [00:08:28]Malloc new data [00:08:28]Processing tag 1011 (03F3) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1006 (03EE) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1010 (03F2) [00:08:28]Malloc new data [00:08:28]Processing tag 1011 (03F3) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1007 (03EF) [00:08:28]Load OK [00:08:28]SetTLVBufToDocument [00:08:28]Processing tag 1014 (03F6) [00:08:28]Malloc new data [00:08:28]Processing tag 1015 (03F7) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]SetTLVBufToDocument err=0 [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1133 (046D) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Processing tag 1077 (0435) [00:08:28]Malloc new data [00:08:28]SetTLVBufToDocument err=0 [00:08:28]Malloc new data [00:08:28]SAM_PROTO_GetFMData [00:08:28]wFMCommunicate request_size=4 [00:08:28]MH_SAM_APDU [00:08:28]CAPDU: 80 13 03 00 [00:08:28]Write to MH i2c: E2 08 00 53 0A 80 13 03 00 00 00 00 00 DC [00:08:28]Write i2c OK [00:08:28]MH_I2C_Read... [00:08:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:28]Read from MH i2c: E2 [00:08:28]MH_I2C_Read... [00:08:28]Read from MH i2c: E2 FD 00 [00:08:28]MH_I2C_Read... [00:08:28]Read from MH i2c: E2 FD 00 53 0A 00 C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 CA [00:08:29]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 [00:08:29]wFMCommunicate OK [00:08:29]wFMCommunicate request_size=4 [00:08:29]MH_SAM_APDU [00:08:29]CAPDU: 80 17 00 00 [00:08:29]Write to MH i2c: E2 08 00 54 0A 80 17 00 00 00 00 00 00 DE [00:08:29]Write i2c OK [00:08:29]MH_I2C_Read... [00:08:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:29]Read from MH i2c: E2 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 FD 00 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 FD 00 54 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B4 [00:08:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:08:29]wFMCommunicate OK [00:08:29]wFMCommunicate request_size=4 [00:08:29]MH_SAM_APDU [00:08:29]CAPDU: 80 17 00 00 [00:08:29]Write to MH i2c: E2 08 00 55 0A 80 17 00 00 00 00 00 00 DF [00:08:29]Write i2c OK [00:08:29]MH_I2C_Read... [00:08:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:30]Read from MH i2c: E2 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 FD 00 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 FD 00 55 0A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F1 [00:08:30]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:30]wFMCommunicate OK [00:08:30]wFMCommunicate request_size=4 [00:08:30]MH_SAM_APDU [00:08:30]CAPDU: 80 17 00 00 [00:08:30]Write to MH i2c: E2 08 00 56 0A 80 17 00 00 00 00 00 00 E0 [00:08:30]Write i2c OK [00:08:30]MH_I2C_Read... [00:08:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:30]Read from MH i2c: E2 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 FD 00 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 FD 00 56 0A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6C [00:08:31]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:08:31]wFMCommunicate OK [00:08:31]wFMCommunicate request_size=4 [00:08:31]MH_SAM_APDU [00:08:31]CAPDU: 80 17 00 00 [00:08:31]Write to MH i2c: E2 08 00 57 0A 80 17 00 00 00 00 00 00 E1 [00:08:31]Write i2c OK [00:08:31]MH_I2C_Read... [00:08:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:31]Read from MH i2c: E2 [00:08:31]MH_I2C_Read... [00:08:31]Read from MH i2c: E2 E2 00 [00:08:31]MH_I2C_Read... [00:08:31]Read from MH i2c: E2 E2 00 57 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BF [00:08:31]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:31]wFMCommunicate OK [00:08:31]SAM_PROTO_GetFMData done [00:08:31]Malloc new data [00:08:31]Malloc new data [00:08:31]Malloc new data [00:08:31]Malloc new data [00:08:31]KKMLoadAndSignCloseShiftData err=0 [00:08:31]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Дуйшенбиев А. 21.06.2024 00:08 Смена: 354 РНМ: 0000000000092785 ЗНМ: 0300000164 СНО: Общий режим Чеков за смену: 260 ФД за смену: 262 Всего чеков: 260 ИТОГИ ПРИХОД Чеков: 256 Общий итог: 464499.72 Итого наличными: 337851.00 Итого безнал.: 126648.72 НДС 0% : 0.00 НДС 12% : 49337.09 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4111.14 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 4 Общий итог: 12839.00 Итого наличными: 12839.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1363.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 113.62 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 325012.00 НС Приход: 182436991.49 НС Возвр.Прихода: 4048941.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 104076 ФМ: 0000000000875093 ФПД: 33175598388671 [00:08:31]StoreToDocumentArchive [00:08:31]shift 354 fd 104076 [00:08:31]save to /storage/0354/doc_00104076 [00:08:31]save last doc name /storage/0354/doc_00104076 to /storage/kkm_last_doc_name [00:08:31]save OK [00:08:31]Clear old archive folders... [00:08:31]Remove dir /storage/0266 [00:08:31]opendir ok [00:08:31]file . [00:08:31]file .. [00:08:31]file doc_1718928466 [00:08:31]remove file /storage/0266/doc_1718928466 [00:08:31]remove dir /storage/0266 [00:08:31]NVStorageSaveData kkm_registers [00:08:31]File name is /storage/kkm_registers [00:08:31]Write 24 bytes [00:08:31]NVStorageSaveData done [00:08:31]NVStorageSaveData kkm_registers [00:08:31]File name is /storage/kkm_registers [00:08:31]Write 24 bytes [00:08:31]NVStorageSaveData done [00:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=1393 [00:08:31]tlvbuf is 011BDBD0 [00:08:31]SAM_PROTO_ClearQueue [00:08:31]wFMCommunicate request_size=4 [00:08:31]MH_SAM_APDU [00:08:31]CAPDU: 80 09 00 00 [00:08:31]Write to MH i2c: E2 08 00 58 0A 80 09 00 00 00 00 00 00 D4 [00:08:31]Write i2c OK [00:08:31]MH_I2C_Read... [00:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:31]Read from MH i2c: E2 [00:08:31]MH_I2C_Read... [00:08:31]Read from MH i2c: E2 03 00 [00:08:31]MH_I2C_Read... [00:08:31]Read from MH i2c: E2 03 00 58 0A 00 90 00 D6 [00:08:32]RAPDU: 90 00 [00:08:32]wFMCommunicate OK [00:08:32]SAM_PROTO_ClearQueue done [00:08:32]KKMCreateOFDPacket [00:08:32]OFDProtocolAddRootSTLVToBuf [00:08:32]FM_MakeSignedData [00:08:32]FM_MakeSignedData [00:08:32]SAM_PROTO_SignData [00:08:32]wFMCommunicate request_size=4 [00:08:32]MH_SAM_APDU [00:08:32]CAPDU: 80 0D 01 02 [00:08:32]Write to MH i2c: E2 08 00 59 0A 80 0D 01 02 00 00 00 00 DC [00:08:32]Write i2c OK [00:08:32]MH_I2C_Read... [00:08:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:32]Read from MH i2c: E2 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 03 00 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [00:08:32]RAPDU: 90 00 [00:08:32]wFMCommunicate OK [00:08:32]wFMCommunicate request_size=255 [00:08:32]MH_SAM_APDU [00:08:32]CAPDU: 80 0D 02 02 FA 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 78 C4 74 66 0E 04 04 00 62 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 04 01 00 00 57 04 04 00 06 01 00 00 AA 04 DF 04 6E 04 04 00 04 01 00 00 69 04 A5 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [00:08:32]Write to MH i2c: E2 02 01 5A 0A 80 0D 02 02 FA 00 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 78 C4 74 66 0E 04 04 00 62 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 04 01 00 00 57 04 04 00 06 01 00 00 AA 04 DF 04 6E 04 04 00 04 01 00 00 69 04 A5 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 DA [00:08:32]Write i2c OK [00:08:32]MH_I2C_Read... [00:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:32]Read from MH i2c: E2 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 03 00 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 03 00 5A 0A 00 90 00 D8 [00:08:32]RAPDU: 90 00 [00:08:32]wFMCommunicate OK [00:08:32]wFMCommunicate request_size=255 [00:08:32]MH_SAM_APDU [00:08:32]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EA 45 06 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 [00:08:33]Write to MH i2c: E2 02 01 5B 0A 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EA 45 06 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 00 00 B9 [00:08:33]Write i2c OK [00:08:33]MH_I2C_Read... [00:08:33]OFD Sender: No OFD packet to send [00:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:33]Read from MH i2c: E2 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 5B 0A 00 90 00 D9 [00:08:33]RAPDU: 90 00 [00:08:33]wFMCommunicate OK [00:08:33]wFMCommunicate request_size=255 [00:08:33]MH_SAM_APDU [00:08:33]CAPDU: 80 0D 02 02 FA 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 [00:08:33]Write to MH i2c: E2 02 01 5C 0A 80 0D 02 02 FA 00 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 00 00 A7 [00:08:34]Write i2c OK [00:08:34]MH_I2C_Read... [00:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:34]Read from MH i2c: E2 [00:08:34]MH_I2C_Read... [00:08:34]Read from MH i2c: E2 03 00 [00:08:34]MH_I2C_Read... [00:08:34]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [00:08:34]RAPDU: 90 00 [00:08:34]wFMCommunicate OK [00:08:34]wFMCommunicate request_size=255 [00:08:34]MH_SAM_APDU [00:08:34]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 [00:08:34]Write to MH i2c: E2 02 01 5D 0A 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 00 00 AE [00:08:34]Write i2c OK [00:08:34]MH_I2C_Read... [00:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:34]Read from MH i2c: E2 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: E2 03 00 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: E2 03 00 5D 0A 00 90 00 DB [00:08:35]RAPDU: 90 00 [00:08:35]wFMCommunicate OK [00:08:35]wFMCommunicate request_size=255 [00:08:35]MH_SAM_APDU [00:08:35]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 [00:08:35]Write to MH i2c: E2 02 01 5E 0A 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 00 76 [00:08:35]Write i2c OK [00:08:35]MH_I2C_Read... [00:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:35]Read from MH i2c: E2 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: E2 03 00 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: E2 03 00 5E 0A 00 90 00 DC [00:08:35]RAPDU: 90 00 [00:08:35]wFMCommunicate OK [00:08:35]wFMCommunicate request_size=152 [00:08:35]MH_SAM_APDU [00:08:35]CAPDU: 80 0D 02 02 93 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 8C 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 1E 2C 4B C1 D5 BF [00:08:35]Write to MH i2c: E2 9B 00 5F 0A 80 0D 02 02 93 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 8C 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 1E 2C 4B C1 D5 BF 00 00 2D [00:08:36]Write i2c OK [00:08:36]MH_I2C_Read... [00:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:36]Read from MH i2c: E2 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: E2 03 00 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: E2 03 00 5F 0A 00 90 00 DD [00:08:36]RAPDU: 90 00 [00:08:36]wFMCommunicate OK [00:08:36]wFMCommunicate request_size=4 [00:08:36]MH_SAM_APDU [00:08:36]CAPDU: 80 0D 03 02 [00:08:36]Write to MH i2c: E2 08 00 60 0A 80 0D 03 02 00 00 00 00 E5 [00:08:36]Write i2c OK [00:08:36]MH_I2C_Read... [00:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:36]Read from MH i2c: E2 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: E2 0B 00 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: E2 0B 00 60 0A 00 38 C7 18 A5 66 F5 12 B4 90 00 C3 [00:08:36]RAPDU: 38 C7 18 A5 66 F5 12 B4 90 00 [00:08:36]wFMCommunicate OK [00:08:36]SAM_PROTO_SignData done [00:08:36]FM_MakeSignedData done [00:08:36]CreateOFDProtocolMessage [00:08:36]wFMCommunicate request_size=4 [00:08:36]MH_SAM_APDU [00:08:36]CAPDU: 80 11 00 00 [00:08:36]Write to MH i2c: E2 08 00 61 0A 80 11 00 00 00 00 00 00 E5 [00:08:36]Write i2c OK [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: E2 [00:08:36]MH_I2C_Read... [00:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:36]Read from MH i2c: E2 17 00 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: E2 17 00 61 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 38 [00:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:08:36]wFMCommunicate OK [00:08:36]CreateOFDProtocolMessage done [00:08:36]OFDSenderStorePacket 104076 [00:08:36]StoreOFDPacket docnum=104076 [00:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 85 05 00 00 E6 0D 7D 05 16 05 5A 05 01 00 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 78 C4 74 66 0E 04 04 00 62 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 04 01 00 00 57 04 04 00 06 01 00 00 AA 04 DF 04 6E 04 04 00 04 01 00 00 69 04 A5 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C 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 8C 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 1E 2C 4B C1 D5 BF 38 C7 18 A5 66 F5 12 B4 [00:08:36]CheckFolder [00:08:36]dirname=/storage/ofd_packets [00:08:36]CheckFolder done [00:08:36]ProducePacketName [00:08:36]name=ofd_packets/00104076 [00:08:36]NVStorageSaveData ofd_packets/00104076 [00:08:36]File name is /storage/ofd_packets/00104076 [00:08:36]Write 1443 bytes [00:08:36]NVStorageSaveData done [00:08:36]OFDSenderStorePacket done [00:08:36]KKMCreateOFDPacket done [00:08:36]NVStorageSaveData kkm_last_timestamp [00:08:36]File name is /storage/kkm_last_timestamp [00:08:36]Write 4 bytes [00:08:36]NVStorageSaveData done [00:08:36]ExternCall_PrintAddStr [00:08:36]wPrintStart [00:08:36]Write to MH i2c: 01 00 00 62 0A 6C [00:08:36]Write i2c OK [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: 01 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: 01 07 00 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 FF 0F 81 [00:08:36]RasterBufferAndPrint [00:08:36]line Отчет о закрытии смены [00:08:36]line ФФД: 1.0 [00:08:36]line ИНН: 02508201610067 [00:08:36]line Кассир: Дуйшенбиев А. [00:08:36]line 21.06.2024 00:08 [00:08:36]line Смена: 354 [00:08:36]line РНМ: 0000000000092785 [00:08:36]line ЗНМ: 0300000164 [00:08:36]line СНО: Общий режим [00:08:36]line Чеков за смену: 260 [00:08:36]line ФД за смену: 262 [00:08:36]line Всего чеков: 260 [00:08:36]line ИТОГИ ПРИХОД [00:08:36]line Чеков: 256 [00:08:36]line Общий итог: 464499.72 [00:08:36]line Итого наличными: 337851.00 [00:08:36]line Итого безнал.: 126648.72 [00:08:36]line НДС 0% : 0.00 [00:08:36]line НДС 12% : 49337.09 [00:08:36]line НСП 0% : 0.00 [00:08:36]line НСП 1,50% : 0.00 [00:08:36]line НСП 0,50% : 0.00 [00:08:36]line НСП 5% : 0.00 [00:08:36]line НСП 3% : 0.00 [00:08:36]line НСП 2% : 0.00 [00:08:36]line НСП 1% : 4111.14 [00:08:36]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:36]line Чеков: 4 [00:08:36]line Общий итог: 12839.00 [00:08:36]line Итого наличными: 12839.00 [00:08:36]line Итого безнал.: 0.00 [00:08:36]line НДС 0% : 0.00 [00:08:36]line НДС 12% : 1363.54 [00:08:36]line НСП 0% : 0.00 [00:08:36]line НСП 1,50% : 0.00 [00:08:36]line НСП 0,50% : 0.00 [00:08:36]line НСП 5% : 0.00 [00:08:36]line НСП 3% : 0.00 [00:08:36]line НСП 2% : 0.00 [00:08:36]line НСП 1% : 113.62 [00:08:36]line ИТОГИ РАСХОД [00:08:36]line Чеков: 0 [00:08:36]line Общий итог: 0.00 [00:08:36]line Итого наличными: 0.00 [00:08:36]line Итого безнал.: 0.00 [00:08:36]line НДС 0% : 0.00 [00:08:36]line НДС 12% : 0.00 [00:08:36]line НСП 0% : 0.00 [00:08:36]line НСП 1,50% : 0.00 [00:08:36]line НСП 0,50% : 0.00 [00:08:36]line НСП 5% : 0.00 [00:08:36]line НСП 3% : 0.00 [00:08:36]line НСП 2% : 0.00 [00:08:36]line НСП 1% : 0.00 [00:08:36]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:36]line Чеков: 0 [00:08:36]OFD Sender: Processing packet 104076 [packets to send 17, broken 16] [00:08:36]line Общий итог: 0.00 [00:08:36]ProducePacketName [00:08:36]line Итого наличными: 0.00 [00:08:36]name=ofd_packets/00104076 [00:08:36]line Итого безнал.: 0.00 [00:08:36]OFD Sender: To server: pG, [00:08:36]CommunicateWithHost lk.salyk.kg:30040 [00:08:36]line НДС 0% : 0.00 [00:08:36]ConnectInit lk.salyk.kg [00:08:36]line НДС 12% : 0.00 [00:08:36]line НСП 0% : 0.00 [00:08:36]line НСП 1,50% : 0.00 [00:08:36]line НСП 0,50% : 0.00 [00:08:36]line НСП 5% : 0.00 [00:08:36]line НСП 3% : 0.00 [00:08:36]line НСП 2% : 0.00 [00:08:36]line НСП 1% : 0.00 [00:08:36]line Сумма внесений: 0.00 [00:08:36]line Сумма выплат: 0.00 [00:08:36]line Нал. в кассе: 325012.00 [00:08:36]line НС Приход: 182436991.49 [00:08:36]line НС Возвр.Прихода: 4048941.00 [00:08:36]line НС Расход: 0.00 [00:08:36]line НС Возвр.Расхода: 0.00 [00:08:36]line ФД: 104076 [00:08:36]line ФМ: 0000000000875093 [00:08:36]line ФПД: 33175598388671 [00:08:37]written 0, free lines is 4095 [00:08:37]Connected sock=10 [00:08:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 85 05 00 00 E6 0D 7D 05 16 05 5A 05 01 00 05 00 71 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B8 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 78 C4 74 66 0E 04 04 00 62 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 5E 04 04 00 04 01 00 00 57 04 04 00 06 01 00 00 AA 04 DF 04 6E 04 04 00 04 01 00 00 69 04 A5 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 6A 04 A0 00 6F 04 04 00 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C 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 Write to MH i2c: 00 01 70 00 04 00 01 B2 00 0A 00 BC 72 [00:08:37]04 Write i2c OK [00:08:37]01 MH_I2C_Read... [00:08:37]00 Read from MH i2c: 00 01 [00:08:37]00 MH_I2C_Read... [00:08:37]04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 Read from MH i2c: 00 01 EE 07 03 00 0A [00:08:37]00 MH_I2C_Read... [00:08:37]F2 03 01 00 01 F3 03 01 00 00 Read from MH i2c: EF 01 03 07 0A 00 00 B2 F6 0A 03 00 01 00 00 00 00 00 F7 00 03 01 00 00 EF 03 0A 00 F6 03 01 69 00 0B 06 37 F7 [00:08:38]03 RasterBufferAndPrint [00:08:38]01 line [00:08:38]00 line [00:08:38]00 line [00:08:38]line [00:08:38]EF line [00:08:38]03 0A written 0, free lines is 3095 [00:08:38]00 F6 03 01 00 05 F7 03 01 00 00 MH_Cut [00:08:38]EF Write to MH i2c: 03 D1 0A 01 00 00 F6 B9 03 0A 01 01 00 95 04 F7 03 01 00 00 EF 03 0A 00 F6 03 [00:08:38]01 Write i2c OK [00:08:38]00 MH_I2C_Read... [00:08:38]03 Read from MH i2c: F7 D1 03 [00:08:38]01 MH_I2C_Read... [00:08:38]00 00 EF 03 0A 00 F6 Read from MH i2c: 03 D1 01 01 00 00 02 [00:08:38]F7 MH_I2C_Read... [00:08:38]03 01 00 00 EF 03 0A 00 F6 03 Read from MH i2c: 01 D1 00 01 01 00 F7 B9 03 0A 00 94 [00:08:38]Write to MH i2c: 01 00 00 BA 0A C4 [00:08:38]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 Write i2c OK [00:08:38]00 MH_I2C_Read... [00:08:38]F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [00:08:38]00 *** Partial cut [00:08:38]*** CUTSNS_PIN = 1 [00:08:38]*** CUTSNS_PIN = 0 [00:08:38]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 *** Brake cut motor [00:08:39]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 8C 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 1E 2C 4B C1 D5 BF 38 C7 18 A5 66 F5 12 B4 [00:08:39]Read from MH i2c: 01 [00:08:39]MH_I2C_Read... [00:08:39]*** Stop cut motor [00:08:39]*** Cut end [00:08:39]Read from MH i2c: 01 07 00 [00:08:39]MH_I2C_Read... [00:08:39]Read from MH i2c: 01 07 00 BA 0A 00 00 00 00 00 FF 0F D9 [00:08:39]process_action close_shift done [00:08:39]requested_data is exist [00:08:39]produce_requested_data [00:08:39]requested_item fd.num is exist - process it [00:08:39]SAM_PROTO_GetFieldsCounters [00:08:39]wFMCommunicate request_size=4 [00:08:39]MH_SAM_APDU [00:08:39]CAPDU: 80 13 00 00 [00:08:39]Write to MH i2c: E2 08 00 BB 0A 80 13 00 00 00 00 00 00 41 [00:08:39]Write i2c OK [00:08:39]MH_I2C_Read... [00:08:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 66 82 47 00 CB 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8C 96 01 00 F4 03 04 00 0A 6B 74 66 B6 04 01 00 00 0D EC FE 1B D6 85 C5 0E *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:39] [00:08:39]CommunicateWithHost err = 0 [00:08:39]CheckOFDResponse [00:08:39]1017 (14) - 77093643461234 [00:08:39]1041 (16) - 0000000000875093 [00:08:39]1040 (4) - 104076 [00:08:39]1012 (4) - 20.06.2024 17:46 [00:08:39]1206 (1) - 0 [00:08:39]OFD Sender: Remove packet 104076 [00:08:39]ProducePacketName [00:08:39]name=ofd_packets/00104076 [00:08:39]NVStorageDeleteData [00:08:39]Read from MH i2c: E2 [00:08:39]MH_I2C_Read... [00:08:39]Read from MH i2c: E2 62 00 [00:08:39]MH_I2C_Read... [00:08:39]Read from MH i2c: E2 62 00 BB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [00:08:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:40]wFMCommunicate OK [00:08:40]SAM_PROTO_GetFieldsCounters done [00:08:40]requested_item shift.num is exist - process it [00:08:40]requested_item shift.opened is exist - process it [00:08:40]req_shift_opened [00:08:40]FM_GetShiftState [00:08:40]SAM_PROTO_GetShiftState [00:08:40]wFMCommunicate request_size=4 [00:08:40]MH_SAM_APDU [00:08:40]CAPDU: 80 13 01 00 [00:08:40]Write to MH i2c: E2 08 00 BC 0A 80 13 01 00 00 00 00 00 43 [00:08:40]Write i2c OK [00:08:40]MH_I2C_Read... [00:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:40]Read from MH i2c: E2 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 0E 00 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 0E 00 BC 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4E [00:08:40]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:40]wFMCommunicate OK [00:08:40]SAM_PROTO_GetShiftState done [00:08:40]FM_GetShiftState done [00:08:40]req_shift_opened done [00:08:40]requested_item shift.open_date is exist - process it [00:08:40]req_shift_open_date [00:08:40]FM_GetShiftState [00:08:40]SAM_PROTO_GetShiftState [00:08:40]wFMCommunicate request_size=4 [00:08:40]MH_SAM_APDU [00:08:40]CAPDU: 80 13 01 00 [00:08:40]Write to MH i2c: E2 08 00 BD 0A 80 13 01 00 00 00 00 00 44 [00:08:40]Write i2c OK [00:08:40]MH_I2C_Read... [00:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:40]Read from MH i2c: E2 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 0E 00 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 0E 00 BD 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4F [00:08:40]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:40]wFMCommunicate OK [00:08:40]SAM_PROTO_GetShiftState done [00:08:40]FM_GetShiftState done [00:08:40]req_shift_open_date done [00:08:40]produce_requested_data done [00:08:40]produce_requested_data return {"fd.num":104076,"shift.num":354,"shift.opened":0,"shift.open_date":0} [00:08:40]process_action_free close_shift [00:08:40]json_value_free [00:08:40]json_value_free done [00:08:40]process_json_proto returns [00:08:40]Send response to host [00:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":104076,"shift.num":354,"shift.opened":0,"shift.open_date":0}}} [00:08:40]free response buf [00:08:40]execute_script done [00:08:40]execute_script returns [00:08:40]free content buf [00:08:40]Sock 7.Close socket [00:08:40]Sock 7.Thread stoped [00:08:40]OFD Sender: No OFD packet to send [00:08:45]OFD Sender: No OFD packet to send [00:08:50]OFD Sender: No OFD packet to send [00:08:55]OFD Sender: No OFD packet to send [00:09:00]OFD Sender: No OFD packet to send [00:09:05]OFD Sender: No OFD packet to send [00:09:10]OFD Sender: No OFD packet to send [00:09:15]OFD Sender: No OFD packet to send [00:09:20]OFD Sender: No OFD packet to send [00:09:25]OFD Sender: No OFD packet to send [00:09:30]OFD Sender: No OFD packet to send [00:09:35]OFD Sender: No OFD packet to send [00:09:40]OFD Sender: No OFD packet to send [00:09:45]OFD Sender: No OFD packet to send [00:09:50]OFD Sender: No OFD packet to send [00:09:55]OFD Sender: No OFD packet to send [00:10:00]OFD Sender: No OFD packet to send [00:10:05]OFD Sender: No OFD packet to send [00:10:10]OFD Sender: No OFD packet to send [00:10:15]OFD Sender: No OFD packet to send [00:10:20]OFD Sender: No OFD packet to send [00:10:25]OFD Sender: No OFD packet to send [00:10:30]OFD Sender: No OFD packet to send [00:10:35]OFD Sender: No OFD packet to send [00:10:40]OFD Sender: No OFD packet to send [00:10:45]OFD Sender: No OFD packet to send [00:10:50]OFD Sender: No OFD packet to send [00:10:55]OFD Sender: No OFD packet to send [00:11:00]OFD Sender: No OFD packet to send [00:11:05]OFD Sender: No OFD packet to send [00:11:10]OFD Sender: No OFD packet to send [00:11:15]OFD Sender: No OFD packet to send [00:11:20]OFD Sender: No OFD packet to send [00:11:25]OFD Sender: No OFD packet to send [00:11:30]OFD Sender: No OFD packet to send [00:11:35]OFD Sender: No OFD packet to send [00:11:40]OFD Sender: No OFD packet to send [00:11:45]OFD Sender: No OFD packet to send [00:11:50]OFD Sender: No OFD packet to send [00:11:55]OFD Sender: No OFD packet to send [00:12:00]OFD Sender: No OFD packet to send [00:12:05]OFD Sender: No OFD packet to send [00:12:10]OFD Sender: No OFD packet to send [00:12:15]OFD Sender: No OFD packet to send [00:12:20]OFD Sender: No OFD packet to send [00:12:25]OFD Sender: No OFD packet to send [00:12:30]OFD Sender: No OFD packet to send [00:12:35]OFD Sender: No OFD packet to send [00:12:40]OFD Sender: No OFD packet to send [00:12:45]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:03]accept exits with 9 [00:25:03]New connection [00:25:03]New thread 3066858852 created [00:25:03]Thread 3066715492 joined [00:25:03]Waiting for new connection... [00:25:03] Sock 9.Parse request [00:25:03]Sock 9.Check first char [00:25:03]Sock 9.First char is OK [00:25:03]request: POST /json_proto HTTP/1.0 [00:25:03]Method: POST [00:25:03]URL: /json_proto [00:25:03]Method is POST - this is cgi request [00:25:03]url: /json_proto [00:25:03]query_string will be loaded in cgi processing [00:25:03]execute_cgi json_proto POST (null) [00:25:03]execute_cgi path=json_proto method=POST [00:25:03]POST find Content-Length [00:25:03]Host: 172.17.38.133:8080 [00:25:03]Content-Length: 215 [00:25:03]Content-Type: application/json [00:25:03] [00:25:03]POST finish read [00:25:03]Found Content-Length = 215 [00:25:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:03]execute_script... [00:25:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:03]POST & json_proto [00:25:03]process_json_proto [00:25:03]json parsed OK: [00:25:03]protocol is kg_v1.0 [00:25:03]action value=get_value [00:25:03]process_action get_value [00:25:03]cmd_get_value [00:25:03]process_action get_value done [00:25:03]requested_data is exist [00:25:03]produce_requested_data [00:25:03]requested_item kkm.sn is exist - process it [00:25:03]requested_item kkm.ver is exist - process it [00:25:03]requested_item fm.sn is exist - process it [00:25:03]wFMCommunicate request_size=4 [00:25:03]MH_SAM_APDU [00:25:03]CAPDU: 80 11 00 00 [00:25:03]Write to MH i2c: E2 08 00 BE 0A 80 11 00 00 00 00 00 00 42 [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:03]Read from MH i2c: E2 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 17 00 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 17 00 BE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 95 [00:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:25:03]wFMCommunicate OK [00:25:03]requested_item fd.num is exist - process it [00:25:03]SAM_PROTO_GetFieldsCounters [00:25:03]wFMCommunicate request_size=4 [00:25:03]MH_SAM_APDU [00:25:03]CAPDU: 80 13 00 00 [00:25:03]Write to MH i2c: E2 08 00 BF 0A 80 13 00 00 00 00 00 00 45 [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:04]Read from MH i2c: E2 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 62 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 62 00 BF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [00:25:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8C 96 01 00 0E 04 04 00 62 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:04]wFMCommunicate OK [00:25:04]SAM_PROTO_GetFieldsCounters done [00:25:04]requested_item shift.num is exist - process it [00:25:04]requested_item shift.opened is exist - process it [00:25:04]req_shift_opened [00:25:04]FM_GetShiftState [00:25:04]SAM_PROTO_GetShiftState [00:25:04]wFMCommunicate request_size=4 [00:25:04]MH_SAM_APDU [00:25:04]CAPDU: 80 13 01 00 [00:25:04]Write to MH i2c: E2 08 00 C0 0A 80 13 01 00 00 00 00 00 47 [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:04]Read from MH i2c: E2 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 0E 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 0E 00 C0 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 52 [00:25:04]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:04]wFMCommunicate OK [00:25:04]SAM_PROTO_GetShiftState done [00:25:04]FM_GetShiftState done [00:25:04]req_shift_opened done [00:25:04]requested_item shift.open_date is exist - process it [00:25:04]req_shift_open_date [00:25:04]FM_GetShiftState [00:25:04]SAM_PROTO_GetShiftState [00:25:04]wFMCommunicate request_size=4 [00:25:04]MH_SAM_APDU [00:25:04]CAPDU: 80 13 01 00 [00:25:04]Write to MH i2c: E2 08 00 C1 0A 80 13 01 00 00 00 00 00 48 [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:04]Read from MH i2c: E2 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 0E 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 0E 00 C1 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 53 [00:25:04]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:04]wFMCommunicate OK [00:25:04]SAM_PROTO_GetShiftState done [00:25:04]FM_GetShiftState done [00:25:04]req_shift_open_date done [00:25:04]produce_requested_data done [00:25:04]produce_requested_data return {"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104076,"shift.num":354,"shift.opened":0,"shift.open_date":0} [00:25:04]process_action_free get_value [00:25:04]json_value_free [00:25:04]json_value_free done [00:25:04]process_json_proto returns [00:25:04]Send response to host [00:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000164","kkm.ver":"001","fm.sn":"0000000000875093","fd.num":104076,"shift.num":354,"shift.opened":0,"shift.open_date":0}}} [00:25:04]free response buf [00:25:04]execute_script done [00:25:04]execute_script returns [00:25:04]free content buf [00:25:04]Sock 9.Close socket [00:25:04]Sock 9.Thread stoped [00:25:04]accept exits with 7 [00:25:04]New connection [00:25:04]New thread 3066715492 created [00:25:04]Thread 3066858852 joined [00:25:04]Waiting for new connection... [00:25:04] Sock 7.Parse request [00:25:04]Sock 7.Check first char [00:25:04]Sock 7.First char is OK [00:25:04]request: POST /json_proto HTTP/1.0 [00:25:04]Method: POST [00:25:04]URL: /json_proto [00:25:04]Method is POST - this is cgi request [00:25:04]url: /json_proto [00:25:04]query_string will be loaded in cgi processing [00:25:04]execute_cgi json_proto POST (null) [00:25:04]execute_cgi path=json_proto method=POST [00:25:04]POST find Content-Length [00:25:04]Host: 172.17.38.133:8080 [00:25:04]Content-Length: 331 [00:25:04]Content-Type: application/json [00:25:04] [00:25:04]POST finish read [00:25:04]Found Content-Length = 331 [00:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:04]execute_script... [00:25:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:04]POST & json_proto [00:25:04]process_json_proto [00:25:04]json parsed OK: [00:25:04]protocol is kg_v1.0 [00:25:04]action value=get_value [00:25:04]process_action get_value [00:25:04]cmd_get_value [00:25:04]process_action get_value done [00:25:04]requested_data is exist [00:25:04]produce_requested_data [00:25:04]requested_item fm.sale.total is exist - process it [00:25:04]SAM_PROTO_GetFMData [00:25:04]wFMCommunicate request_size=4 [00:25:04]MH_SAM_APDU [00:25:04]CAPDU: 80 13 03 00 [00:25:04]Write to MH i2c: E2 08 00 C2 0A 80 13 03 00 00 00 00 00 4B [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:04]Read from MH i2c: E2 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 FD 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 FD 00 C2 0A 00 C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 39 [00:25:04]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 [00:25:04]wFMCommunicate OK [00:25:04]wFMCommunicate request_size=4 [00:25:04]MH_SAM_APDU [00:25:04]CAPDU: 80 17 00 00 [00:25:04]Write to MH i2c: E2 08 00 C3 0A 80 17 00 00 00 00 00 00 4D [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:05]Read from MH i2c: E2 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 FD 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 FD 00 C3 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 23 [00:25:05]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:25:05]wFMCommunicate OK [00:25:05]wFMCommunicate request_size=4 [00:25:05]MH_SAM_APDU [00:25:05]CAPDU: 80 17 00 00 [00:25:05]Write to MH i2c: E2 08 00 C4 0A 80 17 00 00 00 00 00 00 4E [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:05]Read from MH i2c: E2 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 FD 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 FD 00 C4 0A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 60 [00:25:05]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:25:05]wFMCommunicate OK [00:25:05]wFMCommunicate request_size=4 [00:25:05]MH_SAM_APDU [00:25:05]CAPDU: 80 17 00 00 [00:25:05]Write to MH i2c: E2 08 00 C5 0A 80 17 00 00 00 00 00 00 4F [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:05]Read from MH i2c: E2 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 FD 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 FD 00 C5 0A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 DB [00:25:05]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:25:05]wFMCommunicate OK [00:25:05]wFMCommunicate request_size=4 [00:25:05]MH_SAM_APDU [00:25:05]CAPDU: 80 17 00 00 [00:25:05]Write to MH i2c: E2 08 00 C6 0A 80 17 00 00 00 00 00 00 50 [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 E2 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 E2 00 C6 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2E [00:25:06]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:06]wFMCommunicate OK [00:25:06]SAM_PROTO_GetFMData done [00:25:06]requested_item fm.sale_refund.total is exist - process it [00:25:06]requested_item fm.buy.total is exist - process it [00:25:06]requested_item shift.sale.total is exist - process it [00:25:06]SAM_PROTO_GetShiftData [00:25:06]wFMCommunicate request_size=4 [00:25:06]MH_SAM_APDU [00:25:06]CAPDU: 80 13 02 00 [00:25:06]Write to MH i2c: E2 08 00 C7 0A 80 13 02 00 00 00 00 00 4F [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]OFD Sender: No OFD packet to send [00:25:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 FD 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 FD 00 C7 0A 00 BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 84 [00:25:06]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 04 01 00 00 69 04 9E 00 6F 04 04 00 00 01 00 00 B1 04 04 00 34 C5 C4 02 70 04 04 00 0C 85 03 02 72 04 03 00 28 40 C1 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 4D 48 4B 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 EA 45 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 04 00 00 00 B1 04 03 00 3C 97 13 70 04 03 00 3C 97 13 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 A2 14 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:25:06]wFMCommunicate OK [00:25:06]wFMCommunicate request_size=4 [00:25:06]MH_SAM_APDU [00:25:06]CAPDU: 80 17 00 00 [00:25:06]Write to MH i2c: E2 08 00 C8 0A 80 17 00 00 00 00 00 00 52 [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 FD 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 FD 00 C8 0A 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 8A [00:25:06]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 2C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:25:06]wFMCommunicate OK [00:25:06]wFMCommunicate request_size=4 [00:25:06]MH_SAM_APDU [00:25:06]CAPDU: 80 17 00 00 [00:25:06]Write to MH i2c: E2 08 00 C9 0A 80 17 00 00 00 00 00 00 53 [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 FD 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 FD 00 C9 0A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 7C [00:25:07]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:25:07]wFMCommunicate OK [00:25:07]wFMCommunicate request_size=4 [00:25:07]MH_SAM_APDU [00:25:07]CAPDU: 80 17 00 00 [00:25:07]Write to MH i2c: E2 08 00 CA 0A 80 17 00 00 00 00 00 00 54 [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 FD 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 FD 00 CA 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 D5 [00:25:07]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:25:07]wFMCommunicate OK [00:25:07]wFMCommunicate request_size=4 [00:25:07]MH_SAM_APDU [00:25:07]CAPDU: 80 17 00 00 [00:25:07]Write to MH i2c: E2 08 00 CB 0A 80 17 00 00 00 00 00 00 55 [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 D9 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 D9 00 CB 0A 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 34 [00:25:07]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:07]wFMCommunicate OK [00:25:07]SAM_PROTO_GetShiftData done [00:25:07]requested_item shift.sale.total_cash is exist - process it [00:25:07]requested_item shift.sale_refund.total is exist - process it [00:25:07]requested_item shift.sale_refund.total_cash is exist - process it [00:25:07]requested_item shift.buy.total is exist - process it [00:25:07]requested_item shift.buy.total_cash is exist - process it [00:25:07]produce_requested_data done [00:25:07]produce_requested_data return {"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":464499.72,"shift.sale.total_cash":337851.00,"shift.sale_refund.total":12839.00,"shift.sale_refund.total_cash":12839.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:07]process_action_free get_value [00:25:07]json_value_free [00:25:07]json_value_free done [00:25:07]process_json_proto returns [00:25:07]Send response to host [00:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":464499.72,"shift.sale.total_cash":337851.00,"shift.sale_refund.total":12839.00,"shift.sale_refund.total_cash":12839.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:07]free response buf [00:25:07]execute_script done [00:25:07]execute_script returns [00:25:07]free content buf [00:25:07]Sock 7.Close socket [00:25:07]Sock 7.Thread stoped [00:25:07]accept exits with 9 [00:25:07]New connection [00:25:07]New thread 3066858852 created [00:25:07]Thread 3066715492 joined [00:25:07]Waiting for new connection... [00:25:07] Sock 9.Parse request [00:25:07]Sock 9.Check first char [00:25:07]Sock 9.First char is OK [00:25:07]request: POST /json_proto HTTP/1.0 [00:25:07]Method: POST [00:25:07]URL: /json_proto [00:25:07]Method is POST - this is cgi request [00:25:07]url: /json_proto [00:25:07]query_string will be loaded in cgi processing [00:25:07]execute_cgi json_proto POST (null) [00:25:07]execute_cgi path=json_proto method=POST [00:25:07]POST find Content-Length [00:25:07]Host: 172.17.38.133:8080 [00:25:07]Content-Length: 259 [00:25:07]Content-Type: application/json [00:25:07] [00:25:07]POST finish read [00:25:07]Found Content-Length = 259 [00:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:07]execute_script... [00:25:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:07]POST & json_proto [00:25:07]process_json_proto [00:25:07]json parsed OK: [00:25:07]protocol is kg_v1.0 [00:25:07]action value=open_shift [00:25:07]process_action open_shift [00:25:07]cmd_open_shift [00:25:07]MH_GetDate [00:25:07]Write to MH i2c: F0 00 00 CC 0A C5 [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: F0 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: F0 09 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: F0 09 00 CC 0A 00 65 C8 74 66 BD 8F 7C 64 01 [00:25:07]GetLastDocTimeStamp 1718928504 [00:25:07]current date 1718929509 [00:25:07]FM_GetShiftState [00:25:07]SAM_PROTO_GetShiftState [00:25:07]wFMCommunicate request_size=4 [00:25:07]MH_SAM_APDU [00:25:07]CAPDU: 80 13 01 00 [00:25:07]Write to MH i2c: E2 08 00 CD 0A 80 13 01 00 00 00 00 00 54 [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 0E 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 0E 00 CD 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5F [00:25:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:08]wFMCommunicate OK [00:25:08]SAM_PROTO_GetShiftState done [00:25:08]FM_GetShiftState done [00:25:08]KKMCreateOpenShiftDocument [00:25:08]Load OK [00:25:08]Malloc new data [00:25:08]MH_GetDate [00:25:08]Write to MH i2c: F0 00 00 CE 0A C7 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: F0 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: F0 09 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: F0 09 00 CE 0A 00 65 C8 74 66 BD 8F 7C 64 03 [00:25:08]Malloc new data [00:25:08]KKMCreateOpenShiftDocument OK [00:25:08]KKMSetOpenShiftData OK [00:25:08]ProcessDocumentItem done err = 0, tmpTLVsize=199 [00:25:08]tlvbuf is B6EAAD80 [00:25:08]KKMLoadAndSignOpenShiftData [00:25:08]SAM_PROTO_ProcessDocument [00:25:08]wFMCommunicate request_size=9 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 15 01 00 04 02 00 C7 00 [00:25:08]Write to MH i2c: E2 0C 00 CF 0A 80 15 01 00 04 00 02 00 C7 00 00 00 29 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:25:08]Read from MH i2c: E2 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 CF 0A 00 90 00 4D [00:25:08]RAPDU: 90 00 [00:25:08]wFMCommunicate OK [00:25:08]wFMCommunicate request_size=23 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:25:08]Write to MH i2c: E2 1A 00 D0 0A 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 4F [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 [00:25:08]MH_I2C_Read... [00:25:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:08]Read from MH i2c: E2 03 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 D0 0A 00 90 00 4E [00:25:08]RAPDU: 90 00 [00:25:08]wFMCommunicate OK [00:25:08]wFMCommunicate request_size=30 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 [00:25:08]Write to MH i2c: E2 21 00 D1 0A 80 15 02 00 19 00 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 00 00 44 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:08]Read from MH i2c: E2 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 D1 0A 00 90 00 4F [00:25:08]RAPDU: 90 00 [00:25:08]wFMCommunicate OK [00:25:08]wFMCommunicate request_size=87 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 [00:25:08]Write to MH i2c: E2 5A 00 D2 0A 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 00 00 D0 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:08]Read from MH i2c: E2 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [00:25:08]RAPDU: 90 00 [00:25:08]wFMCommunicate OK [00:25:08]wFMCommunicate request_size=51 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:25:08]Write to MH i2c: E2 36 00 D3 0A 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 02 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:08]Read from MH i2c: E2 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [00:25:08]RAPDU: 90 00 [00:25:08]wFMCommunicate OK [00:25:08]wFMCommunicate request_size=13 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 15 02 00 08 F4 03 04 00 65 C8 74 66 [00:25:08]Write to MH i2c: E2 10 00 D4 0A 80 15 02 00 08 00 F4 03 04 00 65 C8 74 66 00 00 70 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:08]Read from MH i2c: E2 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 D4 0A 00 90 00 52 [00:25:08]RAPDU: 90 00 [00:25:08]wFMCommunicate OK [00:25:08]wFMCommunicate request_size=25 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 [00:25:08]Write to MH i2c: E2 1C 00 D5 0A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 00 00 C7 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:08]Read from MH i2c: E2 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 03 00 D5 0A 00 90 00 53 [00:25:08]RAPDU: 90 00 [00:25:08]wFMCommunicate OK [00:25:08]wFMCommunicate request_size=4 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 15 03 00 [00:25:08]Write to MH i2c: E2 08 00 D6 0A 80 15 03 00 00 00 00 00 61 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:25:08]Read from MH i2c: E2 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 38 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 38 00 D6 0A 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 96 01 00 0E 04 04 00 63 01 00 00 35 04 06 00 F3 1D 02 F7 6F 43 90 00 70 [00:25:08]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 96 01 00 0E 04 04 00 63 01 00 00 35 04 06 00 F3 1D 02 F7 6F 43 90 00 [00:25:08]wFMCommunicate OK [00:25:08]SAM_PROTO_ProcessDocument answer len = 51 [00:25:08]SAM_PROTO_ProcessDocument done [00:25:08]SetTLVBufToDocument [00:25:08]Processing tag 1209 (04B9) [00:25:08]Malloc new data [00:25:08]Processing tag 1041 (0411) [00:25:08]Processing tag 1040 (0410) [00:25:08]Malloc new data [00:25:08]Processing tag 1038 (040E) [00:25:08]Malloc new data [00:25:08]Processing tag 1077 (0435) [00:25:08]Malloc new data [00:25:08]SetTLVBufToDocument err=0 [00:25:08]KKMLoadAndSignOpenShiftData store KKM data [00:25:08]KKMLoadAndSignOpenShiftData err=0 [00:25:08]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Асанбаев Н. Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 Место: АЗС № 120 "Партнер Нефть" 21.06.2024 00:25 Смена: 355 РНМ: 0000000000092785 ЗНМ: 0300000164 ФД: 104077 ФМ: 0000000000875093 ФПД: 267305929371459 [00:25:08]StoreToDocumentArchive [00:25:08]shift 355 fd 104077 [00:25:08]Create dir for shift 0355 [00:25:08]save to /storage/0355/doc_00104077 [00:25:08]save last doc name /storage/0355/doc_00104077 to /storage/kkm_last_doc_name [00:25:08]save OK [00:25:08]Clear old archive folders... [00:25:08]Remove dir /storage/0354 [00:25:08]opendir ok [00:25:08]file . [00:25:08]file .. [00:25:08]file doc_00103815 [00:25:08]remove file /storage/0354/doc_00103815 [00:25:08]file doc_00103816 [00:25:08]remove file /storage/0354/doc_00103816 [00:25:08]file doc_00103817 [00:25:08]remove file /storage/0354/doc_00103817 [00:25:08]file doc_00103818 [00:25:08]remove file /storage/0354/doc_00103818 [00:25:08]file doc_00103819 [00:25:08]remove file /storage/0354/doc_00103819 [00:25:08]file doc_00103820 [00:25:08]remove file /storage/0354/doc_00103820 [00:25:08]file doc_00103821 [00:25:08]remove file /storage/0354/doc_00103821 [00:25:08]file doc_00103822 [00:25:08]remove file /storage/0354/doc_00103822 [00:25:08]file doc_00103823 [00:25:08]remove file /storage/0354/doc_00103823 [00:25:08]file doc_00103824 [00:25:08]remove file /storage/0354/doc_00103824 [00:25:08]file doc_00103825 [00:25:08]remove file /storage/0354/doc_00103825 [00:25:08]file doc_00103826 [00:25:08]remove file /storage/0354/doc_00103826 [00:25:08]file doc_00103827 [00:25:08]remove file /storage/0354/doc_00103827 [00:25:08]file doc_00103828 [00:25:08]remove file /storage/0354/doc_00103828 [00:25:08]file doc_00103829 [00:25:08]remove file /storage/0354/doc_00103829 [00:25:08]file doc_00103830 [00:25:08]remove file /storage/0354/doc_00103830 [00:25:08]file doc_00103831 [00:25:08]remove file /storage/0354/doc_00103831 [00:25:08]file doc_00103832 [00:25:08]remove file /storage/0354/doc_00103832 [00:25:08]file doc_00103833 [00:25:08]remove file /storage/0354/doc_00103833 [00:25:08]file doc_00103834 [00:25:08]remove file /storage/0354/doc_00103834 [00:25:08]file doc_00103835 [00:25:08]remove file /storage/0354/doc_00103835 [00:25:08]file doc_00103836 [00:25:08]remove file /storage/0354/doc_00103836 [00:25:08]file doc_00103837 [00:25:08]remove file /storage/0354/doc_00103837 [00:25:08]file doc_00103838 [00:25:08]remove file /storage/0354/doc_00103838 [00:25:08]file doc_00103839 [00:25:08]remove file /storage/0354/doc_00103839 [00:25:08]file doc_00103840 [00:25:08]remove file /storage/0354/doc_00103840 [00:25:08]file doc_00103841 [00:25:08]remove file /storage/0354/doc_00103841 [00:25:08]file doc_00103842 [00:25:08]remove file /storage/0354/doc_00103842 [00:25:08]file doc_00103843 [00:25:08]remove file /storage/0354/doc_00103843 [00:25:08]file doc_00103844 [00:25:08]remove file /storage/0354/doc_00103844 [00:25:08]file doc_00103845 [00:25:08]remove file /storage/0354/doc_00103845 [00:25:08]file doc_00103846 [00:25:08]remove file /storage/0354/doc_00103846 [00:25:08]file doc_00103847 [00:25:08]remove file /storage/0354/doc_00103847 [00:25:09]file doc_00103848 [00:25:09]remove file /storage/0354/doc_00103848 [00:25:09]file doc_00103849 [00:25:09]remove file /storage/0354/doc_00103849 [00:25:09]file doc_00103850 [00:25:09]remove file /storage/0354/doc_00103850 [00:25:09]file doc_00103851 [00:25:09]remove file /storage/0354/doc_00103851 [00:25:09]file doc_00103852 [00:25:09]remove file /storage/0354/doc_00103852 [00:25:09]file doc_00103853 [00:25:09]remove file /storage/0354/doc_00103853 [00:25:09]file doc_00103854 [00:25:09]remove file /storage/0354/doc_00103854 [00:25:09]file doc_00103855 [00:25:09]remove file /storage/0354/doc_00103855 [00:25:09]file doc_00103856 [00:25:09]remove file /storage/0354/doc_00103856 [00:25:09]file doc_00103857 [00:25:09]remove file /storage/0354/doc_00103857 [00:25:09]file doc_00103858 [00:25:09]remove file /storage/0354/doc_00103858 [00:25:09]file doc_00103859 [00:25:09]remove file /storage/0354/doc_00103859 [00:25:09]file doc_00103860 [00:25:09]remove file /storage/0354/doc_00103860 [00:25:09]file doc_00103861 [00:25:09]remove file /storage/0354/doc_00103861 [00:25:09]file doc_00103862 [00:25:09]remove file /storage/0354/doc_00103862 [00:25:09]file doc_00103863 [00:25:09]remove file /storage/0354/doc_00103863 [00:25:09]file doc_00103864 [00:25:09]remove file /storage/0354/doc_00103864 [00:25:09]file doc_00103865 [00:25:09]remove file /storage/0354/doc_00103865 [00:25:09]file doc_00103866 [00:25:09]remove file /storage/0354/doc_00103866 [00:25:09]file doc_00103867 [00:25:09]remove file /storage/0354/doc_00103867 [00:25:09]file doc_00103868 [00:25:09]remove file /storage/0354/doc_00103868 [00:25:09]file doc_00103869 [00:25:09]remove file /storage/0354/doc_00103869 [00:25:09]file doc_00103870 [00:25:09]remove file /storage/0354/doc_00103870 [00:25:09]file doc_00103871 [00:25:09]remove file /storage/0354/doc_00103871 [00:25:09]file doc_00103872 [00:25:09]remove file /storage/0354/doc_00103872 [00:25:09]file doc_00103873 [00:25:09]remove file /storage/0354/doc_00103873 [00:25:09]file doc_00103874 [00:25:09]remove file /storage/0354/doc_00103874 [00:25:09]file doc_00103875 [00:25:09]remove file /storage/0354/doc_00103875 [00:25:09]file doc_00103876 [00:25:09]remove file /storage/0354/doc_00103876 [00:25:09]file doc_00103877 [00:25:09]remove file /storage/0354/doc_00103877 [00:25:09]file doc_00103878 [00:25:09]remove file /storage/0354/doc_00103878 [00:25:09]file doc_00103879 [00:25:09]remove file /storage/0354/doc_00103879 [00:25:09]file doc_00103880 [00:25:09]remove file /storage/0354/doc_00103880 [00:25:09]file doc_00103881 [00:25:09]remove file /storage/0354/doc_00103881 [00:25:09]file doc_00103882 [00:25:09]remove file /storage/0354/doc_00103882 [00:25:09]file doc_00103883 [00:25:09]remove file /storage/0354/doc_00103883 [00:25:09]file doc_00103884 [00:25:09]remove file /storage/0354/doc_00103884 [00:25:09]file doc_00103885 [00:25:09]remove file /storage/0354/doc_00103885 [00:25:09]file doc_00103886 [00:25:09]remove file /storage/0354/doc_00103886 [00:25:09]file doc_00103887 [00:25:09]remove file /storage/0354/doc_00103887 [00:25:09]file doc_00103888 [00:25:09]remove file /storage/0354/doc_00103888 [00:25:09]file doc_00103889 [00:25:09]remove file /storage/0354/doc_00103889 [00:25:09]file doc_00103890 [00:25:09]remove file /storage/0354/doc_00103890 [00:25:09]file doc_00103891 [00:25:09]remove file /storage/0354/doc_00103891 [00:25:09]file doc_00103892 [00:25:09]remove file /storage/0354/doc_00103892 [00:25:09]file doc_00103893 [00:25:09]remove file /storage/0354/doc_00103893 [00:25:09]file doc_00103894 [00:25:09]remove file /storage/0354/doc_00103894 [00:25:09]file doc_00103895 [00:25:09]remove file /storage/0354/doc_00103895 [00:25:09]file doc_00103896 [00:25:09]remove file /storage/0354/doc_00103896 [00:25:09]file doc_00103897 [00:25:09]remove file /storage/0354/doc_00103897 [00:25:09]file doc_00103898 [00:25:09]remove file /storage/0354/doc_00103898 [00:25:09]file doc_00103899 [00:25:09]remove file /storage/0354/doc_00103899 [00:25:09]file doc_00103900 [00:25:09]remove file /storage/0354/doc_00103900 [00:25:09]file doc_00103901 [00:25:09]remove file /storage/0354/doc_00103901 [00:25:09]file doc_00103902 [00:25:09]remove file /storage/0354/doc_00103902 [00:25:09]file doc_00103903 [00:25:09]remove file /storage/0354/doc_00103903 [00:25:09]file doc_00103904 [00:25:09]remove file /storage/0354/doc_00103904 [00:25:09]file doc_00103905 [00:25:09]remove file /storage/0354/doc_00103905 [00:25:09]file doc_00103906 [00:25:09]remove file /storage/0354/doc_00103906 [00:25:09]file doc_00103907 [00:25:09]remove file /storage/0354/doc_00103907 [00:25:09]file doc_00103908 [00:25:09]remove file /storage/0354/doc_00103908 [00:25:09]file doc_00103909 [00:25:09]remove file /storage/0354/doc_00103909 [00:25:09]file doc_00103910 [00:25:09]remove file /storage/0354/doc_00103910 [00:25:09]file doc_00103911 [00:25:09]remove file /storage/0354/doc_00103911 [00:25:09]file doc_00103912 [00:25:09]remove file /storage/0354/doc_00103912 [00:25:09]file doc_00103913 [00:25:09]remove file /storage/0354/doc_00103913 [00:25:09]file doc_00103914 [00:25:09]remove file /storage/0354/doc_00103914 [00:25:09]file doc_00103915 [00:25:09]remove file /storage/0354/doc_00103915 [00:25:09]file doc_00103916 [00:25:09]remove file /storage/0354/doc_00103916 [00:25:09]file doc_00103917 [00:25:09]remove file /storage/0354/doc_00103917 [00:25:09]file doc_00103918 [00:25:09]remove file /storage/0354/doc_00103918 [00:25:09]file doc_00103919 [00:25:09]remove file /storage/0354/doc_00103919 [00:25:09]file doc_00103920 [00:25:09]remove file /storage/0354/doc_00103920 [00:25:09]file doc_00103921 [00:25:09]remove file /storage/0354/doc_00103921 [00:25:09]file doc_00103922 [00:25:09]remove file /storage/0354/doc_00103922 [00:25:09]file doc_00103923 [00:25:09]remove file /storage/0354/doc_00103923 [00:25:09]file doc_00103924 [00:25:09]remove file /storage/0354/doc_00103924 [00:25:09]file doc_00103925 [00:25:09]remove file /storage/0354/doc_00103925 [00:25:09]file doc_00103926 [00:25:09]remove file /storage/0354/doc_00103926 [00:25:09]file doc_00103927 [00:25:09]remove file /storage/0354/doc_00103927 [00:25:09]file doc_00103928 [00:25:09]remove file /storage/0354/doc_00103928 [00:25:09]file doc_00103929 [00:25:09]remove file /storage/0354/doc_00103929 [00:25:09]file doc_00103930 [00:25:09]remove file /storage/0354/doc_00103930 [00:25:09]file doc_00103931 [00:25:09]remove file /storage/0354/doc_00103931 [00:25:09]file doc_00103932 [00:25:09]remove file /storage/0354/doc_00103932 [00:25:09]file doc_00103933 [00:25:09]remove file /storage/0354/doc_00103933 [00:25:09]file doc_00103934 [00:25:09]remove file /storage/0354/doc_00103934 [00:25:09]file doc_00103935 [00:25:09]remove file /storage/0354/doc_00103935 [00:25:09]file doc_00103936 [00:25:09]remove file /storage/0354/doc_00103936 [00:25:09]file doc_00103937 [00:25:09]remove file /storage/0354/doc_00103937 [00:25:09]file doc_00103938 [00:25:09]remove file /storage/0354/doc_00103938 [00:25:09]file doc_00103939 [00:25:09]remove file /storage/0354/doc_00103939 [00:25:09]file doc_00103940 [00:25:09]remove file /storage/0354/doc_00103940 [00:25:09]file doc_00103941 [00:25:09]remove file /storage/0354/doc_00103941 [00:25:09]file doc_00103942 [00:25:09]remove file /storage/0354/doc_00103942 [00:25:09]file doc_00103943 [00:25:09]remove file /storage/0354/doc_00103943 [00:25:09]file doc_00103944 [00:25:09]remove file /storage/0354/doc_00103944 [00:25:09]file doc_00103945 [00:25:09]remove file /storage/0354/doc_00103945 [00:25:09]file doc_00103946 [00:25:09]remove file /storage/0354/doc_00103946 [00:25:09]file doc_00103947 [00:25:09]remove file /storage/0354/doc_00103947 [00:25:09]file doc_00103948 [00:25:09]remove file /storage/0354/doc_00103948 [00:25:09]file doc_00103949 [00:25:09]remove file /storage/0354/doc_00103949 [00:25:09]file doc_00103950 [00:25:09]remove file /storage/0354/doc_00103950 [00:25:09]file doc_00103951 [00:25:09]remove file /storage/0354/doc_00103951 [00:25:09]file doc_00103952 [00:25:09]remove file /storage/0354/doc_00103952 [00:25:09]file doc_00103953 [00:25:09]remove file /storage/0354/doc_00103953 [00:25:09]file doc_00103954 [00:25:09]remove file /storage/0354/doc_00103954 [00:25:09]file doc_00103955 [00:25:09]remove file /storage/0354/doc_00103955 [00:25:09]file doc_00103956 [00:25:09]remove file /storage/0354/doc_00103956 [00:25:09]file doc_00103957 [00:25:09]remove file /storage/0354/doc_00103957 [00:25:09]file doc_00103958 [00:25:09]remove file /storage/0354/doc_00103958 [00:25:09]file doc_00103959 [00:25:09]remove file /storage/0354/doc_00103959 [00:25:09]file doc_00103960 [00:25:09]remove file /storage/0354/doc_00103960 [00:25:09]file doc_00103961 [00:25:09]remove file /storage/0354/doc_00103961 [00:25:09]file doc_00103962 [00:25:09]remove file /storage/0354/doc_00103962 [00:25:09]file doc_00103963 [00:25:09]remove file /storage/0354/doc_00103963 [00:25:09]file doc_00103964 [00:25:09]remove file /storage/0354/doc_00103964 [00:25:09]file doc_00103965 [00:25:09]remove file /storage/0354/doc_00103965 [00:25:09]file doc_00103966 [00:25:09]remove file /storage/0354/doc_00103966 [00:25:09]file doc_00103967 [00:25:09]remove file /storage/0354/doc_00103967 [00:25:09]file doc_00103968 [00:25:09]remove file /storage/0354/doc_00103968 [00:25:09]file doc_00103969 [00:25:09]remove file /storage/0354/doc_00103969 [00:25:09]file doc_00103970 [00:25:09]remove file /storage/0354/doc_00103970 [00:25:09]file doc_00103971 [00:25:09]remove file /storage/0354/doc_00103971 [00:25:09]file doc_00103972 [00:25:09]remove file /storage/0354/doc_00103972 [00:25:09]file doc_00103973 [00:25:09]remove file /storage/0354/doc_00103973 [00:25:09]file doc_00103974 [00:25:09]remove file /storage/0354/doc_00103974 [00:25:09]file doc_00103975 [00:25:09]remove file /storage/0354/doc_00103975 [00:25:09]file doc_00103976 [00:25:09]remove file /storage/0354/doc_00103976 [00:25:09]file doc_00103977 [00:25:09]remove file /storage/0354/doc_00103977 [00:25:09]file doc_00103978 [00:25:09]remove file /storage/0354/doc_00103978 [00:25:09]file doc_00103979 [00:25:09]remove file /storage/0354/doc_00103979 [00:25:09]file doc_00103980 [00:25:09]remove file /storage/0354/doc_00103980 [00:25:09]file doc_00103981 [00:25:09]remove file /storage/0354/doc_00103981 [00:25:09]file doc_00103982 [00:25:09]remove file /storage/0354/doc_00103982 [00:25:09]file doc_00103983 [00:25:09]remove file /storage/0354/doc_00103983 [00:25:09]file doc_00103984 [00:25:09]remove file /storage/0354/doc_00103984 [00:25:09]file doc_00103985 [00:25:09]remove file /storage/0354/doc_00103985 [00:25:09]file doc_00103986 [00:25:09]remove file /storage/0354/doc_00103986 [00:25:09]file doc_00103987 [00:25:09]remove file /storage/0354/doc_00103987 [00:25:09]file doc_00103988 [00:25:09]remove file /storage/0354/doc_00103988 [00:25:09]file doc_00103989 [00:25:09]remove file /storage/0354/doc_00103989 [00:25:09]file doc_00103990 [00:25:09]remove file /storage/0354/doc_00103990 [00:25:09]file doc_00103991 [00:25:09]remove file /storage/0354/doc_00103991 [00:25:09]file doc_00103992 [00:25:09]remove file /storage/0354/doc_00103992 [00:25:09]file doc_00103993 [00:25:09]remove file /storage/0354/doc_00103993 [00:25:09]file doc_00103994 [00:25:09]remove file /storage/0354/doc_00103994 [00:25:09]file doc_00103995 [00:25:09]remove file /storage/0354/doc_00103995 [00:25:09]file doc_00103996 [00:25:09]remove file /storage/0354/doc_00103996 [00:25:09]file doc_00103997 [00:25:09]remove file /storage/0354/doc_00103997 [00:25:09]file doc_00103998 [00:25:09]remove file /storage/0354/doc_00103998 [00:25:09]file doc_00103999 [00:25:09]remove file /storage/0354/doc_00103999 [00:25:10]file doc_00104000 [00:25:10]remove file /storage/0354/doc_00104000 [00:25:10]file doc_00104001 [00:25:10]remove file /storage/0354/doc_00104001 [00:25:10]file doc_00104002 [00:25:10]remove file /storage/0354/doc_00104002 [00:25:10]file doc_00104003 [00:25:10]remove file /storage/0354/doc_00104003 [00:25:10]file doc_00104004 [00:25:10]remove file /storage/0354/doc_00104004 [00:25:10]file doc_00104005 [00:25:10]remove file /storage/0354/doc_00104005 [00:25:10]file doc_00104006 [00:25:10]remove file /storage/0354/doc_00104006 [00:25:10]file doc_00104007 [00:25:10]remove file /storage/0354/doc_00104007 [00:25:10]file doc_00104008 [00:25:10]remove file /storage/0354/doc_00104008 [00:25:10]file doc_00104009 [00:25:10]remove file /storage/0354/doc_00104009 [00:25:10]file doc_00104010 [00:25:10]remove file /storage/0354/doc_00104010 [00:25:10]file doc_00104011 [00:25:10]remove file /storage/0354/doc_00104011 [00:25:10]file doc_00104012 [00:25:10]remove file /storage/0354/doc_00104012 [00:25:10]file doc_00104013 [00:25:10]remove file /storage/0354/doc_00104013 [00:25:10]file doc_00104014 [00:25:10]remove file /storage/0354/doc_00104014 [00:25:10]file doc_00104015 [00:25:10]remove file /storage/0354/doc_00104015 [00:25:10]file doc_00104016 [00:25:10]remove file /storage/0354/doc_00104016 [00:25:10]file doc_00104017 [00:25:10]remove file /storage/0354/doc_00104017 [00:25:10]file doc_00104018 [00:25:10]remove file /storage/0354/doc_00104018 [00:25:10]file doc_00104019 [00:25:10]remove file /storage/0354/doc_00104019 [00:25:10]file doc_00104020 [00:25:10]remove file /storage/0354/doc_00104020 [00:25:10]file doc_00104021 [00:25:10]remove file /storage/0354/doc_00104021 [00:25:10]file doc_00104022 [00:25:10]remove file /storage/0354/doc_00104022 [00:25:10]file doc_00104023 [00:25:10]remove file /storage/0354/doc_00104023 [00:25:10]file doc_00104024 [00:25:10]remove file /storage/0354/doc_00104024 [00:25:10]file doc_00104025 [00:25:10]remove file /storage/0354/doc_00104025 [00:25:10]file doc_00104026 [00:25:10]remove file /storage/0354/doc_00104026 [00:25:10]file doc_00104027 [00:25:10]remove file /storage/0354/doc_00104027 [00:25:10]file doc_00104028 [00:25:10]remove file /storage/0354/doc_00104028 [00:25:10]file doc_00104029 [00:25:10]remove file /storage/0354/doc_00104029 [00:25:10]file doc_00104030 [00:25:10]remove file /storage/0354/doc_00104030 [00:25:10]file doc_00104031 [00:25:10]remove file /storage/0354/doc_00104031 [00:25:10]file doc_00104032 [00:25:10]remove file /storage/0354/doc_00104032 [00:25:10]file doc_00104033 [00:25:10]remove file /storage/0354/doc_00104033 [00:25:10]file doc_00104034 [00:25:10]remove file /storage/0354/doc_00104034 [00:25:10]file doc_00104035 [00:25:10]remove file /storage/0354/doc_00104035 [00:25:10]file doc_00104036 [00:25:10]remove file /storage/0354/doc_00104036 [00:25:10]file doc_00104037 [00:25:10]remove file /storage/0354/doc_00104037 [00:25:10]file doc_00104038 [00:25:10]remove file /storage/0354/doc_00104038 [00:25:10]file doc_00104039 [00:25:10]remove file /storage/0354/doc_00104039 [00:25:10]file doc_00104040 [00:25:10]remove file /storage/0354/doc_00104040 [00:25:10]file doc_00104041 [00:25:10]remove file /storage/0354/doc_00104041 [00:25:10]file doc_00104042 [00:25:10]remove file /storage/0354/doc_00104042 [00:25:10]file doc_00104043 [00:25:10]remove file /storage/0354/doc_00104043 [00:25:10]file doc_00104044 [00:25:10]remove file /storage/0354/doc_00104044 [00:25:10]file doc_00104045 [00:25:10]remove file /storage/0354/doc_00104045 [00:25:10]file doc_00104046 [00:25:10]remove file /storage/0354/doc_00104046 [00:25:10]file doc_00104047 [00:25:10]remove file /storage/0354/doc_00104047 [00:25:10]file doc_00104048 [00:25:10]remove file /storage/0354/doc_00104048 [00:25:10]file doc_00104049 [00:25:10]remove file /storage/0354/doc_00104049 [00:25:10]file doc_00104050 [00:25:10]remove file /storage/0354/doc_00104050 [00:25:10]file doc_00104051 [00:25:10]remove file /storage/0354/doc_00104051 [00:25:10]file doc_00104052 [00:25:10]remove file /storage/0354/doc_00104052 [00:25:10]file doc_00104053 [00:25:10]remove file /storage/0354/doc_00104053 [00:25:10]file doc_00104054 [00:25:10]remove file /storage/0354/doc_00104054 [00:25:10]file doc_00104055 [00:25:10]remove file /storage/0354/doc_00104055 [00:25:10]file doc_00104056 [00:25:10]remove file /storage/0354/doc_00104056 [00:25:10]file doc_00104057 [00:25:10]remove file /storage/0354/doc_00104057 [00:25:10]file doc_00104058 [00:25:10]remove file /storage/0354/doc_00104058 [00:25:10]file doc_00104059 [00:25:10]remove file /storage/0354/doc_00104059 [00:25:10]file doc_00104060 [00:25:10]remove file /storage/0354/doc_00104060 [00:25:10]file doc_00104061 [00:25:10]remove file /storage/0354/doc_00104061 [00:25:10]file doc_00104062 [00:25:10]remove file /storage/0354/doc_00104062 [00:25:10]file doc_00104063 [00:25:10]remove file /storage/0354/doc_00104063 [00:25:10]file doc_00104064 [00:25:10]remove file /storage/0354/doc_00104064 [00:25:10]file doc_00104065 [00:25:10]remove file /storage/0354/doc_00104065 [00:25:10]file doc_00104066 [00:25:10]remove file /storage/0354/doc_00104066 [00:25:10]file doc_00104067 [00:25:10]remove file /storage/0354/doc_00104067 [00:25:10]file doc_00104068 [00:25:10]remove file /storage/0354/doc_00104068 [00:25:10]file doc_00104069 [00:25:10]remove file /storage/0354/doc_00104069 [00:25:10]file doc_00104070 [00:25:10]remove file /storage/0354/doc_00104070 [00:25:10]file doc_00104071 [00:25:10]remove file /storage/0354/doc_00104071 [00:25:10]file doc_00104072 [00:25:10]remove file /storage/0354/doc_00104072 [00:25:10]file doc_00104073 [00:25:10]remove file /storage/0354/doc_00104073 [00:25:10]file doc_00104074 [00:25:10]remove file /storage/0354/doc_00104074 [00:25:10]file doc_00104075 [00:25:10]remove file /storage/0354/doc_00104075 [00:25:10]file doc_00104076 [00:25:10]remove file /storage/0354/doc_00104076 [00:25:10]remove dir /storage/0354 [00:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:25:10]tlvbuf is 010F1140 [00:25:10]SAM_PROTO_ClearQueue [00:25:10]wFMCommunicate request_size=4 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 09 00 00 [00:25:10]Write to MH i2c: E2 08 00 D7 0A 80 09 00 00 00 00 00 00 53 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 03 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 03 00 D7 0A 00 90 00 55 [00:25:10]RAPDU: 90 00 [00:25:10]wFMCommunicate OK [00:25:10]SAM_PROTO_ClearQueue done [00:25:10]KKMCreateOFDPacket [00:25:10]OFDProtocolAddRootSTLVToBuf [00:25:10]FM_MakeSignedData [00:25:10]FM_MakeSignedData [00:25:10]SAM_PROTO_SignData [00:25:10]wFMCommunicate request_size=4 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 0D 01 02 [00:25:10]Write to MH i2c: E2 08 00 D8 0A 80 0D 01 02 00 00 00 00 5B [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 03 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 03 00 D8 0A 00 90 00 56 [00:25:10]RAPDU: 90 00 [00:25:10]wFMCommunicate OK [00:25:10]wFMCommunicate request_size=255 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 0D 02 02 FA 02 00 FA 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 65 C8 74 66 0E 04 04 00 63 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 F3 1D [00:25:10]Write to MH i2c: E2 02 01 D9 0A 80 0D 02 02 FA 00 02 00 FA 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 65 C8 74 66 0E 04 04 00 63 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 F3 1D 00 00 3A [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 03 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 03 00 D9 0A 00 90 00 57 [00:25:10]RAPDU: 90 00 [00:25:10]wFMCommunicate OK [00:25:10]wFMCommunicate request_size=9 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 0D 02 02 04 02 F7 6F 43 [00:25:10]Write to MH i2c: E2 0C 00 DA 0A 80 0D 02 02 04 00 02 F7 6F 43 00 00 11 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 03 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 03 00 DA 0A 00 90 00 58 [00:25:10]RAPDU: 90 00 [00:25:10]wFMCommunicate OK [00:25:10]wFMCommunicate request_size=4 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 0D 03 02 [00:25:10]Write to MH i2c: E2 08 00 DB 0A 80 0D 03 02 00 00 00 00 60 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 0B 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 0B 00 DB 0A 00 85 2A E9 9C EE 5B 9B A9 90 00 22 [00:25:10]RAPDU: 85 2A E9 9C EE 5B 9B A9 90 00 [00:25:10]wFMCommunicate OK [00:25:10]SAM_PROTO_SignData done [00:25:10]FM_MakeSignedData done [00:25:10]CreateOFDProtocolMessage [00:25:10]wFMCommunicate request_size=4 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 11 00 00 [00:25:10]Write to MH i2c: E2 08 00 DC 0A 80 11 00 00 00 00 00 00 60 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 17 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 17 00 DC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B3 [00:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:25:10]wFMCommunicate OK [00:25:10]CreateOFDProtocolMessage done [00:25:10]OFDSenderStorePacket 104077 [00:25:10]StoreOFDPacket docnum=104077 [00:25:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0E 01 00 00 70 48 06 01 F4 9F 5A 02 01 00 02 00 FA 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 65 C8 74 66 0E 04 04 00 63 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 F3 1D 02 F7 6F 43 85 2A E9 9C EE 5B 9B A9 [00:25:10]CheckFolder [00:25:10]dirname=/storage/ofd_packets [00:25:10]CheckFolder done [00:25:10]ProducePacketName [00:25:10]name=ofd_packets/00104077 [00:25:10]NVStorageSaveData ofd_packets/00104077 [00:25:10]File name is /storage/ofd_packets/00104077 [00:25:10]Write 300 bytes [00:25:10]NVStorageSaveData done [00:25:10]OFDSenderStorePacket done [00:25:10]KKMCreateOFDPacket done [00:25:10]NVStorageSaveData kkm_last_timestamp [00:25:10]File name is /storage/kkm_last_timestamp [00:25:10]Write 4 bytes [00:25:10]NVStorageSaveData done [00:25:10]ExternCall_PrintAddStr [00:25:10]wPrintStart [00:25:10]Write to MH i2c: 01 00 00 DD 0A E7 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: 01 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: 01 07 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: 01 07 00 DD 0A 00 00 00 00 00 FF 0F FC [00:25:10]RasterBufferAndPrint [00:25:10]line Отчет об открытии смены [00:25:10]line ФФД: 1.0 [00:25:10]line ИНН: 02508201610067 [00:25:10]line Кассир: Асанбаев Н. [00:25:10]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:25:10]line Место: АЗС № 120 "Партнер Нефть" [00:25:10]line 21.06.2024 00:25 [00:25:10]line Смена: 355 [00:25:10]line РНМ: 0000000000092785 [00:25:10]line ЗНМ: 0300000164 [00:25:10]line ФД: 104077 [00:25:10]line ФМ: 0000000000875093 [00:25:10]line ФПД: 267305929371459 [00:25:10]written 0, free lines is 4095 [00:25:10]OFD Sender: Processing packet 104077 [packets to send 17, broken 16] [00:25:10]ProducePacketName [00:25:10]name=ofd_packets/00104077 [00:25:10]OFD Sender: To server: pG, [00:25:10]CommunicateWithHost lk.salyk.kg:30040 [00:25:10]ConnectInit lk.salyk.kg [00:25:11]Connected sock=10 [00:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0E 01 00 00 70 48 06 01 F4 9F 5A 02 01 00 02 00 FA 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 90 D1 81 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 20 D0 9D 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9D D0 B0 D1 80 D1 8B D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 96 2E 20 D0 A2 D1 83 D1 80 D0 B4 D1 83 D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 31 2C 20 34 31 2E 34 32 31 32 33 32 2C 20 37 36 2E 30 30 39 32 37 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 32 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 65 C8 74 66 0E 04 04 00 63 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 96 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 35 04 06 00 F3 1D 02 F7 6F 43 85 2A E9 9C EE 5B 9B A9 [00:25:11]Write to MH i2c: 01 00 00 EF 0A F9 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: 01 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: 01 07 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: 01 07 00 EF 0A 00 00 00 00 00 A7 0E B5 [00:25:11]RasterBufferAndPrint [00:25:11]line [00:25:11]line [00:25:11]line [00:25:11]line [00:25:11]line [00:25:11]written 0, free lines is 3769 [00:25:11]MH_Cut [00:25:11]Write to MH i2c: D1 01 00 F6 0A 01 D2 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: D1 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: D1 01 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: D1 01 00 F6 0A 00 D1 [00:25:11]Write to MH i2c: 01 00 00 F7 0A 01 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 0A C5 47 00 8A A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8D 96 01 00 F4 03 04 00 EA 6E 74 66 B6 04 01 00 00 8B 27 3B 84 CA 90 8D DF [00:25:11]CommunicateWithHost err = 0 [00:25:11]CheckOFDResponse [00:25:11]1017 (14) - 77093643461234 [00:25:11]1041 (16) - 0000000000875093 [00:25:11]1040 (4) - 104077 [00:25:11]1012 (4) - 20.06.2024 18:03 [00:25:11]1206 (1) - 0 [00:25:11]OFD Sender: Remove packet 104077 [00:25:11]ProducePacketName [00:25:11]name=ofd_packets/00104077 [00:25:11]NVStorageDeleteData [00:25:11]*** Cut start [00:25:11]*** Partial cut [00:25:11]*** CUTSNS_PIN = 1 [00:25:11]*** CUTSNS_PIN = 0 [00:25:11]*** Brake cut motor [00:25:11]OFD Sender: No OFD packet to send [00:25:12]Read from MH i2c: 01 [00:25:12]MH_I2C_Read... [00:25:12]*** Stop cut motor [00:25:12]*** Cut end [00:25:12]Read from MH i2c: 01 07 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: 01 07 00 F7 0A 00 00 00 00 00 FF 0F 16 [00:25:12]process_action open_shift done [00:25:12]requested_data is exist [00:25:12]produce_requested_data [00:25:12]requested_item fd.num is exist - process it [00:25:12]SAM_PROTO_GetFieldsCounters [00:25:12]wFMCommunicate request_size=4 [00:25:12]MH_SAM_APDU [00:25:12]CAPDU: 80 13 00 00 [00:25:12]Write to MH i2c: E2 08 00 F8 0A 80 13 00 00 00 00 00 00 7E [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:12]Read from MH i2c: E2 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 62 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 62 00 F8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [00:25:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8D 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:12]wFMCommunicate OK [00:25:12]SAM_PROTO_GetFieldsCounters done [00:25:12]requested_item shift.num is exist - process it [00:25:12]requested_item shift.opened is exist - process it [00:25:12]req_shift_opened [00:25:12]FM_GetShiftState [00:25:12]SAM_PROTO_GetShiftState [00:25:12]wFMCommunicate request_size=4 [00:25:12]MH_SAM_APDU [00:25:12]CAPDU: 80 13 01 00 [00:25:12]Write to MH i2c: E2 08 00 F9 0A 80 13 01 00 00 00 00 00 80 [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:12]Read from MH i2c: E2 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 0E 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 0E 00 F9 0A 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 93 [00:25:12]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:25:12]wFMCommunicate OK [00:25:12]SAM_PROTO_GetShiftState done [00:25:12]FM_GetShiftState done [00:25:12]req_shift_opened done [00:25:12]requested_item shift.open_date is exist - process it [00:25:12]req_shift_open_date [00:25:12]req_shift_open_date done [00:25:12]produce_requested_data done [00:25:12]produce_requested_data return {"fd.num":104077,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [00:25:12]process_action_free open_shift [00:25:12]json_value_free [00:25:12]json_value_free done [00:25:12]process_json_proto returns [00:25:12]Send response to host [00:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":104077,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [00:25:12]free response buf [00:25:12]execute_script done [00:25:12]execute_script returns [00:25:12]free content buf [00:25:12]Sock 9.Close socket [00:25:12]Sock 9.Thread stoped [00:25:12]accept exits with 7 [00:25:12]New connection [00:25:12]New thread 3066715492 created [00:25:12]Thread 3066858852 joined [00:25:12]Waiting for new connection... [00:25:12] Sock 7.Parse request [00:25:12]Sock 7.Check first char [00:25:12]Sock 7.First char is OK [00:25:12]request: POST /json_proto HTTP/1.0 [00:25:12]Method: POST [00:25:12]URL: /json_proto [00:25:12]Method is POST - this is cgi request [00:25:12]url: /json_proto [00:25:12]query_string will be loaded in cgi processing [00:25:12]execute_cgi json_proto POST (null) [00:25:12]execute_cgi path=json_proto method=POST [00:25:12]POST find Content-Length [00:25:12]Host: 172.17.38.133:8080 [00:25:12]Content-Length: 331 [00:25:12]Content-Type: application/json [00:25:12] [00:25:12]POST finish read [00:25:12]Found Content-Length = 331 [00:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:12]execute_script... [00:25:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:12]POST & json_proto [00:25:12]process_json_proto [00:25:12]json parsed OK: [00:25:12]protocol is kg_v1.0 [00:25:12]action value=get_value [00:25:12]process_action get_value [00:25:12]cmd_get_value [00:25:12]process_action get_value done [00:25:12]requested_data is exist [00:25:12]produce_requested_data [00:25:12]requested_item fm.sale.total is exist - process it [00:25:12]SAM_PROTO_GetFMData [00:25:12]wFMCommunicate request_size=4 [00:25:12]MH_SAM_APDU [00:25:12]CAPDU: 80 13 03 00 [00:25:12]Write to MH i2c: E2 08 00 FA 0A 80 13 03 00 00 00 00 00 83 [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:12]Read from MH i2c: E2 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 FD 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 FD 00 FA 0A 00 C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 71 [00:25:13]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C7 93 01 00 69 04 A3 00 6F 04 04 00 6E 8F 01 00 B1 04 05 00 CD C1 68 3F 04 70 04 05 00 A0 C6 1C 5B 03 72 04 04 00 2D FB 4B E4 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 44 22 7E 73 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 95 B6 9F 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 59 04 00 00 B1 04 04 00 94 31 22 18 70 04 04 00 94 31 22 18 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A8 22 90 02 EF 03 09 90 00 [00:25:13]wFMCommunicate OK [00:25:13]wFMCommunicate request_size=4 [00:25:13]MH_SAM_APDU [00:25:13]CAPDU: 80 17 00 00 [00:25:13]Write to MH i2c: E2 08 00 FB 0A 80 17 00 00 00 00 00 00 85 [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:13]Read from MH i2c: E2 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 FD 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 FD 00 FB 0A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 5B [00:25:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3D AD 36 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:25:13]wFMCommunicate OK [00:25:13]wFMCommunicate request_size=4 [00:25:13]MH_SAM_APDU [00:25:13]CAPDU: 80 17 00 00 [00:25:13]Write to MH i2c: E2 08 00 FC 0A 80 17 00 00 00 00 00 00 86 [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:13]Read from MH i2c: E2 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 FD 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 FD 00 FC 0A 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 98 [00:25:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:25:13]wFMCommunicate OK [00:25:13]wFMCommunicate request_size=4 [00:25:13]MH_SAM_APDU [00:25:13]CAPDU: 80 17 00 00 [00:25:13]Write to MH i2c: E2 08 00 FD 0A 80 17 00 00 00 00 00 00 87 [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:14]Read from MH i2c: E2 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 FD 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 FD 00 FD 0A 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 13 [00:25:14]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:25:14]wFMCommunicate OK [00:25:14]wFMCommunicate request_size=4 [00:25:14]MH_SAM_APDU [00:25:14]CAPDU: 80 17 00 00 [00:25:14]Write to MH i2c: E2 08 00 FE 0A 80 17 00 00 00 00 00 00 88 [00:25:14]Write i2c OK [00:25:14]MH_I2C_Read... [00:25:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:25:14]Read from MH i2c: E2 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 E2 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 E2 00 FE 0A 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 66 [00:25:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:14]wFMCommunicate OK [00:25:14]SAM_PROTO_GetFMData done [00:25:14]requested_item fm.sale_refund.total is exist - process it [00:25:14]requested_item fm.buy.total is exist - process it [00:25:14]requested_item shift.sale.total is exist - process it [00:25:14]SAM_PROTO_GetShiftData [00:25:14]wFMCommunicate request_size=4 [00:25:14]MH_SAM_APDU [00:25:14]CAPDU: 80 13 02 00 [00:25:14]Write to MH i2c: E2 08 00 FF 0A 80 13 02 00 00 00 00 00 87 [00:25:14]Write i2c OK [00:25:14]MH_I2C_Read... [00:25:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:15]Read from MH i2c: E2 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 FD 00 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 FD 00 FF 0A 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 FA [00:25:15]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:25:15]wFMCommunicate OK [00:25:15]wFMCommunicate request_size=4 [00:25:15]MH_SAM_APDU [00:25:15]CAPDU: 80 17 00 00 [00:25:15]Write to MH i2c: E2 08 00 00 0B 80 17 00 00 00 00 00 00 8B [00:25:15]Write i2c OK [00:25:15]MH_I2C_Read... [00:25:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:15]Read from MH i2c: E2 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 FD 00 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 FD 00 00 0B 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 93 [00:25:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:25:15]wFMCommunicate OK [00:25:15]wFMCommunicate request_size=4 [00:25:15]MH_SAM_APDU [00:25:15]CAPDU: 80 17 00 00 [00:25:15]Write to MH i2c: E2 08 00 01 0B 80 17 00 00 00 00 00 00 8C [00:25:15]Write i2c OK [00:25:15]MH_I2C_Read... [00:25:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:16]Read from MH i2c: E2 [00:25:16]MH_I2C_Read... [00:25:16]Read from MH i2c: E2 FD 00 [00:25:16]MH_I2C_Read... [00:25:16]Read from MH i2c: E2 FD 00 01 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 5E [00:25:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:25:16]wFMCommunicate OK [00:25:16]wFMCommunicate request_size=4 [00:25:16]MH_SAM_APDU [00:25:16]CAPDU: 80 17 00 00 [00:25:16]Write to MH i2c: E2 08 00 02 0B 80 17 00 00 00 00 00 00 8D [00:25:16]Write i2c OK [00:25:16]MH_I2C_Read... [00:25:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:16]Read from MH i2c: E2 [00:25:16]MH_I2C_Read... [00:25:16]Read from MH i2c: E2 FD 00 [00:25:16]MH_I2C_Read... [00:25:16]Read from MH i2c: E2 FD 00 02 0B 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 FF [00:25:16]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:25:16]wFMCommunicate OK [00:25:16]wFMCommunicate request_size=4 [00:25:16]MH_SAM_APDU [00:25:16]CAPDU: 80 17 00 00 [00:25:16]Write to MH i2c: E2 08 00 03 0B 80 17 00 00 00 00 00 00 8E [00:25:16]Write i2c OK [00:25:16]MH_I2C_Read... [00:25:17]OFD Sender: No OFD packet to send [00:25:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:25:17]Read from MH i2c: E2 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 BD 00 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 BD 00 03 0B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 74 [00:25:17]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:17]wFMCommunicate OK [00:25:17]SAM_PROTO_GetShiftData done [00:25:17]requested_item shift.sale.total_cash is exist - process it [00:25:17]requested_item shift.sale_refund.total is exist - process it [00:25:17]requested_item shift.sale_refund.total_cash is exist - process it [00:25:17]requested_item shift.buy.total is exist - process it [00:25:17]requested_item shift.buy.total_cash is exist - process it [00:25:17]produce_requested_data done [00:25:17]produce_requested_data return {"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:17]process_action_free get_value [00:25:17]json_value_free [00:25:17]json_value_free done [00:25:17]process_json_proto returns [00:25:17]Send response to host [00:25:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":182436991.49,"fm.sale_refund.total":4048941.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:17]free response buf [00:25:17]execute_script done [00:25:17]execute_script returns [00:25:17]free content buf [00:25:17]Sock 7.Close socket [00:25:17]Sock 7.Thread stoped [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:17]accept exits with 9 [00:27:17]New connection [00:27:17]New thread 3066858852 created [00:27:17]Thread 3066715492 joined [00:27:17]Waiting for new connection... [00:27:17] Sock 9.Parse request [00:27:17]Sock 9.Check first char [00:27:17]Sock 9.First char is OK [00:27:17]request: POST /json_proto HTTP/1.0 [00:27:17]Method: POST [00:27:17]URL: /json_proto [00:27:17]Method is POST - this is cgi request [00:27:17]url: /json_proto [00:27:17]query_string will be loaded in cgi processing [00:27:17]execute_cgi json_proto POST (null) [00:27:17]execute_cgi path=json_proto method=POST [00:27:17]POST find Content-Length [00:27:17]Host: 172.17.38.133:8080 [00:27:17]Content-Length: 677 [00:27:17]Content-Type: application/json [00:27:17] [00:27:17]POST finish read [00:27:17]Found Content-Length = 677 [00:27:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:17]execute_script... [00:27: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)673466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:17]POST & json_proto [00:27:17]process_json_proto [00:27:17]json parsed OK: [00:27:17]protocol is kg_v1.0 [00:27:17]action value=close_receipt [00:27:17]process_action close_receipt [00:27:17]cmd_close_receipt [00:27:17]MH_GetDate [00:27:17]Write to MH i2c: F0 00 00 04 0B FE [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: F0 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: F0 09 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: F0 09 00 04 0B 00 E7 C8 74 66 BD 8F 7C 64 BC [00:27:17]GetLastDocTimeStamp 1718929509 [00:27:17]current date 1718929639 [00:27:17]FM_GetShiftState [00:27:17]SAM_PROTO_GetShiftState [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 13 01 00 [00:27:17]Write to MH i2c: E2 08 00 05 0B 80 13 01 00 00 00 00 00 8D [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 0E 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 0E 00 05 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 A0 [00:27:17]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:27:17]wFMCommunicate OK [00:27:17]SAM_PROTO_GetShiftState done [00:27:17]FM_GetShiftState done [00:27:17]opened in 1718929509 [00:27:17]opened+sec_in_day 1719015909 [00:27:17]quantity*price = 40039 [00:27:17]sum+1 = 40040 [00:27:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 1 21.06.2024 00:27 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104078 ФПД: 270658448386672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T002719&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104078&fm=270658448386672&tin=02508201610067®Number=0000000000092785&sum=40000 [00:27:18]StoreToDocumentArchive [00:27:18]shift 355 fd 104078 [00:27:18]save to /storage/0355/doc_00104078 [00:27:18]save last doc name /storage/0355/doc_00104078 to /storage/kkm_last_doc_name [00:27:18]save OK [00:27:18]Clear old archive folders... [00:27:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:27:18]tlvbuf is 01119E30 [00:27:18]SAM_PROTO_ClearQueue [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 09 00 00 [00:27:18]Write to MH i2c: E2 08 00 12 0B 80 09 00 00 00 00 00 00 8F [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 03 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 03 00 12 0B 00 90 00 91 [00:27:18]RAPDU: 90 00 [00:27:18]wFMCommunicate OK [00:27:18]SAM_PROTO_ClearQueue done [00:27:18]KKMCreateOFDPacket [00:27:18]OFDProtocolAddRootSTLVToBuf [00:27:18]FM_MakeSignedData [00:27:18]FM_MakeSignedData [00:27:18]SAM_PROTO_SignData [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 0D 01 02 [00:27:18]Write to MH i2c: E2 08 00 13 0B 80 0D 01 02 00 00 00 00 97 [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 03 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 03 00 13 0B 00 90 00 92 [00:27:18]RAPDU: 90 00 [00:27:18]wFMCommunicate OK [00:27:18]wFMCommunicate request_size=255 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 01 00 00 00 F4 03 04 00 E7 C8 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 96 01 00 35 04 06 00 F6 [00:27:18]Write to MH i2c: E2 02 01 14 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 01 00 00 00 F4 03 04 00 E7 C8 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 96 01 00 35 04 06 00 F6 00 00 28 [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 03 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 03 00 14 0B 00 90 00 93 [00:27:19]RAPDU: 90 00 [00:27:19]wFMCommunicate OK [00:27:19]wFMCommunicate request_size=10 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 0D 02 02 05 29 94 AB EA 70 [00:27:19]Write to MH i2c: E2 0D 00 15 0B 80 0D 02 02 05 00 29 94 AB EA 70 00 00 66 [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 03 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 03 00 15 0B 00 90 00 94 [00:27:19]RAPDU: 90 00 [00:27:19]wFMCommunicate OK [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 0D 03 02 [00:27:19]Write to MH i2c: E2 08 00 16 0B 80 0D 03 02 00 00 00 00 9C [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 0B 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 0B 00 16 0B 00 4C DE 69 F6 59 65 B5 61 90 00 FA [00:27:19]RAPDU: 4C DE 69 F6 59 65 B5 61 90 00 [00:27:19]wFMCommunicate OK [00:27:19]SAM_PROTO_SignData done [00:27:19]FM_MakeSignedData done [00:27:19]CreateOFDProtocolMessage [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 11 00 00 [00:27:19]Write to MH i2c: E2 08 00 17 0B 80 11 00 00 00 00 00 00 9C [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 17 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 17 00 17 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 EF [00:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:27:19]wFMCommunicate OK [00:27:19]CreateOFDProtocolMessage done [00:27:19]OFDSenderStorePacket 104078 [00:27:19]StoreOFDPacket docnum=104078 [00:27:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 97 EC 07 01 0C 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 01 00 00 00 F4 03 04 00 E7 C8 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 96 01 00 35 04 06 00 F6 29 94 AB EA 70 4C DE 69 F6 59 65 B5 61 [00:27:19]CheckFolder [00:27:19]dirname=/storage/ofd_packets [00:27:19]CheckFolder done [00:27:19]ProducePacketName [00:27:19]name=ofd_packets/00104078 [00:27:19]NVStorageSaveData ofd_packets/00104078 [00:27:19]File name is /storage/ofd_packets/00104078 [00:27:19]Write 301 bytes [00:27:19]NVStorageSaveData done [00:27:19]OFDSenderStorePacket done [00:27:19]KKMCreateOFDPacket done [00:27:19]NVStorageSaveData kkm_last_timestamp [00:27:19]File name is /storage/kkm_last_timestamp [00:27:19]Write 4 bytes [00:27:19]NVStorageSaveData done [00:27:19]ExternCall_PrintAddStr [00:27:19]wPrintStart [00:27:19]Write to MH i2c: 01 00 00 18 0B 23 [00:27:19]OFD Sender: Processing packet 104078 [packets to send 17, broken 16] [00:27:19]ProducePacketName [00:27:19]name=ofd_packets/00104078 [00:27:19]OFD Sender: To server: pG, [00:27:19]CommunicateWithHost lk.salyk.kg:30040 [00:27:19]ConnectInit lk.salyk.kg [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: 01 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: 01 07 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: 01 07 00 18 0B 00 00 00 00 00 FF 0F 38 [00:27:19]RasterBufferAndPrint [00:27:19]line Счет N : (1)673466 [00:27:19]line ИНН: 02508201610067 [00:27:19]line Контрольно-Кассовый Чек [00:27:19]line ПРОДАЖА [00:27:19]line ТРК (МРК, ГНК) : 32 [00:27:19]line Товар: 2710124130 [00:27:19]line Аи-92-К-5 [00:27:19]line 6.030 * 66.40 [00:27:19]line = 400.39 [00:27:19]line НДС 12% НСП 1% [00:27:19]line > о реализуемом товаре [00:27:19]line ОКРУГЛЕНИЕ: -0.39 [00:27:19]line ИТОГО: 400.00 [00:27:19]line Внесено: 400.00 [00:27:19]line СДАЧА: 0.00 [00:27:19]line НСП 1% : 3.54 [00:27:19]line НДС 12% : 42.52 [00:27:19]line Наличными: 400.00 [00:27:19]line Безнал.: 0.00 [00:27:19]line Место: АЗС № 120 "Партнер Нефть" [00:27:19]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:27:19]line СНО: Общий режим [00:27:19]line Чек 1 21.06.2024 00:27 [00:27:19]line Смена: 355 ФФД: 1.0 [00:27:19]line ЗНМ: 0300000164 [00:27:19]line РНМ: 0000000000092785 [00:27:19]line Версия ККМ: 001 [00:27:19]line ФМ: 0000000000875093 [00:27:19]line ФД: 104078 [00:27:19]line ФПД: 270658448386672 [00:27:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T002719&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104078&fm=270658448386672&tin=02508201610067®Number=0000000000092785&sum=40000 [00:27:19]Connected sock=10 [00:27:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 97 EC 07 01 0C 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 01 00 00 00 F4 03 04 00 E7 C8 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 96 01 00 35 04 06 00 F6 29 94 AB EA 70 4C DE 69 F6 59 65 B5 61 [00:27:19]written 0, free lines is 4095 [00:27:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 42 63 47 00 46 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8E 96 01 00 F4 03 04 00 6B 6F 74 66 B6 04 01 00 00 35 9F F1 9E 72 A3 AE E3 [00:27:19]CommunicateWithHost err = 0 [00:27:19]CheckOFDResponse [00:27:19]1017 (14) - 77093643461234 [00:27:19]1041 (16) - 0000000000875093 [00:27:19]1040 (4) - 104078 [00:27:19]1012 (4) - 20.06.2024 18:05 [00:27:19]1206 (1) - 0 [00:27:19]OFD Sender: Remove packet 104078 [00:27:19]ProducePacketName [00:27:19]name=ofd_packets/00104078 [00:27:19]NVStorageDeleteData [00:27:20]Write to MH i2c: 01 00 00 43 0B 4E [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: 01 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: 01 07 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: 01 07 00 43 0B 00 00 00 00 00 D8 0C 39 [00:27:20]RasterBufferAndPrint [00:27:20]line [00:27:20]line [00:27:20]line [00:27:20]line [00:27:20]line [00:27:20]written 0, free lines is 3295 [00:27:20]MH_Cut [00:27:20]Write to MH i2c: D1 01 00 4A 0B 01 27 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: D1 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: D1 01 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: D1 01 00 4A 0B 00 26 [00:27:20]Write to MH i2c: 01 00 00 4B 0B 56 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]OFD Sender: No OFD packet to send [00:27:20]*** Cut start [00:27:20]*** Partial cut [00:27:20]*** CUTSNS_PIN = 1 [00:27:20]*** CUTSNS_PIN = 0 [00:27:21]*** Brake cut motor [00:27:21]Read from MH i2c: 01 [00:27:21]MH_I2C_Read... [00:27:21]*** Stop cut motor [00:27:21]*** Cut end [00:27:21]Read from MH i2c: 01 07 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: 01 07 00 4B 0B 00 00 00 00 00 FF 0F 6B [00:27:21]process_action close_receipt done [00:27:21]requested_data is exist [00:27:21]produce_requested_data [00:27:21]requested_item fm.sn is exist - process it [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 11 00 00 [00:27:21]Write to MH i2c: E2 08 00 4C 0B 80 11 00 00 00 00 00 00 D1 [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 17 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 17 00 4C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 24 [00:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:27:21]wFMCommunicate OK [00:27:21]requested_item fd.num is exist - process it [00:27:21]SAM_PROTO_GetFieldsCounters [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 13 00 00 [00:27:21]Write to MH i2c: E2 08 00 4D 0B 80 13 00 00 00 00 00 00 D4 [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 62 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 62 00 4D 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8E 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [00:27:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8E 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:21]wFMCommunicate OK [00:27:21]SAM_PROTO_GetFieldsCounters done [00:27:21]requested_item shift.num is exist - process it [00:27:21]requested_item shift.opened is exist - process it [00:27:21]req_shift_opened [00:27:21]FM_GetShiftState [00:27:21]SAM_PROTO_GetShiftState [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 13 01 00 [00:27:21]Write to MH i2c: E2 08 00 4E 0B 80 13 01 00 00 00 00 00 D6 [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:21]Read from MH i2c: E2 0E 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 0E 00 4E 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 E9 [00:27:21]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:27:21]wFMCommunicate OK [00:27:21]SAM_PROTO_GetShiftState done [00:27:21]FM_GetShiftState done [00:27:21]req_shift_opened done [00:27:21]requested_item shift.open_date is exist - process it [00:27:21]req_shift_open_date [00:27:21]req_shift_open_date done [00:27:21]produce_requested_data done [00:27:21]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104078,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [00:27:21]process_action_free close_receipt [00:27:21]json_value_free [00:27:21]json_value_free done [00:27:21]process_json_proto returns [00:27:21]Send response to host [00:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104078,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [00:27:21]free response buf [00:27:21]execute_script done [00:27:21]execute_script returns [00:27:21]free content buf [00:27:21]Sock 9.Close socket [00:27:21]Sock 9.Thread stoped [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:03]accept exits with 7 [00:48:03]New connection [00:48:03]New thread 3066715492 created [00:48:03]Thread 3066858852 joined [00:48:03]Waiting for new connection... [00:48:03] Sock 7.Parse request [00:48:03]Sock 7.Check first char [00:48:03]Sock 7.First char is OK [00:48:03]request: POST /json_proto HTTP/1.0 [00:48:03]Method: POST [00:48:03]URL: /json_proto [00:48:03]Method is POST - this is cgi request [00:48:03]url: /json_proto [00:48:03]query_string will be loaded in cgi processing [00:48:03]execute_cgi json_proto POST (null) [00:48:03]execute_cgi path=json_proto method=POST [00:48:03]POST find Content-Length [00:48:03]Host: 172.17.38.133:8080 [00:48:03]Content-Length: 800 [00:48:03]Content-Type: application/json [00:48:03] [00:48:03]POST finish read [00:48:03]Found Content-Length = 800 [00:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:03]execute_script... [00:48: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)673467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:03]POST & json_proto [00:48:03]process_json_proto [00:48:03]json parsed OK: [00:48:03]protocol is kg_v1.0 [00:48:03]action value=close_receipt [00:48:03]process_action close_receipt [00:48:03]cmd_close_receipt [00:48:03]MH_GetDate [00:48:03]Write to MH i2c: F0 00 00 4F 0B 49 [00:48:03]Write i2c OK [00:48:03]MH_I2C_Read... [00:48:03]Read from MH i2c: F0 [00:48:03]MH_I2C_Read... [00:48:03]Read from MH i2c: F0 09 00 [00:48:03]MH_I2C_Read... [00:48:03]Read from MH i2c: F0 09 00 4F 0B 00 C5 CD 74 66 BD 8F 7C 64 EA [00:48:03]GetLastDocTimeStamp 1718929639 [00:48:03]current date 1718930885 [00:48:03]FM_GetShiftState [00:48:03]SAM_PROTO_GetShiftState [00:48:03]wFMCommunicate request_size=4 [00:48:03]MH_SAM_APDU [00:48:03]CAPDU: 80 13 01 00 [00:48:03]Write to MH i2c: E2 08 00 50 0B 80 13 01 00 00 00 00 00 D8 [00:48:03]Write i2c OK [00:48:03]MH_I2C_Read... [00:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:03]Read from MH i2c: E2 [00:48:03]MH_I2C_Read... [00:48:03]Read from MH i2c: E2 0E 00 [00:48:03]MH_I2C_Read... [00:48:03]Read from MH i2c: E2 0E 00 50 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 EB [00:48:03]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:48:03]wFMCommunicate OK [00:48:03]SAM_PROTO_GetShiftState done [00:48:03]FM_GetShiftState done [00:48:03]opened in 1718929509 [00:48:03]opened+sec_in_day 1719015909 [00:48:03]quantity*price = 33200 [00:48:03]sum+1 = 33201 [00:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 0.00 Безнал.: 332.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 2 21.06.2024 00:48 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000875093 ФД: 104079 ФПД: 160507465321794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T004805&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104079&fm=160507465321794&tin=02508201610067®Number=0000000000092785&sum=33200 [00:48:04]StoreToDocumentArchive [00:48:04]shift 355 fd 104079 [00:48:04]save to /storage/0355/doc_00104079 [00:48:04]save last doc name /storage/0355/doc_00104079 to /storage/kkm_last_doc_name [00:48:04]save OK [00:48:04]Clear old archive folders... [00:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:04]tlvbuf is 011167E0 [00:48:04]SAM_PROTO_ClearQueue [00:48:04]wFMCommunicate request_size=4 [00:48:04]MH_SAM_APDU [00:48:04]CAPDU: 80 09 00 00 [00:48:04]Write to MH i2c: E2 08 00 5D 0B 80 09 00 00 00 00 00 00 DA [00:48:04]Write i2c OK [00:48:04]MH_I2C_Read... [00:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:04]Read from MH i2c: E2 [00:48:04]MH_I2C_Read... [00:48:04]Read from MH i2c: E2 03 00 [00:48:04]MH_I2C_Read... [00:48:04]Read from MH i2c: E2 03 00 5D 0B 00 90 00 DC [00:48:04]RAPDU: 90 00 [00:48:04]wFMCommunicate OK [00:48:04]SAM_PROTO_ClearQueue done [00:48:04]KKMCreateOFDPacket [00:48:04]OFDProtocolAddRootSTLVToBuf [00:48:04]FM_MakeSignedData [00:48:04]FM_MakeSignedData [00:48:04]SAM_PROTO_SignData [00:48:04]wFMCommunicate request_size=4 [00:48:04]MH_SAM_APDU [00:48:04]CAPDU: 80 0D 01 02 [00:48:04]Write to MH i2c: E2 08 00 5E 0B 80 0D 01 02 00 00 00 00 E2 [00:48:04]Write i2c OK [00:48:04]MH_I2C_Read... [00:48:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:05]Read from MH i2c: E2 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: E2 03 00 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: E2 03 00 5E 0B 00 90 00 DD [00:48:05]RAPDU: 90 00 [00:48:05]wFMCommunicate OK [00:48:05]wFMCommunicate request_size=255 [00:48:05]MH_SAM_APDU [00:48: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 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C5 CD 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 96 01 00 35 04 06 00 91 [00:48:05]Write to MH i2c: E2 02 01 5F 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C5 CD 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 96 01 00 35 04 06 00 91 00 00 AC [00:48:05]Write i2c OK [00:48:05]MH_I2C_Read... [00:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:05]Read from MH i2c: E2 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: E2 03 00 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: E2 03 00 5F 0B 00 90 00 DE [00:48:05]RAPDU: 90 00 [00:48:05]wFMCommunicate OK [00:48:05]wFMCommunicate request_size=10 [00:48:05]MH_SAM_APDU [00:48:05]CAPDU: 80 0D 02 02 05 FB 0E 74 4D 42 [00:48:05]Write to MH i2c: E2 0D 00 60 0B 80 0D 02 02 05 00 FB 0E 74 4D 42 00 00 FB [00:48:05]Write i2c OK [00:48:05]MH_I2C_Read... [00:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:05]Read from MH i2c: E2 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: E2 03 00 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: E2 03 00 60 0B 00 90 00 DF [00:48:05]RAPDU: 90 00 [00:48:05]wFMCommunicate OK [00:48:05]wFMCommunicate request_size=4 [00:48:05]MH_SAM_APDU [00:48:05]CAPDU: 80 0D 03 02 [00:48:05]Write to MH i2c: E2 08 00 61 0B 80 0D 03 02 00 00 00 00 E7 [00:48:05]Write i2c OK [00:48:05]MH_I2C_Read... [00:48:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:05]Read from MH i2c: E2 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: E2 0B 00 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: E2 0B 00 61 0B 00 30 E6 A3 AB 5E CF 8F 4E 90 00 56 [00:48:05]RAPDU: 30 E6 A3 AB 5E CF 8F 4E 90 00 [00:48:05]wFMCommunicate OK [00:48:05]SAM_PROTO_SignData done [00:48:05]FM_MakeSignedData done [00:48:05]CreateOFDProtocolMessage [00:48:05]wFMCommunicate request_size=4 [00:48:05]MH_SAM_APDU [00:48:05]CAPDU: 80 11 00 00 [00:48:05]Write to MH i2c: E2 08 00 62 0B 80 11 00 00 00 00 00 00 E7 [00:48:05]Write i2c OK [00:48:05]MH_I2C_Read... [00:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:05]Read from MH i2c: E2 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: E2 17 00 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: E2 17 00 62 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 3A [00:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:48:05]wFMCommunicate OK [00:48:05]CreateOFDProtocolMessage done [00:48:05]OFDSenderStorePacket 104079 [00:48:05]StoreOFDPacket docnum=104079 [00:48:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DF 3B 07 01 41 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C5 CD 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 96 01 00 35 04 06 00 91 FB 0E 74 4D 42 30 E6 A3 AB 5E CF 8F 4E [00:48:05]CheckFolder [00:48:05]dirname=/storage/ofd_packets [00:48:05]CheckFolder done [00:48:05]ProducePacketName [00:48:05]name=ofd_packets/00104079 [00:48:05]NVStorageSaveData ofd_packets/00104079 [00:48:05]File name is /storage/ofd_packets/00104079 [00:48:05]Write 301 bytes [00:48:05]NVStorageSaveData done [00:48:05]OFDSenderStorePacket done [00:48:05]KKMCreateOFDPacket done [00:48:05]NVStorageSaveData kkm_last_timestamp [00:48:05]File name is /storage/kkm_last_timestamp [00:48:05]Write 4 bytes [00:48:05]NVStorageSaveData done [00:48:05]ExternCall_PrintAddStr [00:48:05]wPrintStart [00:48:05]Write to MH i2c: 01 00 00 63 0B 6E [00:48:05]Write i2c OK [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: 01 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: 01 07 00 [00:48:05]MH_I2C_Read... [00:48:05]Read from MH i2c: 01 07 00 63 0B 00 00 00 00 00 FF 0F 83 [00:48:05]RasterBufferAndPrint [00:48:05]line Счет N : (1)673467 [00:48:05]line ИНН: 02508201610067 [00:48:05]line Контрольно-Кассовый Чек [00:48:05]line ПРОДАЖА [00:48:05]line ТРК (МРК, ГНК) : 32 [00:48:05]line Товар: 2710124130 [00:48:05]line Аи-92-К-5 [00:48:05]line 5.000 * 66.40 [00:48:05]line = 332.00 [00:48:05]line НДС 12% НСП 1% [00:48:05]line > о реализуемом товаре [00:48:05]line ИТОГО: 332.00 [00:48:05]line НСП 1% : 2.94 [00:48:05]line НДС 12% : 35.26 [00:48:05]line Наличными: 0.00 [00:48:05]line Безнал.: 332.00 [00:48:05]line Место: АЗС № 120 "Партнер Нефть" [00:48:05]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:48:05]line СНО: Общий режим [00:48:05]line Чек 2 21.06.2024 00:48 [00:48:05]line Смена: 355 ФФД: 1.0 [00:48:05]line ЗНМ: 0300000164 [00:48:05]line РНМ: 0000000000092785 [00:48:05]line Версия ККМ: 001 [00:48:05]line Платежная система: O! деньги [00:48:05]line ФМ: 0000000000875093 [00:48:05]line ФД: 104079 [00:48:05]line ФПД: 160507465321794 [00:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T004805&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104079&fm=160507465321794&tin=02508201610067®Number=0000000000092785&sum=33200 [00:48:05]OFD Sender: Processing packet 104079 [packets to send 17, broken 16] [00:48:05]ProducePacketName [00:48:05]name=ofd_packets/00104079 [00:48:05]OFD Sender: To server: pG, [00:48:05]CommunicateWithHost lk.salyk.kg:30040 [00:48:05]ConnectInit lk.salyk.kg [00:48:05]written 0, free lines is 4095 [00:48:05]Connected sock=10 [00:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 DF 3B 07 01 41 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C5 CD 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 96 01 00 35 04 06 00 91 FB 0E 74 4D 42 30 E6 A3 AB 5E CF 8F 4E [00:48:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B5 D0 47 00 95 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 8F 96 01 00 F4 03 04 00 49 74 74 66 B6 04 01 00 00 3E 01 1B 4A E9 EE C6 E4 [00:48:06]CommunicateWithHost err = 0 [00:48:06]CheckOFDResponse [00:48:06]1017 (14) - 77093643461234 [00:48:06]1041 (16) - 0000000000875093 [00:48:06]1040 (4) - 104079 [00:48:06]1012 (4) - 20.06.2024 18:26 [00:48:06]1206 (1) - 0 [00:48:06]OFD Sender: Remove packet 104079 [00:48:06]ProducePacketName [00:48:06]name=ofd_packets/00104079 [00:48:06]NVStorageDeleteData [00:48:06]Write to MH i2c: 01 00 00 8D 0B 98 [00:48:06]Write i2c OK [00:48:06]MH_I2C_Read... [00:48:06]Read from MH i2c: 01 [00:48:06]MH_I2C_Read... [00:48:06]Read from MH i2c: 01 07 00 [00:48:06]MH_I2C_Read... [00:48:06]Read from MH i2c: 01 07 00 8D 0B 00 00 00 00 00 F2 0C 9D [00:48:06]RasterBufferAndPrint [00:48:06]line [00:48:06]line [00:48:06]line [00:48:06]line [00:48:06]line [00:48:06]written 0, free lines is 3320 [00:48:06]MH_Cut [00:48:06]Write to MH i2c: D1 01 00 94 0B 01 71 [00:48:06]Write i2c OK [00:48:06]MH_I2C_Read... [00:48:06]Read from MH i2c: D1 [00:48:06]MH_I2C_Read... [00:48:06]Read from MH i2c: D1 01 00 [00:48:06]MH_I2C_Read... [00:48:06]Read from MH i2c: D1 01 00 94 0B 00 70 [00:48:06]Write to MH i2c: 01 00 00 95 0B A0 [00:48:06]Write i2c OK [00:48:06]MH_I2C_Read... [00:48:06]OFD Sender: No OFD packet to send [00:48:07]*** Cut start [00:48:07]*** Partial cut [00:48:07]*** CUTSNS_PIN = 1 [00:48:07]*** CUTSNS_PIN = 0 [00:48:07]*** Brake cut motor [00:48:07]Read from MH i2c: 01 [00:48:07]MH_I2C_Read... [00:48:07]*** Stop cut motor [00:48:07]*** Cut end [00:48:07]Read from MH i2c: 01 07 00 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: 01 07 00 95 0B 00 00 00 00 00 FF 0F B5 [00:48:07]process_action close_receipt done [00:48:07]requested_data is exist [00:48:07]produce_requested_data [00:48:07]requested_item fm.sn is exist - process it [00:48:07]wFMCommunicate request_size=4 [00:48:07]MH_SAM_APDU [00:48:07]CAPDU: 80 11 00 00 [00:48:07]Write to MH i2c: E2 08 00 96 0B 80 11 00 00 00 00 00 00 1B [00:48:07]Write i2c OK [00:48:07]MH_I2C_Read... [00:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:07]Read from MH i2c: E2 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: E2 17 00 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: E2 17 00 96 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 6E [00:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:48:07]wFMCommunicate OK [00:48:07]requested_item fd.num is exist - process it [00:48:07]SAM_PROTO_GetFieldsCounters [00:48:07]wFMCommunicate request_size=4 [00:48:07]MH_SAM_APDU [00:48:07]CAPDU: 80 13 00 00 [00:48:07]Write to MH i2c: E2 08 00 97 0B 80 13 00 00 00 00 00 00 1E [00:48:07]Write i2c OK [00:48:07]MH_I2C_Read... [00:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:07]Read from MH i2c: E2 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: E2 62 00 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: E2 62 00 97 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8F 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [00:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 8F 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:07]wFMCommunicate OK [00:48:07]SAM_PROTO_GetFieldsCounters done [00:48:07]requested_item shift.num is exist - process it [00:48:07]requested_item shift.opened is exist - process it [00:48:07]req_shift_opened [00:48:07]FM_GetShiftState [00:48:07]SAM_PROTO_GetShiftState [00:48:07]wFMCommunicate request_size=4 [00:48:07]MH_SAM_APDU [00:48:07]CAPDU: 80 13 01 00 [00:48:07]Write to MH i2c: E2 08 00 98 0B 80 13 01 00 00 00 00 00 20 [00:48:07]Write i2c OK [00:48:07]MH_I2C_Read... [00:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:07]Read from MH i2c: E2 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: E2 0E 00 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: E2 0E 00 98 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 33 [00:48:07]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:48:07]wFMCommunicate OK [00:48:07]SAM_PROTO_GetShiftState done [00:48:07]FM_GetShiftState done [00:48:07]req_shift_opened done [00:48:07]requested_item shift.open_date is exist - process it [00:48:07]req_shift_open_date [00:48:07]req_shift_open_date done [00:48:07]produce_requested_data done [00:48:07]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104079,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [00:48:07]process_action_free close_receipt [00:48:07]json_value_free [00:48:07]json_value_free done [00:48:07]process_json_proto returns [00:48:07]Send response to host [00:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104079,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [00:48:07]free response buf [00:48:07]execute_script done [00:48:07]execute_script returns [00:48:07]free content buf [00:48:07]Sock 7.Close socket [00:48:07]Sock 7.Thread stoped [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:30]accept exits with 9 [00:48:30]New connection [00:48:30]New thread 3066858852 created [00:48:30]Thread 3066715492 joined [00:48:30]Waiting for new connection... [00:48:30] Sock 9.Parse request [00:48:30]Sock 9.Check first char [00:48:30]Sock 9.First char is OK [00:48:30]request: POST /json_proto HTTP/1.0 [00:48:30]Method: POST [00:48:30]URL: /json_proto [00:48:30]Method is POST - this is cgi request [00:48:30]url: /json_proto [00:48:30]query_string will be loaded in cgi processing [00:48:30]execute_cgi json_proto POST (null) [00:48:30]execute_cgi path=json_proto method=POST [00:48:30]POST find Content-Length [00:48:30]Host: 172.17.38.133:8080 [00:48:30]Content-Length: 822 [00:48:30]Content-Type: application/json [00:48:30] [00:48:30]POST finish read [00:48:30]Found Content-Length = 822 [00:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.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" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:30]execute_script... [00:48: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)673468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 10.000, "sum" : 729.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" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:30]POST & json_proto [00:48:30]process_json_proto [00:48:30]json parsed OK: [00:48:30]protocol is kg_v1.0 [00:48:30]action value=close_receipt [00:48:30]process_action close_receipt [00:48:30]cmd_close_receipt [00:48:30]MH_GetDate [00:48:30]Write to MH i2c: F0 00 00 99 0B 93 [00:48:30]Write i2c OK [00:48:30]MH_I2C_Read... [00:48:30]Read from MH i2c: F0 [00:48:30]MH_I2C_Read... [00:48:30]Read from MH i2c: F0 09 00 [00:48:30]MH_I2C_Read... [00:48:30]Read from MH i2c: F0 09 00 99 0B 00 E0 CD 74 66 BD 8F 7C 64 4F [00:48:30]GetLastDocTimeStamp 1718930885 [00:48:30]current date 1718930912 [00:48:30]FM_GetShiftState [00:48:30]SAM_PROTO_GetShiftState [00:48:30]wFMCommunicate request_size=4 [00:48:30]MH_SAM_APDU [00:48:30]CAPDU: 80 13 01 00 [00:48:30]Write to MH i2c: E2 08 00 9A 0B 80 13 01 00 00 00 00 00 22 [00:48:30]Write i2c OK [00:48:30]MH_I2C_Read... [00:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:30]Read from MH i2c: E2 [00:48:30]MH_I2C_Read... [00:48:30]Read from MH i2c: E2 0E 00 [00:48:30]MH_I2C_Read... [00:48:30]Read from MH i2c: E2 0E 00 9A 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 35 [00:48:30]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:48:30]wFMCommunicate OK [00:48:30]SAM_PROTO_GetShiftState done [00:48:30]FM_GetShiftState done [00:48:30]opened in 1718929509 [00:48:30]opened+sec_in_day 1719015909 [00:48:30]quantity*price = 72900 [00:48:30]sum+1 = 72901 [00:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.00 НСП 1% : 6.45 НДС 12% : 77.42 Наличными: 0.00 Безнал.: 729.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 3 21.06.2024 00:48 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104080 ФПД: 79356819737523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T004832&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104080&fm=79356819737523&tin=02508201610067®Number=0000000000092785&sum=72900 [00:48:32]StoreToDocumentArchive [00:48:32]shift 355 fd 104080 [00:48:32]save to /storage/0355/doc_00104080 [00:48:32]save last doc name /storage/0355/doc_00104080 to /storage/kkm_last_doc_name [00:48:32]save OK [00:48:32]Clear old archive folders... [00:48:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:48:32]tlvbuf is 01121E50 [00:48:32]SAM_PROTO_ClearQueue [00:48:32]wFMCommunicate request_size=4 [00:48:32]MH_SAM_APDU [00:48:32]CAPDU: 80 09 00 00 [00:48:32]Write to MH i2c: E2 08 00 A7 0B 80 09 00 00 00 00 00 00 24 [00:48:32]Write i2c OK [00:48:32]MH_I2C_Read... [00:48:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:32]Read from MH i2c: E2 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 03 00 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 03 00 A7 0B 00 90 00 26 [00:48:32]RAPDU: 90 00 [00:48:32]wFMCommunicate OK [00:48:32]SAM_PROTO_ClearQueue done [00:48:32]KKMCreateOFDPacket [00:48:32]OFDProtocolAddRootSTLVToBuf [00:48:32]FM_MakeSignedData [00:48:32]FM_MakeSignedData [00:48:32]SAM_PROTO_SignData [00:48:32]wFMCommunicate request_size=4 [00:48:32]MH_SAM_APDU [00:48:32]CAPDU: 80 0D 01 02 [00:48:32]Write to MH i2c: E2 08 00 A8 0B 80 0D 01 02 00 00 00 00 2C [00:48:32]Write i2c OK [00:48:32]MH_I2C_Read... [00:48:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:32]Read from MH i2c: E2 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 03 00 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 03 00 A8 0B 00 90 00 27 [00:48:32]RAPDU: 90 00 [00:48:32]wFMCommunicate OK [00:48:32]wFMCommunicate request_size=255 [00:48:32]MH_SAM_APDU [00:48:32]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E0 CD 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 96 01 00 35 04 06 00 [00:48:32]Write to MH i2c: E2 02 01 A9 0B 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E0 CD 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 96 01 00 35 04 06 00 00 00 DF [00:48:32]Write i2c OK [00:48:32]MH_I2C_Read... [00:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:32]Read from MH i2c: E2 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 03 00 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 03 00 A9 0B 00 90 00 28 [00:48:32]RAPDU: 90 00 [00:48:32]wFMCommunicate OK [00:48:32]wFMCommunicate request_size=11 [00:48:32]MH_SAM_APDU [00:48:32]CAPDU: 80 0D 02 02 06 48 2C B3 0D 0B B3 [00:48:32]Write to MH i2c: E2 0E 00 AA 0B 80 0D 02 02 06 00 48 2C B3 0D 0B B3 00 00 2D [00:48:32]Write i2c OK [00:48:32]MH_I2C_Read... [00:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:32]Read from MH i2c: E2 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 03 00 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 03 00 AA 0B 00 90 00 29 [00:48:32]RAPDU: 90 00 [00:48:32]wFMCommunicate OK [00:48:32]wFMCommunicate request_size=4 [00:48:32]MH_SAM_APDU [00:48:32]CAPDU: 80 0D 03 02 [00:48:32]Write to MH i2c: E2 08 00 AB 0B 80 0D 03 02 00 00 00 00 31 [00:48:32]Write i2c OK [00:48:32]MH_I2C_Read... [00:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:32]Read from MH i2c: E2 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 0B 00 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 0B 00 AB 0B 00 0B 78 C3 C2 5F 59 34 8E 90 00 B4 [00:48:32]RAPDU: 0B 78 C3 C2 5F 59 34 8E 90 00 [00:48:32]wFMCommunicate OK [00:48:32]SAM_PROTO_SignData done [00:48:32]FM_MakeSignedData done [00:48:32]CreateOFDProtocolMessage [00:48:32]wFMCommunicate request_size=4 [00:48:32]MH_SAM_APDU [00:48:32]CAPDU: 80 11 00 00 [00:48:32]Write to MH i2c: E2 08 00 AC 0B 80 11 00 00 00 00 00 00 31 [00:48:32]Write i2c OK [00:48:32]MH_I2C_Read... [00:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:32]Read from MH i2c: E2 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 17 00 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: E2 17 00 AC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 84 [00:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:48:32]wFMCommunicate OK [00:48:32]CreateOFDProtocolMessage done [00:48:32]OFDSenderStorePacket 104080 [00:48:32]StoreOFDPacket docnum=104080 [00:48:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E1 9E 08 01 4E 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E0 CD 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 96 01 00 35 04 06 00 48 2C B3 0D 0B B3 0B 78 C3 C2 5F 59 34 8E [00:48:32]CheckFolder [00:48:32]dirname=/storage/ofd_packets [00:48:32]CheckFolder done [00:48:32]ProducePacketName [00:48:32]name=ofd_packets/00104080 [00:48:32]NVStorageSaveData ofd_packets/00104080 [00:48:32]File name is /storage/ofd_packets/00104080 [00:48:32]Write 302 bytes [00:48:32]NVStorageSaveData done [00:48:32]OFDSenderStorePacket done [00:48:32]KKMCreateOFDPacket done [00:48:32]NVStorageSaveData kkm_last_timestamp [00:48:32]File name is /storage/kkm_last_timestamp [00:48:32]Write 4 bytes [00:48:32]NVStorageSaveData done [00:48:32]ExternCall_PrintAddStr [00:48:32]wPrintStart [00:48:32]Write to MH i2c: 01 00 00 AD 0B B8 [00:48:32]OFD Sender: Processing packet 104080 [packets to send 17, broken 16] [00:48:32]ProducePacketName [00:48:32]name=ofd_packets/00104080 [00:48:32]OFD Sender: To server: pG, [00:48:32]CommunicateWithHost lk.salyk.kg:30040 [00:48:32]ConnectInit lk.salyk.kg [00:48:32]Write i2c OK [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: 01 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: 01 07 00 [00:48:32]MH_I2C_Read... [00:48:32]Read from MH i2c: 01 07 00 AD 0B 00 00 00 00 00 FF 0F CD [00:48:32]RasterBufferAndPrint [00:48:32]line Счет N : (1)673468 [00:48:32]line ИНН: 02508201610067 [00:48:32]line Контрольно-Кассовый Чек [00:48:32]line ПРОДАЖА [00:48:32]line ТРК (МРК, ГНК) : 11 [00:48:32]line Товар: 2710194210 [00:48:32]line ДТ(л)-К-5 [00:48:32]line 10.000 * 72.90 [00:48:32]line = 729.00 [00:48:32]line НДС 12% НСП 1% [00:48:32]line > о реализуемом товаре [00:48:32]line ИТОГО: 729.00 [00:48:32]line НСП 1% : 6.45 [00:48:32]line НДС 12% : 77.42 [00:48:32]line Наличными: 0.00 [00:48:32]line Безнал.: 729.00 [00:48:32]line Место: АЗС № 120 "Партнер Нефть" [00:48:32]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [00:48:32]line СНО: Общий режим [00:48:32]line Чек 3 21.06.2024 00:48 [00:48:32]line Смена: 355 ФФД: 1.0 [00:48:32]line ЗНМ: 0300000164 [00:48:32]line РНМ: 0000000000092785 [00:48:32]line Версия ККМ: 001 [00:48:32]line Платежная система: Бакай Банк [00:48:32]line ФМ: 0000000000875093 [00:48:32]line ФД: 104080 [00:48:32]line ФПД: 79356819737523 [00:48:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T004832&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104080&fm=79356819737523&tin=02508201610067®Number=0000000000092785&sum=72900 [00:48:32]Connected sock=10 [00:48:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 E1 9E 08 01 4E 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 1C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 E0 CD 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 96 01 00 35 04 06 00 48 2C B3 0D 0B B3 0B 78 C3 C2 5F 59 34 8E [00:48:32]written 0, free lines is 4095 [00:48:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 B1 E8 47 00 64 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 90 96 01 00 F4 03 04 00 64 74 74 66 B6 04 01 00 00 18 56 95 EF B6 B5 58 24 [00:48:33]CommunicateWithHost err = 0 [00:48:33]CheckOFDResponse [00:48:33]1017 (14) - 77093643461234 [00:48:33]1041 (16) - 0000000000875093 [00:48:33]1040 (4) - 104080 [00:48:33]1012 (4) - 20.06.2024 18:26 [00:48:33]1206 (1) - 0 [00:48:33]OFD Sender: Remove packet 104080 [00:48:33]ProducePacketName [00:48:33]name=ofd_packets/00104080 [00:48:33]NVStorageDeleteData [00:48:33]Write to MH i2c: 01 00 00 D7 0B E2 [00:48:33]Write i2c OK [00:48:33]MH_I2C_Read... [00:48:33]Read from MH i2c: 01 [00:48:33]MH_I2C_Read... [00:48:33]Read from MH i2c: 01 07 00 [00:48:33]MH_I2C_Read... [00:48:33]Read from MH i2c: 01 07 00 D7 0B 00 00 00 00 00 E4 0C D9 [00:48:33]RasterBufferAndPrint [00:48:33]line [00:48:33]line [00:48:33]line [00:48:33]line [00:48:33]line [00:48:33]written 0, free lines is 3307 [00:48:33]MH_Cut [00:48:33]Write to MH i2c: D1 01 00 DE 0B 01 BB [00:48:33]Write i2c OK [00:48:33]MH_I2C_Read... [00:48:33]Read from MH i2c: D1 [00:48:33]MH_I2C_Read... [00:48:33]Read from MH i2c: D1 01 00 [00:48:33]MH_I2C_Read... [00:48:33]Read from MH i2c: D1 01 00 DE 0B 00 BA [00:48:33]Write to MH i2c: 01 00 00 DF 0B EA [00:48:33]Write i2c OK [00:48:33]MH_I2C_Read... [00:48:33]OFD Sender: No OFD packet to send [00:48:34]*** Cut start [00:48:34]*** Partial cut [00:48:34]*** CUTSNS_PIN = 1 [00:48:34]*** CUTSNS_PIN = 0 [00:48:34]*** Brake cut motor [00:48:34]Read from MH i2c: 01 [00:48:34]MH_I2C_Read... [00:48:34]*** Stop cut motor [00:48:34]*** Cut end [00:48:34]Read from MH i2c: 01 07 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: 01 07 00 DF 0B 00 00 00 00 00 FF 0F FF [00:48:34]process_action close_receipt done [00:48:34]requested_data is exist [00:48:34]produce_requested_data [00:48:34]requested_item fm.sn is exist - process it [00:48:34]wFMCommunicate request_size=4 [00:48:34]MH_SAM_APDU [00:48:34]CAPDU: 80 11 00 00 [00:48:34]Write to MH i2c: E2 08 00 E0 0B 80 11 00 00 00 00 00 00 65 [00:48:34]Write i2c OK [00:48:34]MH_I2C_Read... [00:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:34]Read from MH i2c: E2 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 17 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 17 00 E0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B8 [00:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [00:48:34]wFMCommunicate OK [00:48:34]requested_item fd.num is exist - process it [00:48:34]SAM_PROTO_GetFieldsCounters [00:48:34]wFMCommunicate request_size=4 [00:48:34]MH_SAM_APDU [00:48:34]CAPDU: 80 13 00 00 [00:48:34]Write to MH i2c: E2 08 00 E1 0B 80 13 00 00 00 00 00 00 68 [00:48:34]Write i2c OK [00:48:34]MH_I2C_Read... [00:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:34]Read from MH i2c: E2 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 62 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 62 00 E1 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [00:48:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 90 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:34]wFMCommunicate OK [00:48:34]SAM_PROTO_GetFieldsCounters done [00:48:34]requested_item shift.num is exist - process it [00:48:34]requested_item shift.opened is exist - process it [00:48:34]req_shift_opened [00:48:34]FM_GetShiftState [00:48:34]SAM_PROTO_GetShiftState [00:48:34]wFMCommunicate request_size=4 [00:48:34]MH_SAM_APDU [00:48:34]CAPDU: 80 13 01 00 [00:48:34]Write to MH i2c: E2 08 00 E2 0B 80 13 01 00 00 00 00 00 6A [00:48:34]Write i2c OK [00:48:34]MH_I2C_Read... [00:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:34]Read from MH i2c: E2 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 0E 00 [00:48:34]MH_I2C_Read... [00:48:34]Read from MH i2c: E2 0E 00 E2 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7D [00:48:34]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [00:48:34]wFMCommunicate OK [00:48:34]SAM_PROTO_GetShiftState done [00:48:34]FM_GetShiftState done [00:48:34]req_shift_opened done [00:48:34]requested_item shift.open_date is exist - process it [00:48:34]req_shift_open_date [00:48:34]req_shift_open_date done [00:48:34]produce_requested_data done [00:48:34]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104080,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [00:48:34]process_action_free close_receipt [00:48:34]json_value_free [00:48:34]json_value_free done [00:48:34]process_json_proto returns [00:48:34]Send response to host [00:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104080,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [00:48:34]free response buf [00:48:34]execute_script done [00:48:34]execute_script returns [00:48:34]free content buf [00:48:34]Sock 9.Close socket [00:48:34]Sock 9.Thread stoped [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:18]accept exits with 7 [01:02:18]New connection [01:02:18]New thread 3066715492 created [01:02:18]Thread 3066858852 joined [01:02:18]Waiting for new connection... [01:02:18] Sock 7.Parse request [01:02:18]Sock 7.Check first char [01:02:18]Sock 7.First char is OK [01:02:18]request: POST /json_proto HTTP/1.0 [01:02:18]Method: POST [01:02:18]URL: /json_proto [01:02:18]Method is POST - this is cgi request [01:02:18]url: /json_proto [01:02:18]query_string will be loaded in cgi processing [01:02:18]execute_cgi json_proto POST (null) [01:02:18]execute_cgi path=json_proto method=POST [01:02:18]POST find Content-Length [01:02:18]Host: 172.17.38.133:8080 [01:02:18]Content-Length: 677 [01:02:18]Content-Type: application/json [01:02:18] [01:02:18]POST finish read [01:02:18]Found Content-Length = 677 [01:02:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "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" ] } } [01:02:18]execute_script... [01:02:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "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" ] } } [01:02:18]POST & json_proto [01:02:18]process_json_proto [01:02:18]json parsed OK: [01:02:18]protocol is kg_v1.0 [01:02:18]action value=close_receipt [01:02:18]process_action close_receipt [01:02:18]cmd_close_receipt [01:02:18]MH_GetDate [01:02:18]Write to MH i2c: F0 00 00 E3 0B DD [01:02:18]Write i2c OK [01:02:18]MH_I2C_Read... [01:02:18]Read from MH i2c: F0 [01:02:18]MH_I2C_Read... [01:02:18]Read from MH i2c: F0 09 00 [01:02:18]MH_I2C_Read... [01:02:18]Read from MH i2c: F0 09 00 E3 0B 00 1C D1 74 66 BD 8F 7C 64 D9 [01:02:18]GetLastDocTimeStamp 1718930912 [01:02:18]current date 1718931740 [01:02:18]FM_GetShiftState [01:02:18]SAM_PROTO_GetShiftState [01:02:18]wFMCommunicate request_size=4 [01:02:18]MH_SAM_APDU [01:02:18]CAPDU: 80 13 01 00 [01:02:18]Write to MH i2c: E2 08 00 E4 0B 80 13 01 00 00 00 00 00 6C [01:02:18]Write i2c OK [01:02:18]MH_I2C_Read... [01:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:18]Read from MH i2c: E2 [01:02:18]MH_I2C_Read... [01:02:18]Read from MH i2c: E2 0E 00 [01:02:18]MH_I2C_Read... [01:02:18]Read from MH i2c: E2 0E 00 E4 0B 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 7F [01:02:18]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [01:02:18]wFMCommunicate OK [01:02:18]SAM_PROTO_GetShiftState done [01:02:18]FM_GetShiftState done [01:02:18]opened in 1718929509 [01:02:18]opened+sec_in_day 1719015909 [01:02:18]quantity*price = 65005 [01:02:18]sum+1 = 65007 [01:02:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 4 21.06.2024 01:02 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104081 ФПД: 227033840983011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T010220&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104081&fm=227033840983011&tin=02508201610067®Number=0000000000092785&sum=65000 [01:02:19]StoreToDocumentArchive [01:02:19]shift 355 fd 104081 [01:02:19]save to /storage/0355/doc_00104081 [01:02:19]save last doc name /storage/0355/doc_00104081 to /storage/kkm_last_doc_name [01:02:19]save OK [01:02:19]Clear old archive folders... [01:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:02:19]tlvbuf is 010EBB00 [01:02:19]SAM_PROTO_ClearQueue [01:02:19]wFMCommunicate request_size=4 [01:02:19]MH_SAM_APDU [01:02:19]CAPDU: 80 09 00 00 [01:02:19]Write to MH i2c: E2 08 00 F1 0B 80 09 00 00 00 00 00 00 6E [01:02:19]Write i2c OK [01:02:19]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 F1 0B 00 90 00 70 [01:02:20]RAPDU: 90 00 [01:02:20]wFMCommunicate OK [01:02:20]SAM_PROTO_ClearQueue done [01:02:20]KKMCreateOFDPacket [01:02:20]OFDProtocolAddRootSTLVToBuf [01:02:20]FM_MakeSignedData [01:02:20]FM_MakeSignedData [01:02:20]SAM_PROTO_SignData [01:02:20]wFMCommunicate request_size=4 [01:02:20]MH_SAM_APDU [01:02:20]CAPDU: 80 0D 01 02 [01:02:20]Write to MH i2c: E2 08 00 F2 0B 80 0D 01 02 00 00 00 00 76 [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 F2 0B 00 90 00 71 [01:02:20]RAPDU: 90 00 [01:02:20]wFMCommunicate OK [01:02:20]wFMCommunicate request_size=255 [01:02:20]MH_SAM_APDU [01:02: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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 04 00 00 00 F4 03 04 00 1C D1 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 96 01 00 35 04 06 00 CE [01:02:20]Write to MH i2c: E2 02 01 F3 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 04 00 00 00 F4 03 04 00 1C D1 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 96 01 00 35 04 06 00 CE 00 00 1F [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 F3 0B 00 90 00 72 [01:02:20]RAPDU: 90 00 [01:02:20]wFMCommunicate OK [01:02:20]wFMCommunicate request_size=10 [01:02:20]MH_SAM_APDU [01:02:20]CAPDU: 80 0D 02 02 05 7C 6F 71 9B E3 [01:02:20]Write to MH i2c: E2 0D 00 F4 0B 80 0D 02 02 05 00 7C 6F 71 9B E3 00 00 5D [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 F4 0B 00 90 00 73 [01:02:20]RAPDU: 90 00 [01:02:20]wFMCommunicate OK [01:02:20]wFMCommunicate request_size=4 [01:02:20]MH_SAM_APDU [01:02:20]CAPDU: 80 0D 03 02 [01:02:20]Write to MH i2c: E2 08 00 F5 0B 80 0D 03 02 00 00 00 00 7B [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 0B 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 0B 00 F5 0B 00 B0 59 7D 5D 5E D9 0F F6 90 00 9B [01:02:20]RAPDU: B0 59 7D 5D 5E D9 0F F6 90 00 [01:02:20]wFMCommunicate OK [01:02:20]SAM_PROTO_SignData done [01:02:20]FM_MakeSignedData done [01:02:20]CreateOFDProtocolMessage [01:02:20]wFMCommunicate request_size=4 [01:02:20]MH_SAM_APDU [01:02:20]CAPDU: 80 11 00 00 [01:02:20]Write to MH i2c: E2 08 00 F6 0B 80 11 00 00 00 00 00 00 7B [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 17 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 17 00 F6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 CE [01:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:02:20]wFMCommunicate OK [01:02:20]CreateOFDProtocolMessage done [01:02:20]OFDSenderStorePacket 104081 [01:02:20]StoreOFDPacket docnum=104081 [01:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C4 08 07 01 24 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 04 00 00 00 F4 03 04 00 1C D1 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 96 01 00 35 04 06 00 CE 7C 6F 71 9B E3 B0 59 7D 5D 5E D9 0F F6 [01:02:20]CheckFolder [01:02:20]dirname=/storage/ofd_packets [01:02:20]CheckFolder done [01:02:20]ProducePacketName [01:02:20]name=ofd_packets/00104081 [01:02:20]NVStorageSaveData ofd_packets/00104081 [01:02:20]File name is /storage/ofd_packets/00104081 [01:02:20]Write 301 bytes [01:02:20]NVStorageSaveData done [01:02:20]OFDSenderStorePacket done [01:02:20]KKMCreateOFDPacket done [01:02:20]NVStorageSaveData kkm_last_timestamp [01:02:20]File name is /storage/kkm_last_timestamp [01:02:20]Write 4 bytes [01:02:20]NVStorageSaveData done [01:02:20]ExternCall_PrintAddStr [01:02:20]wPrintStart [01:02:20]Write to MH i2c: 01 00 00 F7 0B 02 [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: 01 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: 01 07 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: 01 07 00 F7 0B 00 00 00 00 00 FF 0F 17 [01:02:20]RasterBufferAndPrint [01:02:20]line Счет N : (1)673469 [01:02:20]line ИНН: 02508201610067 [01:02:20]line Контрольно-Кассовый Чек [01:02:20]line ПРОДАЖА [01:02:20]line ТРК (МРК, ГНК) : 32 [01:02:20]line Товар: 2710124130 [01:02:20]line Аи-92-К-5 [01:02:20]line 9.790 * 66.40 [01:02:20]line = 650.06 [01:02:20]line НДС 12% НСП 1% [01:02:20]line > о реализуемом товаре [01:02:20]line ОКРУГЛЕНИЕ: -0.06 [01:02:20]line ИТОГО: 650.00 [01:02:20]line Внесено: 650.00 [01:02:20]line СДАЧА: 0.00 [01:02:20]line НСП 1% : 5.75 [01:02:20]line НДС 12% : 69.03 [01:02:20]line Наличными: 650.00 [01:02:20]line Безнал.: 0.00 [01:02:20]line Место: АЗС № 120 "Партнер Нефть" [01:02:20]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:02:20]line СНО: Общий режим [01:02:20]line Чек 4 21.06.2024 01:02 [01:02:20]line Смена: 355 ФФД: 1.0 [01:02:20]line ЗНМ: 0300000164 [01:02:20]line РНМ: 0000000000092785 [01:02:20]line Версия ККМ: 001 [01:02:20]line ФМ: 0000000000875093 [01:02:20]line ФД: 104081 [01:02:20]line ФПД: 227033840983011 [01:02:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T010220&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104081&fm=227033840983011&tin=02508201610067®Number=0000000000092785&sum=65000 [01:02:20]OFD Sender: Processing packet 104081 [packets to send 17, broken 16] [01:02:20]ProducePacketName [01:02:20]name=ofd_packets/00104081 [01:02:20]OFD Sender: To server: pG, [01:02:20]CommunicateWithHost lk.salyk.kg:30040 [01:02:20]ConnectInit lk.salyk.kg [01:02:20]written 0, free lines is 4095 [01:02:20]Connected sock=10 [01:02:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C4 08 07 01 24 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 04 00 00 00 F4 03 04 00 1C D1 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 96 01 00 35 04 06 00 CE 7C 6F 71 9B E3 B0 59 7D 5D 5E D9 0F F6 [01:02:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 FF F5 47 00 0C 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 91 96 01 00 F4 03 04 00 A0 77 74 66 B6 04 01 00 00 DC D2 D9 56 5B 5E 7D 3D [01:02:21]CommunicateWithHost err = 0 [01:02:21]CheckOFDResponse [01:02:21]1017 (14) - 77093643461234 [01:02:21]1041 (16) - 0000000000875093 [01:02:21]1040 (4) - 104081 [01:02:21]1012 (4) - 20.06.2024 18:40 [01:02:21]1206 (1) - 0 [01:02:21]OFD Sender: Remove packet 104081 [01:02:21]ProducePacketName [01:02:21]name=ofd_packets/00104081 [01:02:21]NVStorageDeleteData [01:02:21]Write to MH i2c: 01 00 00 22 0C 2E [01:02:21]Write i2c OK [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: 01 [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: 01 07 00 [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: 01 07 00 22 0C 00 00 00 00 00 D0 0C 11 [01:02:21]RasterBufferAndPrint [01:02:21]line [01:02:21]line [01:02:21]line [01:02:21]line [01:02:21]line [01:02:21]written 0, free lines is 3287 [01:02:21]MH_Cut [01:02:21]Write to MH i2c: D1 01 00 29 0C 01 07 [01:02:21]Write i2c OK [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: D1 [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: D1 01 00 [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: D1 01 00 29 0C 00 06 [01:02:21]Write to MH i2c: 01 00 00 2A 0C 36 [01:02:21]Write i2c OK [01:02:21]MH_I2C_Read... [01:02:21]OFD Sender: No OFD packet to send [01:02:22]*** Cut start [01:02:22]*** Partial cut [01:02:22]*** CUTSNS_PIN = 1 [01:02:22]*** CUTSNS_PIN = 0 [01:02:22]*** Brake cut motor [01:02:22]Read from MH i2c: 01 [01:02:22]MH_I2C_Read... [01:02:22]*** Stop cut motor [01:02:22]*** Cut end [01:02:22]Read from MH i2c: 01 07 00 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: 01 07 00 2A 0C 00 00 00 00 00 FF 0F 4B [01:02:22]process_action close_receipt done [01:02:22]requested_data is exist [01:02:22]produce_requested_data [01:02:22]requested_item fm.sn is exist - process it [01:02:22]wFMCommunicate request_size=4 [01:02:22]MH_SAM_APDU [01:02:22]CAPDU: 80 11 00 00 [01:02:22]Write to MH i2c: E2 08 00 2B 0C 80 11 00 00 00 00 00 00 B1 [01:02:22]Write i2c OK [01:02:22]MH_I2C_Read... [01:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:22]Read from MH i2c: E2 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: E2 17 00 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: E2 17 00 2B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 04 [01:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:02:22]wFMCommunicate OK [01:02:22]requested_item fd.num is exist - process it [01:02:22]SAM_PROTO_GetFieldsCounters [01:02:22]wFMCommunicate request_size=4 [01:02:22]MH_SAM_APDU [01:02:22]CAPDU: 80 13 00 00 [01:02:22]Write to MH i2c: E2 08 00 2C 0C 80 13 00 00 00 00 00 00 B4 [01:02:22]Write i2c OK [01:02:22]MH_I2C_Read... [01:02:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:22]Read from MH i2c: E2 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: E2 62 00 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: E2 62 00 2C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 91 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [01:02:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 91 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:02:22]wFMCommunicate OK [01:02:22]SAM_PROTO_GetFieldsCounters done [01:02:22]requested_item shift.num is exist - process it [01:02:22]requested_item shift.opened is exist - process it [01:02:22]req_shift_opened [01:02:22]FM_GetShiftState [01:02:22]SAM_PROTO_GetShiftState [01:02:22]wFMCommunicate request_size=4 [01:02:22]MH_SAM_APDU [01:02:22]CAPDU: 80 13 01 00 [01:02:22]Write to MH i2c: E2 08 00 2D 0C 80 13 01 00 00 00 00 00 B6 [01:02:22]Write i2c OK [01:02:22]MH_I2C_Read... [01:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:22]Read from MH i2c: E2 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: E2 0E 00 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: E2 0E 00 2D 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 C9 [01:02:22]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [01:02:22]wFMCommunicate OK [01:02:22]SAM_PROTO_GetShiftState done [01:02:22]FM_GetShiftState done [01:02:22]req_shift_opened done [01:02:22]requested_item shift.open_date is exist - process it [01:02:22]req_shift_open_date [01:02:22]req_shift_open_date done [01:02:22]produce_requested_data done [01:02:22]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104081,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [01:02:22]process_action_free close_receipt [01:02:22]json_value_free [01:02:22]json_value_free done [01:02:22]process_json_proto returns [01:02:22]Send response to host [01:02:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104081,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [01:02:22]free response buf [01:02:22]execute_script done [01:02:22]execute_script returns [01:02:22]free content buf [01:02:22]Sock 7.Close socket [01:02:22]Sock 7.Thread stoped [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:46]accept exits with 9 [01:03:46]New connection [01:03:46]New thread 3066858852 created [01:03:46]Thread 3066715492 joined [01:03:46]Waiting for new connection... [01:03:46] Sock 9.Parse request [01:03:46]Sock 9.Check first char [01:03:46]Sock 9.First char is OK [01:03:46]request: POST /json_proto HTTP/1.0 [01:03:46]Method: POST [01:03:46]URL: /json_proto [01:03:46]Method is POST - this is cgi request [01:03:46]url: /json_proto [01:03:46]query_string will be loaded in cgi processing [01:03:46]execute_cgi json_proto POST (null) [01:03:46]execute_cgi path=json_proto method=POST [01:03:46]POST find Content-Length [01:03:46]Host: 172.17.38.133:8080 [01:03:46]Content-Length: 678 [01:03:46]Content-Type: application/json [01:03:46] [01:03:46]POST finish read [01:03:46]Found Content-Length = 678 [01:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.830, "sum" : 719.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 719.00, "total" : 719.00, "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:46]execute_script... [01:03: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)673470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.830, "sum" : 719.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 719.00, "total" : 719.00, "payments": [ { "type": 0, "sum" : 719.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:46]POST & json_proto [01:03:46]process_json_proto [01:03:46]json parsed OK: [01:03:46]protocol is kg_v1.0 [01:03:46]action value=close_receipt [01:03:46]process_action close_receipt [01:03:46]cmd_close_receipt [01:03:46]MH_GetDate [01:03:46]Write to MH i2c: F0 00 00 2E 0C 29 [01:03:46]Write i2c OK [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: F0 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: F0 09 00 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: F0 09 00 2E 0C 00 74 D1 74 66 BD 8F 7C 64 7D [01:03:46]GetLastDocTimeStamp 1718931740 [01:03:46]current date 1718931828 [01:03:46]FM_GetShiftState [01:03:46]SAM_PROTO_GetShiftState [01:03:46]wFMCommunicate request_size=4 [01:03:46]MH_SAM_APDU [01:03:46]CAPDU: 80 13 01 00 [01:03:46]Write to MH i2c: E2 08 00 2F 0C 80 13 01 00 00 00 00 00 B8 [01:03:46]Write i2c OK [01:03:46]MH_I2C_Read... [01:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:46]Read from MH i2c: E2 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: E2 0E 00 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: E2 0E 00 2F 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 CB [01:03:46]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [01:03:46]wFMCommunicate OK [01:03:46]SAM_PROTO_GetShiftState done [01:03:46]FM_GetShiftState done [01:03:46]opened in 1718929509 [01:03:46]opened+sec_in_day 1719015909 [01:03:46]quantity*price = 71911 [01:03:46]sum+1 = 71912 [01:03:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 719.00 Внесено: 719.00 СДАЧА: 0.00 НСП 1% : 6.36 НДС 12% : 76.37 Наличными: 719.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 5 21.06.2024 01:03 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104082 ФПД: 177341170261173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T010348&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104082&fm=177341170261173&tin=02508201610067®Number=0000000000092785&sum=71900 [01:03:47]StoreToDocumentArchive [01:03:47]shift 355 fd 104082 [01:03:47]save to /storage/0355/doc_00104082 [01:03:47]save last doc name /storage/0355/doc_00104082 to /storage/kkm_last_doc_name [01:03:47]save OK [01:03:47]Clear old archive folders... [01:03:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:03:47]tlvbuf is 0110A780 [01:03:47]SAM_PROTO_ClearQueue [01:03:47]wFMCommunicate request_size=4 [01:03:47]MH_SAM_APDU [01:03:47]CAPDU: 80 09 00 00 [01:03:47]Write to MH i2c: E2 08 00 3C 0C 80 09 00 00 00 00 00 00 BA [01:03:47]Write i2c OK [01:03:47]MH_I2C_Read... [01:03:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:47]Read from MH i2c: E2 [01:03:47]MH_I2C_Read... [01:03:47]Read from MH i2c: E2 03 00 [01:03:47]MH_I2C_Read... [01:03:47]Read from MH i2c: E2 03 00 3C 0C 00 90 00 BC [01:03:47]RAPDU: 90 00 [01:03:47]wFMCommunicate OK [01:03:47]SAM_PROTO_ClearQueue done [01:03:47]KKMCreateOFDPacket [01:03:47]OFDProtocolAddRootSTLVToBuf [01:03:47]FM_MakeSignedData [01:03:47]FM_MakeSignedData [01:03:47]SAM_PROTO_SignData [01:03:47]wFMCommunicate request_size=4 [01:03:47]MH_SAM_APDU [01:03:47]CAPDU: 80 0D 01 02 [01:03:47]Write to MH i2c: E2 08 00 3D 0C 80 0D 01 02 00 00 00 00 C2 [01:03:47]Write i2c OK [01:03:47]MH_I2C_Read... [01:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:48]Read from MH i2c: E2 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: E2 03 00 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: E2 03 00 3D 0C 00 90 00 BD [01:03:48]RAPDU: 90 00 [01:03:48]wFMCommunicate OK [01:03:48]wFMCommunicate request_size=255 [01:03:48]MH_SAM_APDU [01:03:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E7 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 74 D1 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 96 01 00 35 04 06 00 A1 [01:03:48]Write to MH i2c: E2 02 01 3E 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 2A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E7 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 74 D1 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 96 01 00 35 04 06 00 A1 00 00 FF [01:03:48]Write i2c OK [01:03:48]MH_I2C_Read... [01:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:48]Read from MH i2c: E2 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: E2 03 00 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: E2 03 00 3E 0C 00 90 00 BE [01:03:48]RAPDU: 90 00 [01:03:48]wFMCommunicate OK [01:03:48]wFMCommunicate request_size=10 [01:03:48]MH_SAM_APDU [01:03:48]CAPDU: 80 0D 02 02 05 4A 75 75 1C B5 [01:03:48]Write to MH i2c: E2 0D 00 3F 0C 80 0D 02 02 05 00 4A 75 75 1C B5 00 00 D4 [01:03:48]Write i2c OK [01:03:48]MH_I2C_Read... [01:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:48]Read from MH i2c: E2 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: E2 03 00 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: E2 03 00 3F 0C 00 90 00 BF [01:03:48]RAPDU: 90 00 [01:03:48]wFMCommunicate OK [01:03:48]wFMCommunicate request_size=4 [01:03:48]MH_SAM_APDU [01:03:48]CAPDU: 80 0D 03 02 [01:03:48]Write to MH i2c: E2 08 00 40 0C 80 0D 03 02 00 00 00 00 C7 [01:03:48]Write i2c OK [01:03:48]MH_I2C_Read... [01:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:48]Read from MH i2c: E2 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: E2 0B 00 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: E2 0B 00 40 0C 00 A8 C2 1C E5 AA 85 93 4D 90 00 42 [01:03:48]RAPDU: A8 C2 1C E5 AA 85 93 4D 90 00 [01:03:48]wFMCommunicate OK [01:03:48]SAM_PROTO_SignData done [01:03:48]FM_MakeSignedData done [01:03:48]CreateOFDProtocolMessage [01:03:48]wFMCommunicate request_size=4 [01:03:48]MH_SAM_APDU [01:03:48]CAPDU: 80 11 00 00 [01:03:48]Write to MH i2c: E2 08 00 41 0C 80 11 00 00 00 00 00 00 C7 [01:03:48]Write i2c OK [01:03:48]MH_I2C_Read... [01:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:48]Read from MH i2c: E2 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: E2 17 00 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: E2 17 00 41 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 1A [01:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:03:48]wFMCommunicate OK [01:03:48]CreateOFDProtocolMessage done [01:03:48]OFDSenderStorePacket 104082 [01:03:48]StoreOFDPacket docnum=104082 [01:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2E 0C 07 01 26 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 4E 2A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E7 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 74 D1 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 96 01 00 35 04 06 00 A1 4A 75 75 1C B5 A8 C2 1C E5 AA 85 93 4D [01:03:48]CheckFolder [01:03:48]dirname=/storage/ofd_packets [01:03:48]CheckFolder done [01:03:48]ProducePacketName [01:03:48]name=ofd_packets/00104082 [01:03:48]NVStorageSaveData ofd_packets/00104082 [01:03:48]File name is /storage/ofd_packets/00104082 [01:03:48]Write 301 bytes [01:03:48]NVStorageSaveData done [01:03:48]OFDSenderStorePacket done [01:03:48]KKMCreateOFDPacket done [01:03:48]NVStorageSaveData kkm_last_timestamp [01:03:48]File name is /storage/kkm_last_timestamp [01:03:48]Write 4 bytes [01:03:48]NVStorageSaveData done [01:03:48]ExternCall_PrintAddStr [01:03:48]wPrintStart [01:03:48]Write to MH i2c: 01 00 00 42 0C 4E [01:03:48]Write i2c OK [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: 01 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: 01 07 00 [01:03:48]MH_I2C_Read... [01:03:48]Read from MH i2c: 01 07 00 42 0C 00 00 00 00 00 FF 0F 63 [01:03:48]RasterBufferAndPrint [01:03:48]line Счет N : (1)673470 [01:03:48]line ИНН: 02508201610067 [01:03:48]line Контрольно-Кассовый Чек [01:03:48]line ПРОДАЖА [01:03:48]line ТРК (МРК, ГНК) : 42 [01:03:48]line Товар: 2710124130 [01:03:48]line Аи-92-К-5 [01:03:48]line 10.830 * 66.40 [01:03:48]line = 719.11 [01:03:48]line НДС 12% НСП 1% [01:03:48]line > о реализуемом товаре [01:03:48]line ОКРУГЛЕНИЕ: -0.11 [01:03:48]line ИТОГО: 719.00 [01:03:48]line Внесено: 719.00 [01:03:48]line СДАЧА: 0.00 [01:03:48]line НСП 1% : 6.36 [01:03:48]line НДС 12% : 76.37 [01:03:48]line Наличными: 719.00 [01:03:48]line Безнал.: 0.00 [01:03:48]line Место: АЗС № 120 "Партнер Нефть" [01:03:48]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:03:48]line СНО: Общий режим [01:03:48]line Чек 5 21.06.2024 01:03 [01:03:48]line Смена: 355 ФФД: 1.0 [01:03:48]line ЗНМ: 0300000164 [01:03:48]line РНМ: 0000000000092785 [01:03:48]line Версия ККМ: 001 [01:03:48]line ФМ: 0000000000875093 [01:03:48]line ФД: 104082 [01:03:48]line ФПД: 177341170261173 [01:03:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T010348&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104082&fm=177341170261173&tin=02508201610067®Number=0000000000092785&sum=71900 [01:03:48]OFD Sender: Processing packet 104082 [packets to send 17, broken 16] [01:03:48]ProducePacketName [01:03:48]name=ofd_packets/00104082 [01:03:48]OFD Sender: To server: pG, [01:03:48]CommunicateWithHost lk.salyk.kg:30040 [01:03:48]ConnectInit lk.salyk.kg [01:03:48]written 0, free lines is 4095 [01:03:48]Connected sock=10 [01:03:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 2E 0C 07 01 26 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 4E 2A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E7 18 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 18 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 1D 00 00 00 00 07 04 06 00 DC 18 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 74 D1 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 96 01 00 35 04 06 00 A1 4A 75 75 1C B5 A8 C2 1C E5 AA 85 93 4D [01:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 11 A6 47 00 EB 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 92 96 01 00 F4 03 04 00 F8 77 74 66 B6 04 01 00 00 14 57 52 61 9F 7A 97 70 [01:03:49]CommunicateWithHost err = 0 [01:03:49]CheckOFDResponse [01:03:49]1017 (14) - 77093643461234 [01:03:49]1041 (16) - 0000000000875093 [01:03:49]1040 (4) - 104082 [01:03:49]1012 (4) - 20.06.2024 18:42 [01:03:49]1206 (1) - 0 [01:03:49]OFD Sender: Remove packet 104082 [01:03:49]ProducePacketName [01:03:49]name=ofd_packets/00104082 [01:03:49]NVStorageDeleteData [01:03:49]Write to MH i2c: 01 00 00 6D 0C 79 [01:03:49]Write i2c OK [01:03:49]MH_I2C_Read... [01:03:49]Read from MH i2c: 01 [01:03:49]MH_I2C_Read... [01:03:49]Read from MH i2c: 01 07 00 [01:03:49]MH_I2C_Read... [01:03:49]Read from MH i2c: 01 07 00 6D 0C 00 00 00 00 00 CE 0C 5A [01:03:49]RasterBufferAndPrint [01:03:49]line [01:03:49]line [01:03:49]line [01:03:49]line [01:03:49]line [01:03:49]written 0, free lines is 3286 [01:03:49]MH_Cut [01:03:49]Write to MH i2c: D1 01 00 74 0C 01 52 [01:03:49]Write i2c OK [01:03:49]MH_I2C_Read... [01:03:49]Read from MH i2c: D1 [01:03:49]MH_I2C_Read... [01:03:49]Read from MH i2c: D1 01 00 [01:03:49]MH_I2C_Read... [01:03:49]Read from MH i2c: D1 01 00 74 0C 00 51 [01:03:49]Write to MH i2c: 01 00 00 75 0C 81 [01:03:49]Write i2c OK [01:03:49]MH_I2C_Read... [01:03:49]OFD Sender: No OFD packet to send [01:03:49]*** Cut start [01:03:49]*** Partial cut [01:03:49]*** CUTSNS_PIN = 1 [01:03:50]*** CUTSNS_PIN = 0 [01:03:50]*** Brake cut motor [01:03:50]Read from MH i2c: 01 [01:03:50]MH_I2C_Read... [01:03:50]*** Stop cut motor [01:03:50]*** Cut end [01:03:50]Read from MH i2c: 01 07 00 [01:03:50]MH_I2C_Read... [01:03:50]Read from MH i2c: 01 07 00 75 0C 00 00 00 00 00 FF 0F 96 [01:03:50]process_action close_receipt done [01:03:50]requested_data is exist [01:03:50]produce_requested_data [01:03:50]requested_item fm.sn is exist - process it [01:03:50]wFMCommunicate request_size=4 [01:03:50]MH_SAM_APDU [01:03:50]CAPDU: 80 11 00 00 [01:03:50]Write to MH i2c: E2 08 00 76 0C 80 11 00 00 00 00 00 00 FC [01:03:50]Write i2c OK [01:03:50]MH_I2C_Read... [01:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:50]Read from MH i2c: E2 [01:03:50]MH_I2C_Read... [01:03:50]Read from MH i2c: E2 17 00 [01:03:50]MH_I2C_Read... [01:03:50]Read from MH i2c: E2 17 00 76 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 4F [01:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:03:50]wFMCommunicate OK [01:03:50]requested_item fd.num is exist - process it [01:03:50]SAM_PROTO_GetFieldsCounters [01:03:50]wFMCommunicate request_size=4 [01:03:50]MH_SAM_APDU [01:03:50]CAPDU: 80 13 00 00 [01:03:50]Write to MH i2c: E2 08 00 77 0C 80 13 00 00 00 00 00 00 FF [01:03:50]Write i2c OK [01:03:50]MH_I2C_Read... [01:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:50]Read from MH i2c: E2 [01:03:50]MH_I2C_Read... [01:03:50]Read from MH i2c: E2 62 00 [01:03:50]MH_I2C_Read... [01:03:50]Read from MH i2c: E2 62 00 77 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [01: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 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 92 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:03:50]wFMCommunicate OK [01:03:50]SAM_PROTO_GetFieldsCounters done [01:03:50]requested_item shift.num is exist - process it [01:03:50]requested_item shift.opened is exist - process it [01:03:50]req_shift_opened [01:03:50]FM_GetShiftState [01:03:50]SAM_PROTO_GetShiftState [01:03:50]wFMCommunicate request_size=4 [01:03:50]MH_SAM_APDU [01:03:50]CAPDU: 80 13 01 00 [01:03:50]Write to MH i2c: E2 08 00 78 0C 80 13 01 00 00 00 00 00 01 [01:03:50]Write i2c OK [01:03:50]MH_I2C_Read... [01:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:50]Read from MH i2c: E2 [01:03:50]MH_I2C_Read... [01:03:50]Read from MH i2c: E2 0E 00 [01:03:50]MH_I2C_Read... [01:03:50]Read from MH i2c: E2 0E 00 78 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 14 [01:03:50]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [01:03:50]wFMCommunicate OK [01:03:50]SAM_PROTO_GetShiftState done [01:03:50]FM_GetShiftState done [01:03:50]req_shift_opened done [01:03:50]requested_item shift.open_date is exist - process it [01:03:50]req_shift_open_date [01:03:50]req_shift_open_date done [01:03:50]produce_requested_data done [01:03:50]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104082,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [01:03:50]process_action_free close_receipt [01:03:50]json_value_free [01:03:50]json_value_free done [01:03:50]process_json_proto returns [01:03:50]Send response to host [01:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104082,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [01:03:50]free response buf [01:03:50]execute_script done [01:03:50]execute_script returns [01:03:50]free content buf [01:03:50]Sock 9.Close socket [01:03:50]Sock 9.Thread stoped [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:05]accept exits with 7 [01:08:05]New connection [01:08:05]New thread 3066715492 created [01:08:05]Thread 3066858852 joined [01:08:05]Waiting for new connection... [01:08:05] Sock 7.Parse request [01:08:05]Sock 7.Check first char [01:08:05]Sock 7.First char is OK [01:08:05]request: POST /json_proto HTTP/1.0 [01:08:05]Method: POST [01:08:05]URL: /json_proto [01:08:05]Method is POST - this is cgi request [01:08:05]url: /json_proto [01:08:05]query_string will be loaded in cgi processing [01:08:05]execute_cgi json_proto POST (null) [01:08:05]execute_cgi path=json_proto method=POST [01:08:05]POST find Content-Length [01:08:05]Host: 172.17.38.133:8080 [01:08:05]Content-Length: 682 [01:08:05]Content-Type: application/json [01:08:05] [01:08:05]POST finish read [01:08:05]Found Content-Length = 682 [01:08:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:05]execute_script... [01:08: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)673471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:08:05]POST & json_proto [01:08:05]process_json_proto [01:08:05]json parsed OK: [01:08:05]protocol is kg_v1.0 [01:08:05]action value=close_receipt [01:08:05]process_action close_receipt [01:08:05]cmd_close_receipt [01:08:05]MH_GetDate [01:08:05]Write to MH i2c: F0 00 00 79 0C 74 [01:08:05]Write i2c OK [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: F0 [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: F0 09 00 [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: F0 09 00 79 0C 00 77 D2 74 66 BD 8F 7C 64 CC [01:08:05]GetLastDocTimeStamp 1718931828 [01:08:05]current date 1718932087 [01:08:05]FM_GetShiftState [01:08:05]SAM_PROTO_GetShiftState [01:08:05]wFMCommunicate request_size=4 [01:08:05]MH_SAM_APDU [01:08:05]CAPDU: 80 13 01 00 [01:08:05]Write to MH i2c: E2 08 00 7A 0C 80 13 01 00 00 00 00 00 03 [01:08:05]Write i2c OK [01:08:05]MH_I2C_Read... [01:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:05]Read from MH i2c: E2 [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: E2 0E 00 [01:08:05]MH_I2C_Read... [01:08:05]Read from MH i2c: E2 0E 00 7A 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 16 [01:08:05]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [01:08:05]wFMCommunicate OK [01:08:05]SAM_PROTO_GetShiftState done [01:08:05]FM_GetShiftState done [01:08:05]opened in 1718929509 [01:08:05]opened+sec_in_day 1719015909 [01:08:05]quantity*price = 200063 [01:08:05]sum+1 = 200064 [01:08:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 6 21.06.2024 01:08 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104083 ФПД: 273207575519039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T010807&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104083&fm=273207575519039&tin=02508201610067®Number=0000000000092785&sum=200000 [01:08:06]StoreToDocumentArchive [01:08:06]shift 355 fd 104083 [01:08:06]save to /storage/0355/doc_00104083 [01:08:06]save last doc name /storage/0355/doc_00104083 to /storage/kkm_last_doc_name [01:08:06]save OK [01:08:06]Clear old archive folders... [01:08:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:08:06]tlvbuf is 01124350 [01:08:06]SAM_PROTO_ClearQueue [01:08:06]wFMCommunicate request_size=4 [01:08:06]MH_SAM_APDU [01:08:06]CAPDU: 80 09 00 00 [01:08:06]Write to MH i2c: E2 08 00 87 0C 80 09 00 00 00 00 00 00 05 [01:08:06]Write i2c OK [01:08:06]MH_I2C_Read... [01:08:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:06]Read from MH i2c: E2 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 03 00 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 03 00 87 0C 00 90 00 07 [01:08:06]RAPDU: 90 00 [01:08:06]wFMCommunicate OK [01:08:06]SAM_PROTO_ClearQueue done [01:08:06]KKMCreateOFDPacket [01:08:06]OFDProtocolAddRootSTLVToBuf [01:08:06]FM_MakeSignedData [01:08:06]FM_MakeSignedData [01:08:06]SAM_PROTO_SignData [01:08:06]wFMCommunicate request_size=4 [01:08:06]MH_SAM_APDU [01:08:06]CAPDU: 80 0D 01 02 [01:08:06]Write to MH i2c: E2 08 00 88 0C 80 0D 01 02 00 00 00 00 0D [01:08:06]Write i2c OK [01:08:06]MH_I2C_Read... [01:08:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:06]Read from MH i2c: E2 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 03 00 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 03 00 88 0C 00 90 00 08 [01:08:06]RAPDU: 90 00 [01:08:06]wFMCommunicate OK [01:08:06]wFMCommunicate request_size=255 [01:08:06]MH_SAM_APDU [01:08: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 06 00 00 00 F4 03 04 00 77 D2 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 96 01 00 35 04 06 00 F8 [01:08:06]Write to MH i2c: E2 02 01 89 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 06 00 00 00 F4 03 04 00 77 D2 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 96 01 00 35 04 06 00 F8 00 00 6B [01:08:06]Write i2c OK [01:08:06]MH_I2C_Read... [01:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:06]Read from MH i2c: E2 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 03 00 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 03 00 89 0C 00 90 00 09 [01:08:06]RAPDU: 90 00 [01:08:06]wFMCommunicate OK [01:08:06]wFMCommunicate request_size=10 [01:08:06]MH_SAM_APDU [01:08:06]CAPDU: 80 0D 02 02 05 7B 18 7D 1F 3F [01:08:06]Write to MH i2c: E2 0D 00 8A 0C 80 0D 02 02 05 00 7B 18 7D 1F 3F 00 00 88 [01:08:06]Write i2c OK [01:08:06]MH_I2C_Read... [01:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:06]Read from MH i2c: E2 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 03 00 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 03 00 8A 0C 00 90 00 0A [01:08:06]RAPDU: 90 00 [01:08:06]wFMCommunicate OK [01:08:06]wFMCommunicate request_size=4 [01:08:06]MH_SAM_APDU [01:08:06]CAPDU: 80 0D 03 02 [01:08:06]Write to MH i2c: E2 08 00 8B 0C 80 0D 03 02 00 00 00 00 12 [01:08:06]Write i2c OK [01:08:06]MH_I2C_Read... [01:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:06]Read from MH i2c: E2 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 0B 00 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 0B 00 8B 0C 00 66 74 DD D2 30 78 A3 10 90 00 F7 [01:08:06]RAPDU: 66 74 DD D2 30 78 A3 10 90 00 [01:08:06]wFMCommunicate OK [01:08:06]SAM_PROTO_SignData done [01:08:06]FM_MakeSignedData done [01:08:06]CreateOFDProtocolMessage [01:08:06]wFMCommunicate request_size=4 [01:08:06]MH_SAM_APDU [01:08:06]CAPDU: 80 11 00 00 [01:08:06]Write to MH i2c: E2 08 00 8C 0C 80 11 00 00 00 00 00 00 12 [01:08:06]Write i2c OK [01:08:06]MH_I2C_Read... [01:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:06]Read from MH i2c: E2 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 17 00 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: E2 17 00 8C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 65 [01:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:08:06]wFMCommunicate OK [01:08:06]CreateOFDProtocolMessage done [01:08:06]OFDSenderStorePacket 104083 [01:08:06]StoreOFDPacket docnum=104083 [01:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 29 73 07 01 3F AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 06 00 00 00 F4 03 04 00 77 D2 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 96 01 00 35 04 06 00 F8 7B 18 7D 1F 3F 66 74 DD D2 30 78 A3 10 [01:08:06]CheckFolder [01:08:06]dirname=/storage/ofd_packets [01:08:06]CheckFolder done [01:08:06]ProducePacketName [01:08:06]name=ofd_packets/00104083 [01:08:06]NVStorageSaveData ofd_packets/00104083 [01:08:06]File name is /storage/ofd_packets/00104083 [01:08:06]Write 301 bytes [01:08:06]NVStorageSaveData done [01:08:06]OFDSenderStorePacket done [01:08:06]KKMCreateOFDPacket done [01:08:06]NVStorageSaveData kkm_last_timestamp [01:08:06]File name is /storage/kkm_last_timestamp [01:08:06]Write 4 bytes [01:08:06]NVStorageSaveData done [01:08:06]ExternCall_PrintAddStr [01:08:06]wPrintStart [01:08:06]Write to MH i2c: 01 00 00 8D 0C 99 [01:08:06]Write i2c OK [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: 01 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: 01 07 00 [01:08:06]MH_I2C_Read... [01:08:06]Read from MH i2c: 01 07 00 8D 0C 00 00 00 00 00 FF 0F AE [01:08:06]RasterBufferAndPrint [01:08:06]line Счет N : (1)673471 [01:08:06]line ИНН: 02508201610067 [01:08:06]line Контрольно-Кассовый Чек [01:08:06]line ПРОДАЖА [01:08:06]line ТРК (МРК, ГНК) : 32 [01:08:06]line Товар: 2710124130 [01:08:06]line Аи-92-К-5 [01:08:06]line 30.130 * 66.40 [01:08:06]line = 2000.63 [01:08:06]line НДС 12% НСП 1% [01:08:06]line > о реализуемом товаре [01:08:06]line ОКРУГЛЕНИЕ: -0.63 [01:08:06]line ИТОГО: 2000.00 [01:08:06]line Внесено: 2000.00 [01:08:06]line СДАЧА: 0.00 [01:08:06]line НСП 1% : 17.70 [01:08:06]line НДС 12% : 212.46 [01:08:06]line Наличными: 2000.00 [01:08:06]line Безнал.: 0.00 [01:08:06]line Место: АЗС № 120 "Партнер Нефть" [01:08:06]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:08:06]line СНО: Общий режим [01:08:06]line Чек 6 21.06.2024 01:08 [01:08:06]line Смена: 355 ФФД: 1.0 [01:08:06]line ЗНМ: 0300000164 [01:08:06]line РНМ: 0000000000092785 [01:08:06]line Версия ККМ: 001 [01:08:06]line ФМ: 0000000000875093 [01:08:06]line ФД: 104083 [01:08:06]line ФПД: 273207575519039 [01:08:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T010807&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104083&fm=273207575519039&tin=02508201610067®Number=0000000000092785&sum=200000 [01:08:07]OFD Sender: Processing packet 104083 [packets to send 17, broken 16] [01:08:07]ProducePacketName [01:08:07]name=ofd_packets/00104083 [01:08:07]OFD Sender: To server: pG, [01:08:07]CommunicateWithHost lk.salyk.kg:30040 [01:08:07]ConnectInit lk.salyk.kg [01:08:07]written 0, free lines is 4095 [01:08:07]Connected sock=10 [01:08:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 29 73 07 01 3F AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 06 00 00 00 F4 03 04 00 77 D2 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 93 96 01 00 35 04 06 00 F8 7B 18 7D 1F 3F 66 74 DD D2 30 78 A3 10 [01:08:07]Write to MH i2c: 01 00 00 B8 0C C4 [01:08:07]Write i2c OK [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: 01 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: 01 07 00 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: 01 07 00 B8 0C 00 00 00 00 00 D6 0C AD [01:08:07]RasterBufferAndPrint [01:08:07]line [01:08:07]line [01:08:07]line [01:08:07]line [01:08:07]line [01:08:07]written 0, free lines is 3294 [01:08:07]MH_Cut [01:08:07]Write to MH i2c: D1 01 00 BF 0C 01 9D [01:08:07]Write i2c OK [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: D1 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: D1 01 00 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: D1 01 00 BF 0C 00 9C [01:08:07]Write to MH i2c: 01 00 00 C0 0C CC [01:08:07]Write i2c OK [01:08:07]MH_I2C_Read... [01:08:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 3F B2 47 00 1A 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 35 30 39 33 10 04 04 00 93 96 01 00 F4 03 04 00 FB 78 74 66 B6 04 01 00 00 36 A6 2D 65 16 58 30 44 [01:08:07]CommunicateWithHost err = 0 [01:08:07]CheckOFDResponse [01:08:07]1017 (14) - 77093643461234 [01:08:07]1041 (16) - 0000000000875093 [01:08:07]1040 (4) - 104083 [01:08:07]1012 (4) - 20.06.2024 18:46 [01:08:07]1206 (1) - 0 [01:08:07]OFD Sender: Remove packet 104083 [01:08:07]ProducePacketName [01:08:07]name=ofd_packets/00104083 [01:08:07]NVStorageDeleteData [01:08:08]OFD Sender: No OFD packet to send [01:08:08]*** Cut start [01:08:08]*** Partial cut [01:08:08]*** CUTSNS_PIN = 1 [01:08:08]*** CUTSNS_PIN = 0 [01:08:08]*** Brake cut motor [01:08:09]Read from MH i2c: 01 [01:08:09]MH_I2C_Read... [01:08:09]*** Stop cut motor [01:08:09]*** Cut end [01:08:09]Read from MH i2c: 01 07 00 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: 01 07 00 C0 0C 00 00 00 00 00 FF 0F E1 [01:08:09]process_action close_receipt done [01:08:09]requested_data is exist [01:08:09]produce_requested_data [01:08:09]requested_item fm.sn is exist - process it [01:08:09]wFMCommunicate request_size=4 [01:08:09]MH_SAM_APDU [01:08:09]CAPDU: 80 11 00 00 [01:08:09]Write to MH i2c: E2 08 00 C1 0C 80 11 00 00 00 00 00 00 47 [01:08:09]Write i2c OK [01:08:09]MH_I2C_Read... [01:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:09]Read from MH i2c: E2 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: E2 17 00 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: E2 17 00 C1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 9A [01:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:08:09]wFMCommunicate OK [01:08:09]requested_item fd.num is exist - process it [01:08:09]SAM_PROTO_GetFieldsCounters [01:08:09]wFMCommunicate request_size=4 [01:08:09]MH_SAM_APDU [01:08:09]CAPDU: 80 13 00 00 [01:08:09]Write to MH i2c: E2 08 00 C2 0C 80 13 00 00 00 00 00 00 4A [01:08:09]Write i2c OK [01:08:09]MH_I2C_Read... [01:08:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:09]Read from MH i2c: E2 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: E2 62 00 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: E2 62 00 C2 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 93 96 01 00 0E 04 04 00 63 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 11 [01:08:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 93 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:08:09]wFMCommunicate OK [01:08:09]SAM_PROTO_GetFieldsCounters done [01:08:09]requested_item shift.num is exist - process it [01:08:09]requested_item shift.opened is exist - process it [01:08:09]req_shift_opened [01:08:09]FM_GetShiftState [01:08:09]SAM_PROTO_GetShiftState [01:08:09]wFMCommunicate request_size=4 [01:08:09]MH_SAM_APDU [01:08:09]CAPDU: 80 13 01 00 [01:08:09]Write to MH i2c: E2 08 00 C3 0C 80 13 01 00 00 00 00 00 4C [01:08:09]Write i2c OK [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: E2 [01:08:09]MH_I2C_Read... [01:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:09]Read from MH i2c: E2 0E 00 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: E2 0E 00 C3 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 5F [01:08:09]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [01:08:09]wFMCommunicate OK [01:08:09]SAM_PROTO_GetShiftState done [01:08:09]FM_GetShiftState done [01:08:09]req_shift_opened done [01:08:09]requested_item shift.open_date is exist - process it [01:08:09]req_shift_open_date [01:08:09]req_shift_open_date done [01:08:09]produce_requested_data done [01:08:09]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104083,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [01:08:09]process_action_free close_receipt [01:08:09]json_value_free [01:08:09]json_value_free done [01:08:09]process_json_proto returns [01:08:09]Send response to host [01:08:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104083,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [01:08:09]free response buf [01:08:09]execute_script done [01:08:09]execute_script returns [01:08:09]free content buf [01:08:09]Sock 7.Close socket [01:08:09]Sock 7.Thread stoped [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:35]accept exits with 9 [01:21:35]New connection [01:21:35]New thread 3066858852 created [01:21:35]Thread 3066715492 joined [01:21:35]Waiting for new connection... [01:21:35] Sock 9.Parse request [01:21:35]Sock 9.Check first char [01:21:35]Sock 9.First char is OK [01:21:35]request: POST /json_proto HTTP/1.0 [01:21:35]Method: POST [01:21:35]URL: /json_proto [01:21:35]Method is POST - this is cgi request [01:21:35]url: /json_proto [01:21:35]query_string will be loaded in cgi processing [01:21:35]execute_cgi json_proto POST (null) [01:21:35]execute_cgi path=json_proto method=POST [01:21:35]POST find Content-Length [01:21:35]Host: 172.17.38.133:8080 [01:21:35]Content-Length: 825 [01:21:35]Content-Type: application/json [01:21:35] [01:21:35]POST finish read [01:21:35]Found Content-Length = 825 [01:21:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 123.460, "sum" : 9000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 9000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:35]execute_script... [01:21: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)673472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.90, "quantity" : 123.460, "sum" : 9000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 9000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:21:35]POST & json_proto [01:21:35]process_json_proto [01:21:35]json parsed OK: [01:21:35]protocol is kg_v1.0 [01:21:35]action value=close_receipt [01:21:35]process_action close_receipt [01:21:35]cmd_close_receipt [01:21:35]MH_GetDate [01:21:35]Write to MH i2c: F0 00 00 C4 0C BF [01:21:35]Write i2c OK [01:21:35]MH_I2C_Read... [01:21:35]Read from MH i2c: F0 [01:21:35]MH_I2C_Read... [01:21:35]Read from MH i2c: F0 09 00 [01:21:35]MH_I2C_Read... [01:21:35]Read from MH i2c: F0 09 00 C4 0C 00 A1 D5 74 66 BD 8F 7C 64 44 [01:21:35]GetLastDocTimeStamp 1718932087 [01:21:35]current date 1718932897 [01:21:35]FM_GetShiftState [01:21:35]SAM_PROTO_GetShiftState [01:21:35]wFMCommunicate request_size=4 [01:21:35]MH_SAM_APDU [01:21:35]CAPDU: 80 13 01 00 [01:21:35]Write to MH i2c: E2 08 00 C5 0C 80 13 01 00 00 00 00 00 4E [01:21:35]Write i2c OK [01:21:35]MH_I2C_Read... [01:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:36]Read from MH i2c: E2 [01:21:36]MH_I2C_Read... [01:21:36]Read from MH i2c: E2 0E 00 [01:21:36]MH_I2C_Read... [01:21:36]Read from MH i2c: E2 0E 00 C5 0C 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 61 [01:21:36]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [01:21:36]wFMCommunicate OK [01:21:36]SAM_PROTO_GetShiftState done [01:21:36]FM_GetShiftState done [01:21:36]opened in 1718929509 [01:21:36]opened+sec_in_day 1719015909 [01:21:36]quantity*price = 900023 [01:21:36]sum+1 = 900024 [01:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.23 НСП 1% : 79.65 НДС 12% : 955.78 Наличными: 0.00 Безнал.: 9000.23 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 7 21.06.2024 01:21 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875093 ФД: 104084 ФПД: 27744897577652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T012137&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104084&fm=27744897577652&tin=02508201610067®Number=0000000000092785&sum=900023 [01:21:37]StoreToDocumentArchive [01:21:37]shift 355 fd 104084 [01:21:37]save to /storage/0355/doc_00104084 [01:21:37]save last doc name /storage/0355/doc_00104084 to /storage/kkm_last_doc_name [01:21:37]save OK [01:21:37]Clear old archive folders... [01:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:21:37]tlvbuf is 01124FD0 [01:21:37]SAM_PROTO_ClearQueue [01:21:37]wFMCommunicate request_size=4 [01:21:37]MH_SAM_APDU [01:21:37]CAPDU: 80 09 00 00 [01:21:37]Write to MH i2c: E2 08 00 D2 0C 80 09 00 00 00 00 00 00 50 [01:21:37]Write i2c OK [01:21:37]MH_I2C_Read... [01:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:21:37]Read from MH i2c: E2 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 03 00 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 03 00 D2 0C 00 90 00 52 [01:21:37]RAPDU: 90 00 [01:21:37]wFMCommunicate OK [01:21:37]SAM_PROTO_ClearQueue done [01:21:37]KKMCreateOFDPacket [01:21:37]OFDProtocolAddRootSTLVToBuf [01:21:37]FM_MakeSignedData [01:21:37]FM_MakeSignedData [01:21:37]SAM_PROTO_SignData [01:21:37]wFMCommunicate request_size=4 [01:21:37]MH_SAM_APDU [01:21:37]CAPDU: 80 0D 01 02 [01:21:37]Write to MH i2c: E2 08 00 D3 0C 80 0D 01 02 00 00 00 00 58 [01:21:37]Write i2c OK [01:21:37]MH_I2C_Read... [01:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:21:37]Read from MH i2c: E2 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 03 00 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 03 00 D3 0C 00 90 00 53 [01:21:37]RAPDU: 90 00 [01:21:37]wFMCommunicate OK [01:21:37]wFMCommunicate request_size=255 [01:21:37]MH_SAM_APDU [01:21:37]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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 E2 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B7 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 A1 D5 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 96 01 00 35 04 06 00 [01:21:37]Write to MH i2c: E2 02 01 D4 0C 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 E2 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B7 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 A1 D5 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 96 01 00 35 04 06 00 00 00 CF [01:21:37]Write i2c OK [01:21:37]MH_I2C_Read... [01:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:37]Read from MH i2c: E2 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 03 00 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 03 00 D4 0C 00 90 00 54 [01:21:37]RAPDU: 90 00 [01:21:37]wFMCommunicate OK [01:21:37]wFMCommunicate request_size=11 [01:21:37]MH_SAM_APDU [01:21:37]CAPDU: 80 0D 02 02 06 19 3B DC C3 B2 B4 [01:21:37]Write to MH i2c: E2 0E 00 D5 0C 80 0D 02 02 06 00 19 3B DC C3 B2 B4 00 00 C0 [01:21:37]Write i2c OK [01:21:37]MH_I2C_Read... [01:21:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:21:37]Read from MH i2c: E2 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 03 00 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 03 00 D5 0C 00 90 00 55 [01:21:37]RAPDU: 90 00 [01:21:37]wFMCommunicate OK [01:21:37]wFMCommunicate request_size=4 [01:21:37]MH_SAM_APDU [01:21:37]CAPDU: 80 0D 03 02 [01:21:37]Write to MH i2c: E2 08 00 D6 0C 80 0D 03 02 00 00 00 00 5D [01:21:37]Write i2c OK [01:21:37]MH_I2C_Read... [01:21:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:21:37]Read from MH i2c: E2 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 0B 00 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 0B 00 D6 0C 00 1A DF 1E B3 C3 4B C5 1D 90 00 18 [01:21:37]RAPDU: 1A DF 1E B3 C3 4B C5 1D 90 00 [01:21:37]wFMCommunicate OK [01:21:37]SAM_PROTO_SignData done [01:21:37]FM_MakeSignedData done [01:21:37]CreateOFDProtocolMessage [01:21:37]wFMCommunicate request_size=4 [01:21:37]MH_SAM_APDU [01:21:37]CAPDU: 80 11 00 00 [01:21:37]Write to MH i2c: E2 08 00 D7 0C 80 11 00 00 00 00 00 00 5D [01:21:37]Write i2c OK [01:21:37]MH_I2C_Read... [01:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:37]Read from MH i2c: E2 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 17 00 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: E2 17 00 D7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 B0 [01:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:21:37]wFMCommunicate OK [01:21:37]CreateOFDProtocolMessage done [01:21:37]OFDSenderStorePacket 104084 [01:21:37]StoreOFDPacket docnum=104084 [01:21:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 14 62 08 01 85 AC 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 E2 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B7 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 A1 D5 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 96 01 00 35 04 06 00 19 3B DC C3 B2 B4 1A DF 1E B3 C3 4B C5 1D [01:21:37]CheckFolder [01:21:37]dirname=/storage/ofd_packets [01:21:37]CheckFolder done [01:21:37]ProducePacketName [01:21:37]name=ofd_packets/00104084 [01:21:37]NVStorageSaveData ofd_packets/00104084 [01:21:37]File name is /storage/ofd_packets/00104084 [01:21:37]Write 302 bytes [01:21:37]NVStorageSaveData done [01:21:37]OFDSenderStorePacket done [01:21:37]KKMCreateOFDPacket done [01:21:37]NVStorageSaveData kkm_last_timestamp [01:21:37]File name is /storage/kkm_last_timestamp [01:21:37]Write 4 bytes [01:21:37]NVStorageSaveData done [01:21:37]ExternCall_PrintAddStr [01:21:37]wPrintStart [01:21:37]Write to MH i2c: 01 00 00 D8 0C E4 [01:21:37]Write i2c OK [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: 01 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: 01 07 00 [01:21:37]MH_I2C_Read... [01:21:37]Read from MH i2c: 01 07 00 D8 0C 00 00 00 00 00 FF 0F F9 [01:21:37]RasterBufferAndPrint [01:21:37]line Счет N : (1)673472 [01:21:37]line ИНН: 02508201610067 [01:21:37]line Контрольно-Кассовый Чек [01:21:37]line ПРОДАЖА [01:21:37]line ТРК (МРК, ГНК) : 11 [01:21:37]line Товар: 2710194210 [01:21:37]line ДТ(л)-К-5 [01:21:37]line 123.460 * 72.90 [01:21:37]line = 9000.23 [01:21:37]line НДС 12% НСП 1% [01:21:37]line > о реализуемом товаре [01:21:37]line ИТОГО: 9000.23 [01:21:37]line НСП 1% : 79.65 [01:21:37]line НДС 12% : 955.78 [01:21:37]line Наличными: 0.00 [01:21:37]line Безнал.: 9000.23 [01:21:37]line Место: АЗС № 120 "Партнер Нефть" [01:21:37]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [01:21:37]line СНО: Общий режим [01:21:37]line Чек 7 21.06.2024 01:21 [01:21:37]line Смена: 355 ФФД: 1.0 [01:21:37]line ЗНМ: 0300000164 [01:21:37]line РНМ: 0000000000092785 [01:21:37]line Версия ККМ: 001 [01:21:37]line Платежная система: Бакай Банк [01:21:37]line ФМ: 0000000000875093 [01:21:37]line ФД: 104084 [01:21:37]line ФПД: 27744897577652 [01:21:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T012137&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104084&fm=27744897577652&tin=02508201610067®Number=0000000000092785&sum=900023 [01:21:38]OFD Sender: Processing packet 104084 [packets to send 17, broken 16] [01:21:38]ProducePacketName [01:21:38]name=ofd_packets/00104084 [01:21:38]OFD Sender: To server: pG, [01:21:38]CommunicateWithHost lk.salyk.kg:30040 [01:21:38]ConnectInit lk.salyk.kg [01:21:38]written 0, free lines is 4095 [01:21:38]Connected sock=10 [01:21:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 01 00 00 14 62 08 01 85 AC 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 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 44 E2 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B7 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 A1 D5 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 96 01 00 35 04 06 00 19 3B DC C3 B2 B4 1A DF 1E B3 C3 4B C5 1D [01:21:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 71 65 47 00 12 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 94 96 01 00 F4 03 04 00 25 7C 74 66 B6 04 01 00 00 CE E4 D8 DF FF EB 98 BD [01:21:38]CommunicateWithHost err = 0 [01:21:38]CheckOFDResponse [01:21:38]1017 (14) - 77093643461234 [01:21:38]1041 (16) - 0000000000875093 [01:21:38]1040 (4) - 104084 [01:21:38]1012 (4) - 20.06.2024 18:59 [01:21:38]1206 (1) - 0 [01:21:38]OFD Sender: Remove packet 104084 [01:21:38]ProducePacketName [01:21:38]name=ofd_packets/00104084 [01:21:38]NVStorageDeleteData [01:21:38]Write to MH i2c: 01 00 00 02 0D 0F [01:21:38]Write i2c OK [01:21:38]MH_I2C_Read... [01:21:38]Read from MH i2c: 01 [01:21:38]MH_I2C_Read... [01:21:38]Read from MH i2c: 01 07 00 [01:21:38]MH_I2C_Read... [01:21:38]Read from MH i2c: 01 07 00 02 0D 00 00 00 00 00 E3 0C 05 [01:21:38]RasterBufferAndPrint [01:21:38]line [01:21:38]line [01:21:38]line [01:21:38]line [01:21:38]line [01:21:38]written 0, free lines is 3306 [01:21:38]MH_Cut [01:21:38]Write to MH i2c: D1 01 00 09 0D 01 E8 [01:21:38]Write i2c OK [01:21:38]MH_I2C_Read... [01:21:38]Read from MH i2c: D1 [01:21:38]MH_I2C_Read... [01:21:38]Read from MH i2c: D1 01 00 [01:21:38]MH_I2C_Read... [01:21:38]Read from MH i2c: D1 01 00 09 0D 00 E7 [01:21:38]Write to MH i2c: 01 00 00 0A 0D 17 [01:21:38]Write i2c OK [01:21:38]MH_I2C_Read... [01:21:38]OFD Sender: No OFD packet to send [01:21:39]*** Cut start [01:21:39]*** Partial cut [01:21:39]*** CUTSNS_PIN = 1 [01:21:39]*** CUTSNS_PIN = 0 [01:21:39]*** Brake cut motor [01:21:39]Read from MH i2c: 01 [01:21:39]MH_I2C_Read... [01:21:39]*** Stop cut motor [01:21:39]*** Cut end [01:21:39]Read from MH i2c: 01 07 00 [01:21:39]MH_I2C_Read... [01:21:39]Read from MH i2c: 01 07 00 0A 0D 00 00 00 00 00 FF 0F 2C [01:21:39]process_action close_receipt done [01:21:39]requested_data is exist [01:21:39]produce_requested_data [01:21:39]requested_item fm.sn is exist - process it [01:21:39]wFMCommunicate request_size=4 [01:21:39]MH_SAM_APDU [01:21:39]CAPDU: 80 11 00 00 [01:21:39]Write to MH i2c: E2 08 00 0B 0D 80 11 00 00 00 00 00 00 92 [01:21:39]Write i2c OK [01:21:39]MH_I2C_Read... [01:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:21:39]Read from MH i2c: E2 [01:21:39]MH_I2C_Read... [01:21:39]Read from MH i2c: E2 17 00 [01:21:39]MH_I2C_Read... [01:21:39]Read from MH i2c: E2 17 00 0B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 E5 [01:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:21:39]wFMCommunicate OK [01:21:39]requested_item fd.num is exist - process it [01:21:39]SAM_PROTO_GetFieldsCounters [01:21:39]wFMCommunicate request_size=4 [01:21:39]MH_SAM_APDU [01:21:39]CAPDU: 80 13 00 00 [01:21:39]Write to MH i2c: E2 08 00 0C 0D 80 13 00 00 00 00 00 00 95 [01:21:39]Write i2c OK [01:21:39]MH_I2C_Read... [01:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:21:39]Read from MH i2c: E2 [01:21:39]MH_I2C_Read... [01:21:39]Read from MH i2c: E2 62 00 [01:21:39]MH_I2C_Read... [01:21:39]Read from MH i2c: E2 62 00 0C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 94 96 01 00 0E 04 04 00 63 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 60 [01:21:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 94 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:21:40]wFMCommunicate OK [01:21:40]SAM_PROTO_GetFieldsCounters done [01:21:40]requested_item shift.num is exist - process it [01:21:40]requested_item shift.opened is exist - process it [01:21:40]req_shift_opened [01:21:40]FM_GetShiftState [01:21:40]SAM_PROTO_GetShiftState [01:21:40]wFMCommunicate request_size=4 [01:21:40]MH_SAM_APDU [01:21:40]CAPDU: 80 13 01 00 [01:21:40]Write to MH i2c: E2 08 00 0D 0D 80 13 01 00 00 00 00 00 97 [01:21:40]Write i2c OK [01:21:40]MH_I2C_Read... [01:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:21:40]Read from MH i2c: E2 [01:21:40]MH_I2C_Read... [01:21:40]Read from MH i2c: E2 0E 00 [01:21:40]MH_I2C_Read... [01:21:40]Read from MH i2c: E2 0E 00 0D 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 AA [01:21:40]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [01:21:40]wFMCommunicate OK [01:21:40]SAM_PROTO_GetShiftState done [01:21:40]FM_GetShiftState done [01:21:40]req_shift_opened done [01:21:40]requested_item shift.open_date is exist - process it [01:21:40]req_shift_open_date [01:21:40]req_shift_open_date done [01:21:40]produce_requested_data done [01:21:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104084,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [01:21:40]process_action_free close_receipt [01:21:40]json_value_free [01:21:40]json_value_free done [01:21:40]process_json_proto returns [01:21:40]Send response to host [01:21:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104084,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [01:21:40]free response buf [01:21:40]execute_script done [01:21:40]execute_script returns [01:21:40]free content buf [01:21:40]Sock 9.Close socket [01:21:40]Sock 9.Thread stoped [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:03]int [01:28:03]Write to MH i2c: 01 00 00 0E 0D 1B [01:28:03]*** FLAG_PRN_KEY set [01:28:03]Write i2c OK [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: 01 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: 01 07 00 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: 01 07 00 0E 0D 00 08 00 00 00 FF 0F 38 [01:28:03]state=0 [01:28:03]Key pressed [01:28:03]Feed [01:28:03]Write to MH i2c: D8 00 00 0F 0D F3 [01:28:03]Write i2c OK [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: D8 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: D8 01 00 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: D8 01 00 0F 0D 00 F4 [01:28:03]int [01:28:03]Write to MH i2c: 01 00 00 10 0D 1D [01:28:03]Write i2c OK [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: 01 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: 01 07 00 [01:28:03]MH_I2C_Read... [01:28:03]Read from MH i2c: 01 07 00 10 0D 00 48 00 00 00 3C 00 A8 [01:28:03]state=2 [01:28:03]Key pressed [01:28:04]int [01:28:04]Write to MH i2c: 01 00 00 11 0D 1E [01:28:04]*** FLAG_PRN_KEY reset [01:28:04]Write i2c OK [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 07 00 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 07 00 11 0D 00 00 00 00 00 F6 0F 2A [01:28:04]state=2 [01:28:04]Stop feed [01:28:04]OFD Sender: No OFD packet to send [01:28:04]int [01:28:04]Write to MH i2c: 01 00 00 12 0D 1F [01:28:04]*** FLAG_PRN_KEY set [01:28:04]Write i2c OK [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 07 00 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 07 00 12 0D 00 08 00 00 00 FF 0F 3C [01:28:04]state=0 [01:28:04]Key pressed [01:28:04]Feed [01:28:04]Write to MH i2c: D8 00 00 13 0D F7 [01:28:04]Write i2c OK [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: D8 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: D8 01 00 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: D8 01 00 13 0D 00 F8 [01:28:04]int [01:28:04]Write to MH i2c: 01 00 00 14 0D 21 [01:28:04]Write i2c OK [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 07 00 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 07 00 14 0D 00 48 00 00 00 3C 00 AC [01:28:04]state=2 [01:28:04]Key pressed [01:28:04]int [01:28:04]Write to MH i2c: 01 00 00 15 0D 22 [01:28:04]*** FLAG_PRN_KEY reset [01:28:04]Write i2c OK [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 07 00 [01:28:04]MH_I2C_Read... [01:28:04]Read from MH i2c: 01 07 00 15 0D 00 00 00 00 00 F6 0F 2E [01:28:04]state=2 [01:28:04]Stop feed [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:55]int [01:30:55]Write to MH i2c: 01 00 00 16 0D 23 [01:30:55]*** FLAG_PRN_KEY set [01:30:55]Write i2c OK [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: 01 [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: 01 07 00 [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: 01 07 00 16 0D 00 08 00 00 00 FF 0F 40 [01:30:55]state=0 [01:30:55]Key pressed [01:30:55]Feed [01:30:55]Write to MH i2c: D8 00 00 17 0D FB [01:30:55]Write i2c OK [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: D8 [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: D8 01 00 [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: D8 01 00 17 0D 00 FC [01:30:55]int [01:30:55]Write to MH i2c: 01 00 00 18 0D 25 [01:30:55]Write i2c OK [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: 01 [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: 01 07 00 [01:30:55]MH_I2C_Read... [01:30:55]Read from MH i2c: 01 07 00 18 0D 00 48 00 00 00 3D 00 B1 [01:30:55]state=2 [01:30:55]Key pressed [01:30:56]int [01:30:56]Write to MH i2c: 01 00 00 19 0D 26 [01:30:56]*** FLAG_PRN_KEY reset [01:30:56]Write i2c OK [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 07 00 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 07 00 19 0D 00 00 00 00 00 F6 0F 32 [01:30:56]state=2 [01:30:56]Stop feed [01:30:56]int [01:30:56]Write to MH i2c: 01 00 00 1A 0D 27 [01:30:56]*** FLAG_PRN_KEY set [01:30:56]Write i2c OK [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 07 00 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 07 00 1A 0D 00 08 00 00 00 FF 0F 44 [01:30:56]state=0 [01:30:56]Key pressed [01:30:56]Feed [01:30:56]Write to MH i2c: D8 00 00 1B 0D FF [01:30:56]Write i2c OK [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: D8 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: D8 01 00 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: D8 01 00 1B 0D 00 00 [01:30:56]int [01:30:56]Write to MH i2c: 01 00 00 1C 0D 29 [01:30:56]Write i2c OK [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 07 00 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 07 00 1C 0D 00 48 00 00 00 3C 00 B4 [01:30:56]state=2 [01:30:56]Key pressed [01:30:56]int [01:30:56]Write to MH i2c: 01 00 00 1D 0D 2A [01:30:56]*** FLAG_PRN_KEY reset [01:30:56]Write i2c OK [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 07 00 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 07 00 1D 0D 00 00 00 00 00 F6 0F 36 [01:30:56]state=2 [01:30:56]Stop feed [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:12]accept exits with 7 [01:31:12]New connection [01:31:12]New thread 3066715492 created [01:31:12]Thread 3066858852 joined [01:31:12]Waiting for new connection... [01:31:12] Sock 7.Parse request [01:31:12]Sock 7.Check first char [01:31:12]Sock 7.First char is OK [01:31:12]request: POST /json_proto HTTP/1.0 [01:31:12]Method: POST [01:31:12]URL: /json_proto [01:31:12]Method is POST - this is cgi request [01:31:12]url: /json_proto [01:31:12]query_string will be loaded in cgi processing [01:31:12]execute_cgi json_proto POST (null) [01:31:12]execute_cgi path=json_proto method=POST [01:31:12]POST find Content-Length [01:31:12]Host: 172.17.38.133:8080 [01:31:12]Content-Length: 1189 [01:31:12]Content-Type: application/json [01:31:12] [01:31:12]POST finish read [01:31:12]Found Content-Length = 1189 [01:31: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673473\u000A21.06.2024 01:08\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.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\u000A4007040\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:12]execute_script... [01:31: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 120\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0441\u0430\u043D\u0431\u0430\u0435\u0432 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)673473\u000A21.06.2024 01:08\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.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\u000A4007040\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:12]POST & json_proto [01:31:12]process_json_proto [01:31:12]json parsed OK: [01:31:12]protocol is kg_v1.0 [01:31:12]action value=print_text [01:31:12]process_action print_text [01:31:12]cmd_print_text [01:31:12]ExternCall_PrintAddStr [01:31:12]wPrintStart [01:31:12]Write to MH i2c: 01 00 00 1E 0D 2B [01:31:12]Write i2c OK [01:31:12]MH_I2C_Read... [01:31:12]Read from MH i2c: 01 [01:31:12]MH_I2C_Read... [01:31:12]Read from MH i2c: 01 07 00 [01:31:12]MH_I2C_Read... [01:31:12]Read from MH i2c: 01 07 00 1E 0D 00 00 00 00 00 FF 0F 40 [01:31:12]RasterBufferAndPrint [01:31:12]line *****ТОВАРНЫЙ ЧЕК***** [01:31:12]line АЗС 120 [01:31:12]line Партнер нефть [01:31:12]line 02508201610067 [01:31:12]line Кассир : Асанбаев Н. [01:31:12]line Счет N : (1)673473 [01:31:12]line 21.06.2024 01:08 [01:31:12]line ПРОДАЖА [01:31:12]line ТРК (МРК, ГНК): 21 [01:31:12]line Вид ГСМ : 2710194210 [01:31:12]line ДТ(л)-К-5 [01:31:12]line 10.000 x 72.90 [01:31:12]line ИТОГ: 729.00 [01:31:12]line Тип оплаты: Талоны: Партнер нефть [01:31:12]line 4007040 [01:31:12]line ______________________ [01:31:12]line (подпись) [01:31:12]written 0, free lines is 4095 [01:31:12]Write to MH i2c: 01 00 00 32 0D 3F [01:31:12]Write i2c OK [01:31:12]MH_I2C_Read... [01:31:12]Read from MH i2c: 01 [01:31:12]MH_I2C_Read... [01:31:12]Read from MH i2c: 01 07 00 [01:31:12]MH_I2C_Read... [01:31:12]Read from MH i2c: 01 07 00 32 0D 00 00 00 00 00 12 0E 66 [01:31:12]RasterBufferAndPrint [01:31:12]line [01:31:12]line [01:31:12]line [01:31:12]line [01:31:12]line [01:31:12]written 0, free lines is 3604 [01:31:12]MH_Cut [01:31:12]Write to MH i2c: D1 01 00 39 0D 01 18 [01:31:12]Write i2c OK [01:31:12]MH_I2C_Read... [01:31:12]Read from MH i2c: D1 [01:31:12]MH_I2C_Read... [01:31:12]Read from MH i2c: D1 01 00 [01:31:12]MH_I2C_Read... [01:31:12]Read from MH i2c: D1 01 00 39 0D 00 17 [01:31:12]Write to MH i2c: 01 00 00 3A 0D 47 [01:31:12]Write i2c OK [01:31:12]MH_I2C_Read... [01:31:13]*** Cut start [01:31:13]*** Partial cut [01:31:13]*** CUTSNS_PIN = 1 [01:31:13]*** CUTSNS_PIN = 0 [01:31:13]*** Brake cut motor [01:31:13]Read from MH i2c: 01 [01:31:13]MH_I2C_Read... [01:31:13]Read from MH i2c: 01 07 00 [01:31:13]MH_I2C_Read... [01:31:13]*** Stop cut motor [01:31:13]*** Cut end [01:31:13]Read from MH i2c: 01 07 00 3A 0D 00 00 00 00 00 FF 0F 5C [01:31:13]process_action print_text done [01:31:13]requested_data is exist [01:31:13]produce_requested_data [01:31:13]requested_item fm.sn is exist - process it [01:31:13]wFMCommunicate request_size=4 [01:31:13]MH_SAM_APDU [01:31:13]CAPDU: 80 11 00 00 [01:31:13]Write to MH i2c: E2 08 00 3B 0D 80 11 00 00 00 00 00 00 C2 [01:31:13]Write i2c OK [01:31:13]MH_I2C_Read... [01:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:13]Read from MH i2c: E2 [01:31:13]MH_I2C_Read... [01:31:13]Read from MH i2c: E2 17 00 [01:31:13]MH_I2C_Read... [01:31:13]Read from MH i2c: E2 17 00 3B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 15 [01:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [01:31:13]wFMCommunicate OK [01:31:13]requested_item fd.num is exist - process it [01:31:13]SAM_PROTO_GetFieldsCounters [01:31:13]wFMCommunicate request_size=4 [01:31:13]MH_SAM_APDU [01:31:13]CAPDU: 80 13 00 00 [01:31:13]Write to MH i2c: E2 08 00 3C 0D 80 13 00 00 00 00 00 00 C5 [01:31:13]Write i2c OK [01:31:13]MH_I2C_Read... [01:31:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:31:14]Read from MH i2c: E2 [01:31:14]MH_I2C_Read... [01:31:14]Read from MH i2c: E2 62 00 [01:31:14]MH_I2C_Read... [01:31:14]Read from MH i2c: E2 62 00 3C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 94 96 01 00 0E 04 04 00 63 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 90 [01:31:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 94 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:31:14]wFMCommunicate OK [01:31:14]SAM_PROTO_GetFieldsCounters done [01:31:14]requested_item shift.num is exist - process it [01:31:14]requested_item shift.opened is exist - process it [01:31:14]req_shift_opened [01:31:14]FM_GetShiftState [01:31:14]SAM_PROTO_GetShiftState [01:31:14]wFMCommunicate request_size=4 [01:31:14]MH_SAM_APDU [01:31:14]CAPDU: 80 13 01 00 [01:31:14]Write to MH i2c: E2 08 00 3D 0D 80 13 01 00 00 00 00 00 C7 [01:31:14]Write i2c OK [01:31:14]MH_I2C_Read... [01:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:14]Read from MH i2c: E2 [01:31:14]MH_I2C_Read... [01:31:14]Read from MH i2c: E2 0E 00 [01:31:14]MH_I2C_Read... [01:31:14]Read from MH i2c: E2 0E 00 3D 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 DA [01:31:14]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [01:31:14]wFMCommunicate OK [01:31:14]SAM_PROTO_GetShiftState done [01:31:14]FM_GetShiftState done [01:31:14]req_shift_opened done [01:31:14]requested_item shift.open_date is exist - process it [01:31:14]req_shift_open_date [01:31:14]req_shift_open_date done [01:31:14]produce_requested_data done [01:31:14]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104084,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [01:31:14]process_action_free print_text [01:31:14]json_value_free [01:31:14]json_value_free done [01:31:14]process_json_proto returns [01:31:14]Send response to host [01:31:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104084,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [01:31:14]free response buf [01:31:14]execute_script done [01:31:14]execute_script returns [01:31:14]free content buf [01:31:14]Sock 7.Close socket [01:31:14]Sock 7.Thread stoped [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:55]OFD Sender: No OFD packet to send [02:01:00]OFD Sender: No OFD packet to send [02:01:05]OFD Sender: No OFD packet to send [02:01:10]OFD Sender: No OFD packet to send [02:01:15]OFD Sender: No OFD packet to send [02:01:20]OFD Sender: No OFD packet to send [02:01:25]OFD Sender: No OFD packet to send [02:01:30]OFD Sender: No OFD packet to send [02:01:35]OFD Sender: No OFD packet to send [02:01:40]OFD Sender: No OFD packet to send [02:01:45]OFD Sender: No OFD packet to send [02:01:50]OFD Sender: No OFD packet to send [02:01:55]OFD Sender: No OFD packet to send [02:02:00]OFD Sender: No OFD packet to send [02:02:05]OFD Sender: No OFD packet to send [02:02:10]OFD Sender: No OFD packet to send [02:02:15]OFD Sender: No OFD packet to send [02:02:20]OFD Sender: No OFD packet to send [02:02:25]OFD Sender: No OFD packet to send [02:02:30]OFD Sender: No OFD packet to send [02:02:35]OFD Sender: No OFD packet to send [02:02:40]OFD Sender: No OFD packet to send [02:02:45]OFD Sender: No OFD packet to send [02:02:50]OFD Sender: No OFD packet to send [02:02:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:02]accept exits with 9 [02:22:02]New connection [02:22:02]New thread 3066858852 created [02:22:02]Thread 3066715492 joined [02:22:02]Waiting for new connection... [02:22:02] Sock 9.Parse request [02:22:02]Sock 9.Check first char [02:22:02]Sock 9.First char is OK [02:22:02]request: POST /json_proto HTTP/1.0 [02:22:02]Method: POST [02:22:02]URL: /json_proto [02:22:02]Method is POST - this is cgi request [02:22:02]url: /json_proto [02:22:02]query_string will be loaded in cgi processing [02:22:02]execute_cgi json_proto POST (null) [02:22:02]execute_cgi path=json_proto method=POST [02:22:02]POST find Content-Length [02:22:02]Host: 172.17.38.133:8080 [02:22:02]Content-Length: 682 [02:22:02]Content-Type: application/json [02:22:02] [02:22:02]POST finish read [02:22:02]Found Content-Length = 682 [02:22:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [02:22:02]execute_script... [02:22: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)673474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [02:22:02]POST & json_proto [02:22:02]process_json_proto [02:22:02]json parsed OK: [02:22:02]protocol is kg_v1.0 [02:22:02]action value=close_receipt [02:22:02]process_action close_receipt [02:22:02]cmd_close_receipt [02:22:02]MH_GetDate [02:22:02]Write to MH i2c: F0 00 00 3E 0D 3A [02:22:02]Write i2c OK [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: F0 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: F0 09 00 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: F0 09 00 3E 0D 00 CC E3 74 66 BD 8F 7C 64 F8 [02:22:02]GetLastDocTimeStamp 1718932897 [02:22:02]current date 1718936524 [02:22:02]FM_GetShiftState [02:22:02]SAM_PROTO_GetShiftState [02:22:02]wFMCommunicate request_size=4 [02:22:02]MH_SAM_APDU [02:22:02]CAPDU: 80 13 01 00 [02:22:02]Write to MH i2c: E2 08 00 3F 0D 80 13 01 00 00 00 00 00 C9 [02:22:02]Write i2c OK [02:22:02]MH_I2C_Read... [02:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:02]Read from MH i2c: E2 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: E2 0E 00 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: E2 0E 00 3F 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 DC [02:22:02]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [02:22:02]wFMCommunicate OK [02:22:02]SAM_PROTO_GetShiftState done [02:22:02]FM_GetShiftState done [02:22:02]opened in 1718929509 [02:22:02]opened+sec_in_day 1719015909 [02:22:02]quantity*price = 100064 [02:22:02]sum+1 = 100066 [02:22:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 8 21.06.2024 02:22 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104085 ФПД: 259147293111903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T022204&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104085&fm=259147293111903&tin=02508201610067®Number=0000000000092785&sum=100000 [02:22:03]StoreToDocumentArchive [02:22:03]shift 355 fd 104085 [02:22:03]save to /storage/0355/doc_00104085 [02:22:03]save last doc name /storage/0355/doc_00104085 to /storage/kkm_last_doc_name [02:22:03]save OK [02:22:03]Clear old archive folders... [02:22:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:22:03]tlvbuf is B6F3E440 [02:22:03]SAM_PROTO_ClearQueue [02:22:03]wFMCommunicate request_size=4 [02:22:03]MH_SAM_APDU [02:22:03]CAPDU: 80 09 00 00 [02:22:03]Write to MH i2c: E2 08 00 4C 0D 80 09 00 00 00 00 00 00 CB [02:22:03]Write i2c OK [02:22:03]MH_I2C_Read... [02:22:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:22:03]Read from MH i2c: E2 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 03 00 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 03 00 4C 0D 00 90 00 CD [02:22:03]RAPDU: 90 00 [02:22:03]wFMCommunicate OK [02:22:03]SAM_PROTO_ClearQueue done [02:22:03]KKMCreateOFDPacket [02:22:03]OFDProtocolAddRootSTLVToBuf [02:22:03]FM_MakeSignedData [02:22:03]FM_MakeSignedData [02:22:03]SAM_PROTO_SignData [02:22:03]wFMCommunicate request_size=4 [02:22:03]MH_SAM_APDU [02:22:03]CAPDU: 80 0D 01 02 [02:22:03]Write to MH i2c: E2 08 00 4D 0D 80 0D 01 02 00 00 00 00 D3 [02:22:03]Write i2c OK [02:22:03]MH_I2C_Read... [02:22:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:22:03]Read from MH i2c: E2 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 03 00 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [02:22:03]RAPDU: 90 00 [02:22:03]wFMCommunicate OK [02:22:03]wFMCommunicate request_size=255 [02:22:03]MH_SAM_APDU [02:22:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 CC E3 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 96 01 00 35 04 06 00 EB [02:22:03]Write to MH i2c: E2 02 01 4E 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 CC E3 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 96 01 00 35 04 06 00 EB 00 00 E9 [02:22:03]Write i2c OK [02:22:03]MH_I2C_Read... [02:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:03]Read from MH i2c: E2 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 03 00 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 03 00 4E 0D 00 90 00 CF [02:22:03]RAPDU: 90 00 [02:22:03]wFMCommunicate OK [02:22:03]wFMCommunicate request_size=10 [02:22:03]MH_SAM_APDU [02:22:03]CAPDU: 80 0D 02 02 05 B1 6E 59 B6 5F [02:22:03]Write to MH i2c: E2 0D 00 4F 0D 80 0D 02 02 05 00 B1 6E 59 B6 5F 00 00 6D [02:22:03]Write i2c OK [02:22:03]MH_I2C_Read... [02:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:03]Read from MH i2c: E2 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 03 00 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 03 00 4F 0D 00 90 00 D0 [02:22:03]RAPDU: 90 00 [02:22:03]wFMCommunicate OK [02:22:03]wFMCommunicate request_size=4 [02:22:03]MH_SAM_APDU [02:22:03]CAPDU: 80 0D 03 02 [02:22:03]Write to MH i2c: E2 08 00 50 0D 80 0D 03 02 00 00 00 00 D8 [02:22:03]Write i2c OK [02:22:03]MH_I2C_Read... [02:22:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:22:03]Read from MH i2c: E2 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 0B 00 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 0B 00 50 0D 00 CF BD E7 EB E4 A1 DD 59 90 00 F2 [02:22:03]RAPDU: CF BD E7 EB E4 A1 DD 59 90 00 [02:22:03]wFMCommunicate OK [02:22:03]SAM_PROTO_SignData done [02:22:03]FM_MakeSignedData done [02:22:03]CreateOFDProtocolMessage [02:22:03]wFMCommunicate request_size=4 [02:22:03]MH_SAM_APDU [02:22:03]CAPDU: 80 11 00 00 [02:22:03]Write to MH i2c: E2 08 00 51 0D 80 11 00 00 00 00 00 00 D8 [02:22:03]Write i2c OK [02:22:03]MH_I2C_Read... [02:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:03]Read from MH i2c: E2 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 17 00 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: E2 17 00 51 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 2B [02:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:22:03]wFMCommunicate OK [02:22:03]CreateOFDProtocolMessage done [02:22:03]OFDSenderStorePacket 104085 [02:22:03]StoreOFDPacket docnum=104085 [02:22:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0B BF 07 01 EB 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 CC E3 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 96 01 00 35 04 06 00 EB B1 6E 59 B6 5F CF BD E7 EB E4 A1 DD 59 [02:22:03]CheckFolder [02:22:03]dirname=/storage/ofd_packets [02:22:03]CheckFolder done [02:22:03]ProducePacketName [02:22:03]name=ofd_packets/00104085 [02:22:03]NVStorageSaveData ofd_packets/00104085 [02:22:03]File name is /storage/ofd_packets/00104085 [02:22:03]Write 301 bytes [02:22:03]NVStorageSaveData done [02:22:03]OFDSenderStorePacket done [02:22:03]KKMCreateOFDPacket done [02:22:03]NVStorageSaveData kkm_last_timestamp [02:22:03]File name is /storage/kkm_last_timestamp [02:22:03]Write 4 bytes [02:22:03]NVStorageSaveData done [02:22:03]ExternCall_PrintAddStr [02:22:03]wPrintStart [02:22:03]Write to MH i2c: 01 00 00 52 0D 5F [02:22:03]Write i2c OK [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: 01 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: 01 07 00 [02:22:03]MH_I2C_Read... [02:22:03]Read from MH i2c: 01 07 00 52 0D 00 00 00 00 00 FF 0F 74 [02:22:03]RasterBufferAndPrint [02:22:03]line Счет N : (1)673474 [02:22:03]line ИНН: 02508201610067 [02:22:03]line Контрольно-Кассовый Чек [02:22:03]line ПРОДАЖА [02:22:03]line ТРК (МРК, ГНК) : 32 [02:22:03]line Товар: 2710124130 [02:22:03]line Аи-92-К-5 [02:22:03]line 15.070 * 66.40 [02:22:03]line = 1000.65 [02:22:03]line НДС 12% НСП 1% [02:22:03]line > о реализуемом товаре [02:22:03]line ОКРУГЛЕНИЕ: -0.65 [02:22:03]line ИТОГО: 1000.00 [02:22:03]line Внесено: 1000.00 [02:22:03]line СДАЧА: 0.00 [02:22:03]line НСП 1% : 8.85 [02:22:03]line НДС 12% : 106.26 [02:22:03]line Наличными: 1000.00 [02:22:03]line Безнал.: 0.00 [02:22:03]line Место: АЗС № 120 "Партнер Нефть" [02:22:03]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:22:03]line СНО: Общий режим [02:22:03]line Чек 8 21.06.2024 02:22 [02:22:03]line Смена: 355 ФФД: 1.0 [02:22:03]line ЗНМ: 0300000164 [02:22:03]line РНМ: 0000000000092785 [02:22:03]line Версия ККМ: 001 [02:22:03]line ФМ: 0000000000875093 [02:22:03]line ФД: 104085 [02:22:03]line ФПД: 259147293111903 [02:22:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T022204&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104085&fm=259147293111903&tin=02508201610067®Number=0000000000092785&sum=100000 [02:22:04]OFD Sender: Processing packet 104085 [packets to send 17, broken 16] [02:22:04]ProducePacketName [02:22:04]name=ofd_packets/00104085 [02:22:04]OFD Sender: To server: pG, [02:22:04]CommunicateWithHost lk.salyk.kg:30040 [02:22:04]ConnectInit lk.salyk.kg [02:22:04]written 0, free lines is 4095 [02:22:04]Connected sock=10 [02:22:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 0B BF 07 01 EB 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 CC E3 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 96 01 00 35 04 06 00 EB B1 6E 59 B6 5F CF BD E7 EB E4 A1 DD 59 [02:22:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 DE 1E 47 00 BD 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 95 96 01 00 F4 03 04 00 50 8A 74 66 B6 04 01 00 00 B4 E7 0C E2 9B 6A EA 58 [02:22:04]CommunicateWithHost err = 0 [02:22:04]CheckOFDResponse [02:22:04]1017 (14) - 77093643461234 [02:22:04]1041 (16) - 0000000000875093 [02:22:04]1040 (4) - 104085 [02:22:04]1012 (4) - 20.06.2024 20:00 [02:22:04]1206 (1) - 0 [02:22:04]OFD Sender: Remove packet 104085 [02:22:04]ProducePacketName [02:22:04]name=ofd_packets/00104085 [02:22:04]NVStorageDeleteData [02:22:04]Write to MH i2c: 01 00 00 7D 0D 8A [02:22:04]Write i2c OK [02:22:04]MH_I2C_Read... [02:22:04]Read from MH i2c: 01 [02:22:04]MH_I2C_Read... [02:22:04]Read from MH i2c: 01 07 00 [02:22:04]MH_I2C_Read... [02:22:04]Read from MH i2c: 01 07 00 7D 0D 00 00 00 00 00 D4 0C 71 [02:22:04]RasterBufferAndPrint [02:22:04]line [02:22:04]line [02:22:04]line [02:22:04]line [02:22:04]line [02:22:04]written 0, free lines is 3292 [02:22:04]MH_Cut [02:22:04]Write to MH i2c: D1 01 00 84 0D 01 63 [02:22:04]Write i2c OK [02:22:04]MH_I2C_Read... [02:22:04]Read from MH i2c: D1 [02:22:04]MH_I2C_Read... [02:22:04]Read from MH i2c: D1 01 00 [02:22:04]MH_I2C_Read... [02:22:04]Read from MH i2c: D1 01 00 84 0D 00 62 [02:22:04]Write to MH i2c: 01 00 00 85 0D 92 [02:22:04]Write i2c OK [02:22:04]MH_I2C_Read... [02:22:05]OFD Sender: No OFD packet to send [02:22:05]*** Cut start [02:22:05]*** Partial cut [02:22:05]*** CUTSNS_PIN = 1 [02:22:05]*** CUTSNS_PIN = 0 [02:22:05]*** Brake cut motor [02:22:05]Read from MH i2c: 01 [02:22:05]MH_I2C_Read... [02:22:05]*** Stop cut motor [02:22:05]*** Cut end [02:22:05]Read from MH i2c: 01 07 00 [02:22:05]MH_I2C_Read... [02:22:05]Read from MH i2c: 01 07 00 85 0D 00 00 00 00 00 FF 0F A7 [02:22:05]process_action close_receipt done [02:22:05]requested_data is exist [02:22:05]produce_requested_data [02:22:05]requested_item fm.sn is exist - process it [02:22:05]wFMCommunicate request_size=4 [02:22:05]MH_SAM_APDU [02:22:05]CAPDU: 80 11 00 00 [02:22:05]Write to MH i2c: E2 08 00 86 0D 80 11 00 00 00 00 00 00 0D [02:22:05]Write i2c OK [02:22:05]MH_I2C_Read... [02:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:06]Read from MH i2c: E2 [02:22:06]MH_I2C_Read... [02:22:06]Read from MH i2c: E2 17 00 [02:22:06]MH_I2C_Read... [02:22:06]Read from MH i2c: E2 17 00 86 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 60 [02:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:22:06]wFMCommunicate OK [02:22:06]requested_item fd.num is exist - process it [02:22:06]SAM_PROTO_GetFieldsCounters [02:22:06]wFMCommunicate request_size=4 [02:22:06]MH_SAM_APDU [02:22:06]CAPDU: 80 13 00 00 [02:22:06]Write to MH i2c: E2 08 00 87 0D 80 13 00 00 00 00 00 00 10 [02:22:06]Write i2c OK [02:22:06]MH_I2C_Read... [02:22:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:22:06]Read from MH i2c: E2 [02:22:06]MH_I2C_Read... [02:22:06]Read from MH i2c: E2 62 00 [02:22:06]MH_I2C_Read... [02:22:06]Read from MH i2c: E2 62 00 87 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 95 96 01 00 0E 04 04 00 63 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 DF [02:22:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 95 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:22:06]wFMCommunicate OK [02:22:06]SAM_PROTO_GetFieldsCounters done [02:22:06]requested_item shift.num is exist - process it [02:22:06]requested_item shift.opened is exist - process it [02:22:06]req_shift_opened [02:22:06]FM_GetShiftState [02:22:06]SAM_PROTO_GetShiftState [02:22:06]wFMCommunicate request_size=4 [02:22:06]MH_SAM_APDU [02:22:06]CAPDU: 80 13 01 00 [02:22:06]Write to MH i2c: E2 08 00 88 0D 80 13 01 00 00 00 00 00 12 [02:22:06]Write i2c OK [02:22:06]MH_I2C_Read... [02:22:06]Read from MH i2c: E2 [02:22:06]MH_I2C_Read... [02:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:06]Read from MH i2c: E2 0E 00 [02:22:06]MH_I2C_Read... [02:22:06]Read from MH i2c: E2 0E 00 88 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 25 [02:22:06]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [02:22:06]wFMCommunicate OK [02:22:06]SAM_PROTO_GetShiftState done [02:22:06]FM_GetShiftState done [02:22:06]req_shift_opened done [02:22:06]requested_item shift.open_date is exist - process it [02:22:06]req_shift_open_date [02:22:06]req_shift_open_date done [02:22:06]produce_requested_data done [02:22:06]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104085,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [02:22:06]process_action_free close_receipt [02:22:06]json_value_free [02:22:06]json_value_free done [02:22:06]process_json_proto returns [02:22:06]Send response to host [02:22:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104085,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [02:22:06]free response buf [02:22:06]execute_script done [02:22:06]execute_script returns [02:22:06]free content buf [02:22:06]Sock 9.Close socket [02:22:06]Sock 9.Thread stoped [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:36]accept exits with 7 [02:38:36]New connection [02:38:36]New thread 3066715492 created [02:38:36]Thread 3066858852 joined [02:38:36]Waiting for new connection... [02:38:36] Sock 7.Parse request [02:38:36]Sock 7.Check first char [02:38:36]Sock 7.First char is OK [02:38:36]request: POST /json_proto HTTP/1.0 [02:38:36]Method: POST [02:38:36]URL: /json_proto [02:38:36]Method is POST - this is cgi request [02:38:36]url: /json_proto [02:38:36]query_string will be loaded in cgi processing [02:38:36]execute_cgi json_proto POST (null) [02:38:36]execute_cgi path=json_proto method=POST [02:38:36]POST find Content-Length [02:38:36]Host: 172.17.38.133:8080 [02:38:36]Content-Length: 682 [02:38:36]Content-Type: application/json [02:38:36] [02:38:36]POST finish read [02:38:36]Found Content-Length = 682 [02:38:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [02:38:36]execute_script... [02:38:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)673475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "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" ] } } [02:38:36]POST & json_proto [02:38:36]process_json_proto [02:38:36]json parsed OK: [02:38:36]protocol is kg_v1.0 [02:38:36]action value=close_receipt [02:38:36]process_action close_receipt [02:38:36]cmd_close_receipt [02:38:36]MH_GetDate [02:38:36]Write to MH i2c: F0 00 00 89 0D 85 [02:38:36]Write i2c OK [02:38:36]MH_I2C_Read... [02:38:36]Read from MH i2c: F0 [02:38:36]MH_I2C_Read... [02:38:36]Read from MH i2c: F0 09 00 [02:38:36]MH_I2C_Read... [02:38:36]Read from MH i2c: F0 09 00 89 0D 00 AE E7 74 66 BD 8F 7C 64 29 [02:38:36]GetLastDocTimeStamp 1718936524 [02:38:36]current date 1718937518 [02:38:36]FM_GetShiftState [02:38:36]SAM_PROTO_GetShiftState [02:38:36]wFMCommunicate request_size=4 [02:38:36]MH_SAM_APDU [02:38:36]CAPDU: 80 13 01 00 [02:38:36]Write to MH i2c: E2 08 00 8A 0D 80 13 01 00 00 00 00 00 14 [02:38:36]Write i2c OK [02:38:36]MH_I2C_Read... [02:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:36]Read from MH i2c: E2 [02:38:36]MH_I2C_Read... [02:38:36]Read from MH i2c: E2 0E 00 [02:38:36]MH_I2C_Read... [02:38:36]Read from MH i2c: E2 0E 00 8A 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 27 [02:38:36]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [02:38:36]wFMCommunicate OK [02:38:36]SAM_PROTO_GetShiftState done [02:38:36]FM_GetShiftState done [02:38:36]opened in 1718929509 [02:38:36]opened+sec_in_day 1719015909 [02:38:36]quantity*price = 100064 [02:38:36]sum+1 = 100066 [02:38:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 120 "Партнер Нефть" Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 СНО: Общий режим Чек 9 21.06.2024 02:38 Смена: 355 ФФД: 1.0 ЗНМ: 0300000164 РНМ: 0000000000092785 Версия ККМ: 001 ФМ: 0000000000875093 ФД: 104086 ФПД: 179514547355506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T023838&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104086&fm=179514547355506&tin=02508201610067®Number=0000000000092785&sum=100000 [02:38:37]StoreToDocumentArchive [02:38:37]shift 355 fd 104086 [02:38:37]save to /storage/0355/doc_00104086 [02:38:37]save last doc name /storage/0355/doc_00104086 to /storage/kkm_last_doc_name [02:38:37]save OK [02:38:37]Clear old archive folders... [02:38:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:38:37]tlvbuf is 01148CF0 [02:38:37]SAM_PROTO_ClearQueue [02:38:37]wFMCommunicate request_size=4 [02:38:37]MH_SAM_APDU [02:38:37]CAPDU: 80 09 00 00 [02:38:37]Write to MH i2c: E2 08 00 97 0D 80 09 00 00 00 00 00 00 16 [02:38:37]Write i2c OK [02:38:37]MH_I2C_Read... [02:38:37]Read from MH i2c: E2 [02:38:37]MH_I2C_Read... [02:38:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:38:37]Read from MH i2c: E2 03 00 [02:38:37]MH_I2C_Read... [02:38:37]Read from MH i2c: E2 03 00 97 0D 00 90 00 18 [02:38:37]RAPDU: 90 00 [02:38:37]wFMCommunicate OK [02:38:37]SAM_PROTO_ClearQueue done [02:38:37]KKMCreateOFDPacket [02:38:37]OFDProtocolAddRootSTLVToBuf [02:38:37]FM_MakeSignedData [02:38:37]FM_MakeSignedData [02:38:37]SAM_PROTO_SignData [02:38:37]wFMCommunicate request_size=4 [02:38:37]MH_SAM_APDU [02:38:37]CAPDU: 80 0D 01 02 [02:38:37]Write to MH i2c: E2 08 00 98 0D 80 0D 01 02 00 00 00 00 1E [02:38:37]Write i2c OK [02:38:37]MH_I2C_Read... [02:38:37]Read from MH i2c: E2 [02:38:37]MH_I2C_Read... [02:38:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:38:37]Read from MH i2c: E2 03 00 [02:38:37]MH_I2C_Read... [02:38:37]Read from MH i2c: E2 03 00 98 0D 00 90 00 19 [02:38:37]RAPDU: 90 00 [02:38:37]wFMCommunicate OK [02:38:37]wFMCommunicate request_size=255 [02:38:37]MH_SAM_APDU [02:38: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AE E7 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 96 01 00 35 04 06 00 A3 [02:38:37]Write to MH i2c: E2 02 01 99 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AE E7 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 96 01 00 35 04 06 00 A3 00 00 D4 [02:38:37]Write i2c OK [02:38:37]MH_I2C_Read... [02:38:38]Read from MH i2c: E2 [02:38:38]MH_I2C_Read... [02:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:38]Read from MH i2c: E2 03 00 [02:38:38]MH_I2C_Read... [02:38:38]Read from MH i2c: E2 03 00 99 0D 00 90 00 1A [02:38:38]RAPDU: 90 00 [02:38:38]wFMCommunicate OK [02:38:38]wFMCommunicate request_size=10 [02:38:38]MH_SAM_APDU [02:38:38]CAPDU: 80 0D 02 02 05 44 7C D3 BF 72 [02:38:38]Write to MH i2c: E2 0D 00 9A 0D 80 0D 02 02 05 00 44 7C D3 BF 72 00 00 EF [02:38:38]Write i2c OK [02:38:38]MH_I2C_Read... [02:38:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:38]Read from MH i2c: E2 [02:38:38]MH_I2C_Read... [02:38:38]Read from MH i2c: E2 03 00 [02:38:38]MH_I2C_Read... [02:38:38]Read from MH i2c: E2 03 00 9A 0D 00 90 00 1B [02:38:38]RAPDU: 90 00 [02:38:38]wFMCommunicate OK [02:38:38]wFMCommunicate request_size=4 [02:38:38]MH_SAM_APDU [02:38:38]CAPDU: 80 0D 03 02 [02:38:38]Write to MH i2c: E2 08 00 9B 0D 80 0D 03 02 00 00 00 00 23 [02:38:38]Write i2c OK [02:38:38]MH_I2C_Read... [02:38:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:38:38]Read from MH i2c: E2 [02:38:38]MH_I2C_Read... [02:38:38]Read from MH i2c: E2 0B 00 [02:38:38]MH_I2C_Read... [02:38:38]Read from MH i2c: E2 0B 00 9B 0D 00 FA 73 1F E9 EB 25 73 98 90 00 B4 [02:38:38]RAPDU: FA 73 1F E9 EB 25 73 98 90 00 [02:38:38]wFMCommunicate OK [02:38:38]SAM_PROTO_SignData done [02:38:38]FM_MakeSignedData done [02:38:38]CreateOFDProtocolMessage [02:38:38]wFMCommunicate request_size=4 [02:38:38]MH_SAM_APDU [02:38:38]CAPDU: 80 11 00 00 [02:38:38]Write to MH i2c: E2 08 00 9C 0D 80 11 00 00 00 00 00 00 23 [02:38:38]Write i2c OK [02:38:38]MH_I2C_Read... [02:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:38]Read from MH i2c: E2 [02:38:38]MH_I2C_Read... [02:38:38]Read from MH i2c: E2 17 00 [02:38:38]MH_I2C_Read... [02:38:38]Read from MH i2c: E2 17 00 9C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 76 [02:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:38:38]wFMCommunicate OK [02:38:38]CreateOFDProtocolMessage done [02:38:38]OFDSenderStorePacket 104086 [02:38:38]StoreOFDPacket docnum=104086 [02:38:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C1 23 07 01 E3 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AE E7 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 96 01 00 35 04 06 00 A3 44 7C D3 BF 72 FA 73 1F E9 EB 25 73 98 [02:38:38]CheckFolder [02:38:38]dirname=/storage/ofd_packets [02:38:38]CheckFolder done [02:38:38]ProducePacketName [02:38:38]name=ofd_packets/00104086 [02:38:38]NVStorageSaveData ofd_packets/00104086 [02:38:38]File name is /storage/ofd_packets/00104086 [02:38:38]Write 301 bytes [02:38:38]NVStorageSaveData done [02:38:38]OFDSenderStorePacket done [02:38:38]KKMCreateOFDPacket done [02:38:38]NVStorageSaveData kkm_last_timestamp [02:38:38]File name is /storage/kkm_last_timestamp [02:38:38]Write 4 bytes [02:38:38]NVStorageSaveData done [02:38:38]ExternCall_PrintAddStr [02:38:38]wPrintStart [02:38:38]Write to MH i2c: 01 00 00 9D 0D AA [02:38:38]Write i2c OK [02:38:38]MH_I2C_Read... [02:38:38]Read from MH i2c: 01 [02:38:38]MH_I2C_Read... [02:38:38]Read from MH i2c: 01 07 00 [02:38:38]MH_I2C_Read... [02:38:38]Read from MH i2c: 01 07 00 9D 0D 00 00 00 00 00 FF 0F BF [02:38:38]RasterBufferAndPrint [02:38:38]line Счет N : (1)673475 [02:38:38]line ИНН: 02508201610067 [02:38:38]line Контрольно-Кассовый Чек [02:38:38]line ПРОДАЖА [02:38:38]line ТРК (МРК, ГНК) : 32 [02:38:38]line Товар: 2710124130 [02:38:38]line Аи-92-К-5 [02:38:38]line 15.070 * 66.40 [02:38:38]line = 1000.65 [02:38:38]line НДС 12% НСП 1% [02:38:38]line > о реализуемом товаре [02:38:38]line ОКРУГЛЕНИЕ: -0.65 [02:38:38]line ИТОГО: 1000.00 [02:38:38]line Внесено: 1000.00 [02:38:38]line СДАЧА: 0.00 [02:38:38]line НСП 1% : 8.85 [02:38:38]line НДС 12% : 106.26 [02:38:38]line Наличными: 1000.00 [02:38:38]line Безнал.: 0.00 [02:38:38]line Место: АЗС № 120 "Партнер Нефть" [02:38:38]line Адрес: 720001, г. Нарын, ул. Ж. Турдубаева 1, 41.421232, 76.009275 [02:38:38]line СНО: Общий режим [02:38:38]line Чек 9 21.06.2024 02:38 [02:38:38]line Смена: 355 ФФД: 1.0 [02:38:38]line ЗНМ: 0300000164 [02:38:38]line РНМ: 0000000000092785 [02:38:38]line Версия ККМ: 001 [02:38:38]line ФМ: 0000000000875093 [02:38:38]line ФД: 104086 [02:38:38]line ФПД: 179514547355506 [02:38:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240621T023838&type=1&operation_type=1&fn_number=0000000000875093&fd_number=104086&fm=179514547355506&tin=02508201610067®Number=0000000000092785&sum=100000 [02:38:38]OFD Sender: Processing packet 104086 [packets to send 17, broken 16] [02:38:38]ProducePacketName [02:38:38]name=ofd_packets/00104086 [02:38:38]OFD Sender: To server: pG, [02:38:38]CommunicateWithHost lk.salyk.kg:30040 [02:38:38]ConnectInit lk.salyk.kg [02:38:38]written 0, free lines is 4095 [02:38:38]Connected sock=10 [02:38:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0F 01 00 00 C1 23 07 01 E3 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 AE E7 74 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 96 01 00 35 04 06 00 A3 44 7C D3 BF 72 FA 73 1F E9 EB 25 73 98 [02:38:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 4F 00 00 00 EC 76 47 00 CD 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 10 04 04 00 96 96 01 00 F4 03 04 00 32 8E 74 66 B6 04 01 00 00 68 19 BA 64 E3 DA D8 05 [02:38:38]CommunicateWithHost err = 0 [02:38:38]CheckOFDResponse [02:38:38]1017 (14) - 77093643461234 [02:38:38]1041 (16) - 0000000000875093 [02:38:38]1040 (4) - 104086 [02:38:38]1012 (4) - 20.06.2024 20:16 [02:38:38]1206 (1) - 0 [02:38:38]OFD Sender: Remove packet 104086 [02:38:38]ProducePacketName [02:38:38]name=ofd_packets/00104086 [02:38:38]NVStorageDeleteData [02:38:39]Write to MH i2c: 01 00 00 C8 0D D5 [02:38:39]Write i2c OK [02:38:39]MH_I2C_Read... [02:38:39]Read from MH i2c: 01 [02:38:39]MH_I2C_Read... [02:38:39]Read from MH i2c: 01 07 00 [02:38:39]MH_I2C_Read... [02:38:39]Read from MH i2c: 01 07 00 C8 0D 00 00 00 00 00 D5 0C BD [02:38:39]RasterBufferAndPrint [02:38:39]line [02:38:39]line [02:38:39]line [02:38:39]line [02:38:39]line [02:38:39]written 0, free lines is 3292 [02:38:39]MH_Cut [02:38:39]Write to MH i2c: D1 01 00 CF 0D 01 AE [02:38:39]Write i2c OK [02:38:39]MH_I2C_Read... [02:38:39]Read from MH i2c: D1 [02:38:39]MH_I2C_Read... [02:38:39]Read from MH i2c: D1 01 00 [02:38:39]MH_I2C_Read... [02:38:39]Read from MH i2c: D1 01 00 CF 0D 00 AD [02:38:39]Write to MH i2c: 01 00 00 D0 0D DD [02:38:39]Write i2c OK [02:38:39]MH_I2C_Read... [02:38:39]OFD Sender: No OFD packet to send [02:38:39]*** Cut start [02:38:39]*** Partial cut [02:38:39]*** CUTSNS_PIN = 1 [02:38:39]*** CUTSNS_PIN = 0 [02:38:40]*** Brake cut motor [02:38:40]Read from MH i2c: 01 [02:38:40]MH_I2C_Read... [02:38:40]*** Stop cut motor [02:38:40]*** Cut end [02:38:40]Read from MH i2c: 01 07 00 [02:38:40]MH_I2C_Read... [02:38:40]Read from MH i2c: 01 07 00 D0 0D 00 00 00 00 00 FF 0F F2 [02:38:40]process_action close_receipt done [02:38:40]requested_data is exist [02:38:40]produce_requested_data [02:38:40]requested_item fm.sn is exist - process it [02:38:40]wFMCommunicate request_size=4 [02:38:40]MH_SAM_APDU [02:38:40]CAPDU: 80 11 00 00 [02:38:40]Write to MH i2c: E2 08 00 D1 0D 80 11 00 00 00 00 00 00 58 [02:38:40]Write i2c OK [02:38:40]MH_I2C_Read... [02:38:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:40]Read from MH i2c: E2 [02:38:40]MH_I2C_Read... [02:38:40]Read from MH i2c: E2 17 00 [02:38:40]MH_I2C_Read... [02:38:40]Read from MH i2c: E2 17 00 D1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 AB [02:38:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 90 00 [02:38:40]wFMCommunicate OK [02:38:40]requested_item fd.num is exist - process it [02:38:40]SAM_PROTO_GetFieldsCounters [02:38:40]wFMCommunicate request_size=4 [02:38:40]MH_SAM_APDU [02:38:40]CAPDU: 80 13 00 00 [02:38:40]Write to MH i2c: E2 08 00 D2 0D 80 13 00 00 00 00 00 00 5B [02:38:40]Write i2c OK [02:38:40]MH_I2C_Read... [02:38:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:38:40]Read from MH i2c: E2 [02:38:40]MH_I2C_Read... [02:38:40]Read from MH i2c: E2 62 00 [02:38:40]MH_I2C_Read... [02:38:40]Read from MH i2c: E2 62 00 D2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 96 96 01 00 0E 04 04 00 63 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 2E [02:38:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 39 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 38 35 10 04 04 00 96 96 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:38:40]wFMCommunicate OK [02:38:40]SAM_PROTO_GetFieldsCounters done [02:38:40]requested_item shift.num is exist - process it [02:38:40]requested_item shift.opened is exist - process it [02:38:40]req_shift_opened [02:38:40]FM_GetShiftState [02:38:40]SAM_PROTO_GetShiftState [02:38:40]wFMCommunicate request_size=4 [02:38:40]MH_SAM_APDU [02:38:40]CAPDU: 80 13 01 00 [02:38:40]Write to MH i2c: E2 08 00 D3 0D 80 13 01 00 00 00 00 00 5D [02:38:40]Write i2c OK [02:38:40]MH_I2C_Read... [02:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:40]Read from MH i2c: E2 [02:38:40]MH_I2C_Read... [02:38:40]Read from MH i2c: E2 0E 00 [02:38:40]MH_I2C_Read... [02:38:40]Read from MH i2c: E2 0E 00 D3 0D 00 09 00 01 65 C8 74 66 00 00 00 00 90 00 70 [02:38:40]RAPDU: 09 00 01 65 C8 74 66 00 00 00 00 90 00 [02:38:40]wFMCommunicate OK [02:38:40]SAM_PROTO_GetShiftState done [02:38:40]FM_GetShiftState done [02:38:40]req_shift_opened done [02:38:40]requested_item shift.open_date is exist - process it [02:38:40]req_shift_open_date [02:38:40]req_shift_open_date done [02:38:40]produce_requested_data done [02:38:40]produce_requested_data return {"fm.sn":"0000000000875093","fd.num":104086,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509} [02:38:40]process_action_free close_receipt [02:38:40]json_value_free [02:38:40]json_value_free done [02:38:40]process_json_proto returns [02:38:40]Send response to host [02:38:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875093","fd.num":104086,"shift.num":355,"shift.opened":1,"shift.open_date":1718929509}}} [02:38:40]free response buf [02:38:40]execute_script done [02:38:40]execute_script returns [02:38:40]free content buf [02:38:40]Sock 7.Close socket [02:38:40]Sock 7.Thread stoped [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:05]OFD Sender: No OFD packet to send [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send